:root {
    --bg-warm: #faf8f5;
    --bg-card: #ffffff;
    --bg-soft: #f5f0eb;
    --text-primary: #2c2c2c;
    --text-secondary: #6b6b6b;
    --text-muted: #999999;
    --accent: #d4845a;
    --accent-light: #f0e6df;
    --accent-dark: #b86a45;
    --border-light: #e8e0d8;
    --shadow-soft: 0 2px 12px rgba(0,0,0,0.06);
    --radius: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Serif SC', 'Microsoft YaHei', serif;
    background: var(--bg-warm);
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 16px;
}

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

section { padding: 64px 0; }

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-align: center;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.7;
    text-align: center;
}

/* ── Hero ── */
.hero {
    padding: 80px 0 48px;
    background: var(--bg-warm);
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 1px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

.author-line {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.author-line strong { color: var(--text-primary); }

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 36px;
}

.hero-stat .num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}
.hero-stat .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 132, 90, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(212, 132, 90, 0.4);
}

.btn-large {
    padding: 16px 44px;
    font-size: 1.1rem;
}

.btn-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-top: 10px;
}

.hero-price {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.price-now {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}

.price-old {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 8px;
}

.price-note {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* ── Story Section ── */
.story {
    background: var(--bg-soft);
}

.story-content {
    max-width: 720px;
    margin: 0 auto;
}

.story-content p {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 2;
}

.story-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Screenshots ── */
.screenshots {
    background: var(--bg-warm);
}

.screenshot-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.screenshot-item {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
    cursor: pointer;
    background: var(--bg-card);
    position: relative;
    width: 100%;
    min-height: 100px;
}

.screenshot-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    min-height: 120px;
    object-fit: contain;
    background: var(--bg-soft);
}

.screenshot-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.3;
}

.screenshot-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ── Categories ── */
.categories {
    background: var(--bg-soft);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 14px 12px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.category-card:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-soft);
}

.cat-icon { font-size: 1.1rem; }

.cat-count {
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    margin-left: 2px;
}

/* ── FAQ ── */
.faq {
    background: var(--bg-soft);
}

.faq-list {
    max-width: 680px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: color 0.25s;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
    font-size: 1.3rem;
    transition: transform 0.3s;
    color: var(--accent);
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 20px 16px;
}

/* ── Pricing ── */
.pricing {
    text-align: center;
    padding: 32px 0;
}

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-soft);
}

.pricing-price {
    margin-bottom: 20px;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: 12px;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.pricing-features {
    list-style: none;
    margin-bottom: 20px;
    text-align: center;
}

.pricing-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ── Final CTA ── */
.final-cta {
    text-align: center;
    background: var(--bg-warm);
    padding: 48px 0;
}

.final-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.final-cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

/* ── Footer ── */
footer {
    background: var(--bg-soft);
    text-align: center;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
}

footer p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ── Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius);
    padding: 32px;
    max-width: 400px;
    width: 92%;
    position: relative;
    animation: scaleIn 0.25s ease;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.modal-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close:hover { color: var(--text-primary); }

.modal-header { text-align: center; margin-bottom: 20px; }

.modal-header h3 { font-size: 1.2rem; }

.modal-tip {
    text-align: center;
    background: var(--accent-light);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    color: var(--accent-dark);
    font-size: 0.9rem;
}

.modal-tip strong { color: var(--accent-dark); }

.wechat-info {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.wechat-qr { flex-shrink: 0; }

.qr-img {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    object-fit: cover;
    display: block;
}

.wechat-details { flex: 1; }

.wechat-id-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 2px;
}

.wechat-id {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    user-select: all;
}

.copy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s;
}

.copy-btn:hover { background: var(--accent-dark); }

.copy-hint {
    color: #27ae60;
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.modal-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
}

.step {
    background: var(--bg-soft);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    text-align: center;
}

.step-arrow { color: var(--accent); font-weight: 600; }

/* ── Category Overlay ── */
.cat-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
}

.cat-overlay.active { display: flex; }

.cat-overlay-content {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius);
    padding: 28px;
    max-width: 540px;
    width: 92%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: scaleIn 0.25s ease;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.cat-overlay-close {
    position: absolute;
    top: 10px; right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.cat-overlay-close:hover { color: var(--text-primary); }

.cat-detail-header { text-align: center; margin-bottom: 16px; }
.cat-detail-icon { font-size: 2rem; display: block; margin-bottom: 6px; }
.cat-detail-header h3 { font-size: 1.3rem; }
.cat-detail-count { color: var(--text-muted); font-size: 0.85rem; }

.cat-detail-samples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cat-sample-item {
    background: var(--bg-warm);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.cat-sample-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s;
}

.cat-sample-item img:hover { transform: scale(1.04); }

.cat-sample-item span {
    display: block;
    padding: 6px 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-sample-more {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 10px;
    background: var(--bg-warm);
    border-radius: 6px;
    border: 1px dashed var(--border-light);
}

/* ── Image Viewer ── */
.img-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.88);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.25s ease;
    padding: 32px;
}

.img-overlay.active { display: flex; }

.img-overlay-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.6;
    z-index: 1;
}

.img-overlay-close:hover { opacity: 1; }

.img-viewer-content {
    max-width: 92%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

/* ── Animations ── */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}


/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 24px; }
    .hero-stat .num { font-size: 1.5rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .screenshot-gallery { gap: 8px; }
    .cat-detail-samples { grid-template-columns: 1fr; }
    .btn-large { padding: 14px 30px; font-size: 1rem; }
    .pricing-card { padding: 24px 20px; }
    .current-price { font-size: 2.4rem; }
    .pricing-card { padding: 28px 20px; }
    .current-price { font-size: 2rem; }
    .wechat-info { flex-direction: column; text-align: center; }
    .modal-steps { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    section { padding: 48px 0; }
    .section-title { font-size: 1.3rem; }
    .cat-overlay-content { padding: 20px; max-height: 90vh; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.6rem; }
    .categories-grid { grid-template-columns: 1fr; gap: 6px; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .screenshot-gallery { gap: 6px; }
    .pricing-card { padding: 20px 16px; }
    .current-price { font-size: 2rem; }
    .pricing-card { padding: 24px 16px; }
    .modal-content { padding: 24px 16px; }
}
