/* ============================================
   Camcue 全局样式 - shared.css
   所有页面共用：CSS 变量、导航栏、页脚、通用组件
   ============================================ */

:root {
  --color-primary: #1E2D5A;
  --color-primary-light: #2A3F7A;
  --color-bg: #F5F5F0;
  --color-accent: #C8A96E;
  --color-accent-hover: #B8964E;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-white: #FFFFFF;
  --color-border: #E5E5E5;
  --color-card-bg: #FFFFFF;
  --color-dark-bg: #0F1A35;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 80px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- 区块标题 --- */
.section-label {
  display: inline-block; font-family: var(--font-body); font-size: 13px;
  font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); color: var(--color-primary); margin-bottom: 20px; }
.section-desc { font-size: 17px; color: var(--color-text-light); max-width: 640px; line-height: 1.8; }
.section-desc.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title.center { text-align: center; }
.section-label.center { text-align: center; display: block; }

/* --- 按钮 --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 6px; font-family: var(--font-body); font-size: 15px;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--color-accent); color: var(--color-text-white); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(200,169,110,0.4); }
.btn-outline { background: transparent; color: var(--color-text-white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--color-text-white); background: rgba(255,255,255,0.1); }
.btn-outline-dark { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline-dark:hover { background: var(--color-primary); color: var(--color-text-white); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-arrow::after { content: '→'; transition: transform 0.3s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* === 导航栏 === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  z-index: 1000; background: rgba(15, 26, 53, 0.95); backdrop-filter: blur(10px);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-heading); font-size: 26px; color: var(--color-text-white); font-weight: 700; letter-spacing: 1px; }
.nav-logo span { color: var(--color-accent); }
.nav-links { display: flex; list-style: none; gap: 36px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.75); transition: var(--transition); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--color-text-white); }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text-white); transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links { position: fixed; top: var(--nav-height); left: 0; right: 0; background: var(--color-dark-bg); flex-direction: column; padding: 30px 24px; gap: 20px; transform: translateY(-120%); transition: transform 0.35s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
  .nav-links.open { transform: translateY(0); }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* === 页脚 === */
.footer { background: var(--color-dark-bg); color: rgba(255,255,255,0.7); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.8; max-width: 300px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 14px; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-social a:hover { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.footer h4 { color: var(--color-text-white); font-family: var(--font-body); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--color-accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(255,255,255,0.4); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* === CTA 横幅 === */
.cta-banner { background: var(--color-primary); padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(200,169,110,0.15) 0%, transparent 70%); border-radius: 50%; }
.cta-banner h2 { color: var(--color-text-white); font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.7); font-size: 17px; margin-bottom: 32px; position: relative; }
.cta-banner .btn { position: relative; }

/* === 通用 Page Hero === */
.page-hero { padding: 160px 0 100px; background: var(--color-primary); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to bottom, transparent, var(--color-bg)); }
.page-hero .section-label { color: var(--color-accent); }
.page-hero .section-title { color: var(--color-text-white); }
.page-hero .section-desc { color: rgba(255,255,255,0.7); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { margin: 0 4px; }

/* === 滚动动画 === */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question { width: 100%; background: none; border: none; padding: 24px 0; font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--color-primary); cursor: pointer; display: flex; justify-content: space-between; align-items: center; text-align: left; }
.faq-question::after { content: '+'; font-size: 22px; font-weight: 300; color: var(--color-accent); transition: transform 0.3s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 24px; }
.faq-answer p { font-size: 15px; color: var(--color-text-light); line-height: 1.8; }
