/* ============================================================
   深夜书桌 · 商品商店样式
   ============================================================ */

:root {
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --bg-card-hover: #222633;
    --text: #e4e4e7;
    --text-secondary: #9ca3af;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --border: #2d3348;
    --success: #22c55e;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Noto Serif SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-hover);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.hero-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Product Grid */
.products {
    padding: 2rem 0;
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    color: var(--text);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    color: var(--text);
}

.product-card.bundle {
    border-color: var(--accent);
    background: linear-gradient(135deg, #1a1d27 0%, #1f1a10 100%);
}

.bundle-badge {
    position: absolute;
    top: 12px;
    right: -28px;
    background: var(--accent);
    color: #000;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 32px;
    transform: rotate(45deg);
}

.card-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-body h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* Trust Bar */
.trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.trust-icon {
    font-size: 1.2rem;
}

/* Product Detail */
.product-detail {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 0;
}

.back-link {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.detail-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.detail-emoji {
    font-size: 4rem;
    flex-shrink: 0;
}

.detail-info h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.detail-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.detail-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.detail-price .price {
    font-size: 2rem;
}

.detail-content {
    margin-bottom: 2rem;
}

.detail-highlights {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.detail-highlights h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--accent);
}

.detail-highlights ul {
    list-style: none;
}

.detail-highlights li {
    padding: 0.3rem 0;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-secondary);
}

.detail-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}

.feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.feature strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.feature p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Buy Section */
.buy-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.email-input {
    margin-bottom: 1.2rem;
    text-align: left;
}

.email-input label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.email-input input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.email-input input:focus {
    border-color: var(--accent);
}

.buy-btn {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.buy-note {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Redirect Page */
.redirect-page,
.waiting-page,
.download-page {
    text-align: center;
    padding: 4rem 0;
    max-width: 500px;
    margin: 0 auto;
}

.redirect-icon,
.waiting-icon,
.download-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.redirect-page h1,
.waiting-page h1,
.download-page h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.order-no {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: monospace;
}

/* Download Page */
.download-product {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.download-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: #000;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.download-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
    color: #000;
}

.download-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.download-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.2rem 0;
}

.download-thanks {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}

.download-thanks p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 0.3rem;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-sub {
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .detail-features {
        grid-template-columns: 1fr;
    }

    .trust {
        gap: 1rem;
    }

    .container {
        padding: 0 1rem 3rem;
    }
}
