html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 50px 60px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #0088cc;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: #888;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #0088cc, #00a0e9);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.nav {
    display: flex;
    gap: 25px;
}

.nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #fff;
}

/* 汉堡菜单 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 横幅 */
.hero {
    background: linear-gradient(135deg, #0088cc, #006699);
    padding: 40px 0;
    text-align: center;
    color: #fff;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    font-size: 13px;
    opacity: 0.8;
}

/* 商品区域 */
.products {
    padding: 25px 0;
}

.section-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    padding-left: 10px;
    border-left: 4px solid #0088cc;
}

.product-category {
    margin-bottom: 25px;
}

.category-title {
    font-size: 16px;
    color: #333;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.15);
    transform: translateY(-2px);
}

.product-info h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.product-info p {
    font-size: 13px;
    color: #888;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #ff5722;
}

.buy-btn {
    background: linear-gradient(135deg, #0088cc, #00a0e9);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-btn:hover {
    background: linear-gradient(135deg, #006699, #0088cc);
    box-shadow: 0 3px 10px rgba(0, 136, 204, 0.4);
}

/* 优势区域 */
.features {
    padding: 40px 0;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 25px 15px;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.feature-item p {
    font-size: 13px;
    color: #888;
}

/* 页脚 */
.footer {
    padding: 25px 0;
    background: #333;
    text-align: center;
}

.footer p {
    color: #aaa;
    font-size: 13px;
}

.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: #0088cc;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0088cc, #00a0e9);
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.active {
        max-height: 200px;
    }

    .nav a {
        padding: 15px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-num {
        font-size: 22px;
    }

    .product-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .product-price {
        width: 100%;
        justify-content: space-between;
    }

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

    .modal-content {
        padding: 35px 25px;
        margin: 0 15px;
    }
}
