/**
 * Global layout & page-specific sections
 * Tokens: css/tokens.css · Components: css/components.css
 */

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    line-height: var(--leading-normal);
    color: var(--color-ink);
    background-color: var(--color-surface);
    overflow-x: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-display);
    line-height: var(--leading-tight);
    margin-bottom: 1rem;
    color: var(--color-ink);
}

h1 {
    font-size: var(--text-3xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-2xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: 1.5rem;
    color: var(--color-slate);
    font-family: var(--font-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

section {
    padding: var(--space-xxl) 0;
}

/* ── Subpage clearance below fixed header (#siteHeader after layout.js) ── */
:root {
    --page-top-offset: calc(var(--header-height) + clamp(2rem, 4vw, 3.5rem));
}

/* Text-first pages (no hero banner as first block) */
body:not(.page-home) #siteHeader + main,
body:not(.page-home) #siteHeader + div.ingrid-about-container,
body:not(.page-home) #siteHeader + div.pa-page-wrapper,
body:not(.page-home) #siteHeader + div.tr-page,
body:not(.page-home) #siteHeader + div.ev-container,
body:not(.page-home) #siteHeader + div.co-contact-page,
body:not(.page-home) #siteHeader + div.exp-page,
body:not(.page-home) #siteHeader + div.et-disclaimer-page,
body:not(.page-home) #siteHeader + div.terms-page,
body:not(.page-home) #siteHeader + div.privacy-page {
    padding-top: var(--page-top-offset);
}

body:not(.page-home) #siteHeader + main > section:first-child,
body:not(.page-home) #siteHeader + main > .pa-section:first-child {
    padding-top: 0;
}

/* Main wrappers that open with a hero/banner — offset lives on the hero itself */
body:not(.page-home) #siteHeader + main:has(> :is(
    .et-banner,
    .pa-hero,
    .about-hero,
    .platforms-hero,
    .rd-hero,
    .tr-banner,
    .cl-hero,
    .terms-hero,
    .privacy-hero,
    .co-contact-hero,
    .hero-section-fix,
    .page-hero,
    .dmj-journey-header
)) {
    padding-top: 0;
}

body:not(.page-home) #siteHeader + main.content-doc,
body:not(.page-home) #siteHeader + main.legal-doc {
    padding-top: 0;
    padding-bottom: var(--section-end-gap);
}

body:not(.page-home) #siteHeader + main:not(.content-doc):not(.legal-doc) {
    padding-bottom: var(--section-end-gap);
}

body.page-home #siteHeader + main {
    padding-bottom: 0;
}

body:not(.page-home) #siteHeader + div.ingrid-about-container:has(.dm-hero),
body:not(.page-home) #siteHeader + div.pa-page-wrapper:has(.pa-hero),
body:not(.page-home) #siteHeader + div.tr-page:has(.tr-banner),
body:not(.page-home) #siteHeader + div.ev-container:has(.ev-hero),
body:not(.page-home) #siteHeader + div.co-contact-page:has(.co-contact-hero),
body:not(.page-home) #siteHeader + div.exp-page:has(.exp-hero) {
    padding-top: 0;
}

/* Hero / banner modules — breathing room under fixed nav */
body:not(.page-home) :is(
    .et-banner,
    .pa-hero,
    .about-hero,
    .tr-banner,
    .terms-hero,
    .privacy-hero,
    .platforms-hero,
    .rd-hero,
    .exp-hero,
    .ev-hero,
    .cl-hero,
    .co-contact-hero,
    .hero-section-fix,
    .page-hero,
    .page-hero--legal,
    .dmj-journey-header,
    .insights-content > section.hero-section-fix:first-child
) {
    padding-top: var(--page-top-offset) !important;
    padding-bottom: var(--banner-padding-y);
    box-sizing: border-box;
}

body:not(.page-home) :is(
    .page-hero,
    .page-hero--legal,
    .about-hero,
    .cl-hero,
    .pa-hero,
    .terms-hero,
    .privacy-hero,
    .dmj-journey-header,
    .platforms-hero
) {
    min-height: var(--banner-min-height);
}

body:not(.page-home) :is(
    .tr-banner,
    .co-contact-hero,
    .exp-hero,
    .rd-hero,
    .ev-hero,
    .hero-section-fix,
    .insights-content > section.hero-section-fix:first-child
) {
    min-height: var(--banner-min-height-media);
}

/* Direct hero sibling of header (e.g. Patient Safety) */
body:not(.page-home) #siteHeader + section.pa-hero {
    padding-top: var(--page-top-offset) !important;
    padding-bottom: clamp(2rem, 4vw, 3.5rem);
    box-sizing: border-box;
}

/* Buttons → css/components.css */

/* ===== Site Header ===== */
.compact-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: var(--z-header);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-xs);
    height: var(--header-height);
    display: flex;
    align-items: center;
    overflow: visible;
    transition:
        height var(--transition-normal),
        box-shadow var(--transition-normal),
        background-color var(--transition-normal),
        border-color var(--transition-normal);
}

.compact-header.nav-open {
    z-index: var(--z-header);
}

.compact-header.is-scrolled {
    height: var(--header-height-scrolled);
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--color-border-strong);
}

.compact-header.is-scrolled .logo-img {
    height: 36px;
    width: 36px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

.logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    line-height: 1;
    flex-shrink: 0;
    text-decoration: none;
}

.logo-img {
    display: block;
    height: 44px;
    width: 44px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--color-border);
    transition: height var(--transition-normal), width var(--transition-normal);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semibold);
    font-size: 1.2rem;
    color: var(--color-ink);
    white-space: nowrap;
    letter-spacing: var(--tracking-tight);
    line-height: 1.15;
}

.compact-header .logo-main {
    font-weight: 700;
}

.compact-header .logo-mark {
    font-size: 1.35rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Main navigation */
.header-nav-main {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-slate);
    border-radius: var(--radius-pill);
    transition:
        color var(--transition-fast),
        background-color var(--transition-fast);
    text-decoration: none;
    position: relative;
}

.nav-list a:hover {
    color: var(--color-ink);
    background-color: var(--color-surface-warm);
}

.nav-list a.is-active {
    color: var(--color-ink);
    font-weight: 600;
    background-color: var(--color-accent-muted);
}

.nav-list a.is-active::after {
    content: '';
    position: absolute;
    bottom: 0.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 2px;
    background: var(--color-accent);
    border-radius: var(--radius-pill);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.header-cta {
    white-space: nowrap;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    cursor: pointer;
    transition:
        border-color var(--transition-fast),
        background-color var(--transition-fast);
}

.nav-toggle:hover {
    border-color: var(--color-border-accent);
    background: var(--color-surface-warm);
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-ink);
    border-radius: 1px;
    transition:
        transform var(--transition-normal),
        opacity var(--transition-normal);
}

.compact-header.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.compact-header.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.compact-header.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer — must be a direct child of body (not inside header backdrop-filter) */
.mobile-nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    pointer-events: none;
    visibility: hidden;
}

.mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    border: none;
    background: rgba(26, 26, 31, 0.6);
    opacity: 0;
    transition: opacity var(--transition-normal);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav.is-open .mobile-nav__backdrop {
    opacity: 1;
}

.mobile-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 320px);
    height: 100%;
    max-height: 100dvh;
    background: var(--color-surface);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    padding-bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
}

.mobile-nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-sm);
}

.mobile-nav__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--color-ink);
}

.mobile-nav__close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--color-surface-warm);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--color-ink);
    cursor: pointer;
}

.mobile-nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.mobile-nav__links a {
    display: block;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-slate);
    border-radius: var(--radius-md);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mobile-nav__links a:hover,
.mobile-nav__links a.is-active {
    color: var(--color-ink);
    background: var(--color-accent-muted);
}

.mobile-nav__links a.is-active {
    font-weight: 600;
    border-left-color: var(--color-accent);
}

.mobile-nav__contact {
    margin-top: auto;
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    text-align: center;
    background: var(--color-ink) !important;
    color: var(--color-surface) !important;
    border-radius: var(--radius-pill) !important;
    border-left-color: transparent !important;
}

.mobile-nav__contact:hover,
.mobile-nav__contact.is-active {
    background: var(--color-charcoal) !important;
    color: var(--color-surface) !important;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 1024px) {
    .header-nav-main {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .logo-main {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 38px;
        width: 38px;
    }

    .compact-header.is-scrolled .logo-img {
        height: 34px;
        width: 34px;
    }
}

@media (max-width: 480px) {
    .compact-header .logo-mark {
        font-size: 1.2rem;
        letter-spacing: 0.12em;
    }
}

/* Legacy alias */
.header-nav {
    display: flex;
    align-items: center;
}

/* ===== Fullscreen Hero ===== */
.fullscreen-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/home-hero-banner.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(26, 26, 31, 0.88) 0%, rgba(26, 26, 31, 0.55) 50%, rgba(26, 26, 31, 0.75) 100%),
        radial-gradient(ellipse at 20% 80%, rgba(184, 149, 107, 0.18) 0%, transparent 55%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    padding: var(--space-xxl) 0;
}

.hero-text {
    max-width: 800px;
}

.hero-title {
    font-size: var(--text-hero-lg);
    font-weight: var(--font-weight-display);
    line-height: var(--banner-title-leading);
    letter-spacing: var(--banner-title-tracking);
    margin-bottom: var(--banner-content-gap);
    color: white;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: var(--banner-subtitle-leading);
    margin-bottom: var(--banner-content-gap);
    max-width: 700px;
    font-family: var(--font-body);
}

/* hero-label, hero-stats, stat-* → css/components.css */

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-accent-soft) 0%, transparent 100%);
    margin-top: 0.5rem;
}

/* section-header, section-label, section-title, section-desc → css/components.css */

/* ===== Timeline Section ===== */
.timeline-section {
    background-color: var(--color-surface-warm);
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* timeline-line, timeline-year, timeline-content → css/components.css */

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    z-index: 2;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

/* ===== Matrix Section ===== */
.matrix-section {
    background-color: var(--bg-white);
}

.matrix-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.matrix-row {
    display: flex;
    gap: var(--space-md);
}

.matrix-cell {
    flex: 1;
}

.matrix-header {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-ink) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--color-border-accent);
}

.matrix-header h3 {
    margin-bottom: 0;
    color: var(--color-surface);
    font-family: var(--font-display);
}

/* matrix-item, feature → css/components.css */

.matrix-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.matrix-content {
    padding: var(--space-lg);
}

.matrix-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.matrix-content p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
    font-size: 0.95rem;
}

.matrix-specs {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ===== Map Section ===== */
.map-section {
    background-color: var(--bg-light);
    padding: 4rem 0;
}

.simple-map-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: white;
}

@media (max-width: 992px) {
    .simple-map-container {
        grid-template-columns: 1fr;
    }
}

.simple-map-visual {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.map-embed-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.google-map-embed {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.google-map-embed:hover {
    filter: grayscale(0%);
}

.map-marker {
    position: absolute;
    top: 45%; /* 调整以匹配San Francisco位置 */
    left: 50%;
    transform: translate(-50%, -100%);
    text-align: center;
    z-index: 10;
    animation: marker-pulse 2s infinite, marker-enter 0.5s ease-out;
    cursor: pointer;
}

@keyframes marker-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -80%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -100%);
    }
}

.marker-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 4px 12px rgba(232, 185, 160, 0.4);
    border: 3px solid white;
    transition: transform 0.3s ease;
}

.marker-icon i {
    color: white;
    font-size: 1.5rem;
}

.marker-label {
    background-color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.map-marker:hover .marker-icon {
    transform: scale(1.1);
}

.map-marker:hover .marker-label {
    background-color: var(--primary-light);
    color: white;
}

.simple-map-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.location-address {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.location-address:hover {
    background-color: rgba(232, 185, 160, 0.05);
}

.location-address i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.address-text {
    flex: 1;
}

.address-text p {
    margin: 0.25rem 0;
    color: var(--text-light);
}

.address-text p:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

.location-contact {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
    flex-shrink: 0;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.location-description {
    margin-bottom: 2rem;
    color: var(--text-light);
    line-height: 1.6;
}

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary-color);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    width: fit-content;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.map-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.map-button i {
    font-size: 1.1rem;
}

/* ===== Location Features ===== */
.location-features {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.location-features h4 {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.features-list li i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* 静态地图备用样式 */
.static-map-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    padding: 2rem;
    text-align: center;
}

.fallback-content h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.fallback-map-image {
    margin: 1rem 0;
}

.fallback-map-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.fallback-message {
    margin-top: 1rem;
}

.fallback-message a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.fallback-message a:hover {
    text-decoration: underline;
}

/* 地址复制成功提示 */
.address-copied {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    animation: slide-in 0.3s ease, fade-out 0.3s ease 1.7s forwards;
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .location-features {
        display: block;
    }
    
    .map-marker {
        top: 40%;
    }
    
    .simple-map-details {
        padding: 1.5rem;
    }
    
    .location-title {
        font-size: 1.5rem;
    }
    
    .map-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .map-section {
        padding: 2.5rem 0;
    }
    
    .simple-map-visual {
        min-height: 350px;
    }
    
    .google-map-embed {
        min-height: 350px;
    }
    
    .marker-icon {
        width: 40px;
        height: 40px;
    }
    
    .marker-icon i {
        font-size: 1.2rem;
    }
    
    .marker-label {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
    
    .location-address i {
        font-size: 1.2rem;
    }
    
    .address-text p {
        font-size: 0.9rem;
    }
}

/* 移除原有的地图样式 */
.map-container,
.map-visual,
.world-map,
.map-points,
.map-point,
.point-label,
.point-details,
.map-stats,
.map-stat,
.regional-offices,
.offices-grid,
.office {
    display: none;
}

@keyframes marker-pulse {
    0% {
        transform: translate(-50%, -100%) scale(1);
    }
    50% {
        transform: translate(-50%, -100%) scale(1.05);
    }
    100% {
        transform: translate(-50%, -100%) scale(1);
    }
}




/* ===== Showcase Section ===== */
.showcase-section {
    background-color: var(--bg-white);
}

.showcase-container {
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.showcase-tabs {
    display: flex;
    background-color: var(--color-surface-warm);
    border-bottom: 1px solid var(--color-border);
}

/* tab-btn → css/components.css */

.showcase-content {
    padding: 0;
}

.tab-content {
    display: none;
    padding: var(--space-xl);
}

.tab-content.active {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.tab-image {
    flex: 1;
    height: 400px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
}

.tab-details {
    flex: 1;
}

.tab-details h3 {
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.tab-details p {
    margin-bottom: var(--space-lg);
    color: var(--text-light);
}

.tab-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

/* .feature → css/components.css */

/* ===== Pathways Section ===== */
.pathways-section {
    background-color: var(--bg-light);
}

.pathways-container {
    display: flex;
    gap: var(--space-lg);
}

.pathway {
    flex: 1;
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.pathway:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.pathway-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.pathway-level {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.pathway-duration {
    font-size: 0.875rem;
    color: var(--text-light);
}

.pathway-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.pathway-content {
    padding: var(--space-lg);
}

.pathway-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.pathway-content p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.pathway-modules {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--space-lg);
}

.module {
    padding: 0.75rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-medium);
}

.pathway-certification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
}

.cert-label {
    font-weight: 600;
    color: var(--text-dark);
}

.cert-value {
    color: var(--primary-color);
    font-weight: 500;
}

/* ===== Research Section ===== */
.research-section {
    background-color: var(--bg-white);
}

.research-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.research-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.research-stat {
    background-color: var(--color-surface-warm);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid var(--color-border);
}

.research-stat .stat-text {
    color: var(--color-muted);
    font-size: 0.95rem;
    font-family: var(--font-body);
}

.research-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.highlight {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.highlight:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.highlight-content {
    padding: var(--space-lg);
}

.highlight-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.highlight-type {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.highlight-date {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

.highlight-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.highlight-content p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
    font-size: 0.95rem;
}

.highlight-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.highlight-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.highlight-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== Leadership Section ===== */
.leadership-section {
    background-color: var(--bg-light);
}

.leadership-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.award {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.award:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.award-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.award-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.award-organization {
    color: var(--text-light);
    font-size: 0.95rem;
}


/* <!-- leadership-team --> */
/* ===== Leadership Team ===== */
.leadership-team {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-xl);
}

.leadership-team h3 {
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--text-dark);
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.leadership-team h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-member {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.member-photo-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.team-member:hover .member-photo {
    transform: scale(1.05);
}

.member-info {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.member-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.member-title {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.member-divider {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: var(--space-md);
    width: 100%;
}

.member-bio {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
    overflow-y: auto;
    max-height: 220px;
    padding-right: 8px;
    margin-bottom: var(--space-md);
}

/* 自定义滚动条样式 */
.member-bio::-webkit-scrollbar {
    width: 6px;
}

.member-bio::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.member-bio::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.member-bio::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.member-bio p {
    margin-bottom: 0.75rem;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

.member-qualifications {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: var(--space-md);
    border-top: 1px dashed var(--border-color);
}

.qual-tag {
    background-color:#b0acac;
    color: black;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .member-photo-container {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .member-photo-container {
        height: 350px;
    }
    
    .member-info {
        padding: var(--space-md);
    }
    
    .member-name {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .member-photo-container {
        height: 300px;
    }
    
    .leadership-team {
        padding: var(--space-lg);
    }
}

/* ===== News Section ===== */
.news-section {
    background-color: var(--bg-white);
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.news-featured {
    display: flex;
    gap: var(--space-xl);
    background-color: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.news-image {
    flex: 1;
    background-size: cover;
    background-position: center;
}

.news-content {
    flex: 1;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-date {
    font-size: 0.875rem;
    color: var(--text-lighter);
    margin-bottom: var(--space-md);
}

.news-content h3 {
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.news-content p {
    margin-bottom: var(--space-lg);
    color: var(--text-light);
}

.news-link {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    align-self: flex-start;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.news-item {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-item-image {
    height: 150px;
    background-size: cover;
    background-position: center;
}

.news-item-content {
    padding: var(--space-lg);
}

.news-item-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.news-item-date {
    font-size: 0.875rem;
    color: var(--text-lighter);
}

/* ===== Contact CTA ===== */
.contact-cta {
    background-color: var(--bg-dark);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    justify-content: center;
}

.info-icon {
    font-size: 2rem;
}

.info-text {
    text-align: left;
}

.info-title {
    font-weight: 600;
    color: #ffff;
    margin-bottom: 0.25rem;
}

.info-detail {
    color: rgba(255, 255, 255, 0.8);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Full Footer ===== */
.full-footer {
    background-color: var(--color-ink);
    color: rgba(255, 255, 255, 0.72);
    padding-top: var(--space-xxl);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-main {
    color: var(--color-surface);
    margin-bottom: 0.25rem;
    font-size: 1.35rem;
    font-family: var(--font-display);
}

.footer-logo .logo-sub {
    color: rgba(255, 255, 255, 0.55);
    font-size: var(--text-sm);
    font-family: var(--font-body);
}

.footer-description {
    color: rgba(255, 255, 255, 0.62);
    margin-top: var(--space-md);
    font-size: 0.95rem;
    font-family: var(--font-body);
    line-height: var(--leading-relaxed);
    max-width: 340px;
}

.footer-nav-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.footer-nav-column {
    padding-left: var(--space-md);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav-column:first-child {
    padding-left: 0;
    border-left: none;
}

.footer-nav-column h4 {
    color: var(--color-surface);
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.footer-nav-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    list-style: none;
}

.footer-nav-column a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.925rem;
    font-family: var(--font-body);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast);
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-size: 0% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    padding-bottom: 2px;
}

.footer-nav-column a:hover {
    color: var(--color-accent-soft);
    background-size: 100% 1px;
}

.footer-trust {
    padding: var(--space-md) 0 var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: var(--space-md);
}

.footer-trust__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.5rem;
    padding: 0.45rem 1rem;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(184, 149, 107, 0.35);
    border-radius: var(--radius-pill);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: var(--space-lg);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    text-align: center;
}

.footer-copyright p {
    color: inherit;
    margin-bottom: 0;
}

.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-lg);
}

.footer-contact {
    display: flex;
    gap: var(--space-xl);
}

.contact-item {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.contact-value {
    color: white;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--color-accent-soft);
}

.disclaimer {
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    max-width: 500px;
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Scroll to Top Button ===== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-round);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px) scale(1.1);
}

.scroll-arrow {
    font-weight: 700;
}

/* ===== Animations ===== */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
    
    .research-highlights,
    .awards-grid,
    .news-grid,
    .team-grid,
    .footer-nav-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .matrix-row {
        flex-direction: column;
    }
    
    .map-container {
        flex-direction: column;
    }
    
    .offices-grid,
    .research-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-info {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.625rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .tab-content.active,
    .pathways-container {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .news-featured {
        flex-direction: column;
    }
    
    .news-image {
        height: 300px;
    }
    
    .matrix-row {
        flex-direction: column;
    }
    
    .footer-nav-container {
        grid-template-columns: 1fr;
    }

    .footer-nav-column {
        padding-left: 0;
        border-left: none;
        padding-top: var(--space-md);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-nav-column:first-child {
        padding-top: 0;
        border-top: none;
    }
    
    .footer-middle {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    section:not(.content-doc__section):not(.legal-doc__section):not(.fullscreen-hero):not(.page-hero) {
        padding: var(--space-xl) 0;
    }
    
    .container {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }
    
    .hero-title {
        font-size: 1.875rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .matrix-grid,
    .research-highlights,
    .awards-grid,
    .news-grid,
    .team-grid,
    .offices-grid,
    .research-stats {
        grid-template-columns: 1fr;
    }
    
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}


/* About showcase — see css/pages/index.css */