/* ============================================
   河西走廊国际物流 - 主样式表
   Hexi Logistics - Main Stylesheet
   ============================================ */

/* === CSS 变量 === */
:root {
    /* 深色专业主题 - 参考 Sincer Logistics 风格 */
    --primary: #f59e0b;
    --primary-dark: #d97706;
    --primary-light: #fbbf24;
    --secondary: #0f172a;
    --secondary-light: #1e293b;
    --secondary-dark: #020617;
    --accent-cyan: #06b6d4;
    --accent-teal: #14b8a6;
    --accent-gold: #fbbf24;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-card: #0f172a;
    --bg-dark: #020617;
    --border-color: #1e293b;
    --border-light: rgba(255,255,255,0.1);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-en: 'Inter', 'Noto Sans SC', sans-serif;
}

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

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

body {
    font-family: var(--font-cn);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* === 导航栏 === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(2, 6, 23, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    color: #fff;
}

.logo-highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.lang-toggle {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-en);
    letter-spacing: 1px;
}

.lang-toggle:hover {
    background: var(--primary);
    color: var(--secondary-dark);
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
}

/* === Hero 首屏 === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 72px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #020617;
}

.hero-bg-slides {
    position: absolute;
    inset: 0;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-bg-slide.active {
    opacity: 1;
}

.hero-bg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(2, 6, 23, 0.35) 0%, rgba(2, 6, 23, 0.75) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(2, 6, 23, 0.8) 100%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

#heroParticles {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 10s infinite ease-in-out;
    box-shadow: 0 0 6px 1px currentColor;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    10% { opacity: 0.85; }
    50% { opacity: 0.65; }
    90% { opacity: 0.35; }
    100% { opacity: 0; transform: translateY(-180px) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 32px;
    letter-spacing: 1px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    letter-spacing: -2px;
    margin-bottom: 28px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-gold) 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 48px;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
    animation: fadeInUp 0.8s ease-out 0.45s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-en);
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -2px;
}

.stat-suffix {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    letter-spacing: 1px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-cn);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #020617;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* 滚动指示器 */
.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-arrow {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollArrow 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes scrollArrow {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* === Section 通用 === */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary);
    text-transform: uppercase;
    font-family: var(--font-en);
    margin-bottom: 16px;
}

.section-tag svg {
    fill: var(--primary);
}

.section-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-desc {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    white-space: nowrap;
}

/* === 口岸服务 === */
.ports-section {
    background: var(--bg-dark);
}

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

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

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

.port-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    overflow: hidden;
}

.port-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition);
}

.port-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.port-card:hover::before {
    opacity: 1;
}

.port-icon-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.port-icon {
    font-size: 36px;
    position: relative;
    z-index: 1;
}

.port-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 50%;
    animation: portPulse 2.5s infinite ease-out;
}

@keyframes portPulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.port-name {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.port-name-en {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-en);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.port-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.port-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.detail-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.port-route-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(245, 158, 11, 0.15);
    text-align: center;
    line-height: 1.3;
}

/* === 线路地图区域 === */
.routes-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--secondary) 100%);
    padding-bottom: 60px;
}

.map-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 1200px;
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--secondary);
}

.route-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto 40px;
    padding: 0 16px;
}

.route-carousel-arrow {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.route-carousel-arrow:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.route-carousel-arrow:active {
    transform: scale(0.94);
}

/* 旧版 SVG 地图样式（兼容） */
.route-map {
    width: 100%;
    height: auto;
    display: block;
}

/* 线路图片轮播 */
.route-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 680px;
    background: #000;
}

.route-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.route-carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.route-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.route-carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.route-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.route-carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.route-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* 旧版地图样式（兼容） */
.map-with-bg {
    position: relative;
    width: 100%;
    aspect-ratio: 2713/2000;
    max-height: 750px;
}

.map-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.route-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.route-map-overlay .route-line {
    pointer-events: auto;
    cursor: pointer;
}

.route-map-overlay .nodes {
    pointer-events: auto;
}

/* 线路动画 - FRAGHT 风格：平滑绘制 */
.route-line {
    stroke-dashoffset: var(--dash-offset, 1600);
    animation: drawLine 2.5s ease-in-out forwards;
    animation-delay: var(--delay, 0s);
}

#routeNorth { --delay: 0.2s; --dash-offset: 1600; }
#routeNorthMoscow { --delay: 1.2s; --dash-offset: 300; }
#routeMiddle { --delay: 0.5s; --dash-offset: 1700; }
#routeMidBranch { --delay: 1.5s; --dash-offset: 400; }
#routeSouth { --delay: 0.8s; --dash-offset: 1600; }
#routeSouthKabul { --delay: 1.6s; --dash-offset: 250; }
#routeWest { --delay: 1.0s; --dash-offset: 1200; }
#routeWestSea { --delay: 1.8s; --dash-offset: 200; }

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

/* 节点淡入动画 */
.nodes > g {
    opacity: 0;
    animation: nodeFadeIn 0.6s ease forwards;
}
.nodes > g:nth-child(1) { animation-delay: 1.8s; } /* HQ */
.nodes > g:nth-child(2) { animation-delay: 2.0s; }
.nodes > g:nth-child(3) { animation-delay: 2.05s; }
.nodes > g:nth-child(4) { animation-delay: 2.10s; }
.nodes > g:nth-child(5) { animation-delay: 2.15s; }
.nodes > g:nth-child(6) { animation-delay: 2.25s; }
.nodes > g:nth-child(7) { animation-delay: 2.30s; }
.nodes > g:nth-child(8) { animation-delay: 2.35s; }
.nodes > g:nth-child(9) { animation-delay: 2.40s; }
.nodes > g:nth-child(10) { animation-delay: 2.45s; }
.nodes > g:nth-child(11) { animation-delay: 2.50s; }
.nodes > g:nth-child(12) { animation-delay: 2.55s; }
.nodes > g:nth-child(13) { animation-delay: 2.60s; }
.nodes > g:nth-child(14) { animation-delay: 2.65s; }
.nodes > g:nth-child(15) { animation-delay: 2.70s; }
.nodes > g:nth-child(16) { animation-delay: 2.75s; }
.nodes > g:nth-child(17) { animation-delay: 2.80s; }

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

/* 节点脉冲动画 */
.node-pulse-ring {
    animation: nodePulse 2.5s infinite ease-out;
}

@keyframes nodePulse {
    0% { r: 6px; opacity: 0.5; }
    100% { r: 20px; opacity: 0; }
}

/* 线路卡片 */
.route-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.route-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.route-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.route-card-color {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.route-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 4px;
}

.route-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.route-card-days {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-en);
}

/* === 核心优势 === */
.advantages-section {
    background: var(--bg-card);
    color: #fff;
}

.advantages-section .section-tag {
    color: var(--primary);
}

.advantages-section .section-tag svg {
    fill: var(--primary);
}

.advantages-section .section-title {
    color: #fff;
}

.advantages-section .section-desc {
    color: rgba(255,255,255,0.6);
}

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

.advantage-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: var(--transition);
}

.advantage-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-4px);
}

.advantage-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.advantage-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.advantage-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* === 服务流程 === */
.process-section {
    background: var(--bg-dark);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 36px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    position: relative;
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.step-number {
    font-family: var(--font-en);
    font-size: 56px;
    font-weight: 900;
    color: rgba(245, 158, 11, 0.08);
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.step-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.process-step p {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

/* === CTA 联系区域 === */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 50%, var(--bg-card) 100%);
}

.cta-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: start;
    padding: 80px 0;
}

.cta-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin-bottom: 40px;
}

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

.cta-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
}

.cta-contact-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.cta-contact-item strong {
    display: inline;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-en);
    margin-right: 4px;
}

.cta-contact-item span {
    font-size: 15px;
    font-weight: 500;
}

/* 联系表单 */
.contact-form {
    background: rgba(15, 23, 42, 0.95);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 28px;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-family: var(--font-cn);
    color: #fff;
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select option {
    background: var(--secondary);
    color: #fff;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: 8px;
    padding: 14px;
    font-size: 15px;
}

/* === 页脚 === */
.footer {
    position: relative;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact li {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

.footer-bottom {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

/* === 动画 === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .cta-content {
        gap: 48px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(2, 6, 23, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        gap: 32px;
    }

    .stat-number {
        font-size: 36px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 44px;
    }

    .ports-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-form {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .route-cards {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   动态轨迹动画样式
   Route Animation Styles
   ============================================ */

.route-animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 20;
}

.route-animation-layer {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* 路线组 */
.route-group {
    transition: opacity 0.5s ease;
}

.route-group .route-bg {
    filter: blur(4px);
}

.route-group .route-main {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.route-group .route-flow {
    animation: routeFlow 1s linear infinite;
}

@keyframes routeFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -50; }
}

/* 车辆动画 */
.vehicle {
    transition: opacity 0.3s ease;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3));
}

.vehicle g {
    transform-origin: center;
}

/* 口岸脉冲效果 */
.port-pulse {
    pointer-events: none;
}

.port-pulse circle:first-child {
    animation: portPulse 2s ease-out infinite;
}

@keyframes portPulse {
    0% {
        r: 8;
        opacity: 0.8;
    }
    50% {
        r: 20;
        opacity: 0;
    }
    100% {
        r: 8;
        opacity: 0.8;
    }
}

/* 路线渐显动画 */
.route-line {
    animation: drawLine 2s ease-out forwards;
}

@keyframes drawLine {
    from {
        stroke-dashoffset: var(--path-length, 2000);
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* 地图容器调整 */
.map-wrapper {
    position: relative;
    overflow: hidden;
}

.route-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .route-animation-container {
        display: none; /* 移动端隐藏复杂动画 */
    }

    .route-carousel-wrap {
        gap: 10px;
        padding: 0 8px;
    }

    .route-carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .route-carousel-arrow svg {
        width: 16px;
        height: 16px;
    }
}
