/* ==========================================================================
   Ili (Yili) City Microsite - Common Stylesheet (2026 Alpine Edition)
   Defensive Display Architecture & Emerald Valley & Sayram Lake Theme
   ========================================================================== */

:root {
    --color-primary: #0284c7;        /* Sayram Sapphire Azure */
    --color-primary-dark: #0369a1;   /* Deep Glacial Blue */
    --color-primary-light: #e0f2fe;  /* Alpine Sky Glow */
    --color-terracotta: #059669;     /* Nalati Pasture Emerald */
    --color-secondary: #0f172a;      /* Tianshan Slate & Night Sky */
    --color-accent: #f59e0b;          /* Golden Sunlight & Sunset Amber */
    --color-cyan: #0284c7;            /* Sayram Lake Turquoise */
    --color-jade: #059669;            /* Tianshan Spruce Green */
    --color-light: #f8fafc;           /* Crisp Mountain 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: #f59e0b;
    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: #f59e0b;
    border-bottom: 2px solid #f59e0b;
    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);
}

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

.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 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 12px 0;
}

.mobile-menu a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 6px 0;
}

.mobile-menu a.active {
    color: #f59e0b;
    font-weight: 700;
}

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

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

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

.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%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 24px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid #f59e0b;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 16px;
    text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0 0 28px;
    opacity: 0.95;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

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

.btn-primary {
    background: #d97706;
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(180,83,9,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ==========================================================================
   Page Header (for Subpages)
   ========================================================================== */
.page-header {
    background: linear-gradient(135deg, #78350f 0%, #0f172a 100%);
    color: #fff;
    padding: 56px 20px 48px;
    text-align: center;
    position: relative;
}

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

.page-header p {
    font-size: 1.1rem;
    margin: 0 auto;
    opacity: 0.9;
    max-width: 750px;
    line-height: 1.6;
}

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

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 44px 20px 80px;
}

.section-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.section-header h2 {
    font-size: 1.85rem;
    color: var(--color-dark);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* ==========================================================================
   Overview & Statistics
   ========================================================================== */
.overview-section {
    margin-bottom: 48px;
}

.overview-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: center;
}

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

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

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

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #f59e0b;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

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

/* ==========================================================================
   5 Major Navigation Cards (Quick Navigation)
   ========================================================================== */
.quick-nav-section {
    margin-bottom: 56px;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

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

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

.nav-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    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.15) 0%, rgba(15,23,42,0.85) 100%);
    z-index: 1;
}

.nav-card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    color: #fff;
    text-decoration: none;
}

.nav-card-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #d97706;
    color: #fff;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.nav-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: #fff;
}

.nav-card-desc {
    font-size: 0.82rem;
    color: #e2e8f0;
    margin: 0 0 12px;
    line-height: 1.5;
}

.nav-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fbbf24;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.nav-card:hover .nav-card-link {
    transform: translateX(4px);
}

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

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

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

.landmark-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e2e8f0;
}

.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;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(15,23,42,0.85);
    color: #fef08a;
    backdrop-filter: blur(4px);
}

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

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

.landmark-title {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
}

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

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

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

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

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

.meta-label {
    width: 90px;
    flex-shrink: 0;
    color: var(--color-text-muted);
    font-weight: 600;
}

.meta-val {
    color: #1e293b;
    flex-grow: 1;
}

/* Filter controls */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

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

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

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

.food-img-wrap {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

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

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

.food-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(180,83,9,0.9);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

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

.food-title {
    margin: 0 0 6px;
    font-size: 1.3rem;
    color: var(--color-dark);
}

.food-en-title {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--color-primary);
    font-weight: 600;
}

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

.food-tips {
    background: #fffbeb;
    border-left: 3px solid #d97706;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 0.84rem;
    color: #92400e;
}

/* ==========================================================================
   Timeline Section (History)
   ========================================================================== */
.timeline-section {
    position: relative;
    padding: 20px 0;
}

.timeline-track {
    position: relative;
    padding-left: 36px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 4px;
    background: linear-gradient(180deg, #b45309 0%, #d97706 100%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #b45309;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(180,83,9,0.3);
}

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

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: #f59e0b;
}

.timeline-epoch-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-title {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: var(--color-dark);
}

.timeline-desc {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 12px;
}

.timeline-highlight {
    background: #f8fafc;
    border-left: 3px solid #0284c7;
    padding: 8px 14px;
    border-radius: 0 4px 4px 0;
    font-size: 0.86rem;
    color: #0369a1;
}

/* ==========================================================================
   Guide Boxes & Travel Info
   ========================================================================== */
.guide-box {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.guide-box h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-red { background: #fee2e2; color: #b91c1c; }
.tag-blue { background: #e0f2fe; color: #0369a1; }
.tag-gold { background: #fef3c7; color: #b45309; }
.tag-green { background: #dcfce7; color: #15803d; }

.itinerary-day {
    border-left: 3px solid #b45309;
    padding-left: 18px;
    margin: 20px 0;
}

.itinerary-day h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    color: #0f172a;
}

.itinerary-day p {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
}

.step-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 14px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #b45309;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-right: 8px;
}

.chinahaul-crosslink-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 36px;
}

/* ==========================================================================
   Footer Component & Policy Modal
   ========================================================================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 56px 20px 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

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

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

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

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

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

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

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

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

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

.footer-network-item a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-network-item a:hover {
    color: #f59e0b;
}

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

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

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.85rem;
}

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

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

/* Modal - Ili, Kashgar & Universal Compatibility */
.ili-policy-modal, .kashgar-policy-modal, .bj-policy-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ili-policy-modal.active, .kashgar-policy-modal.active, .bj-policy-modal.active {
    display: flex;
}

.ili-modal-dialog, .kashgar-modal-dialog, .bj-modal-dialog {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.ili-modal-header, .kashgar-modal-header, .bj-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.ili-modal-header h3, .kashgar-modal-header h3, .bj-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--color-dark);
}

.ili-modal-close, .kashgar-modal-close, .bj-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 0;
}

.ili-modal-close:hover, .kashgar-modal-close:hover, .bj-modal-close:hover {
    color: #0f172a;
}

.ili-modal-body, .kashgar-modal-body, .bj-modal-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
}

.ili-modal-footer, .kashgar-modal-footer, .bj-modal-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
    margin-top: 20px;
    text-align: right;
}

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

.ili-modal-btn:hover, .kashgar-modal-btn:hover, .bj-modal-btn:hover {
    background: var(--color-primary-dark);
}

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

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1.05rem;
    }
    .main-nav {
        display: none;
    }
    .mobile-only {
        display: block;
    }
    .mobile-menu.active {
        display: block;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-policy-links a {
        margin: 0 8px;
    }
    .timeline-track {
        padding-left: 24px;
    }
    .timeline-track::before {
        left: 6px;
    }
    .timeline-item::before {
        left: -22px;
    }
}
