/* ============================================ */
/* 购买页面样式 - 字节风 Bytedance Design        */
/* ============================================ */

:root {
    --brand:#3370ff;
    --brand-d:#1456f0;
    --brand-bg:#eef3ff;
    --bg:#f5f6f7;
    --line:#eaecef;
    --t1:#1d2129;
    --t2:#4e5969;
    --t3:#86909c;
    --danger:#f53f3f;
    --ok:#00b42a;
    --warn:#ff7d00;
    --radius:15px;
    --shadow-card:0 4px 20px rgba(29,33,41,.05);
    --brand-shadow:0 8px 22px rgba(51,112,255,.26);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    min-height: 100vh;
    padding-top: 108px;
}

/* ============================================ */
/* 整体布局：三栏 */
/* ============================================ */
.web-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin: 0 auto;
}

/* ============================================ */
/* 左侧：商品展示区（字节风浅蓝卡 + 蓝色图标） */
/* ============================================ */
.product-showcase {
    flex: 0 0 280px;
    border-radius: 20px;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe6ff;
    box-shadow: var(--shadow-card);
    background: linear-gradient(160deg, #f2f6ff 0%, #e6efff 100%);
}

.showcase-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.showcase-icon {
    font-size: 80px;
    margin-bottom: 20px;
    color: var(--brand);
    filter: drop-shadow(0 4px 10px rgba(51,112,255,.18));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.showcase-region {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--t1);
}

.showcase-type {
    font-size: 14px;
    color: var(--t3);
    margin-bottom: 24px;
}

.showcase-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.showcase-tag {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #c6d8ff;
    color: var(--brand-d);
    font-weight: 500;
    width: fit-content;
}

.showcase-tag i {
    margin-right: 6px;
    color: var(--brand);
}

/* 装饰圆圈（淡蓝） */
.showcase-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(51,112,255,.08);
}
.deco-1 { width: 150px; height: 150px; top: -50px; right: -50px; }
.deco-2 { width: 100px; height: 100px; bottom: 30px; left: -30px; }
.deco-3 { width: 60px; height: 60px; top: 40%; right: 20px; }

/* ============================================ */
/* 中间：下单信息区 */
/* ============================================ */
.pay-box {
    flex: 0 0 380px;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
}

.pay-header { font-size: 15px; }

.product-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--t1);
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* 价格区域 */
.price-section {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
}
.price-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--danger);
}
.price-original {
    font-size: 16px;
    color: var(--t3);
    text-decoration: line-through;
}

/* 信息标签 */
.info-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}
.tag-stock { background: #e8ffea; color: var(--ok); }
.tag-shipping { background: var(--brand-bg); color: var(--brand-d); }

/* 表单组 */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 14px;
    color: var(--t2);
    margin-bottom: 8px;
    font-weight: 600;
}
.form-label i {
    margin-right: 6px;
    color: var(--brand);
}

/* 输入框 */
.input-type {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 14px;
    color: var(--t1);
    background: #fff;
    transition: all 0.2s;
    outline: none;
    margin: 0;
}
.input-type:focus {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(51,112,255,.12);
}
.input-type::placeholder { color: var(--t3); }

/* 支付方式 */
.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    position: relative;
}
.payment-option.selected {
    border-color: var(--brand);
    background: var(--brand-bg);
}
.payment-option i:first-child {
    font-size: 24px;
    color: var(--brand);
}
.payment-option span {
    flex: 1;
    font-size: 14px;
    color: var(--t1);
}
.check-icon {
    color: var(--brand);
    font-size: 16px;
}

/* 未选中的支付方式隐藏对勾；两个选项之间留间距 */
.payment-option:not(.selected) .check-icon { display: none; }
.payment-option + .payment-option { margin-top: 10px; }

/* 数量选择器（一体式） */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--line);
    background: #f7f8fa;
    cursor: pointer;
    font-size: 14px;
    color: var(--t2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: #fff;
}
.btn-minus { border-radius: 10px 0 0 10px; }
.btn-plus { border-radius: 0 10px 10px 0; }
.qty-input {
    width: 60px;
    height: 40px;
    border-top: 1.5px solid var(--line);
    border-bottom: 1.5px solid var(--line);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--t1);
    background: #fff;
    outline: none;
}

/* 立即下单按钮 - 字节蓝高亮 */
.order-btn-wrapper {
    margin: 28px 0 16px 0;
}
.pay-button-3 {
    width: 100%;
    height: 52px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    background: var(--brand);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--brand-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.pay-button-3:hover {
    background: var(--brand-d);
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(51,112,255,.32);
}
.pay-button-3:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(51,112,255,.24);
}

/* 信任标识 */
.trust-bar {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    margin-top: 16px;
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--t2);
}
.trust-item i {
    font-size: 20px;
    color: var(--brand);
}

/* ============================================ */
/* 右侧：产品详细信息 */
/* ============================================ */
.product-info {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--line);
    font-size: 14px;
}
.info-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--t1);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.info-title i { color: var(--brand); }

.seo-product-desc {
    background: #f7f8fa;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--t2);
    font-size: 13px;
}
.seo-product-desc p { margin: 0 0 10px 0; }
.seo-product-desc p:last-child { margin-bottom: 0; }
.seo-product-desc strong { color: var(--t1); }

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f7f8fa;
    border-radius: 10px;
    transition: all 0.2s;
}
.info-item:hover {
    background: var(--brand-bg);
    transform: translateY(-1px);
}
.info-icon {
    font-size: 18px;
    color: var(--brand);
    margin-top: 2px;
    flex-shrink: 0;
}
.info-item > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.info-label {
    font-size: 12px;
    color: var(--t3);
}
.info-value {
    font-size: 13px;
    color: var(--t1);
    font-weight: 500;
    word-break: break-all;
}

/* 注意事项 */
.info-notes {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.info-notes p {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: var(--t2);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}
.info-notes p:last-child { margin-bottom: 0; }
.info-notes i {
    color: var(--warn);
    flex-shrink: 0;
    margin-top: 3px;
}
.info-notes a {
    color: var(--brand);
    text-decoration: none;
    word-break: break-all;
}
.info-notes a:hover { text-decoration: underline; }

/* ============================================ */
/* 响应式适配 */
/* ============================================ */
@media(max-width: 1024px) {
    .web-content { flex-wrap: wrap; }
    .product-showcase {
        flex: 0 0 100%;
        min-height: 200px;
        order: 1;
    }
    .pay-box {
        flex: 1;
        min-width: 320px;
        order: 2;
    }
    .product-info {
        flex: 0 0 100%;
        order: 3;
    }
    .showcase-inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
        text-align: left;
    }
    .showcase-tags {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media(max-width: 768px) {
    body { padding-top: 112px; }
}

@media(max-width: 650px) {
    .web-content {
        padding: 12px;
        gap: 16px;
    }
    .product-showcase {
        min-height: 130px;
        padding: 20px 16px;
        border-radius: 16px;
    }
    .showcase-icon {
        font-size: 40px;
        margin-bottom: 8px;
    }
    .showcase-region {
        font-size: 17px;
        margin-bottom: 4px;
    }
    .showcase-type {
        font-size: 12px;
        margin-bottom: 12px;
    }
    .showcase-tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .showcase-tag { font-size: 11px; padding: 5px 10px; }
    .showcase-inner {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }
    .deco-1 { width: 100px; height: 100px; top: -30px; right: -30px; }
    .deco-2 { width: 70px; height: 70px; bottom: 20px; left: -20px; }
    .deco-3 { width: 40px; height: 40px; }
    .pay-box {
        padding: 20px;
        border-radius: 16px;
    }
    .product-info {
        padding: 20px;
        border-radius: 16px;
    }
    .info-grid { grid-template-columns: 1fr; }
    .price-value { font-size: 28px; }
    .trust-bar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .product-title { font-size: 16px; }
    .pay-button-3 {
        height: 48px;
        font-size: 16px;
    }
}
