/* ==========================================================================
   Altay City Microsite - Common Stylesheet (2026 Golden Mountain & Snow Capital Edition)
   Defensive Display Architecture & Glacial Lake & Powder Snow Theme
   Palette: Glacial Azure (#0284c7), Taiga Emerald (#059669), Golden Birch (#d97706)
   ========================================================================== */

:root {
    --color-primary: #0284c7;        /* Glacial Azure & Kanas Lake */
    --color-primary-dark: #0369a1;   /* Deep Taiga Lake */
    --color-primary-light: #e0f2fe;  /* Powder Snow Sky Glow */
    --color-taiga: #059669;          /* Siberian Spruce & Taiga Forest */
    --color-secondary: #0f172a;      /* Altai Mountain Slate */
    --color-accent: #d97706;         /* Golden Mountain Birch & Tuva Cabin */
    --color-accent-light: #fef3c7;   /* Warm Sunset Birch Glow */
    --color-light: #f8fafc;          /* Pure Snow White */
    --color-dark: #0f172a;
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 28px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --transition: all 0.25s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    background-color: var(--color-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Defensive Display: Zero Blank Screen Guarantee
   ========================================================================== */
.animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
}

/* ==========================================================================
   Bilingual System (Chinese & English)
   ========================================================================== */
html:not([lang="en"]):not(.lang-en) .en {
    display: none !important;
}
html:not([lang="en"]):not(.lang-en) .cn {
    display: inline;
}
html[lang="en"] .cn, html.lang-en .cn {
    display: none !important;
}
html[lang="en"] .en, html.lang-en .en {
    display: inline;
}

h1.cn, h2.cn, h3.cn, h4.cn, p.cn, div.cn, section.cn, span.block.cn {
    display: block !important;
}
html[lang="en"] h1.en, html[lang="en"] h2.en, html[lang="en"] h3.en, html[lang="en"] h4.en, html[lang="en"] p.en, html[lang="en"] div.en, html[lang="en"] span.block.en,
html.lang-en h1.en, html.lang-en h2.en, html.lang-en h3.en, html.lang-en h4.en, html.lang-en p.en, html.lang-en div.en, html.lang-en span.block.en {
    display: block !important;
}

/* ==========================================================================
   Navbar Component
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(10px);
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.main-nav a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
    color: #38bdf8;
    border-bottom: 2px solid #38bdf8;
    padding-bottom: 2px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #38bdf8;
}

.mobile-only {
    display: none;
}

/* 移动端菜单抽屉 */
.mobile-menu {
    display: none;
    background: #0f172a;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.active {
    display: block;
}
.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-menu li {
    margin: 12px 0;
}
.mobile-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 1rem;
    display: block;
}
.mobile-menu a.active {
    color: #38bdf8;
    font-weight: 700;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    padding: 60px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(2, 132, 199, 0.85);
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 18px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0 0 32px;
    color: #f1f5f9;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮规范 */
.btn-primary, .btn-secondary, .btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0284c7;
    color: #fff;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}
.btn-primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-2px);
}

.btn-accent {
    background: #d97706;
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
}
.btn-accent:hover {
    background: #b45309;
    transform: translateY(-2px);
}

/* ==========================================================================
   Page Header (for Subpages)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    padding: 60px 24px 44px;
    text-align: center;
    border-bottom: 3px solid #0284c7;
}

.page-header h1 {
    font-size: 2.4rem;
    margin: 0 0 12px;
    font-weight: 800;
}

.page-header p {
    color: #94a3b8;
    max-width: 800px;
    margin: 0 auto 16px;
    font-size: 1.05rem;
}

.page-header-meta {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
}

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

.section-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin: 0 0 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* Overview Section & Stats */
.overview-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 56px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.overview-text p {
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    background: #f0f9ff;
    border-color: #38bdf8;
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0284c7;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Quick Nav Grid (4 Cards)
   ========================================================================== */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 56px;
}

.nav-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.nav-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nav-card:hover .nav-card-bg {
    transform: scale(1.06);
}

.nav-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.88) 100%);
}

.nav-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    text-decoration: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.nav-card-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 6px;
}

.nav-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.nav-card-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 12px;
}

.nav-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Landmark Cards Grid
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cards-grid.two-col {
    grid-template-columns: repeat(2, 1fr);
}

.landmark-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.landmark-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.landmark-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.landmark-card:hover .landmark-img {
    transform: scale(1.05);
}

.landmark-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid rgba(56, 189, 248, 0.4);
}

.landmark-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.landmark-header-group {
    margin-bottom: 14px;
}

.landmark-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #0f172a;
}

.landmark-subtitle {
    font-size: 0.88rem;
    color: #0284c7;
    font-weight: 600;
}

.landmark-desc {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}

.landmark-meta-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.86rem;
    margin-top: auto;
}

.meta-row {
    display: flex;
    margin-bottom: 6px;
}

.meta-row:last-child {
    margin-bottom: 0;
}

.meta-label {
    font-weight: 600;
    color: #334155;
    width: 80px;
    flex-shrink: 0;
}

.meta-val {
    color: #64748b;
}

/* ==========================================================================
   Routes Section (4 Curated Routes)
   ========================================================================== */
.route-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.route-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.route-card:hover {
    border-color: #0284c7;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.route-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    background: #e0f2fe;
    color: #0284c7;
    margin-bottom: 12px;
}

.route-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
}

.route-desc {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.route-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid #e2e8f0;
    padding-left: 14px;
}

.route-steps li {
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 8px;
    position: relative;
}

.route-steps li::before {
    content: "";
    position: absolute;
    left: -19px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0284c7;
}

/* ==========================================================================
   Crosslink Banner (Regional Interconnection)
   ========================================================================== */
.chinahaul-crosslink-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-lg);
    padding: 36px;
}

/* ==========================================================================
   Footer Component & Silk Road Matrix
   ========================================================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 60px 0 24px;
    border-top: 1px solid #1e293b;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.3fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #cbd5e1;
}

.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-item {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 4px;
    color: #38bdf8;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.footer-network-item {
    margin-bottom: 10px;
}

.footer-network-item a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    transition: var(--transition);
}

.footer-network-item a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.footer-network-icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-network-tag {
    font-size: 0.72rem;
    background: rgba(2, 132, 199, 0.2);
    color: #38bdf8;
    padding: 2px 6px;
    border-radius: 3px;
}

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

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
}

.footer-nav-list a:hover {
    color: #38bdf8;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.footer-copy {
    color: #64748b;
}

.footer-policy-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 18px;
    transition: var(--transition);
}

.footer-policy-links a:hover {
    color: #38bdf8;
}

/* ==========================================================================
   Altay Policy Modal Component (Clean, No-bj Prefix)
   ========================================================================== */
.altay-policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.altay-modal-dialog {
    background: #fff;
    border-radius: var(--radius-md);
    max-width: 620px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.altay-modal-header {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.altay-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #0f172a;
}

.altay-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.altay-modal-body {
    padding: 24px 20px;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    max-height: 60vh;
    overflow-y: auto;
}

.altay-modal-body p {
    margin: 0 0 12px;
}

.altay-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.altay-modal-btn {
    background: #0284c7;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .quick-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-only {
        display: inline-flex;
    }
    .hero-content h1 {
        font-size: 2.1rem;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .route-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .cards-grid.two-col {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-policy-links a {
        margin: 0 10px;
    }
}
