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

:root {
    --jd-red: #e1251b;
    --jd-red-dark: #c8161d;
    --jd-orange: #ff6b35;
    --jd-gold: #ffd700;
    --text-dark: #1a1a1a;
    --text-muted: #666;
    --bg-light: #f0f2f5;
    --white: #fff;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(225, 37, 27, 0.1);
    --page-width: 1100px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    background: var(--jd-red);
    overflow: hidden;
}

.hero-inner {
    max-width: var(--page-width);
    margin: 0 auto;
}

.hero-banner {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
}

.hero-overlay-inner {
    max-width: var(--page-width);
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 0.85rem;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* ===== Layout ===== */
.page {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 1.1em;
    background: var(--jd-red);
    border-radius: 2px;
    flex-shrink: 0;
}

/* PC 双栏：左侧内容 + 右侧固定二维码 */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

.top-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.top-main .section {
    width: 100%;
    margin-bottom: 0;
}

/* ===== QR Card（PC 侧栏 + 底部共用） ===== */
.qr-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-card--sticky {
    position: sticky;
    top: 1.5rem;
}

.qr-card h2 {
    font-size: 1.2rem;
    color: var(--jd-red);
    margin-bottom: 0.35rem;
}

.qr-card .qr-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.qr-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    background: var(--white);
    border: 3px solid var(--jd-red);
    border-radius: 14px;
    margin: 0 auto 1rem;
}

.qr-wrapper img {
    width: 220px;
    height: 220px;
    image-rendering: pixelated;
}

.qr-price-tag {
    display: inline-block;
    background: linear-gradient(90deg, var(--jd-red), var(--jd-orange));
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 24px;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.qr-price-tag small {
    font-size: 0.8rem;
    font-weight: 400;
    text-decoration: line-through;
    opacity: 0.85;
    margin-left: 0.5rem;
}

.qr-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.qr-hint span {
    color: var(--jd-red);
    font-weight: 600;
}

/* ===== 购买按钮 ===== */
.btn-buy {
    display: inline-block;
    background: linear-gradient(90deg, var(--jd-red), var(--jd-orange));
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 24px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-buy:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-buy--block {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

.btn-buy--lg {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
}

/* ===== 价格对比 ===== */
.price-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    width: 100%;
}

.price-compare {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    margin-bottom: 1.25rem;
    width: 100%;
}

.price-item {
    flex: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 10px;
}

.price-item.market {
    background: #f0f0f0;
    position: relative;
}

.price-item.market::after {
    content: "VS";
    position: absolute;
    right: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--jd-red);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.price-item.jd {
    background: linear-gradient(135deg, #fff5f5, #ffe8e6);
    border: 2px solid var(--jd-red);
}

.price-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.price-value {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.price-item.market .price-value {
    color: #999;
    text-decoration: line-through;
}

.price-item.jd .price-value {
    color: var(--jd-red);
}

.price-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.price-save {
    text-align: center;
    background: linear-gradient(90deg, var(--jd-red), var(--jd-orange));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
}

.price-save strong {
    font-size: 1.2rem;
}

/* ===== 优势 ===== */
.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.advantage-item {
    background: var(--white);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.advantage-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 37, 27, 0.12);
}

.advantage-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.advantage-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.advantage-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== 套餐 ===== */
.package-row {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.package-highlight {
    background: linear-gradient(135deg, var(--jd-red), #ff4422);
    border-radius: var(--radius);
    padding: 1.75rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    color: var(--jd-red);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.package-highlight h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.package-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.package-value span {
    color: var(--jd-gold);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.benefit-item {
    text-align: center;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.4rem;
    font-size: 1.2rem;
}

.benefit-item span {
    font-size: 0.72rem;
    line-height: 1.3;
    display: block;
}

.benefit-count {
    font-size: 0.65rem;
    opacity: 0.85;
}

.package-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.package-original {
    font-size: 0.95rem;
    text-decoration: line-through;
    opacity: 0.8;
}

.package-final {
    font-size: 2.25rem;
    font-weight: 800;
}

.package-final small {
    font-size: 1rem;
}

.package-note {
    font-size: 0.75rem;
    opacity: 0.85;
    margin-top: 0.6rem;
}

.package-highlight .btn-buy {
    background: var(--white);
    color: var(--jd-red);
    margin-top: 1rem;
}

.package-highlight .btn-buy:hover {
    background: #fff5f5;
}

.poster-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: contain;
}

/* ===== 物料图 ===== */
.materials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.material-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.material-block .section-title {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.material-img {
    border-radius: 8px;
    width: 100%;
}

/* ===== 底部大二维码 ===== */
.qr-bottom {
    margin-top: 0.5rem;
}

.qr-bottom .qr-wrapper img {
    width: 260px;
    height: 260px;
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    padding: 2rem 1rem 1rem;
    font-size: 0.8rem;
    color: #999;
    border-top: 1px solid #e0e0e0;
    margin-top: 1rem;
}

.footer a {
    color: #999;
    text-decoration: none;
}

.footer a:hover {
    color: var(--jd-red);
}

/* ===== 移动端底部固定栏 ===== */
.sticky-cta {
    display: none;
}

/* ===== 平板 ===== */
@media (max-width: 900px) {
    .top-grid {
        grid-template-columns: 1fr;
    }

    .qr-card--sticky {
        position: static;
    }

    .qr-card--aside {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
        width: 100%;
    }

    .package-row {
        grid-template-columns: 1fr;
    }

    .package-row .poster-img {
        max-width: 400px;
        margin: 0 auto;
    }

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

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

/* ===== 手机 ===== */
@media (max-width: 600px) {
    body {
        padding-bottom: 80px;
    }

    .page {
        padding: 0 1rem 1.5rem;
    }

    .hero-banner {
        max-height: 220px;
    }

    .hero-overlay {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.25rem;
    }

    .hero-tag {
        font-size: 0.75rem;
    }

    .top-grid {
        margin-top: 1rem;
        gap: 1.25rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .price-compare {
        gap: 1.25rem;
    }

    .price-value {
        font-size: 1.6rem;
    }

    .price-item.market::after {
        right: -1.1rem;
        width: 1.6rem;
        height: 1.6rem;
        font-size: 0.65rem;
    }

    .advantages {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .advantage-item {
        padding: 1rem 0.75rem;
    }

    .advantage-icon {
        font-size: 1.5rem;
    }

    .advantage-item h3 {
        font-size: 0.85rem;
    }

    .advantage-item p {
        font-size: 0.72rem;
    }

    .benefits-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.4rem;
    }

    .benefit-icon {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.9rem;
    }

    .benefit-item span {
        font-size: 0.58rem;
    }

    .package-final {
        font-size: 1.75rem;
    }

    .qr-wrapper img {
        width: 180px;
        height: 180px;
    }

    .qr-bottom .qr-wrapper img {
        width: 200px;
        height: 200px;
    }

    /* 侧栏二维码在手机端隐藏，用底部固定栏代替 */
    .qr-card--aside {
        display: none;
    }

    .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        border-top: 1px solid #eee;
        padding: 0.6rem 1rem;
        align-items: center;
        gap: 0.75rem;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .sticky-cta-qr {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        border: 2px solid var(--jd-red);
        border-radius: 8px;
        padding: 3px;
    }

    .sticky-cta-qr img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .sticky-cta-info {
        flex: 1;
        min-width: 0;
    }

    .sticky-cta-price {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--jd-red);
    }

    .sticky-cta-price small {
        font-size: 0.7rem;
        color: var(--text-muted);
        text-decoration: line-through;
        margin-left: 0.3rem;
        font-weight: 400;
    }

    .sticky-cta-text {
        font-size: 0.72rem;
        color: var(--text-muted);
    }

    .sticky-cta-btn {
        flex-shrink: 0;
        background: var(--jd-red);
        color: var(--white);
        padding: 0.55rem 1rem;
        border-radius: 20px;
        font-size: 0.85rem;
        font-weight: 600;
        text-decoration: none;
        white-space: nowrap;
    }
}
