/* ==========================================================================
   Turpan City Microsite - Common Stylesheet (2026 Silk Road & Oasis Edition)
   Defensive Display Architecture & Fire Oasis Theme
   Color Palette:
     - Flaming Red (火焰赤红): #dc2626 / #991b1b / #fee2e2
     - Oasis Green (绿洲清绿): #16a34a / #15803d / #dcfce7
     - Grape Gold  (葡萄金黄): #ca8a04 / #a16207 / #fef9c3
     - Kumtag Sand (羽状鸣沙): #d97706 / #b45309
     - Night Sky   (西域墨夜): #0f172a
   ========================================================================== */

:root {
    --color-primary: #dc2626;        /* Flaming Red 火焰赤红 */
    --color-primary-dark: #991b1b;   /* Deep Sandstone Red 赭红 */
    --color-primary-light: #fee2e2;  /* Soft Peach Red 霞晕淡赤 */
    --color-oasis: #16a34a;          /* Oasis Green 绿洲清绿 */
    --color-oasis-dark: #15803d;     /* Deep Poplar Green 翠绿 */
    --color-oasis-light: #dcfce7;    /* Spring Melt Light Green 泉润淡绿 */
    --color-grape-gold: #ca8a04;     /* Grape Gold 葡萄金黄 */
    --color-grape-dark: #a16207;     /* Amber Raisin 琥珀焦糖 */
    --color-grape-light: #fef9c3;    /* Golden Sun Tint 蜜金淡黄 */
    --color-desert: #d97706;         /* Kumtag Desert Amber 沙丘金褐 */
    --color-secondary: #0f172a;      /* Oasis Deep Night 幽夜玄青 */
    --color-light: #fdfbf7;          /* Silk Road Desert 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.06);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.12);
    --shadow-red: 0 8px 24px rgba(220, 38, 38, 0.18);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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 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 a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.logo a i {
    font-size: 1.35rem;
}

.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;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(220, 38, 38, 0.25);
    border: 1px solid rgba(220, 38, 38, 0.4);
}

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

.control-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.95rem;
}

.control-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.mobile-only {
    display: none;
}

.mobile-menu {
    display: none;
    background: #0f172a;
    border-bottom: 2px solid var(--color-primary);
    padding: 16px 24px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    color: #f1f5f9;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.05);
}

.mobile-menu a.active,
.mobile-menu a:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 60px 24px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.85) 100%);
}

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

.hero-tag {
    display: inline-block;
    background: rgba(220, 38, 38, 0.9);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #f1f5f9;
    max-width: 780px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.hero-badge-item {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Page Header (for Subpages)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #450a0a 100%);
    color: #fff;
    padding: 48px 24px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid var(--color-primary);
}

.page-header-content {
    max-width: 880px;
    margin: 0 auto;
}

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

.page-header p {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.7;
    margin: 0;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: #cbd5e1;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #f87171;
}

.breadcrumb span.divider {
    color: #64748b;
}

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

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

.section-tag {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
}

.section-desc {
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
}

/* ==========================================================================
   Overview Stats Section (Turpan Basin Records)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

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

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

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 6px;
}

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

/* ==========================================================================
   Heat Adaptation & Climate Rhythm (防暑防晒与节奏专区)
   ========================================================================== */
.heat-alert-box {
    background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
    border: 2px solid #fed7aa;
    border-left: 6px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
}

.heat-alert-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.heat-alert-header i {
    font-size: 1.8rem;
    color: var(--color-primary);
}

.heat-alert-header h3 {
    margin: 0;
    font-size: 1.35rem;
    color: #9a3412;
    font-weight: 800;
}

.heat-alert-intro {
    font-size: 0.98rem;
    color: #7c2d12;
    margin-bottom: 24px;
    line-height: 1.7;
}

.rhythm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

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

.rhythm-time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.rhythm-card.oasis .rhythm-time {
    background: #dcfce7;
    color: #15803d;
}

.rhythm-card.sunset .rhythm-time {
    background: #fef9c3;
    color: #854d0e;
}

.rhythm-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.rhythm-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   5 Major Quick Navigation Cards
   ========================================================================== */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.nav-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.nav-card-img-wrap {
    position: relative;
    height: 190px;
    overflow: hidden;
}

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

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

.nav-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15,23,42,0.85);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

.nav-card-body {
    padding: 22px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nav-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.nav-card-desc {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.nav-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==========================================================================
   Landmark Cards & Grid
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.landmark-card {
    background: #fff;
    border-radius: var(--radius-lg);
    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(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #fca5a5;
}

.landmark-img-box {
    position: relative;
    height: 230px;
    overflow: hidden;
}

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

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

.landmark-tag-top {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.landmark-tag-top.unesco {
    background: #0284c7;
}

.landmark-tag-top.oasis {
    background: var(--color-oasis);
}

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

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

.landmark-subtitle {
    font-size: 0.88rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.landmark-desc {
    font-size: 0.93rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.landmark-meta-list {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.84rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.landmark-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.landmark-meta-item i {
    width: 16px;
    color: var(--color-primary);
}

.landmark-tip {
    border-top: 1px dashed var(--color-border);
    padding-top: 12px;
    font-size: 0.82rem;
    color: #b45309;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

/* ==========================================================================
   Food Culture Section
   ========================================================================== */
.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

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

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

.food-img-box {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.food-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15,23,42,0.85);
    color: #fef08a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
}

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

.food-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.food-subtitle {
    font-size: 0.88rem;
    color: var(--color-grape-gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.food-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.food-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.food-tag {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
}

.food-spot {
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.83rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   History Timeline (6 Epochs of Cheshi & Gaochang)
   ========================================================================== */
.timeline-section {
    position: relative;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 20px 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px;
    width: 3px;
    background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-oasis) 50%, var(--color-desert) 100%);
    border-radius: 3px;
}

.timeline-epoch {
    position: relative;
    margin-bottom: 36px;
    padding-left: 68px;
}

.epoch-marker {
    position: absolute;
    left: 17px;
    top: 4px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.2);
}

.timeline-epoch:nth-child(even) .epoch-marker {
    border-color: var(--color-oasis);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.2);
}

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

.epoch-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.epoch-time {
    display: inline-block;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

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

.epoch-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.7;
    margin: 0 0 12px;
}

.epoch-highlight {
    background: #f8fafc;
    border-left: 3px solid var(--color-primary);
    padding: 10px 14px;
    font-size: 0.86rem;
    color: #334155;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ==========================================================================
   Travel Guide Components (Itinerary, Transit, Packing)
   ========================================================================== */
.guide-box {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 32px;
    margin-bottom: 40px;
}

.guide-box-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-box-title i {
    color: var(--color-primary);
}

.itinerary-card {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
    background: #fdfdfd;
}

.itinerary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.itinerary-tag {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.itinerary-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.itinerary-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.itinerary-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: #334155;
}

.step-badge {
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 2px;
}

.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.transport-card {
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.transport-icon {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.transport-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.transport-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Footer Component & Policy Modal
   ========================================================================== */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 60px 24px 30px;
    border-top: 4px solid var(--color-primary);
}

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

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

.footer-brand {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.badge-item {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    color: #cbd5e1;
}

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

.footer-network-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-network-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-network-item a:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fff;
    border-color: rgba(220, 38, 38, 0.4);
}

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

.footer-network-tag {
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    color: #94a3b8;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.footer-nav-list a:hover {
    color: #f87171;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
    color: #64748b;
}

.footer-policy-links {
    display: flex;
    gap: 18px;
}

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

.footer-policy-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   Turpan Policy Modal Component
   ========================================================================== */
.turpan-policy-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.turpan-modal-dialog {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: modalFadeIn 0.25s ease-out;
}

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

.turpan-modal-header {
    background: #0f172a;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.turpan-modal-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.turpan-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.turpan-modal-close:hover {
    color: #fff;
}

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

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

.turpan-modal-footer {
    padding: 14px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: flex-end;
}

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

.turpan-modal-btn:hover {
    background: var(--color-primary-dark);
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .mobile-only {
        display: flex;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .page-header h1 {
        font-size: 1.8rem;
    }
    .cards-grid,
    .food-grid {
        grid-template-columns: 1fr;
    }
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-policy-links {
        justify-content: center;
    }
    .timeline-section::before {
        left: 20px;
    }
    .timeline-epoch {
        padding-left: 54px;
    }
    .epoch-marker {
        left: 9px;
    }
}
