/* ========================================
   恒信家族办公室 — 主样式表
   配色：深蓝 #1F312B、深灰 #2D3436、香槟金 #96794A
   字体：Inter (标题) + Noto Sans SC (正文)
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #1F312B;        /* 松墨绿 · 品牌深色 */
  --color-primary-light: #33463F;
  --color-accent: #96794A;         /* 古铜金 · 细节点缀 */
  --color-accent-hover: #7E6338;
  --color-seal: #9C3B2C;           /* 印泥红 · 签名标记，克制使用 */
  --color-dark: #2A2620;
  --color-text: #35302A;           /* 暖墨 · 正文 */
  --color-text-light: #726A5E;     /* 暖灰 · 辅助文字 */
  --color-bg: #FBF8F2;             /* 暖宣纸白 */
  --color-bg-panel: #F4EEE2;       /* 更深一档纸面 */
  --color-bg-alt: #F2ECE0;
  --color-bg-dark: #1F312B;
  --color-border: #E4DBCB;         /* 暖色发丝线 */
  --color-error: #b23a2e;
  --color-success: #4a6b3f;
  --radius: 2px;
  --shadow-sm: 0 1px 2px rgba(42,38,32,0.05);
  --shadow-md: 0 6px 24px rgba(42,38,32,0.08);
  --shadow-lg: 0 18px 50px rgba(42,38,32,0.12);
  --max-width: 1200px;
  --header-height: 76px;
  --transition: 0.25s cubic-bezier(0.22,0.61,0.36,1);
  --font-body: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
  --font-display: 'Cormorant Garamond', 'Noto Serif SC', 'Songti SC', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.28;
  color: var(--color-primary);
  letter-spacing: 0;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }

a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-hover); }

/* 签名母题：细金线 + 印章 */
.rule-gold { border: 0; height: 1px; background: var(--color-accent); width: 48px; opacity: 0.9; }
.seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1.5px solid var(--color-seal);
  color: var(--color-seal); font-family: var(--font-serif); font-weight: 600;
  font-size: 1.15rem; border-radius: 3px; line-height: 1;
}

p { margin-bottom: 1rem; }

img { max-width: 100%; height: auto; }

ul { list-style: none; }

/* --- Container --- */
.section { padding: 80px 20px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
}
.section-gray { background: var(--color-bg-alt); }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid var(--color-primary);
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn-primary:hover {
  background: #17251F;
  color: var(--color-bg);
}
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
}
.btn-lg { padding: 16px 42px; font-size: 1rem; }

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251,248,242,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
}
.header-logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-seal {
  width: 30px; height: 30px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--color-seal); border-radius: 3px;
  color: var(--color-seal); font-family: var(--font-serif); font-weight: 600;
  font-size: 1rem; line-height: 1;
}
.logo-text {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--color-primary);
  letter-spacing: 1px;
  white-space: nowrap;
}
.header-nav { display: flex; gap: 30px; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--color-accent); transition: width var(--transition);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switcher { display: flex; gap: 2px; }
.lang-link {
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  border-radius: 2px;
  transition: all var(--transition);
}
.lang-link:hover, .lang-link.active { color: var(--color-accent); background: rgba(150,121,74,0.1); }
.header-cta {
  padding: 9px 22px;
  font-size: 0.85rem;
}
.menu-toggle span { background: var(--color-primary); }

/* --- Mobile menu --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  padding: 40px 24px;
  z-index: 999;
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav-inner { display: flex; flex-direction: column; gap: 20px; }
.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-lang { display: flex; gap: 12px; margin: 8px 0; }
.mobile-cta { text-align: center; margin-top: 16px; }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1F312B 0%, #17231E 100%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/hk-skyline.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(31,49,43,0.85) 0%, rgba(31,49,43,0.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
}
.eyebrow {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.service-icon { font-size: 2.5rem; display: block; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 12px; }
.service-card p { font-size: 0.9rem; color: var(--color-text-light); }
.card-link { font-weight: 600; font-size: 0.85rem; margin-top: 12px; display: inline-block; }

/* --- Why Us --- */
.why-grid { display: grid; gap: 32px; max-width: 800px; margin: 0 auto; }
.why-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 8px;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}
.why-card h3 { color: var(--color-accent); margin-bottom: 12px; }
.why-card p { color: var(--color-text-light); }

/* --- CTA Section --- */
.cta-section { background: var(--color-primary); text-align: center; }
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }

/* --- Page Hero --- */
.page-hero {
  position: relative;
  background: linear-gradient(180deg, #FBF8F2 0%, #F4EEE2 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 92px 20px 64px;
  text-align: left;
  overflow: hidden;
}
.page-hero .section-inner { position: relative; z-index: 2; }
.page-hero::before {
  content: '恒';
  position: absolute;
  right: 2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 32vh;
  line-height: 1;
  color: rgba(31,49,43,0.05);
  pointer-events: none;
}
.page-hero .eyebrow {
  color: var(--color-accent);
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-align: left;
  padding-left: 40px;
  position: relative;
  margin-bottom: 18px;
}
.page-hero .eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 28px; height: 1px;
  background: var(--color-accent);
}
.page-hero h1 {
  color: var(--color-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

/* --- Content --- */
.content { max-width: 800px; margin: 0 auto; line-height: 1.8; color: var(--color-text-light); }
.content h3 { margin-top: 32px; margin-bottom: 12px; color: var(--color-primary); }
.content p { margin-bottom: 16px; }
.content ul { list-style: disc; padding-left: 24px; margin-bottom: 16px; }
.content li { margin-bottom: 6px; }

/* --- Feature list --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature-item {
  background: var(--color-bg-alt);
  padding: 20px;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}

/* --- Products List --- */
.products-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px 24px;
  transition: all var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card h3 { margin-bottom: 10px; }
.product-card p { font-size: 0.9rem; color: var(--color-text-light); margin-bottom: 16px; }
.product-card .card-link { font-size: 0.88rem; }

/* --- Contact Form --- */
.contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-bg);
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-primary);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--color-bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(150,121,74,0.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-submit { width: 100%; }
.privacy-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 60px 20px 30px;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 { color: var(--color-accent); margin-bottom: 12px; font-size: 1.2rem; }
.footer-brand p { font-size: 0.85rem; margin-bottom: 4px; }
.footer-nav h4, .footer-contact h4 {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-link {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--color-accent); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-contact a { color: var(--color-accent); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}
.disclaimer { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.legal-links { display: flex; gap: 16px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }
.copyright { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: all var(--transition);
  z-index: 999;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

/* --- Status Messages --- */
.success-msg, .error-msg {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: none;
}
.success-msg { background: #e8f5e9; color: var(--color-success); border: 1px solid #c8e6c9; }
.error-msg { background: #ffebee; color: var(--color-error); border: 1px solid #ffcdd2; }

/* --- Article Cards --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.article-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
  transition: all var(--transition);
}
.article-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-accent); }
.article-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.article-card .meta { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 8px; }
.article-card p { font-size: 0.9rem; color: var(--color-text-light); }

/* --- 404 --- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.error-page h1 { font-size: 5rem; color: var(--color-accent); margin-bottom: 8px; }
.error-page p { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 24px; }


/* --- Hover card for guide advantages --- */
.hover-card {
  transition: all 0.3s ease;
}
.hover-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent) !important;
  transform: translateY(-2px);
}

/* --- Guide page details styling fix --- */
details summary { cursor: pointer; }
details summary::-webkit-details-marker { display: none; }
details[open] summary {
  border-bottom: 1px solid var(--color-border);
  background: rgba(150,121,74,0.04);
}

/* --- Smooth fade-in for page load --- */
body { opacity: 0; animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

/* --- Improved service card in services-section --- */
.services-section .service-card {
  position: relative;
}
.services-section .service-card .card-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-accent);
}

/* --- Page hero inner page style override --- */
.page-hero h1 {
  text-shadow: none;
}
.page-hero .page-hero-sub { color: var(--color-text-light); }

/* --- Table improvements --- */
table th, table td {
  vertical-align: top;
}

/* --- Better list spacing --- */
.content ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* --- Scrollbar styling --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-light); }


/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 48px 16px; }
  .section-title { margin-bottom: 32px; }
  .hero { min-height: 70vh; }
  .hero-content h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .header-nav { display: none; }
  .header-actions .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-form-wrap { padding: 24px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; align-items: center; }
}


/* ========================================
   恒信家族办公室 — 首页组件样式
   ======================================== */

/* --- Hero Insurance (homepage specific) --- */
.hero-insurance {
  background: #17231E;
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-insurance::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/hk-skyline.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.25;
  pointer-events: none;
}
.hero-insurance::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,35,30,0.7) 0%, rgba(31,49,43,0.85) 50%, #1F312B 100%);
  pointer-events: none;
}
.hero-insurance .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.hero-insurance .hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-insurance .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.8;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-insurance .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  margin-top: 8px;
}

/* --- Hero eyebrow --- */
.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

/* --- Button variants --- */
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  text-align: center;
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(150,121,74,0.1);
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  text-align: center;
}
.btn-outline-light:hover {
  border-color: #25D366;
  color: #25D366;
  background: rgba(37,211,102,0.1);
}
.btn-lg { padding: 16px 48px; font-size: 1.1rem; }

/* --- Stats Strip --- */
.stats-strip {
  background: var(--color-primary);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 20px;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: 'Inter', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* --- Section label (eyebrow style for section header) --- */
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 12px;
  text-align: center;
}
.section-title-alt {
  text-align: center;
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 700;
}
.section-desc {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* --- Services Section --- */
.services-section { padding: 80px 20px; }
.services-section .service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 40px 28px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.services-section .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.services-section .service-card:hover::before { opacity: 1; }
.services-section .service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(150,121,74,0.1);
  border-radius: 16px;
  transition: background 0.3s ease;
}
.service-card:hover .service-icon-wrap {
  background: rgba(150,121,74,0.18);
}
.service-icon-wrap svg { width: 36px; height: 36px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.service-card p { font-size: 0.88rem; color: var(--color-text-light); line-height: 1.6; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 16px;
  transition: gap 0.3s ease;
}
.service-link:hover { gap: 10px; color: var(--color-accent-hover); }

/* --- Partners Section --- */
.section-partners {
  background: var(--color-bg-alt);
  padding: 80px 20px;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.partner-item {
  padding: 12px 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.3s ease;
}
.partner-item:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

/* --- Why Us Modern Cards --- */
.why-section { padding: 80px 20px; }
.why-grid { display: flex; flex-direction: column; gap: 24px; max-width: 800px; margin: 0 auto; }
.why-card-modern {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}
.why-card-modern:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--color-accent);
}
.why-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-accent);
  background: rgba(150,121,74,0.1);
  border-radius: 12px;
}
.why-content { flex: 1; }
.why-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}
.why-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* --- CTA Modern --- */
.cta-modern {
  position: relative;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}
.cta-modern-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1F312B 0%, #17231E 100%);
}
.cta-modern-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(150,121,74,0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(150,121,74,0.04) 0%, transparent 50%);
  pointer-events: none;
}
.cta-modern-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}
.cta-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.cta-modern-content h2 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-modern-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Responsive additions --- */
@media (max-width: 768px) {
  .hero-insurance { min-height: 75vh; }
  .hero-insurance .hero-content h1 { font-size: 2rem; }
  .hero-insurance .hero-sub { font-size: 1rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat-value { font-size: 1.6rem; }
  .section-title-alt { font-size: 1.5rem; }
  .why-card-modern { flex-direction: column; gap: 16px; padding: 24px; }
  .cta-modern { padding: 60px 20px; }
  .cta-modern-content h2 { font-size: 1.5rem; }
  .services-section .service-card { padding: 28px 20px; }
  .partner-item { padding: 10px 20px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .hero-insurance .hero-actions { flex-direction: column; align-items: center; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-badge { font-size: 0.75rem; padding: 6px 12px; }
}


/* ========================================
   恒信家族办公室 — 高级视觉增强
   ======================================== */

/* --- Typography refinements --- */
html { font-size: 16px; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }
p { line-height: 1.7; }

/* --- Smooth hover transitions for everything interactive --- */
a, button, .service-card, .why-card-modern, .partner-item, .article-card {
  will-change: transform;
}

/* --- Hero insurance badge styling --- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  margin-top: 8px;
  transition: border-color 0.3s ease;
}
.hero-badge:hover {
  border-color: rgba(255,255,255,0.2);
}

/* --- Stats strip refinement --- */
.stats-strip {
  position: relative;
  z-index: 2;
}
.stat-value {
  position: relative;
  display: inline-block;
}
.stat-value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
  border-radius: 1px;
}

/* --- Why card modern refinement --- */
.why-number {
  transition: all 0.3s ease;
}
.why-card-modern:hover .why-number {
  background: rgba(150,121,74,0.2);
  transform: scale(1.05);
}

/* ========================================
   Homepage 2026 redesign: Hong Kong financial vision
   ======================================== */
/* 首页 Hero：香港天际线 + 松墨绿墨色罩 + 宋体标题 */
.hero-finance {
  min-height: 84vh;
  justify-content: flex-start;
  padding: 104px 20px 72px;
  background: #14201B;
}

/* 天际线图 */
.hero-finance::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/hk-finance-skyline.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.82;
  filter: saturate(0.94) contrast(1.06) brightness(1.08);
  pointer-events: none;
  z-index: 0;
}
/* 墨色罩：左浓右淡，保证文字可读 + 品牌色调 */
.hero-finance::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,32,27,0.84) 0%, rgba(20,32,27,0.58) 42%, rgba(20,32,27,0.12) 74%, rgba(20,32,27,0.22) 100%),
    linear-gradient(180deg, rgba(20,32,27,0.04) 0%, rgba(20,32,27,0.46) 100%);
}

.hero-finance .hero-content {
  max-width: var(--max-width);
  width: 100%;
  text-align: left;
  margin: 0 auto;
  padding: 0 0 0 42px;
  position: relative;
  z-index: 2;
}
/* 左侧竖向细金线母题 */
.hero-finance .hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-accent) 18%, var(--color-accent) 82%, transparent);
  opacity: 0.7;
}

.hero-finance .eyebrow,
.align-left {
  text-align: left;
}

.hero-finance .eyebrow {
  color: #C7A867;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  position: relative;
  padding-left: 40px;
}
.hero-finance .eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 28px;
  height: 1px;
  background: #C7A867;
}

.hero-finance .hero-content h1 {
  max-width: 18ch;
  color: #FBF8F2;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin-bottom: 26px;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(5, 13, 24, 0.42);
}

.hero-finance .hero-sub {
  max-width: 600px;
  margin: 0 0 36px;
  color: rgba(251,248,242,0.8);
  font-size: 1.02rem;
  line-height: 1.95;
  text-shadow: 0 1px 12px rgba(5, 13, 24, 0.48);
}

.hero-finance .hero-actions {
  justify-content: flex-start;
  margin-bottom: 26px;
}

.hero-finance .btn-primary {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
}
.hero-finance .btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.hero-finance .btn-outline {
  border: 1px solid rgba(251,248,242,0.55);
  color: #FBF8F2;
  background: transparent;
}
.hero-finance .btn-outline:hover {
  background: rgba(251,248,242,0.12);
  border-color: #FBF8F2;
  color: #FBF8F2;
}

.proof-strip {
  background: var(--color-primary);
  padding: 40px 20px;
}

.proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.proof-item {
  min-height: 92px;
  padding: 8px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,0.12);
}
.proof-item:first-child { border-left: 0; }

.proof-item strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: #C7A867;
  margin-bottom: 8px;
}

.proof-item span {
  color: rgba(255,255,255,0.62);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.home-story {
  background: var(--color-bg);
  padding-top: 104px;
  padding-bottom: 104px;
}

.story-grid,
.asia-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.home-story h2,
.planning-header h2,
.asia-grid h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1.32;
  letter-spacing: 0;
  margin: 0;
}

.story-copy {
  border-left: 1px solid var(--color-accent);
  padding-left: 34px;
}

.story-copy p,
.asia-grid p,
.planning-header p {
  color: var(--color-text-light);
  font-size: 1.02rem;
  line-height: 2;
}
.story-copy p + p { margin-top: 1.1rem; }

.products-showcase {
  background: #F2ECE0;
}

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-showcase-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid rgba(31,49,43,0.1);
  border-radius: 8px;
  color: var(--color-text);
  box-shadow: 0 18px 45px rgba(20,32,44,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(150,121,74,0.75);
  box-shadow: 0 24px 60px rgba(20,32,44,0.12);
  color: var(--color-text);
}

.product-showcase-card span {
  color: #9b7432;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.product-showcase-card h3 {
  font-size: 1.28rem;
  margin-bottom: 14px;
}

.product-showcase-card p {
  color: #667085;
  font-size: 0.94rem;
  line-height: 1.78;
}

.product-showcase-card em {
  margin-top: auto;
  color: var(--color-accent-hover);
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
}

.planning-section {
  background: #0d1b2a;
  color: #fff;
}

.planning-header {
  max-width: 820px;
  margin-bottom: 42px;
}

.planning-header h2,
.planning-header .section-label {
  color: #fff;
}

.planning-header .section-label {
  color: #d7b66f;
}

.planning-header p {
  color: rgba(255,255,255,0.68);
  max-width: 740px;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journey-card {
  padding: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
}

.journey-card span {
  display: inline-block;
  color: #d7b66f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}

.journey-card h3 {
  color: #fff;
  font-size: 1.18rem;
  margin-bottom: 14px;
}

.journey-card p {
  color: rgba(255,255,255,0.68);
  font-size: 0.92rem;
  line-height: 1.8;
}

.asia-section {
  background: #fff;
}

.region-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 34px;
  border: 1px solid rgba(31,49,43,0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245,247,250,0.9), #fff);
  box-shadow: 0 20px 60px rgba(20,32,44,0.08);
}

.region-cloud span {
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(31,49,43,0.12);
  color: #1F312B;
  font-weight: 600;
  font-size: 0.9rem;
}

.refined-partners {
  background: #f7f3ea;
}

.cta-finance .cta-modern-bg {
  background: var(--color-primary);
}
.cta-finance .cta-modern-bg::after {
  content: '恒';
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 30vh;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
}

.cta-finance .cta-modern-content {
  max-width: 760px;
}

/* 深色底上的主按钮改为亮色 */
.cta-modern .btn-primary,
.svc-hero .btn-primary {
  background: var(--color-bg);
  color: var(--color-primary);
  border-color: var(--color-bg);
}
.cta-modern .btn-primary:hover,
.svc-hero .btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

@media (max-width: 980px) {
  .product-showcase-grid,
  .proof-inner,
  .journey-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid,
  .asia-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 640px) {
  .hero-finance {
    min-height: 86vh;
    padding-top: 88px;
    align-items: flex-end;
  }

  .hero-finance::before {
    background-position: 62% center;
    opacity: 0.76;
  }

  .hero-finance::after {
    background:
      linear-gradient(180deg, rgba(5,13,24,0.16) 0%, rgba(5,13,24,0.88) 76%),
      linear-gradient(90deg, rgba(5,13,24,0.62), rgba(5,13,24,0.24));
  }

  .hero-finance .hero-content h1 {
    font-size: 2.45rem;
    line-height: 1.08;
  }

  .hero-finance .hero-sub {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .hero-finance .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-finance .hero-actions a,
  .cta-actions a {
    width: 100%;
  }

  .proof-inner,
  .product-showcase-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .story-copy {
    padding-left: 20px;
  }

  .home-story,
  .products-showcase,
  .planning-section,
  .asia-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

/* --- CTA Modern refinement --- */
.cta-modern {
  position: relative;
}
.cta-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.3;
}

/* --- Button hover improvements --- */
.btn-primary {
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-primary:hover::after { opacity: 1; }

/* --- Guide page details / summary (FAQ) styling --- */
details summary::-webkit-details-marker { display: none; }
details[open] summary {
  background: rgba(150,121,74,0.04);
  border-bottom: 1px solid var(--color-border);
}
details summary {
  transition: background 0.2s ease;
}
details summary:hover {
  background: rgba(150,121,74,0.04);
}

/* --- Comparison table scroll hint --- */
.section table { min-width: 500px; }

/* --- Content area for guide pages --- */
.content h2:not(.section-title-alt) {
  font-size: 1.5rem;
}

/* --- Footer enhancement --- */
.footer-link {
  position: relative;
  width: fit-content;
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}
.footer-link:hover::after { width: 100%; }

/* --- Services grid in services-section --- */
.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

/* --- Responsive table for guide --- */
@media (max-width: 600px) {
  .section table { font-size: 0.82rem; }
  .section table th,
  .section table td { padding: 8px 10px !important; }
}

/* --- Page load smoothness --- */


/* --- Small touch: accent underline on headings in content --- */
.content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent);
  margin: 12px auto 0;
  border-radius: 1px;
}
.content h2 {
  text-align: center;
  margin-bottom: 32px;
}
