/* ============================================
   易通跨境企服 - 官网样式
   配色：蓝白为主，黄色点缀
   风格：简洁、大气、商务
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --blue-900: #0f2b5c;
    --blue-800: #132f6b;
    --blue-700: #1a3f8a;
    --blue-600: #1a56db;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;
    --blue-300: #60a5fa;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --blue-200: #bfdbfe;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --yellow-500: #f59e0b;
    --yellow-400: #fbbf24;
    --yellow-300: #fcd34d;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---- Page System ---- */
/* 【改动】多页面版本：每个HTML文件独立，无需隐藏/切换逻辑 */
.page {
    display: block;
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--transition);
}
.logo-link:hover { opacity: 0.85; }

.logo-img { width: 40px; height: 40px; border-radius: var(--radius-sm); }

.logo-fallback { display: none; }

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-900);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.main-nav {
 gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
}
.nav-link:hover, .nav-link.active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-width: 200px;
    padding: 8px 0;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--gray-700);
    transition: all 0.2s;
    cursor: pointer;
}
.dropdown-menu a:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

/* 【改动】btn-contact 现在是 <a> 标签，需要清除链接默认样式 */
a.btn-contact,
.btn-contact {
    padding: 10px 24px;
    background: var(--blue-600);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
a.btn-contact:hover,
.btn-contact:hover {
    background: var(--blue-700);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
    text-decoration: none;
    color: var(--white);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 32px 24px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    gap: 4px;
}
/* 【改动】兼容 .active 和 .open 两种类名 */
.mobile-menu.active,
.mobile-menu.open {
    display: flex;
}
.mobile-menu a {
    padding: 12px 0;
    font-size: 1rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    text-decoration: none;
}
.mobile-menu-title {
    padding: 12px 0;
    font-weight: 700;
    color: var(--blue-800);
    font-size: 0.95rem;
}
.mobile-contact-btn {
    margin-top: 8px;
    padding: 12px 0 !important;
    text-align: center;
    background: var(--blue-600) !important;
    color: var(--white) !important;
    border-radius: var(--radius-sm) !important;
    border: none !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 40%, var(--blue-600) 100%);
    padding: 100px 32px 80px;
    overflow: hidden;
    text-align: center;
    color: var(--white);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer    display: flex;
    align-items: center;
   -events: none;
; bottom: -50px; left: 10%; }
.shape-3 { width: 150px; height: 150px; top: 40%; left: 60%; }

.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 1; }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-highlight {
    color: var(--yellow-400);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* 【改动】btn-primary 现在可能是 <a> 或 <button>，统一处理 */
a.btn-primary,
.btn-primary {
    padding: 14px 36px;
    background: var(--yellow-500);
    color: var(--blue-900);
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-family: inherit;
}
a.btn-primary:hover,
.btn-primary:hover {
    background: var(--yellow-400);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(245,158,11,0.4);
    text-decoration: none;
}

.btn-secondary {
    padding: 14px 36px;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.25);
    transition: all var(--transition);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--yellow-400);
}
.stat-label {
    font-size: 0.9rem;
    opacity: 0.75;
    margin-top: 4px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 12px;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* ===== SERVICES GRID ===== */
.services {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 32px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

/* 【改动】service-card 现在是 <a> 标签，需要清除链接默认样式并保持原有卡片效果 */
a.service-card,
.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}
a.service-card::before,
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
a.service-card:hover,
.service-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--blue-200);
    text-decoration: none;
}
a.service-card:hover::before,
.service-card:hover::before { transform: scaleX(1); }

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-50);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--blue-600);
    transition: all var(--transition);
}
a.service-card:hover .card-icon,
.service-card:hover .card-icon {
    background: var(--blue-600);
    color: var(--white);
}

.card-icon svg { width: 32px; height: 32px; }

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.card-arrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue-500);
    transition: all var(--transition);
}
a.service-card:hover .card-arrow,
.service-card:hover .card-arrow { color: var(--blue-700); margin-left: 4px; }

/* ===== WHY US ===== */
.why-us {
    background: var(--blue-50);
    padding: 80px 32px;
}

.why-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    border: 1px solid transparent;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.why-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ===== BUSINESS HERO ===== */
.biz-hero {
    padding: 80px 32px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.biz-hero-1 { background: linear-gradient(135deg, #1a3f8a, #2563eb); }
.biz-hero-2 { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.biz-hero-3 { background: linear-gradient(135deg, #0f2b5c, #1a56db); }
.biz-hero-4 { background: linear-gradient(135deg, #1a3f8a, #4f46e5); }
.biz-hero-5 { background: linear-gradient(135deg, #132f6b, #2563eb); }
.biz-hero-6 { background: linear-gradient(135deg, #1e3a8a, #6366f1); }

.biz-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.biz-hero-inner h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 12px;
}
.biz-hero-inner p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ===== BUSINESS CONTENT ===== */
.biz-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.biz-intro {
    margin-bottom: 56px;
}
.biz-intro h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 16px;
    position: relative;
    padding-left: 16px;
}
.biz-intro h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--yellow-500);
    border-radius: 2px;
}
.biz-intro p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 900px;
}

.biz-regions { margin-bottom: 48px; }
.biz-regions h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 28px;
    padding-left: 16px;
    position: relative;
}
.biz-regions h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: var(--yellow-500);
    border-radius: 2px;
}

.region-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.region-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}
.region-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-200);
}

.region-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue-900);
    margin-bottom: 12px;
}

.region-card > p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
}

.region-docs {
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}
.region-docs strong { color: var(--blue-700); }

.biz-note {
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 20px 24px;
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: #92400e;
    line-height: 1.7;
}

.biz-cta {
    text-align: center;
    margin-top: 32px;
}

/* ===== CONTACT PAGE ===== */
.contact-hero {
    padding: 80px 32px;
    text-align: center;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
    color: var(--white);
}
.contact-hero-inner h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 900;
    margin-bottom: 12px;
}
.contact-hero-inner p { font-size: 1.1rem; opacity: 0.9; }

.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info h3, .contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue-900);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-icon { font-size: 1.3rem; margin-top: 2px; }

.contact-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 4px;
    font-weight: 500;
}
.contact-item p { font-size: 1rem; color: var(--gray-800); font-weight: 500; }

.form-desc {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}
.required { color: #ef4444; }

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--gray-800);
    transition: all var(--transition);
    background: var(--white);
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.btn-submit {
    margin-top: 4px;
    width: 100%;
    padding: 14px;
}

.form-success {
    text-align: center;
    padding: 40px 24px;
    background: #f0fdf4;
    border-radius: var(--radius-lg);
    border: 1px solid #bbf7d0;
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h4 {
    font-size: 1.3rem;
    color: #166534;
    margin-bottom: 8px;
}
.form-success p { color: #166534; font-size: 0.95rem; }
.success-sub { margin-top: 12px; font-weight: 600; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--blue-900);
    color: var(--white);
    padding: 64px 32px 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 400px;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}
.footer-logo:hover { opacity: 0.85; text-decoration: none; }
.footer-brand > p {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.7;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.9);
}
.footer-col a, .footer-col p {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    padding: 6px 0;
    transition: all var(--transition);
    line-height: 1.5;
    text-decoration: none;
}
.footer-col a:hover { color: var(--yellow-400); cursor: pointer; text-decoration: none; }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .header-inner { padding: 0 20px; }
    .main-nav { display: none; }
    .btn-contact { display: none; }
    .mobile-menu-btn { display: flex; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .region-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 640px) {
    .hero { padding: 64px 20px 48px; }
    .hero-stats { gap: 32px; }
    .stat-number { font-size: 2rem; }

    .services { padding: 48px 20px; }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-us { padding: 48px 20px; }
    .why-grid { grid-template-columns: 1fr; }

    .biz-hero { padding: 56px 20px; }
    .biz-content { padding: 40px 20px 56px; }
    .region-grid { grid-template-columns: 1fr; }

    .contact-content { padding: 40px 20px 56px; }

    .footer-inner { gap: 24px; }
    .footer-links { grid-template-columns: 1fr; gap: 24px; }

    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .btn-primary, .btn-secondary { padding: 12px 28px; font-size: 0.95rem; }

    .service-card { padding: 28px 24px; }

    .cs-bubble { width: 280px; right: 8px; bottom: 90px; }
}

/* ============================================
   悬浮在线客服
   ============================================ */

.floating-cs {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    font-family: inherit;
}

/* 悬浮按钮 */
.cs-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-600);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(26,86,219,0.4);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    z-index: 2;
}

.cs-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(26,86,219,0.5);
}

.cs-btn-icon {
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
}

.cs-btn-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid var(--white);
    animation: csPulse 2s infinite;
}

@keyframes csPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
    50% { box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}

/* 聊天窗口打开时按钮变色 */
.cs-btn.chat-open {
    background: var(--blue-800);
    box-shadow: 0 4px 20px rgba(26,86,219,0.6);
}

.cs-copied-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    z-index: 99999;
    pointer-events: none;
}
.cs-copied-tip.show {
    animation: csPopIn 0.3s ease forwards, csPopOut 0.3s ease 1.5s forwards;
}

@keyframes csPopIn {
    to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes csPopOut {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}
/* ===== 页眉水平布局修复 ===== */

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 64px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav .nav-link {
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > .nav-link {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    min-width: 160px;
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    text-decoration: none;
    color: inherit;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

/* 响应式：移动端隐藏桌面导航，显示汉堡菜单 */
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
}

/* 桌面端隐藏移动端菜单按钮 */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
    .mobile-menu {
        display: none;
    }
}
