/**
 * style.css — 网站全局样式表
 * 包含: CSS变量、排版、按钮、导航、各页面组件、响应式设计
 */

/* ========== CSS 变量 ========== */
:root {
    --primary: #008080;
    --primary-dark: #006666;
    --primary-light: #00a3a3;
    --primary-bg: #e6f5f5;
    --teal-dark: #0F3D44;
    --teal-light: #58AEB2;
    --teal-mid: #3F8F94;
    --gradient-primary: linear-gradient(135deg, #0F3D44, #58AEB2);
    --gradient-primary-reverse: linear-gradient(135deg, #58AEB2, #0F3D44);
    --gradient-dark: linear-gradient(135deg, #0F3D44, #1a5a5e);
    --accent: #ff6b35;
    --accent-hover: #e55a2b;
    --white: #ffffff;
    --black: #1a1a2e;
    --gray-50: #f8fafb;
    --gray-100: #f0f4f6;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --header-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --cursor-color: var(--primary);
}

/* ========== 打字光标 ========== */
.typing-cursor {
    animation: blink 0.7s step-end infinite;
    color: var(--cursor-color);
    font-weight: 300;
}

/* 光标闪烁动画 */
@keyframes blink {
    50% { opacity: 0; }
}

/* ========== 重置与基础样式 ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

main {
    animation: pageFadeIn 0.45s ease-out;
}

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

a, button, input, textarea, select {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

a:focus-visible {
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
.btn:focus-visible {
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-offset: 0;
}

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

ul { list-style: none; }

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

/* ========== 容器 ========== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 排版 ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { color: var(--gray-600); margin-bottom: 1rem; }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    filter: blur(4px);
    opacity: 0.5;
}

.section-title p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.05rem;
}

.hero .section-title h2 {
    color: var(--white);
}
.hero .section-title p {
    color: rgba(255,255,255,0.7);
}

section {
    padding: 5rem 0;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: #3EACB8;
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #C5E3E7;
    color: #2E2E2E;
    box-shadow: 0 8px 32px rgba(62, 172, 184, 0.35);
}

#heroExploreBtn {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #3EACB8, #2D8E99);
    box-shadow: 0 4px 20px rgba(62, 172, 184, 0.3), 0 0 40px rgba(62, 172, 184, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

#heroExploreBtn:hover {
    transform: scale(1.06);
    background: linear-gradient(135deg, #4DBCC8, #3EACB8);
    box-shadow: 0 8px 40px rgba(62, 172, 184, 0.5), 0 0 60px rgba(62, 172, 184, 0.2);
    color: #FFFFFF;
}

#heroExploreBtn:active {
    transform: scale(0.97);
}

/* 导航栏CTA按钮保持原始样式 */
.nav-cta .btn-primary {
    background: var(--primary);
    color: var(--white);
}

.nav-cta .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,128,128,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.3);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #1da954;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.3);
}

/* ========== 头部/导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px 0 0;
    flex: 1;
    max-width: 100%;
    margin: 0;
}

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

.logo-img {
    height: 55px;
    width: auto;
}

.logo-img-large {
    height: 138px;
    width: auto;
}

.footer-logo.logo-img-large {
    height: 180px;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    display: block;
}

/* 导航 */
.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-bg);
}

.nav-link i {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* 大菜单 */
.has-mega-menu {
    position: relative;
}

@keyframes flyoutIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 1.25rem;
    min-width: 520px;
    z-index: 100;
    margin-top: -1px;
}

.has-mega-menu:hover .mega-menu {
    display: block;
}

.mega-menu-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-menu-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 0;
    font-weight: 700;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mega-menu-col h4::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    opacity: 0.5;
}

.mega-menu-col h4:hover {
    background: var(--primary-bg);
}

.mega-menu-col .dropdown-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-group:hover .dropdown-links {
    max-height: 300px;
}

@media (min-width: 769px) {
    /* 桌面端：二级链接改为分组标题右侧弹出的子菜单 */
    .menu-group {
        position: relative;
    }

    .mega-menu-col h4::after {
        content: '\f054';
    }

    .mega-menu-col .dropdown-links {
        display: none;
        position: absolute;
        top: -0.5rem;
        left: calc(100% + 10px);
        max-height: none;
        overflow: visible;
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-xl);
        padding: 0.5rem;
        min-width: 220px;
        white-space: nowrap;
        z-index: 101;
        transition: none;
    }

    /* 隐形桥接，防止鼠标穿过间隙时子菜单消失 */
    .mega-menu-col .dropdown-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: -14px;
        width: 14px;
        height: 100%;
    }

    .menu-group:hover .dropdown-links {
        display: block;
        animation: flyoutIn 0.22s ease;
    }
}

.mega-menu-col .dropdown-links a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: 4px;
    transition: var(--transition);
}

.mega-menu-col .dropdown-links a:hover {
    color: var(--primary);
    background: var(--primary-bg);
    padding-left: 1.25rem;
}

.mega-menu-col h4.direct-link::after {
    display: none;
}

.mega-menu-col h4.direct-link a {
    color: var(--primary);
    text-decoration: none;
    display: block;
    width: 100%;
}

/* 单列大菜单紧凑样式 */
.mega-menu:has(> .mega-menu-col) {
    min-width: auto;
    padding: 0.5rem;
    white-space: nowrap;
}

/* 汉堡菜单（移动端） */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 移动端导航遮罩 */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== 英雄区域（欢迎与主区域） ========== */
.hero {
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: var(--header-height);
    overflow: hidden;
    min-height: auto;
}

.hero + .hero {
    margin-top: 0;
}

/* ----- 欢迎区域（流光背景） ----- */
.hero-welcome-section {
    background: transparent url('../images/welcome-section.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    margin-top: var(--header-height);
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: clamp(4px, 0.8vh, 10px) 0 clamp(4px, 0.8vh, 10px);
    isolation: isolate;
}

/* ---- 背景 ---- */
.welcome-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* 渐变光晕 */
.welcome-bloom {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: welcomeBloomPulse 8s ease-in-out infinite alternate;
}

.welcome-bloom-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0,128,128,0.08), transparent 70%);
    top: -25%;
    right: -20%;
    animation-duration: 10s;
}

.welcome-bloom-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(88,174,178,0.06), transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-duration: 7s;
    animation-delay: -3s;
}

.welcome-bloom-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,128,128,0.05), transparent 70%);
    top: 25%;
    left: 55%;
    animation-duration: 12s;
    animation-delay: -5s;
}

@keyframes welcomeBloomPulse {
    0% { transform: translate(0, 0) scale(1); opacity: 0.15; }
    33% { transform: translate(40px, -30px) scale(1.2); opacity: 0.45; }
    66% { transform: translate(-25px, 35px) scale(0.9); opacity: 0.3; }
    100% { transform: translate(20px, -40px) scale(1.1); opacity: 0.4; }
}

/* 光晕脉冲动画 */
@keyframes welcomeBloomPulse {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    33% { transform: translate(40px, -30px) scale(1.2); opacity: 0.9; }
    66% { transform: translate(-25px, 35px) scale(0.9); opacity: 0.6; }
    100% { transform: translate(20px, -40px) scale(1.1); opacity: 0.8; }
}

/* 浮动几何形状 */
.welcome-shape {
    position: absolute;
    animation: welcomeShapeFloat 12s ease-in-out infinite alternate;
}

.welcome-shape-tri {
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69px solid var(--primary);
    top: 12%;
    left: 5%;
    opacity: 0.06;
    animation-duration: 10s;
}

.welcome-shape-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2.5px solid var(--primary);
    bottom: 15%;
    right: 8%;
    opacity: 0.08;
    animation-duration: 14s;
    animation-delay: -4s;
}

.welcome-shape-hex {
    width: 48px;
    height: 48px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 55%;
    left: 92%;
    opacity: 0.06;
    animation-duration: 12s;
    animation-delay: -7s;
}

/* 几何形状浮动动画 */
@keyframes welcomeShapeFloat {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.08; }
    50% { transform: translate(50px, -35px) rotate(180deg); opacity: 0.2; }
    100% { transform: translate(-30px, 45px) rotate(360deg); opacity: 0.12; }
}

/* ---- 前景内容 ---- */
.hero-welcome-section .container {
    position: relative;
    z-index: 3;
}

.hero-welcome-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.3rem, 0.8vh, 0.6rem);
    padding-top: clamp(6px, 1vh, 14px);
}

/* ---- 带光环的Logo ---- */
.welcome-logo-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(140px, 35vw, 420px);
    height: clamp(140px, 35vw, 420px);
}

.hero-logo-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    animation: welcomeLogoFloat 4s ease-in-out infinite alternate;
}

/* Logo浮动动画 */
@keyframes welcomeLogoFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-14px); }
}

.hero-welcome-section .hero-logo {
    width: clamp(140px, 35vw, 440px);
    position: relative;
    filter: drop-shadow(0 4px 12px rgba(0,128,128,0.1));
}

/* 光环 */
.welcome-ring-outer {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(0,128,128,0.12);
    animation: welcomeRingSpin 20s linear infinite;
    box-shadow: 0 0 15px rgba(0,128,128,0.03), inset 0 0 15px rgba(0,128,128,0.03);
}

.welcome-ring-dash {
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 2px dashed rgba(0,128,128,0.2);
    animation: welcomeRingSpin 12s linear infinite reverse;
}

.welcome-ring-inner {
    position: absolute;
    inset: 24%;
    border-radius: 50%;
    border: 1.5px solid rgba(0,128,128,0.08);
    animation: welcomeRingSpin 8s linear infinite;
    box-shadow: 0 0 8px rgba(0,128,128,0.02), inset 0 0 8px rgba(0,128,128,0.02);
}

/* 光环旋转动画 */
@keyframes welcomeRingSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ---- 浮动文字容器 ---- */
.welcome-words-container {
    position: relative;
    width: 100%;
    min-height: clamp(30px, 8vw, 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 浮动语言文字 */
.welcome-float {
    position: absolute;
    color: rgba(0,128,128,0.15);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: left 1.8s ease, top 1.8s ease, transform 1.6s ease, opacity 1.4s ease, font-size 1.4s ease;
}

/* 浮动文字移动动画 */
@keyframes welcomeFloatMove {
    0% { transform: translate(0px, 0px); }
    100% { transform: translate(14px, -18px); }
}

.welcome-float.focus {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: clamp(4px, 6vw, 80px) !important;
    opacity: 1 !important;
    z-index: 5;
    animation: none !important;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 6px;
}


/* 欢迎区域圆点脉冲动画 */
@keyframes welcomeDotPulse {
    0%, 100% { box-shadow: 0 0 6px rgba(0,128,128,0.25); }
    50% { box-shadow: 0 0 20px rgba(0,128,128,0.6); }
}

/* ----- 主英雄区域 ----- */
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-section.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('../images/hero-section-phone.png');
    }
}

.hero-main {
    margin-top: 0;
    padding-top: var(--header-height);
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
}

.hero-layout {
    padding: 0.5rem 0 1.5rem;
    max-width: var(--max-width);
    margin: 0;
}

@media (max-width: 600px) {
    .hero-layout {
        padding: 0.25rem 0 0.75rem;
    }
}

.hero-content {
    width: 100%;
    max-width: 100%;
    padding-right: 10px;
}

@media (min-width: 768px) {
    .hero-content {
        width: 45%;
        max-width: 600px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(8, 145, 178, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: clamp(0.7rem, 0.9vw, 0.8rem);
    font-weight: 600;
    color: #0891B2;
    margin-bottom: 0.75rem;
    margin-top: 1rem;
    border: 1px solid rgba(8, 145, 178, 0.2);
    letter-spacing: 0.3px;
}

.hero h1 {
    font-size: clamp(1.4rem, 3.2vw, 3.25rem);
    font-weight: 800;
    color: #083344;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow-wrap: normal;
}

@media (max-width: 600px) {
    .hero h1 {
        white-space: normal;
    }
}

.hero h1 .hero-highlight {
    color: #0891B2;
}

.hero-gold {
    color: #FFD166;
    transition: opacity 0.4s ease;
}

.hero p {
    font-size: clamp(0.8rem, 1.1vw, 1rem);
    color: #1e293b;
    margin-bottom: 0.75rem;
    max-width: 100%;
    line-height: 1.5;
    word-break: break-word;
}

@media (max-width: 480px) {
    .hero p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

@media (max-width: 480px) {
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 600px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

.hero-stat {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-md);
    padding: 0.75rem 0.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 480px) {
    .hero-stat {
        padding: 0.5rem 0.3rem;
    }
}

.hero-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.hero-stat h3 {
    font-size: clamp(1.25rem, 1.8vw, 1.5rem);
    font-weight: 800;
    color: var(--teal-dark);
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.hero-stat p {
    font-size: clamp(0.6rem, 0.85vw, 0.78rem);
    color: var(--gray-500);
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* 英雄区域逐行渐显 */
.hero-content .hero-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content.visible .hero-reveal:nth-child(1) { transition-delay: 0s; }
.hero-content.visible .hero-reveal:nth-child(2) { transition-delay: 0.2s; }
.hero-content.visible .hero-reveal:nth-child(3) { transition-delay: 0.4s; }
.hero-content.visible .hero-reveal:nth-child(4) { transition-delay: 0.6s; }
.hero-content.visible .hero-reveal:nth-child(5) { transition-delay: 0.8s; }

.hero-content.visible .hero-reveal {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .hero-stats.hero-reveal {
    opacity: 0;
    transform: translateY(30px);
}

.hero-content.visible .hero-stats.hero-reveal {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}

/* ========== 课程分类 ========== */
.course-categories {
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.category-card {
    position: relative;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.category-card:hover::after {
    opacity: 1;
}

.category-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.03);
    filter: drop-shadow(0 6px 16px rgba(0,128,128,0.25));
}

.category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ========== 为什么选择我们 ========== */
.why-choose-us {
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-bg) 100%);
    position: relative;
}

.world-map {
    position: relative;
    z-index: 3;
    max-width: 860px;
    margin: 0 auto;
    aspect-ratio: 784 / 459;
    overflow: visible;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-bg) 100%);
    border-radius: var(--radius-md);
}

.world-map__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.04;
    pointer-events: none;
}

.map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    cursor: pointer;
    z-index: 3;
}

.map-marker:hover {
    z-index: 10;
}

.map-marker-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.map-marker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    background: var(--gray-100);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.map-marker-avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary);
}

.map-marker:hover .map-marker-avatar {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,128,128,0.35);
}

.map-marker-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.map-marker-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-700);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.map-marker:hover .map-marker-label {
    opacity: 1;
}

/* ========== 地图气泡弹窗 ========== */
.map-popover {
    display: none;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 260px;
    max-width: 360px;
    padding-top: 4px;
}

.map-marker.active .map-popover {
    display: block;
}

.map-popover {
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.18));
}

.map-popover-student {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.map-popover-student:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.map-popover-student-info {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    box-shadow: var(--shadow-sm);
}

.map-popover-student-info h4 {
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.map-popover-student-info .popover-student-role {
    font-size: 0.72rem;
    color: var(--gray-500);
    margin-bottom: 0.1rem;
}

.map-popover-student-info .popover-student-course {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.map-popover-student-info blockquote {
    font-size: 0.78rem;
    color: var(--gray-600);
    line-height: 1.5;
    font-style: italic;
    margin: 0;
}

.map-popover::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 6px solid var(--white);
}

/* 地图弹窗小屏适配 */
@media (max-width: 480px) {
    .map-marker-avatar {
        width: 32px;
        height: 32px;
    }

    .map-marker-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        top: -5px;
        right: -5px;
    }

    .map-popover {
        min-width: 200px;
        max-width: 280px;
    }
}

/* ========== 热门课程 ========== */
.popular-courses {
    background: url('../images/whyChooseUs.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0 0 6.5rem;
}

.popular-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popular-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
    flex: 1;
}

.popular-grid::-webkit-scrollbar {
    display: none;
}

.popular-grid .popular-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
}

.popular-slider-btn {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--teal-light);
    background: rgba(255,255,255,0.9);
    color: var(--teal-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.popular-slider-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--teal-dark);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0,128,128,0.35);
}

.popular-slider-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.popular-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.popular-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.popular-card:hover::after {
    opacity: 1;
}

.popular-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,128,128,0.2);
    border-color: var(--teal-light);
}

.popular-card:hover::after {
    opacity: 1;
}

.popular-card-image {
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: var(--gray-200);
}

.popular-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.popular-card:hover .popular-card-image img {
    transform: scale(1.08);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.popular-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.popular-card-body h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

.popular-card-body p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 0;
    font-style: italic;
    line-height: 1.6;
}

.popular-tag {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.popular-btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.popular-card-body .btn {
    margin-top: auto;
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-gradient:hover {
    background: var(--gradient-primary-reverse);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15,61,68,0.3);
    color: var(--white);
}

.popular-dropdown {
    position: relative;
}

.popular-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 160px;
    z-index: 10;
    margin-top: 4px;
}

@media (min-width: 361px) {
    .popular-dropdown-menu {
        min-width: 180px;
    }
}

.popular-dropdown:hover .popular-dropdown-menu,
.popular-dropdown.active .popular-dropdown-menu {
    display: block;
}

.popular-dropdown-menu a {
    display: block;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    color: var(--gray-600);
    border-radius: 4px;
    transition: var(--transition);
}

.popular-dropdown-menu a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* ========== 营地菜单下拉 ========== */
.camp-menu,
.about-menu,
.about-menu-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 180px;
    z-index: 100;
    margin-top: -1px;
}

.about-menu {
    min-width: 0;
    white-space: nowrap;
}

.has-mega-menu:hover .camp-menu,
.has-mega-menu:hover .about-menu {
    display: block;
}

.camp-menu a,
.about-menu a,
.about-menu-mobile a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: 4px;
    transition: var(--transition);
}

.camp-menu a:hover,
.about-menu a:hover,
.about-menu-mobile a:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* ========== 画廊 ========== */
.gallery {
    background: var(--gray-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--gray-200);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
}

.gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,128,128,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

/* ========== 学员评价 ========== */
.testimonials {
    background: linear-gradient(180deg, rgba(230,245,245,0.3) 0%, var(--white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testimonial-card:hover::after {
    opacity: 1;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-300);
}

.testimonial-author h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--gray-500);
}



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

.contact-info h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-detail-item i {
    width: 44px;
    height: 44px;
    background: rgba(88,174,178,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #58AEB2;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail-item h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.contact-detail-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.contact-map {
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 350px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ========== 页面标题头 ========== */
.page-header {
    padding: 6rem 0 2.5rem;
    margin-top: var(--header-height);
    background: var(--gradient-dark);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(88,174,178,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 50%, rgba(15,61,68,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* ========== Intensive English Hero ========== */
.ie-hero {
    height: 100vh;
    position: relative;
    padding: var(--header-height) 0 0 0;
    background: #045E72;
}

.ie-hero-image-wrap {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.ie-hero-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.ie-hero-image-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
    pointer-events: none;
}

.ie-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.ie-hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ie-hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
    will-change: transform, opacity;
}

.ie-hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.ie-hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.ie-hero-content .btn {
    font-size: 1rem;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
}

@media (max-width: 768px) {
    .ie-hero {
        height: 100vh;
    }
    .ie-hero-content h2 {
        font-size: 1.8rem;
    }
    .ie-hero-content p {
        font-size: 1rem;
    }
}

/* ========== Story Section（GSAP Pinned Cards） ========== */
#story {
    background: #061017;
    height: 100vh;
    padding: 0;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#story::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.story-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.left {
    position: absolute;
    left: 8%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 460px;
    z-index: 5;
}

.left h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    font-weight: 300;
    line-height: 1.2;
}

.left p {
    color: #b9cfd5;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

#story .card {
    position: absolute;
    width: 28vw;
    height: 68vh;
    top: 16vh;
    right: -28vw;
    border-radius: 20px;
    overflow: hidden;
}

#story .card-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#story .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#story .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}

#story .card-body h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

#story .card-body p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.4;
    margin: 0;
}

.story-section3 {
    position: absolute;
    inset: 0;
    z-index: 6;
    visibility: hidden;
    background: linear-gradient(135deg, #0b6d78, #092b34);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 60px;
}

.story-section3 .to-content {
    text-align: center;
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.story-section3 .to-content .to-tag {
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
    display: block;
    margin-bottom: 0.75rem;
}

.story-section3 .to-content h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 300;
}

.story-section3 .to-content p {
    color: rgba(255,255,255,0.6);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.story-section3 .to-levels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1200px;
    width: 100%;
}

.story-section3 .to-level {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.08);
}

.story-section3 .to-level-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.story-section3 .to-level-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}

.story-section3 .to-level h3 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.story-section3 .to-level-body > p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.story-section3 .to-level-topics {
    list-style: none;
    padding: 0;
    margin: 0;
}

.story-section3 .to-level-topics li {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.4);
    padding: 0.2rem 0;
    padding-left: 0.8rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.story-section3 .to-level-topics li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%);
}

.story-section3 .to-level-topics li:first-child {
    border-top: none;
    padding-top: 0;
}

.story-section3 .to-level-topics li:last-child {
    padding-bottom: 0;
}

.triangle-cover {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
    overflow: hidden;
}

.tri {
    position: absolute;
    background: #168b8f;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
    transform: scale(0);
    will-change: transform;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .left {
        top: calc(6% + 70px);
        left: 5%;
        transform: translateY(0);
        max-width: 90%;
        z-index: 5;
    }
    .left h2 {
        font-size: 2rem;
    }
    .left p {
        font-size: 0.85rem;
    }
    #story .card {
        width: 45vw;
        height: 55vh;
        top: 22vh;
    }
    .story-section3 .to-levels {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .story-section3 .to-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .left {
        top: calc(4% + 70px);
        left: 4%;
        max-width: 92%;
    }
    .left h2 {
        font-size: 1.5rem;
    }
    .left p {
        font-size: 0.8rem;
    }
    #story .card {
        width: 55vw;
        height: 45vh;
        top: 28vh;
    }
    #story .card-body {
        padding: 1rem;
    }
    #story .card-body h3 {
        font-size: 1.1rem;
    }
    .story-section3 .to-levels {
        grid-template-columns: 1fr;
    }
    .story-section3 {
        padding: 0 20px;
    }
}

/* ========== 关于页面 ========== */
.about-content-section {
    background: var(--white);
    padding: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--gray-200);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(230,245,245,0.5) 0%, var(--white) 100%);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.about-text h2 {
    margin-bottom: 1.25rem;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.about-stat {
    text-align: center;
    padding: 1.25rem;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
}

.about-stat h3 {
    font-size: 2rem;
    color: var(--primary);
}

.about-stat p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ========== 课程页面 ========== */
.courses-listing {
    background: linear-gradient(180deg, rgba(230,245,245,0.3) 0%, var(--white) 100%);
    padding: 3rem 0;
}

.courses-listing + .courses-listing {
    background: var(--white);
    padding-top: 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.course-card:hover::after {
    opacity: 1;
}

.course-card-image {
    height: 200px;
    overflow: hidden;
    background: var(--gray-200);
}

.course-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.03);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2));
}

.course-card-body {
    padding: 1.5rem;
}

.course-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.course-card-body p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.course-card-body .btn {
    width: 100%;
}

/* ========== WhatsApp 联系区域 ========== */
.contact-whatsapp-section {
    padding: 3rem 0;
    background: var(--gray-50);
}

.whatsapp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.whatsapp-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    text-align: center;
}

.whatsapp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal-light);
}

.whatsapp-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.whatsapp-card-body p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.whatsapp-card-body .btn {
    width: 100%;
}

/* WhatsApp区域移动端适配 */
@media (max-width: 768px) {
    .whatsapp-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== 考试页面 ========== */
.exams-listing {
    background: linear-gradient(180deg, var(--white) 0%, rgba(230,245,245,0.3) 100%);
    padding: 3rem 0;
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.exam-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.exam-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.exam-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary);
    transition: var(--transition);
}

.exam-card:hover .exam-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.03);
    filter: drop-shadow(0 6px 16px rgba(0,128,128,0.25));
}

.exam-card {
    position: relative;
}

.exam-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 0 0 3px 3px;
    opacity: 0;
    transition: var(--transition);
}

.exam-card:hover::after {
    opacity: 1;
}

.exam-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.exam-card p {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.exam-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
}

/* ========== 签证页面 ========== */
.visa-intro {
    background: var(--white);
    padding: 3rem 0;
}

.visa-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.visa-step {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
}

.visa-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.visa-step-number {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(15,61,68,0.25);
}

.visa-step h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.visa-step p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

/* ========== 联系表单 ========== */
/* ========== Contact Page Design ========== */
.contact-page {
    background: #f5f1e8;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    padding: 0;
}

.contact-left {
    padding: 8vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #21838E;
    color: white;
}

.contact-left h1 {
    font-size: clamp(60px, 10vw, 150px);
    line-height: 0.85;
    margin: 0;
    color: white;
    font-weight: 800;
}

.contact-left p {
    font-size: clamp(16px, 1.3vw, 20px);
    max-width: 560px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin: 1rem 0 0;
}

.contact-info {
    margin-top: clamp(30px, 4vw, 50px);
    display: grid;
    gap: clamp(16px, 1.5vw, 20px);
}

.contact-info strong {
    font-size: 0.75rem;
    letter-spacing: 2px;
    opacity: 0.6;
    font-weight: 600;
}

.contact-right {
    padding: 8vw 6vw;
    display: flex;
    align-items: center;
}

.contact-form {
    width: 100%;
}

.contact-form h2 {
    font-size: clamp(28px, 3vw, 42px);
    margin: 0 0 clamp(20px, 2.5vw, 35px);
    color: #12383c;
}

.contact-form label {
    display: block;
    margin: clamp(16px, 1.5vw, 22px) 0 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #12383c;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 0;
    border: 0;
    border-bottom: 2px solid #9bb6b8;
    background: transparent;
    font-size: 17px;
    outline: none;
    font-family: var(--font-family);
    color: #12383c;
}

.contact-form textarea {
    height: 110px;
    resize: none;
}

.contact-form button {
    margin-top: 35px;
    padding: 17px 35px;
    border: 0;
    background: #12383c;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-family);
}

.contact-form button:hover {
    transform: translateY(-4px);
    background: #21838E;
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #ecfdf5;
    border: 2px solid #10b981;
    border-radius: 12px;
    color: #065f46;
}

.form-success.show {
    display: block;
}

.form-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #065f46;
}

.form-success p {
    color: #065f46;
    margin: 0;
}

@media (max-width: 800px) {
    .contact-page {
        grid-template-columns: 1fr;
    }
    .contact-left,
    .contact-right {
        padding: 60px 30px;
    }
}

/* ========== Contact Map ========== */
.contact-map-section {
    background: #f5f1e8;
    padding: 0 0 4rem;
}

/* ========== 浮动按钮 ========== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
    color: var(--white);
}

.scroll-to-top {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(15,61,68,0.25);
}

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

.scroll-to-top:hover {
    background: var(--gradient-primary-reverse);
    transform: translateY(-4px);
    color: var(--white);
}

/* 浮动按钮脉冲动画 */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ========== 页脚 ========== */
.footer {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, #0a2a30 0%, #071d22 100%);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2.5rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 2rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: #58AEB2;
    padding-left: 4px;
}

.footer-contact li {
    list-style: none;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.footer-contact .branch-group {
    margin-bottom: 24px;
}

.footer-contact .contact-item {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-bottom: 0 !important;
}

.footer-contact .contact-item i {
    margin-top: 4px;
    color: #58AEB2;
    flex-shrink: 0;
}

.footer-contact .contact-item span {
    margin: 0;
    padding: 0;
}

.footer-contact .contact-item a {
    margin: 0;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
    color: #58AEB2;
    text-decoration: underline;
}

.footer-contact li.contact-item + li.contact-item {
    margin-top: 12px !important;
}

.footer-contact .contact-phone-icon {
    color: #58AEB2;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0;
}

/* ========== 粒子特效 ========== */
.particle-section {
    position: relative;
    overflow: hidden;
}

.particle-section .container,
.particle-section > *:not(.particle-canvas) {
    position: relative;
    z-index: 2;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ========== 图片加载/错误处理 ========== */
.img-broken {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray-400);
    font-size: 0.85rem;
    border: 2px dashed var(--gray-300);
}

.img-broken i {
    font-size: 2rem;
    opacity: 0.5;
}

img[loading="lazy"] {
    background: var(--gray-100);
    transition: opacity 0.3s ease;
}

img[loading="lazy"] + .img-broken {
    display: none;
}

.about-image {
    min-height: 300px;
    background: var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.popular-card-image {
    background: var(--gray-200);
    min-height: 220px;
}

.course-card-image {
    background: var(--gray-200);
    min-height: 200px;
}

.testimonial-author img {
    background: var(--gray-300);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.testimonial-card:hover .testimonial-author img {
    transform: scale(1.03);
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.gallery-item {
    background: var(--gray-200);
}

.footer-logo,
.logo-img {
    background: transparent;
}

/* 图片加载闪烁动画 */
@keyframes imgShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

img[loading] {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: imgShimmer 1.5s ease-in-out infinite;
    color: transparent;
}

img[loading].loaded,
img[loading]:not([src=""]) {
    animation: none;
    background: none;
}

/* ========== 滚动渐显 ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ========== 动态效果 ========== */

/* 网格子元素交错渐显 */
.courses-grid .reveal:nth-child(1),
.categories-grid .reveal:nth-child(1),
.popular-grid .reveal:nth-child(1),
.gallery-grid .reveal:nth-child(1) { transition-delay: 0s; }

.courses-grid .reveal:nth-child(2),
.categories-grid .reveal:nth-child(2),
.popular-grid .reveal:nth-child(2),
.gallery-grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.courses-grid .reveal:nth-child(3),
.categories-grid .reveal:nth-child(3),
.popular-grid .reveal:nth-child(3),
.gallery-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.courses-grid .reveal:nth-child(4),
.categories-grid .reveal:nth-child(4),
.popular-grid .reveal:nth-child(4),
.gallery-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.courses-grid .reveal:nth-child(5),
.categories-grid .reveal:nth-child(5),
.popular-grid .reveal:nth-child(5),
.gallery-grid .reveal:nth-child(5) { transition-delay: 0.4s; }

.courses-grid .reveal:nth-child(6),
.categories-grid .reveal:nth-child(6),
.popular-grid .reveal:nth-child(6),
.gallery-grid .reveal:nth-child(6) { transition-delay: 0.5s; }

.courses-grid .reveal:nth-child(7),
.categories-grid .reveal:nth-child(7),
.gallery-grid .reveal:nth-child(7) { transition-delay: 0.6s; }

.courses-grid .reveal:nth-child(8),
.categories-grid .reveal:nth-child(8),
.gallery-grid .reveal:nth-child(8) { transition-delay: 0.7s; }

/* 渐变标题动画 */
.section-title h2 {
    background: linear-gradient(135deg, var(--primary), var(--teal-light), var(--primary));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

/* 渐变位置移动动画 */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* 按钮光泽效果 */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
}

/* 导航链接下划线动画 */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 2rem);
    left: 1rem;
}

/* 页面标题浮动装饰 */
.page-header::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(88,174,178,0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: 10%;
    animation: floatOrb 8s ease-in-out infinite;
    pointer-events: none;
}

.page-header > .container {
    position: relative;
    z-index: 1;
}

/* 浮动球体动画 */
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 10px) scale(0.95); }
}

/* 增强卡片悬停 - 边框发光 */
.course-card:hover,
.popular-card:hover,
.category-card:hover {
    border-color: var(--teal-light);
    box-shadow: 0 12px 40px rgba(0,128,128,0.15);
}

/* 计数器数值样式 */
.counter-value {
    display: inline-block;
}

/* 页脚链接下划线 */
.footer-col ul li a {
    position: relative;
}

.footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #58AEB2;
    transition: width 0.3s ease;
}

.footer-col ul li a:hover::after {
    width: 100%;
}

/* 区域分隔波浪线 */
.courses-listing::before {
    content: '';
    display: block;
    height: 3px;
    width: 80px;
    background: var(--gradient-primary);
    margin: 0 auto 2rem;
    border-radius: 2px;
    opacity: 0.3;
}

.courses-listing:first-of-type::before {
    display: none;
}

/* 英雄统计数字悬停效果 */
.hero-stat h3 {
    transition: transform 0.3s ease;
}

.hero-stat:hover h3 {
    transform: scale(1.1);
}



/* ========== 响应式设计 ========== */
/* 平板及以下适配 */
@media (max-width: 1024px) {
    .hero-layout {
        text-align: center;
        padding: 2rem 0;
    }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero p { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }

    .about-content { grid-template-columns: 1fr; gap: 2rem; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .mega-menu-container { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-item:first-child { grid-column: span 1; grid-row: span 1; aspect-ratio: 4 / 3; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .popular-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .exams-grid { grid-template-columns: repeat(2, 1fr); }
    .visa-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 移动端主适配 */
@media (max-width: 768px) {
    html { font-size: 15px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    section { padding: 3.5rem 0; }

    .header { height: var(--header-height); }
    .logo-img { height: 42px; }
    .logo-text { font-size: 0.85rem; }

    .hero-welcome-section {
        padding: calc(var(--header-height) + 0px) 0 4px;
    }

    .page-header { padding: 4.5rem 0 2rem; }

    /* 移动端减少动画和特效以提升性能 */
    .category-card:hover,
    .course-card:hover,
    .course-card:active,
    .exam-card:hover,
    .visa-step:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .category-card:hover .category-icon,
    .exam-card:hover .exam-icon {
        background: var(--primary-bg);
        color: var(--primary);
        transform: none;
        filter: none;
    }

    .category-card:hover::after,
    .course-card:hover::after,
    .testimonial-card:hover::after,
    .exam-card:hover::after,
    .popular-card:hover::after {
        opacity: 0;
    }

    .testimonial-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-sm) !important;
    }

    .popular-card-image img { transition: none; }
    .course-card-image img { transition: none; }

    .category-card,
    .course-card,
    .popular-card,
    .testimonial-card,
    .exam-card,
    .visa-step {
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }

    .hamburger { display: flex; }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        box-shadow: var(--shadow-xl);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .navbar.active { right: 0; }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.25rem;
    }

    .nav-link {
        width: 100%;
        padding: 0.5rem 0.85rem;
        font-size: 0.9rem;
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
    }

    .nav-cta .btn { width: 100%; }

    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        min-width: auto;
        padding: 0.5rem 0 0.5rem 1rem;
        margin-top: 0;
        border-radius: 0;
        background: var(--gray-50);
    }

    .has-mega-menu:hover .mega-menu { display: none; }
    .has-mega-menu.active .mega-menu { display: block; }

    .has-mega-menu:hover .camp-menu,
    .has-mega-menu:hover .about-menu,
    .has-mega-menu:hover .about-menu-mobile { display: none; }

    .has-mega-menu.active .camp-menu,
    .has-mega-menu.active .about-menu-mobile {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        min-width: auto;
        padding: 0.5rem 0 0.5rem 1rem;
        margin-top: 0;
        border-radius: 0;
        background: var(--gray-50);
    }

    .camp-menu a,
    .about-menu-mobile a {
        font-size: 0.95rem;
        padding: 0.7rem 0.75rem;
    }

    .menu-group:hover .dropdown-links { max-height: none; }
    .menu-group.active .dropdown-links { max-height: 300px; }

    .mega-menu-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mega-menu-col h4 {
        font-size: 0.9rem;
        padding: 0.7rem 0;
    }

    .mega-menu-col h4.direct-link a,
    .dropdown-links a {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero-layout {
        padding: 1.5rem 0;
    }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 360px; }
    .hero-stats { gap: 1rem; }

    .categories-grid { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .popular-grid { grid-template-columns: 1fr; }
    .popular-card:hover { transform: none; }
    .popular-card:hover .popular-card-image img { transform: none; }
    .popular-btn-group { flex-direction: column; }
    .popular-btn-group .btn { width: 100%; }
    .popular-dropdown-menu { position: static; box-shadow: none; padding: 0.5rem 0 0 1rem; }
    .courses-grid { grid-template-columns: 1fr; }
    .exams-grid { grid-template-columns: 1fr; }
    .visa-steps { grid-template-columns: 1fr; }
    .about-content { grid-template-columns: 1fr; }

    .contact-map { height: 250px; }

    .page-header h1 { font-size: 2rem; }
    .about-stats { grid-template-columns: repeat(2, 1fr); }

    .contact-form { padding: 1.5rem; }

}

/* 小屏手机适配 */
@media (max-width: 480px) {
    html { font-size: 14px; }

    h1:not(.hero h1):not(.page-header h1) { font-size: 1.75rem; }
    h2 { font-size: 1.4rem; }
    section { padding: 2.5rem 0; }

    .container { padding: 0 16px; }

    .page-header { padding: 4rem 0 1.5rem; }

    .hero-welcome-section {
        padding: calc(var(--header-height) - 2px) 0 2px;
    }

    .hero-stats { gap: 1.25rem; }
    .hero-logo { width: min(140px, 45vw); }
    .hero-stat h3 { font-size: 1.25rem; }
    .hero-stat p { font-size: 0.7rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .about-stats { grid-template-columns: 1fr; }
    .about-image { min-height: 200px; }
    .about-text { padding: 1.25rem; }
    .about-stat h3 { font-size: 1.5rem; }

    .popular-card-image { height: 180px; }
    .popular-card-body { padding: 1rem; }
    .popular-btn-group { flex-direction: column; }
    .popular-btn-group .btn { width: 100%; }
    .popular-dropdown-menu { position: static; box-shadow: none; padding: 0.5rem 0 0 1rem; }

    .course-card-image { height: 160px; }
    .course-card-body { padding: 1rem; }
    .course-card-body h3 { font-size: 1rem; }
    .course-card-body p { font-size: 0.85rem; }

    .categories-grid { gap: 1rem; }
    .category-card { padding: 1.25rem; }

    .testimonial-card { padding: 1.25rem; }
    .testimonials-grid { gap: 1rem; }
    .testimonial-author img { width: 40px; height: 40px; }

    .exam-card { padding: 1.25rem; }
    .exams-grid { gap: 1rem; }

    .visa-step { padding: 1.25rem; }
    .visa-steps { gap: 1rem; }

    .footer-social a { width: 38px; height: 38px; font-size: 0.85rem; }
    .footer-grid { gap: 1.5rem; }
    .footer { padding: 2.5rem 0 0; }

    .contact-map { height: 220px; }

    .img-broken { height: 140px; }
    .img-broken i { font-size: 1.5rem; }

    .courses-grid { gap: 1rem; }
    .popular-slider {
        gap: 0;
        padding: 0 10px;
    }
    .popular-grid { gap: 1rem; }
    .popular-grid .popular-card { flex: 0 0 78%; }
    .popular-slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        z-index: 3;
        box-shadow: 0 4px 14px rgba(0,0,0,0.2);
        background: rgba(255,255,255,0.95);
    }
    .popular-slider-btn--prev { left: 8px; }
    .popular-slider-btn--next { right: 8px; }
    .popular-slider-btn:hover { transform: translateY(-50%) scale(1.08); }
    .mega-menu { padding: 0.25rem 0 0.25rem 0.75rem; }
    .navbar { width: 100%; }
}

/* 超小屏手机适配 */
@media (max-width: 360px) {
    html { font-size: 13px; }
    .container { padding: 0 12px; }
    h1:not(.hero h1):not(.page-header h1) { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    section { padding: 2rem 0; }
    .hero-welcome-section {
        padding: calc(var(--header-height) - 4px) 0 2px;
    }
    .hero-stats { gap: 0.75rem; }
    .hero-stat h3 { font-size: 1.1rem; }
    .page-header h1 { font-size: 1.6rem; }
    .popular-grid .popular-card { flex: 0 0 82%; }
    .popular-slider { padding: 0 6px; }
    .popular-card-image { height: 160px; }
    .course-card-image { height: 140px; }
    .about-image { min-height: 160px; }
    .img-broken { height: 120px; }
    .about-stat h3 { font-size: 1.25rem; }
}

/* =========================
课程展示区
========================= */

.course-showcase {
    position: relative;
    padding: 25px 0;
    overflow: hidden;
    background:
    linear-gradient(
        180deg,
        #f7ffff 0%,
        #eefbfb 100%
    );
}

/* =========================
标题样式
========================= */

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title span {
    color: #0f8f95;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 3rem;
    margin-top: 12px;
    color: #083b44;
}

/* =========================
容器
========================= */

.coverflow-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    perspective: 1800px;
}

.coverflow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.85);
    color: #083b44;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transition: background .25s, transform .25s;
    backdrop-filter: blur(4px);
}

.coverflow-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.coverflow-arrow--prev {
    left: 20px;
}

.coverflow-arrow--next {
    right: 20px;
}

/* 封面流箭头移动端适配 */
@media(max-width:768px){
    .coverflow-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .coverflow-arrow--prev { left: 10px; }
    .coverflow-arrow--next { right: 10px; }
}

/* =========================
轨道
========================= */

.coverflow-track {
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform .8s ease;
    padding: 10px 0;
}

/* =========================
卡片
========================= */

.course-showcase .course-card {
    min-width: 320px;
    height: 280px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    cursor: pointer;

    background:
    rgba(255,255,255,.18);

    border:
    1px solid rgba(255,255,255,.25);

    backdrop-filter: blur(16px);

    box-shadow:
    0 10px 40px rgba(0,0,0,.08);

    transform:
    scale(.82)
    rotateY(25deg);

    opacity: .45;

    transition:
    transform .8s ease,
    opacity .8s ease,
    box-shadow .8s ease;

    flex-shrink: 0;
}

/* =========================
居中卡片
========================= */

.course-showcase .course-card.active {
    transform:
    scale(1)
    rotateY(0deg);

    opacity: 1;

    box-shadow:
    0 20px 60px rgba(0,150,160,.18);
}

/* =========================
图片
========================= */

.course-showcase .course-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

/* =========================
悬停效果
========================= */

.course-showcase .course-card:hover img {
    transform: scale(1.06);
}

/* =========================
内容叠加
========================= */

.card-content {
    position: absolute;
    left: 0;
    bottom: 0;

    width: 100%;
    max-height: 50%;
    padding: 14px 20px;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.65) 50%,
        transparent
    );
}

.card-content h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-content p {
    color: rgba(255,255,255,.8);
    font-size: 0.75rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.card-content .btn {
    padding: 4px 12px;
    font-size: 0.7rem;
}

/* =========================
响应式
========================= */

/* 课程展示区移动端适配 */
@media(max-width:768px){

    .course-showcase {
        padding: 20px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .coverflow-track {
        gap: 12px;
    }

    .course-showcase .course-card {
        min-width: 230px;
        height: 200px;
    }

    .card-content h3 {
        font-size: 0.85rem;
    }

    .card-content p {
        font-size: 0.65rem;
    }

    .card-content .btn {
        padding: 3px 10px;
        font-size: 0.6rem;
    }
}

@media(max-width:480px){
    .course-showcase .section-title h2 {
        font-size: 1.5rem;
    }

    .course-showcase .course-card {
        min-width: 180px;
        height: 160px;
        border-radius: 20px;
    }

    .card-content {
        padding: 10px 14px;
    }

    .card-content h3 {
        font-size: 0.75rem;
    }

    .card-content p {
        font-size: 0.55rem;
    }

    .card-content .btn {
        padding: 2px 8px;
        font-size: 0.5rem;
    }
}

/* ========== 全屏幻灯片 ========== */

.slideshow {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
    overflow: hidden;
    z-index: 1;
}

.slideshow-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}

.slide {
    width: 100%;
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.slide section {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide .hero,
.slide .hero-welcome-section,
.slide .hero-main,
.slide .course-showcase {
    margin-top: 0;
    padding: 0;
}

.slide .hero {
    justify-content: center;
    min-height: 100%;
    flex: 1;
}

.slide .hero-welcome-section {
    justify-content: center;
}

.slide .hero-main {
    justify-content: center;
    min-height: 100%;
    flex: 1;
    padding-top: 1.5rem;
}

.slide .hero-main .hero-layout {
    padding-top: 0;
}

.slide .popular-courses {
    padding: 0 0 6.5rem;
}

.slide .popular-courses .section-title {
    margin-bottom: 1.5rem;
}

.slide .footer {
    padding: 3rem 0 0;
}

.slide .footer-grid {
    gap: 1.5rem;
}

.slide .footer-bottom {
    margin-top: 2rem;
}

.slide .footer-logo {
    height: 180px;
}

.slide .footer-social a {
    width: 36px;
    height: 36px;
}

/* 幻灯片内全屏轮播 */
.carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 4rem 2rem;
}

.carousel-content {
    text-align: center;
    max-width: 700px;
    margin-bottom: 3rem;
}

.carousel-content h3 {
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.carousel-content p {
    color: rgba(255,255,255,0.8);
    font-size: clamp(0.95rem, 1.5vw, 1.2rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #083b44;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: background 0.25s, transform 0.25s;
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow--prev { left: 20px; }
.carousel-arrow--next { right: 20px; }

/* 内容幻灯片（第4张） */
.slide-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.slide-content::-webkit-scrollbar {
    width: 6px;
}

.slide-content::-webkit-scrollbar-track {
    background: transparent;
}

.slide-content::-webkit-scrollbar-thumb {
    background: rgba(0,128,128,0.3);
    border-radius: 3px;
}

.slide-content section {
    width: 100%;
    flex-shrink: 0;
    min-height: auto;
    display: block;
}

.slide-content .footer {
    width: 100%;
    flex-shrink: 0;
}

/* 头部隐藏状态（欢迎幻灯片时） */
.header-hidden .header {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.header-hidden .slideshow {
    top: 0;
    height: 100%;
}

.header-hidden .slide {
    height: 100vh;
    height: 100dvh;
}

.header-hidden .slide section {
    min-height: 100vh;
    min-height: 100dvh;
}

/* 幻灯片移动端适配 */
@media (max-width: 768px) {
    .slide-content {
        padding: 0;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .carousel-arrow--prev { left: 12px; }
    .carousel-arrow--next { right: 12px; }

    .carousel-overlay {
        padding: 2rem 1rem;
    }

    .carousel-content {
        margin-bottom: 2rem;
    }
}


