/* ===== 全局重置 ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #457b9d;
    --accent: #f4a261;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #1d3557;
    --text-gray: #6c757d;
    --text-light: #adb5bd;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 头部导航 ===== */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== 英雄区域 ===== */
.hero {
    background: linear-gradient(135deg, #1d3557 0%, #457b9d 50%, #a8dadc 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '🏷️';
    position: absolute;
    bottom: 20px;
    right: 60px;
    font-size: 8rem;
    opacity: 0.1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #ffb703);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 4px;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ===== 通用区块 ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-gray);
    font-size: 1.05rem;
}

/* ===== 免税店网格 ===== */
.stores {
    padding: 80px 0;
}

.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.store-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.store-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), #a8dadc);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.store-card-image .store-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.store-card-body {
    padding: 20px;
}

.store-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.store-card-body .store-desc {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.store-card-body .store-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.store-tag {
    background: #e8f4f8;
    color: var(--secondary);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.store-card-body .store-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.store-card-body .store-link:hover {
    gap: 10px;
}

/* ===== 关于我们 ===== */
.about {
    padding: 80px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-card p {
    color: var(--text-gray);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.footer-info p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4,
.footer-disclaimer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: white;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 4px;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    line-height: 1.7;
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== 店铺详情页 ===== */
.store-detail {
    padding: 40px 0 80px;
}

.store-detail-header {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.store-detail-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), #a8dadc);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
}

.store-detail-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.store-detail-info .store-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.store-detail-info .store-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-detail-desc {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

.store-detail-desc h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.store-detail-desc p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.store-detail-desc ul {
    list-style: none;
    padding: 0;
}

.store-detail-desc ul li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-gray);
}

.store-detail-desc ul li::before {
    content: '✅';
    position: absolute;
    left: 0;
}

/* ===== 优惠券区域 ===== */
.coupons-section {
    margin-top: 40px;
}

.coupons-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.coupon-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.coupon-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.coupon-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-light);
}

.coupon-card-body {
    padding: 20px;
}

.coupon-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.coupon-card-body .coupon-desc {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.coupon-card-body .coupon-discount {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.coupon-card-body .coupon-actions {
    display: flex;
    gap: 10px;
}

.coupon-card-body .coupon-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
}

.btn-download {
    background: var(--secondary);
    color: white;
}

.btn-download:hover {
    background: #3a6b8a;
    transform: translateY(-2px);
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--secondary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    margin: 0 8px;
    color: var(--text-light);
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== 加载动画 ===== */
.loading {
    text-align: center;
    padding: 60px;
    color: var(--text-gray);
}

.loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 30px;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 16px;
    }

    .nav.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .stores-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .store-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .store-detail-info .store-meta {
        justify-content: center;
    }

    .coupons-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stores {
        padding: 50px 0;
    }

    .about {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 50px 0 40px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }

    .store-card-image {
        height: 140px;
    }
}
