/* 银杉联合家族办公室官网 — 机构信任感风格 × 银杉红 */

:root {
  --brand: #8B1A1A;
  --brand-dark: #611212;
  --brand-light: #FCEBEB;
  --ink: #2C2C2A;
  --ink-muted: #5F5E5A;
  --line: #E6E4DE;
  --bg: #FFFFFF;
  --bg-alt: #FAF8F5;
  --serif: Georgia, "Songti SC", "Noto Serif SC", "STSong", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.container.center { text-align: center; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 58px; width: auto; display: block; }
.main-nav { display: flex; gap: 32px; }
.main-nav a { color: #fff; font-size: 15px; transition: color .2s ease; }
.main-nav a:hover { color: var(--brand-light); }
.site-header.scrolled .main-nav a { color: var(--ink); }
.site-header.scrolled .main-nav a:hover { color: var(--brand); }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; overflow: hidden; }
.lang-btn {
  border: none; background: transparent; padding: 6px 12px;
  font-size: 13px; cursor: pointer; color: rgba(255,255,255,0.9); font-family: var(--sans);
  transition: background .2s ease, color .2s ease;
}
.lang-btn.active { background: var(--brand); color: #fff; }
.site-header.scrolled .lang-switch { border-color: var(--line); }
.site-header.scrolled .lang-btn { color: var(--ink-muted); }
.site-header.scrolled .lang-btn.active { background: var(--brand); color: #fff; }
.nav-toggle { display: none; border: none; background: none; font-size: 22px; cursor: pointer; color: #fff; }
.site-header.scrolled .nav-toggle { color: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  background:
    linear-gradient(180deg, rgba(20,20,25,0.45) 0%, rgba(20,20,25,0.55) 100%),
    url('../assets/hero-hk.jpg') center/cover no-repeat;
}
.hero .container { position: relative; z-index: 2; padding-top: 72px; }
.hero-eyebrow { font-size: 13px; letter-spacing: 3px; color: rgba(255,255,255,0.85); font-weight: 500; margin-bottom: 24px; text-transform: uppercase; }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 600; line-height: 1.25; margin-bottom: 24px; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}
.hero-sub { max-width: 680px; margin: 0 auto 40px; font-size: 18px; color: rgba(255,255,255,0.88); line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--brand); }
.hero .btn-primary:hover { background: var(--brand-light); color: var(--brand-dark); }
.hero .btn-ghost { border: 1px solid rgba(255,255,255,0.5); color: #fff; background: rgba(255,255,255,0.08); }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: #fff; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 2px;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px; background: rgba(255,255,255,0.4);
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* Buttons */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 8px;
  font-size: 15px; font-weight: 500; transition: all .2s ease; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 16px 40px; font-size: 16px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow { font-size: 13px; letter-spacing: 2px; color: var(--brand); font-weight: 500; margin-bottom: 12px; }
.section-title { font-family: var(--serif); font-size: clamp(26px, 3.5vw, 38px); font-weight: 600; margin-bottom: 16px; }
.section-desc { color: var(--ink-muted); max-width: 560px; margin-bottom: 48px; }
.container.center .section-desc, .container.center .section-title { margin-left: auto; margin-right: auto; }
.container.center .section-desc { margin-bottom: 40px; }
.lead { font-size: 17px; color: var(--ink); margin-bottom: 20px; }

/* Pillar cards */
.pillar-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px;
}
.pillar-card {
  grid-column: span 2;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 32px 28px; transition: border-color .2s ease, transform .2s ease;
}
.pillar-card:nth-child(4), .pillar-card:nth-child(5) { grid-column: span 3; }
.pillar-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.pillar-letter {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand);
  color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.pillar-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.pillar-en { font-size: 12px; letter-spacing: 2px; color: var(--brand); text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
.pillar-card p:last-child { font-size: 14.5px; color: var(--ink-muted); }

/* Journey */
.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.journey-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px 28px;
  display: flex; flex-direction: column;
}
.journey-step { font-size: 12px; letter-spacing: 1.5px; color: var(--brand); font-weight: 500; margin-bottom: 14px; }
.journey-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.journey-price { font-family: var(--serif); font-size: 22px; color: var(--brand-dark); font-weight: 600; margin-bottom: 14px; }
.journey-card p:last-child { font-size: 14.5px; color: var(--ink-muted); }
.journey-note { margin-top: 24px; font-size: 14px; color: var(--ink-muted); text-align: center; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { padding: 24px 0; border-top: 2px solid var(--brand); }
.why-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.why-item p { font-size: 14px; color: var(--ink-muted); }

/* Contact */
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 36px; margin-bottom: 32px; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.contact-card p { font-size: 14.5px; color: var(--ink-muted); }
.contact-card strong { color: var(--ink); display: inline-block; margin-bottom: 4px; }

/* QR codes */
.qr-section-title { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.qr-section-subtitle { font-size: 14px; color: var(--ink-muted); margin-bottom: 28px; }
.qr-grid { display: grid; grid-template-columns: repeat(2, 160px); gap: 32px; justify-content: center; margin-bottom: 40px; }
.qr-item { text-align: center; }
.qr-img { width: 160px; height: 160px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.qr-label { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }

/* Footer */
.site-footer { background: var(--brand-dark); color: rgba(255,255,255,0.75); padding: 56px 0; text-align: center; }
.footer-logo { height: 52px; opacity: 0.95; margin-bottom: 16px; }
.footer-slogan { color: #fff; font-family: var(--serif); font-size: 16px; margin-bottom: 12px; }
.footer-legal { font-size: 13px; margin-bottom: 8px; }
.footer-disclaimer { font-size: 12px; max-width: 640px; margin: 0 auto; opacity: 0.7; }

/* ===== Sub-page Styles ===== */

/* Nav dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: " ▾"; font-size: 11px; opacity: 0.5; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: -12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08); min-width: 240px; padding: 8px 0;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px;
  font-size: 14px; color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--bg-alt); color: var(--brand); }
.nav-dropdown-menu .dd-letter {
  width: 24px; height: 24px; border-radius: 6px; background: var(--brand);
  color: #fff; font-family: var(--serif); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb { padding: 16px 0 0; font-size: 13px; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { margin: 0 6px; }

/* Sub-page hero */
.sub-hero {
  padding: 120px 0 56px; background: linear-gradient(180deg, var(--bg-alt), #fff);
  border-bottom: 1px solid var(--line);
}
.sub-hero-letter {
  width: 64px; height: 64px; border-radius: 14px; background: var(--brand);
  color: #fff; font-family: var(--serif); font-size: 32px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.sub-hero-en { font-size: 13px; letter-spacing: 3px; color: var(--brand); font-weight: 500; text-transform: uppercase; margin-bottom: 8px; }
.sub-hero h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); font-weight: 600; margin-bottom: 16px; }
.sub-hero p { max-width: 680px; font-size: 16px; color: var(--ink-muted); }

/* Sub-service grid */
.sub-service-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px;
}
.sub-service-item {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 24px; transition: border-color .2s ease, transform .2s ease;
}
.sub-service-item:hover { border-color: var(--brand); transform: translateY(-2px); }
.sub-service-item .icon-num {
  width: 32px; height: 32px; border-radius: 8px; background: var(--brand-light);
  color: var(--brand); font-family: var(--serif); font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.sub-service-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.sub-service-item p { font-size: 14px; color: var(--ink-muted); }

/* Process timeline */
.process-timeline { position: relative; margin-top: 32px; }
.process-step {
  display: flex; gap: 24px; padding-bottom: 32px; position: relative;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px;
  background: var(--line);
}
.process-step:last-child::before { display: none; }
.process-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 16px; font-weight: 600; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.process-step-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.process-step-body p { font-size: 14px; color: var(--ink-muted); }

/* FAQ */
.faq-list { margin-top: 24px; }
.faq-item {
  border-bottom: 1px solid var(--line); padding: 0;
}
.faq-q {
  width: 100%; text-align: left; border: none; background: none; cursor: pointer;
  padding: 20px 0; font-size: 15.5px; font-weight: 500; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; font-family: var(--sans);
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--brand); transition: transform .2s; flex-shrink: 0; margin-left: 12px; }
.faq-q.open::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
  font-size: 14.5px; color: var(--ink-muted); line-height: 1.7;
}
.faq-a.open { max-height: 300px; padding: 0 0 20px; }

/* CTA banner */
.cta-banner {
  background: var(--brand-dark); border-radius: 16px; padding: 48px;
  text-align: center; margin: 64px 0 0;
}
.cta-banner h2 { color: #fff; font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 15px; margin-bottom: 24px; }
.cta-banner .btn { background: #fff; color: var(--brand-dark); }
.cta-banner .btn:hover { background: var(--brand-light); }

/* Pillar card link */
.pillar-link {
  display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--brand);
}
.pillar-link::after { content: " →"; }

/* Back to top */
.back-top {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--brand); color: #fff; border: none;
  cursor: pointer; font-size: 20px; opacity: 0; pointer-events: none;
  transition: opacity .3s; z-index: 40; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.back-top.show { opacity: 1; pointer-events: auto; }

/* Responsive */
@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .pillar-card, .pillar-card:nth-child(4), .pillar-card:nth-child(5) { grid-column: span 2; }
  .pillar-card:nth-child(5) { grid-column: 1 / -1; }
  .journey-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: repeat(2, 140px); gap: 24px; }
  .qr-img { width: 140px; height: 140px; }
  .main-nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
  .header-inner { height: 72px; }
  .brand-logo { height: 46px; }
  .hero { padding: 80px 0 64px; }
  .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 0 24px; }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .sub-service-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 32px 24px; }
}
@media (max-width: 520px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .pillar-card { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: 1fr; }
}
