/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — 达硕通信官网 V1 — Phase 2-R9 Shared CSS
   ═══════════════════════════════════════════════════════════════ */

/* --- BRAND COMPONENT SYSTEM (R9: unified BrandLockup) ---
   3 defined sizes for BrandLockup (not simple scaling):
   - Header PC: 40px mark / 1.1875rem CN / 0.625rem EN
   - Mobile:   36px mark / 1.0625rem CN / 0.5625rem EN
   - Footer:   40px mark / 1.1875rem CN / 0.625rem EN (light)
   Future Logo replacement: swap assets/logo.png only,
   no page structure changes needed.
*/
.brand-lockup { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand-lockup-mark { border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.brand-lockup-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-lockup-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-lockup-cn { font-weight: var(--weight-bold); letter-spacing: var(--tracking-wide); }
.brand-lockup-en { font-weight: var(--weight-semibold); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
/* PC Header size */
.brand-lockup--header .brand-lockup-mark { width: 40px; aspect-ratio: 1; }
.brand-lockup--header .brand-lockup-cn { font-size: 1.1875rem; color: var(--color-text-primary); }
.brand-lockup--header .brand-lockup-en { font-size: 0.625rem; color: var(--color-text-muted); }
/* Mobile size */
.brand-lockup--mobile .brand-lockup-mark { width: 36px; aspect-ratio: 1; }
.brand-lockup--mobile .brand-lockup-cn { font-size: 1.0625rem; color: var(--color-text-primary); }
.brand-lockup--mobile .brand-lockup-en { font-size: 0.5625rem; color: var(--color-text-muted); }
/* Footer size (light bg, dark text) */
.brand-lockup--footer .brand-lockup-mark { width: 40px; aspect-ratio: 1; }
.brand-lockup--footer .brand-lockup-cn { font-size: 1.1875rem; color: var(--color-text-primary); }
.brand-lockup--footer .brand-lockup-en { font-size: 0.625rem; color: var(--color-text-muted); }

/* --- COLOR TOKENS (R9: consolidated design tokens) --- */
:root {
  --color-brand-navy: #1B2A4A;
  --color-brand-orange: #E85D2F;
  --color-text-primary: #1A1F2E;
  --color-text-secondary: #5A6478;
  --color-text-muted: #79839A;
  --color-surface: #FFFFFF;
  --color-surface-muted: #F5F6F8;
  --color-surface-subtle: #FAFBFC;
  --color-border: #E2E5EA;
  --color-border-subtle: #EFEFF2;
  --color-success: #2D8659;
  --color-danger: #C73E3E;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --text-display: 3.25rem; --text-h1: 2.5rem; --text-h2: 2rem; --text-h3: 1.375rem;
  --text-body-lg: 1.1875rem; --text-body: 1rem; --text-small: 0.875rem; --text-caption: 0.8125rem; --text-micro: 0.6875rem;
  --weight-regular: 400; --weight-medium: 500; --weight-semibold: 600; --weight-bold: 700;
  --leading-tight: 1.2; --leading-normal: 1.5; --leading-relaxed: 1.7;
  --tracking-tight: -0.02em; --tracking-normal: 0; --tracking-wide: 0.02em; --tracking-wider: 0.06em;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --container-max: 1280px; --container-wide: 1600px; --container-padding: 24px;
  --container-xl: 1320px; --container-lg: 1280px;
  --section-space-desktop: 80px; --section-space-mobile: 48px;
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px;
  --radius-card: 16px; --border-muted: var(--color-border-subtle);
  --shadow-subtle: 0 1px 3px rgba(26,31,46,0.05), 0 1px 2px rgba(26,31,46,0.03);
  --shadow-elevated: 0 4px 12px rgba(26,31,46,0.07), 0 2px 6px rgba(26,31,46,0.04);
  --shadow-card: var(--shadow-subtle);
  --nav-height: 72px; --nav-height-scrolled: 64px;
  --nav-bg: rgba(255,255,255,0.94); --nav-border: rgba(226,229,234,0.8);
  --transition-fast: 0.15s ease; --transition-base: 0.25s ease; --transition-slow: 0.4s ease;
  /* Semantic aliases */
  --brand-accent: var(--color-brand-orange);
  --brand-ink: var(--color-brand-navy);
  --surface-primary: var(--color-surface);
  --surface-secondary: var(--color-surface-muted);
  --surface-dark: var(--color-brand-navy);
  --text-primary: var(--color-text-primary);
  --text-secondary: var(--color-text-secondary);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); font-size: var(--text-body); line-height: var(--leading-normal); color: var(--color-text-primary); background: var(--color-surface); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
*:focus-visible { outline: 2px solid var(--color-brand-orange); outline-offset: 2px; border-radius: 2px; }

/* --- LAYOUT --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--container-padding); }

/* --- HEADER --- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-height); background: var(--nav-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: height var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base); }
.site-header.scrolled { height: var(--nav-height-scrolled); border-bottom-color: var(--nav-border); box-shadow: var(--shadow-subtle); }
.nav-inner { max-width: var(--container-max); height: 100%; margin: 0 auto; padding: 0 var(--container-padding); display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: var(--space-3); }
.nav-brand-mark { width: 40px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.nav-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand-cn { font-size: 1.1875rem; font-weight: var(--weight-bold); color: var(--color-text-primary); letter-spacing: var(--tracking-wide); }
.nav-brand-en { font-size: 0.625rem; font-weight: var(--weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: var(--space-8); }
.nav-link { font-size: var(--text-body); font-weight: var(--weight-medium); color: var(--color-text-secondary); transition: color var(--transition-fast); position: relative; padding: var(--space-2) 0; }
.nav-link::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--color-brand-navy); transform: scaleX(0); transition: transform var(--transition-base); }
.nav-link:hover { color: var(--color-text-primary); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--color-text-primary); }
.nav-link.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-5); font-size: var(--text-small); font-weight: var(--weight-semibold); color: var(--color-surface); background: var(--color-brand-navy); border-radius: var(--radius-sm); transition: background var(--transition-fast), transform var(--transition-fast); }
.nav-cta:hover { background: #14223C; transform: translateY(-1px); }
.nav-mobile-toggle { display: none; font-size: 1.5rem; color: var(--color-text-primary); padding: var(--space-2); align-items: center; justify-content: center; }

/* --- MOBILE MENU --- */
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100vh; z-index: 1001; background: var(--color-surface); display: flex; flex-direction: column; transition: right var(--transition-slow); overflow-y: auto; }
.mobile-menu.open { right: 0; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--color-border-subtle); }
.mobile-menu-brand { display: flex; align-items: center; gap: var(--space-3); }
.mobile-menu-brand-mark { width: 36px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.mobile-menu-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.mobile-menu-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.mobile-menu-brand-cn { font-size: 1.0625rem; font-weight: var(--weight-bold); color: var(--color-text-primary); }
.mobile-menu-brand-en { font-size: 0.5625rem; font-weight: var(--weight-semibold); color: var(--color-text-muted); letter-spacing: var(--tracking-wider); text-transform: uppercase; }
.mobile-menu-close { font-size: 1.5rem; color: var(--color-text-secondary); padding: var(--space-2); display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: background var(--transition-fast), color var(--transition-fast); width: 40px; height: 40px; }
.mobile-menu-close:hover { background: var(--color-surface-muted); color: var(--color-text-primary); }
.mobile-menu-nav { flex: 1; padding: var(--space-4) var(--space-6); display: flex; flex-direction: column; }
.mobile-menu-link { font-size: 1.0625rem; font-weight: var(--weight-medium); color: var(--color-text-primary); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border-subtle); display: flex; align-items: center; justify-content: space-between; transition: color var(--transition-fast); }
.mobile-menu-link:hover { color: var(--color-brand-navy); }
.mobile-menu-link .arrow { color: var(--color-text-muted); font-size: 0.875rem; transition: transform var(--transition-fast); }
.mobile-menu-link:hover .arrow { transform: translateX(3px); color: var(--color-brand-navy); }
.mobile-menu-footer { padding: var(--space-6); }
.mobile-menu-cta { display: flex; align-items: center; justify-content: center; gap: var(--space-2); width: 100%; padding: var(--space-4); font-size: 1rem; font-weight: var(--weight-semibold); color: var(--color-surface); background: var(--color-brand-navy); border-radius: var(--radius-sm); transition: background var(--transition-fast); }
.mobile-menu-cta:hover { background: #14223C; }
.mobile-menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 999; background: rgba(26,31,46,0.4); opacity: 0; pointer-events: none; transition: opacity var(--transition-slow); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.mobile-menu-overlay.open { opacity: 1; pointer-events: auto; }

/* --- BUTTONS --- */
.btn { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-body); font-weight: var(--weight-semibold); padding: var(--space-3) var(--space-6); border-radius: var(--radius-sm); transition: all var(--transition-fast); white-space: nowrap; }
.btn-primary { background: var(--color-brand-navy); color: var(--color-surface); }
.btn-primary:hover { background: #14223C; transform: translateY(-1px); }
.btn-accent { background: var(--color-brand-orange); color: var(--color-surface); }
.btn-accent:hover { background: #D04E22; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--color-text-primary); border: 1px solid var(--color-border); }
.btn-secondary:hover { border-color: var(--color-brand-navy); color: var(--color-brand-navy); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--color-brand-navy); transition: gap var(--transition-fast); }
.text-link:hover { gap: var(--space-3); }
.text-link .arrow { transition: transform var(--transition-fast); }
.text-link:hover .arrow { transform: translateX(2px); }

/* --- SECTION COMMON --- */
.section { padding: var(--section-space-desktop) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-muted { background: var(--color-surface-muted); }
.section-header { margin-bottom: var(--space-12); }
.section-eyebrow { font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--color-brand-orange); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-3); display: block; }
.section-title { font-size: var(--text-h2); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--color-text-primary); margin-bottom: var(--space-3); }
.section-subtitle { font-size: var(--text-body-lg); font-weight: var(--weight-regular); line-height: var(--leading-relaxed); color: var(--color-text-secondary); max-width: 600px; }

/* --- SUB-PAGE HERO --- */
.page-hero { padding-top: calc(var(--nav-height) + var(--space-16)); padding-bottom: var(--space-16); background: var(--color-surface-subtle); }
.page-hero-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.page-hero-eyebrow { font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--color-brand-orange); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-3); display: block; }
.page-hero-title { font-size: var(--text-h1); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--color-text-primary); margin-bottom: var(--space-4); }
.page-hero-subtitle { font-size: var(--text-body-lg); font-weight: var(--weight-regular); line-height: var(--leading-relaxed); color: var(--color-text-secondary); max-width: 600px; }

/* --- BREADCRUMB --- */
.breadcrumb { padding: var(--space-4) 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border-subtle); }
.breadcrumb-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-small); color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-secondary); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--color-brand-navy); }
.breadcrumb-separator { color: var(--color-text-muted); }
.breadcrumb-current { color: var(--color-text-primary); font-weight: var(--weight-medium); }

/* --- CONTENT GRID --- */
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.content-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-8); box-shadow: var(--shadow-card); transition: box-shadow var(--transition-base), transform var(--transition-base); }
.content-card:hover { box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.content-card-icon { width: 40px; height: 40px; margin-bottom: var(--space-4); color: var(--color-brand-navy); }
.content-card-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-2); }
.content-card-desc { font-size: var(--text-small); color: var(--color-text-secondary); line-height: var(--leading-normal); }

/* --- SERVICE FLOW --- */
.service-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: var(--space-16); }
.service-flow-step { padding: 0 var(--space-6); border-left: 1px solid var(--color-border); }
.service-flow-step:first-child { border-left: none; padding-left: 0; }
.service-flow-number { font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--color-brand-orange); margin-bottom: var(--space-3); display: block; }
.service-flow-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-2); }
.service-flow-desc { font-size: var(--text-small); color: var(--color-text-secondary); line-height: var(--leading-normal); }

/* --- CTA SECTION --- */
.cta-section { padding: var(--section-space-desktop) 0; background: var(--color-brand-navy); color: var(--color-surface); }
.cta-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); text-align: center; }
.cta-title { font-size: var(--text-h2); font-weight: var(--weight-bold); line-height: var(--leading-tight); color: var(--color-surface); margin-bottom: var(--space-3); }
.cta-desc { font-size: var(--text-body-lg); color: rgba(255,255,255,0.82); line-height: var(--leading-relaxed); margin-bottom: var(--space-8); max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* --- PORTAL ENTRY (R9: CTA fit-content, 2x2 grid) --- */
.portal-card { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--space-10) var(--space-12); box-shadow: var(--shadow-card); transition: box-shadow var(--transition-base); }
.portal-card:hover { box-shadow: var(--shadow-elevated); }
.portal-card-content { min-width: 0; }
.portal-card-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); color: var(--color-text-primary); margin-bottom: var(--space-2); }
.portal-card-desc { font-size: var(--text-body); color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); }
.portal-card-icon { width: 48px; height: 48px; color: var(--color-brand-navy); flex-shrink: 0; opacity: 0.85; }
.portal-card-domain { font-size: var(--text-caption); color: var(--color-text-muted); letter-spacing: var(--tracking-wide); margin-top: var(--space-2); }

/* --- FORM --- */
.form-group { margin-bottom: var(--space-5); }
.form-label { display: block; font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--color-text-secondary); margin-bottom: var(--space-2); }
.form-label .required { color: var(--color-brand-orange); }
.form-input, .form-select, .form-textarea { width: 100%; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); color: var(--color-text-primary); font-size: var(--text-body); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--color-brand-navy); box-shadow: 0 0 0 3px rgba(27,42,74,0.08); }
.form-textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-muted); }
.form-select { cursor: pointer; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B95A7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.form-submit { width: 100%; padding: var(--space-4); font-size: var(--text-body); font-weight: var(--weight-semibold); color: var(--color-surface); background: var(--color-brand-navy); border-radius: var(--radius-sm); transition: background var(--transition-fast); margin-top: var(--space-2); }
.form-submit:hover { background: #14223C; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-privacy { margin-top: var(--space-4); font-size: var(--text-caption); color: var(--color-text-muted); text-align: center; }
.form-privacy a { color: var(--color-brand-navy); text-decoration: underline; text-underline-offset: 2px; }
.form-msg { margin-top: var(--space-4); font-size: var(--text-small); display: none; }
.form-msg.success { color: var(--color-success); display: block; }
.form-msg.error { color: var(--color-danger); display: block; }

/* --- FOOTER (R9: Light Enterprise, 30/18/18/22, aligned baselines) --- */
.site-footer {
  --footer-text: var(--color-text-secondary);
  --footer-text-muted: var(--color-text-muted);
  --footer-brand-cn: var(--color-text-primary);
  --footer-brand-en: var(--color-text-muted);
  --footer-tagline: var(--color-text-secondary);
  --footer-contact-label: var(--color-text-muted);
  --footer-contact-value: var(--color-text-primary);
  --footer-link: var(--color-text-secondary);
  --footer-link-hover: var(--color-brand-navy);
  --footer-col-title: var(--color-text-muted);
  --footer-border: var(--color-border);
  --footer-sep: var(--color-border-subtle);
  --footer-bottom-text: var(--color-text-muted);
  background: var(--color-surface-muted);
  color: var(--footer-text);
  padding: var(--space-16) 0 var(--space-5);
}
.site-footer--dark {
  --footer-text: rgba(255,255,255,0.82);
  --footer-text-muted: rgba(255,255,255,0.68);
  --footer-brand-cn: var(--color-surface);
  --footer-brand-en: rgba(255,255,255,0.68);
  --footer-tagline: rgba(255,255,255,0.78);
  --footer-contact-label: rgba(255,255,255,0.68);
  --footer-contact-value: rgba(255,255,255,0.9);
  --footer-link: rgba(255,255,255,0.82);
  --footer-link-hover: var(--color-surface);
  --footer-col-title: rgba(255,255,255,0.68);
  --footer-border: rgba(255,255,255,0.1);
  --footer-sep: rgba(255,255,255,0.3);
  --footer-bottom-text: rgba(255,255,255,0.55);
  background: var(--color-brand-navy);
}
.footer-grid { display: grid; grid-template-columns: 30fr 18fr 18fr 22fr; gap: var(--space-10); align-items: start; max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }
.footer-brand-lockup { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.footer-brand-mark { width: 40px; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; background: transparent; }
.footer-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.footer-brand-cn { font-size: 1.1875rem; font-weight: var(--weight-bold); color: var(--footer-brand-cn); letter-spacing: var(--tracking-wide); }
.footer-brand-en { font-size: 0.625rem; font-weight: var(--weight-semibold); color: var(--footer-brand-en); text-transform: uppercase; letter-spacing: var(--tracking-wider); margin-top: 2px; }
.footer-brand-tagline { font-size: var(--text-small); color: var(--footer-tagline); line-height: var(--leading-relaxed); max-width: 280px; margin-bottom: var(--space-5); }
.footer-contact-list { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-contact-label { font-size: var(--text-caption); color: var(--footer-contact-label); margin-bottom: 2px; }
.footer-contact-value { font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--footer-contact-value); }
.footer-col-title { font-size: var(--text-caption); font-weight: var(--weight-semibold); color: var(--footer-col-title); text-transform: uppercase; letter-spacing: var(--tracking-wider); margin-bottom: var(--space-5); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-link { font-size: var(--text-small); color: var(--footer-link); transition: color var(--transition-fast); }
.footer-link:hover { color: var(--footer-link-hover); }
.footer-qr-slot { width: 120px; height: 120px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; margin-bottom: var(--space-3); background: var(--color-surface); padding: 4px; box-shadow: var(--shadow-subtle); }
.footer-qr-slot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-wechat-name { font-size: var(--text-small); font-weight: var(--weight-medium); color: var(--footer-contact-value); margin-bottom: 2px; }
.footer-wechat-cta { font-size: var(--text-caption); color: var(--footer-text-muted); }
.footer-bottom { max-width: var(--container-max); margin: var(--space-10) auto 0; padding: var(--space-4) var(--container-padding) 0; border-top: 1px solid var(--footer-border); display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--space-2); }
.footer-bottom-text { font-size: var(--text-caption); color: var(--footer-bottom-text); }
.footer-bottom-link { font-size: var(--text-caption); color: var(--footer-bottom-text); transition: color var(--transition-fast); }
.footer-bottom-link:hover { color: var(--footer-text); }
.footer-bottom-sep { font-size: var(--text-caption); color: var(--footer-sep); }

/* --- ANIMATIONS --- */
html.js .fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* --- RESPONSIVE --- */
@media (min-width: 1920px) { :root { --container-max: 1320px; --container-wide: 1760px; } }
@media (min-width: 1440px) and (max-width: 1919px) { :root { --container-max: 1280px; --container-wide: 1440px; } }
@media (min-width: 1280px) and (max-width: 1439px) { :root { --container-max: 1200px; --container-wide: 1280px; } }
@media (min-width: 1024px) and (max-width: 1279px) { :root { --container-max: 960px; --container-wide: 1024px; --container-padding: 20px; } .content-grid { grid-template-columns: repeat(2, 1fr); } .service-flow { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) 0; } .service-flow-step:nth-child(3) { border-left: none; padding-left: 0; } .portal-card { flex-direction: column; text-align: center; } }
@media (min-width: 768px) and (max-width: 1023px) { :root { --container-max: 728px; --container-wide: 768px; --container-padding: 20px; } .nav-links, .nav-cta { display: none; } .nav-mobile-toggle { display: flex; } .section { padding: var(--space-16) 0; } .section-header { margin-bottom: var(--space-10); } .section-title { font-size: 1.625rem; } .page-hero { padding-top: calc(var(--nav-height) + var(--space-12)); padding-bottom: var(--space-12); } .page-hero-title { font-size: 2rem; } .content-grid { grid-template-columns: 1fr 1fr; } .service-flow { grid-template-columns: 1fr; gap: 0; } .service-flow-step { border-left: none; border-top: 1px solid var(--color-border); padding: var(--space-5) 0; } .service-flow-step:first-child { border-top: none; } .portal-card { flex-direction: column; text-align: center; } .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } .footer-brand-col { grid-column: 1 / -1; } .footer-wechat-col { grid-column: 1 / -1; } .footer-bottom { flex-direction: column; text-align: center; } }
@media (min-width: 360px) and (max-width: 767px) { :root { --container-padding: 16px; --section-space-desktop: var(--section-space-mobile); } .nav-links, .nav-cta { display: none; } .nav-mobile-toggle { display: flex; } .nav-brand-en { display: none; } .section { padding: var(--space-10) 0; } .section-header { margin-bottom: var(--space-6); } .section-title { font-size: 1.375rem; } .page-hero { padding-top: calc(var(--nav-height) + var(--space-8)); padding-bottom: var(--space-8); } .page-hero-title { font-size: 1.625rem; } .page-hero-subtitle { font-size: 1rem; } .content-grid { grid-template-columns: 1fr; } .service-flow { grid-template-columns: 1fr; gap: 0; } .service-flow-step { border-left: none; border-top: 1px solid var(--color-border); padding: var(--space-4) 0; } .service-flow-step:first-child { border-top: none; } .portal-card { flex-direction: column; text-align: center; padding: var(--space-5); } .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); } .footer-brand-col { grid-column: 1 / -1; } .footer-wechat-col { grid-column: 1 / -1; } .footer-brand-tagline { display: none; } .footer-contact-list { flex-direction: row; gap: var(--space-5); } .footer-qr-slot { width: 108px; height: 108px; } .footer-bottom { flex-wrap: wrap; gap: var(--space-1); } .footer-bottom-text, .footer-bottom-link, .footer-bottom-sep { font-size: 0.6875rem; } }
@media (max-width: 359px) { :root { --container-padding: 12px; } .page-hero-title { font-size: 1.375rem; } }

/* --- PORTAL ENTRY RESPONSIVE --- */
@media (max-width: 480px) { .portal-entry-card { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-5); } .portal-entry-header { text-align: center; } .portal-entry-features { grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); margin-bottom: var(--space-5); } .portal-feature { justify-content: center; } .portal-entry-cta { justify-self: center; } }
@media (min-width: 481px) and (max-width: 767px) { .portal-entry-card { grid-template-columns: 1fr; gap: var(--space-6); padding: var(--space-6); } .portal-entry-features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) and (max-width: 1023px) { .portal-entry-card { grid-template-columns: 1fr; } }

/* --- PRIVACY CONTENT (controlled reading width) --- */
.privacy-content { max-width: 720px; margin: 0 auto; }
.privacy-content h2 { font-size: var(--text-h3); font-weight: var(--weight-semibold); color: var(--color-text-primary); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.privacy-content p { font-size: var(--text-body); color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-3); }
.privacy-contact { margin-top: var(--space-8); padding: var(--space-5) var(--space-6); background: var(--color-surface-muted); border-radius: var(--radius-md); }
.privacy-contact p { margin-bottom: var(--space-1); font-size: var(--text-small); color: var(--color-text-secondary); }

/* --- UTILITIES --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
