/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f0f2f5;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 56px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; border: 0; }
ul, ol { list-style: none; }
input, button { outline: none; font-family: inherit; border: none; }
.loading { text-align: center; padding: 30px 0; color: #999; font-size: 13px; }
.empty { text-align: center; padding: 30px 0; color: #ccc; font-size: 13px; }

/* ===== Variables ===== */
:root {
    --primary: #6e45e2;
    --primary-light: #88d3ce;
    --primary-dark: #5a35c0;
    --gradient: linear-gradient(135deg, #6e45e2, #88d3ce);
    --gradient-header: linear-gradient(135deg, #6e74f7, #7a41b7);
    --text: #333;
    --text-light: #999;
    --bg: #f0f2f5;
    --bg-card: #fff;
    --bg-tag: #f5f5f5;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ===== Header ===== */
.header {
    background: var(--gradient-header);
    color: #fff;
    padding: 0 0 4px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(110,69,226,0.2);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 20px 0;
}
.header-top {
    text-align: center;
    margin-bottom: 2px;
}
.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}
.header-subtitle {
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}
.header-search {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.92);
    border-radius: 22px;
    padding: 0 14px;
    height: 40px;
    margin-bottom: 12px;
}
.search-input {
    flex: 1;
    height: 100%;
    background: transparent;
    font-size: 14px;
    color: #333;
}
.search-input::placeholder { color: #aaa; }
.search-icon {
    font-size: 18px;
    color: var(--primary);
    cursor: pointer;
    padding: 0 4px;
}
.header-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tab-item {
    padding: 5px 18px;
    border-radius: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    transition: all 0.2s;
}
.tab-item.active {
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-weight: 600;
}

/* ===== Slogan (inside header, below title) ===== */
.slogan-hero {
    text-align: center;
    padding: 0 12px 2px;
}
.slogan-hero-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
}

/* ===== Banner ===== */
.banner-wrap {
    position: relative;
    overflow: hidden;
    background: #fff;
}
.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-item {
    flex: 0 0 100%;
}
.banner-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
}
.banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}
.banner-dot.active { background: #fff; }

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

/* ===== Card Section ===== */
.card-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 14px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-left: 10px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background: var(--gradient);
    border-radius: 2px;
}
.section-more {
    font-size: 13px;
    color: var(--text-light);
    transition: color 0.2s;
}
.section-more:hover { color: var(--primary); }

/* ===== Region Grid ===== */
.region-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.region-item {
    padding: 10px 6px;
    text-align: center;
    background: var(--bg-tag);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 2px solid transparent;
}
.region-item:hover {
    background: #ebebeb;
}
.region-item.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(110,69,226,0.3);
}

/* ===== Zone Grid ===== */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
}
.zone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.zone-item:hover { transform: translateY(-3px); }
.zone-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.zone-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.zone-no-img {
    color: #ccc;
    font-size: 12px;
}
.zone-name {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ===== Footer ===== */
.footer {
    background: #fff;
    margin-top: 12px;
    padding: 20px 0;
    text-align: center;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-links {
    margin-bottom: 8px;
    font-size: 13px;
}
.footer-links a {
    color: #666;
    margin: 0 4px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.footer-links .dot { color: #ddd; margin: 0 2px; }
.footer-copy {
    color: #ccc;
    font-size: 12px;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    padding: 0 10px;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 9px;
    gap: 1px;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 16px; line-height: 1; }
.nav-label { font-size: 9px; white-space: nowrap; }

/* ===== Scroll Top ===== */
.scroll-top {
    position: fixed;
    right: 16px;
    bottom: 70px;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 99;
    box-shadow: 0 3px 10px rgba(110,69,226,0.3);
    transition: opacity 0.3s;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
    .header-title { font-size: 22px; }
    .header-subtitle { font-size: 13px; }
    .header-search { height: 44px; }
    .search-input { font-size: 15px; }
    .tab-item { font-size: 14px; padding: 6px 22px; }

    .slogan-hero-text { font-size: 16px; }

    .banner-item img { height: 300px; }

    .main-content { padding: 0 16px; margin: 16px auto; }
    .card-section { padding: 20px 18px; margin-bottom: 16px; }
    .section-title { font-size: 18px; }

    .region-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
    .region-item { padding: 12px 8px; font-size: 14px; }

    .zone-grid { grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
    .zone-img { width: 84px; height: 84px; }

    .scroll-top { bottom: 24px; }
}

/* ===== PC (1024px+) ===== */
@media (min-width: 1024px) {
    .header-title { font-size: 24px; }
    .header-subtitle { font-size: 14px; }
    .header-search { height: 48px; max-width: 600px; margin-left: auto; margin-right: auto; }
    .tab-item { font-size: 15px; padding: 8px 28px; }

    .slogan-hero-text { font-size: 18px; }

    .banner-item img { height: 400px; }

    .main-content { padding: 0 20px; margin: 20px auto; }
    .card-section { padding: 24px 22px; margin-bottom: 20px; }
    .section-title { font-size: 20px; }

    .region-grid { grid-template-columns: repeat(7, 1fr); gap: 14px; }
    .region-item { padding: 14px 10px; font-size: 15px; }

    .zone-grid { grid-template-columns: repeat(7, 1fr); gap: 24px 20px; }
    .zone-img { width: 96px; height: 96px; }
}
