/* 商品详情页视觉统一 - 参照前台统一风格（主色 #0078ce / 辅色 #fa4c01） */

/* 详情主区容器：浅灰底 + 圆角卡片布局 */
.product-detail-main {
    background: #f5f7fa;
    border-radius: 14px;
    padding: 20px;
}

.product-detail-container {
    gap: 20px;
}

/* 左图 / 右信息 统一白卡片 */
.product-image-section,
.product-info-section {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 120, 206, 0.08);
}

.product-image-section { padding: 16px; }

.product-gallery {
    background: #f5f7fa;
    border-radius: 10px;
    padding: 24px;
}

.main-image { border-radius: 8px; }

/* 标题：深色 + 橙色下划线 */
.detail-title {
    font-size: 24px;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.35;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid #fa4c01;
}

/* 促销说明条 */
.product-remark {
    background: #fff7ed;
    border-radius: 8px;
    color: #9a3412;
    padding: 10px 14px;
    font-weight: 500;
}

/* 商品信息项：浅灰圆角块 */
.detail-info-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    text-align: left;
}

.detail-info-item label {
    width: 80px;
    color: #64748b;
    font-weight: 600;
    flex-shrink: 0;
}

.detail-info-item span {
    color: #1e293b;
    font-weight: 600;
    flex: 1;
}

/* 零售价格：橙色高亮块 */
.detail-price {
    background: #fff7ed;
    border-left: none;
    border-radius: 8px;
    color: #c2410c;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 16px;
    margin: 20px 0 12px;
    text-align: left;
}

/* 供货价格：蓝色高亮块 */
.supply-price {
    background: #eff8ff;
    border-left: none;
    border-radius: 8px;
    color: #0c4a6e;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 16px;
    margin: 12px 0;
}

/* 加入购物车（加入订单）区块 */
.add-to-order-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 120, 206, 0.06);
}

.add-to-order-section h3 {
    color: #0078ce;
    font-size: 17px;
    font-weight: 700;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #fa4c01;
}

/* 数量控件 */
.quantity-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 18px;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #0078ce;
    color: #0078ce;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

.quantity-btn:hover { background: #0078ce; color: #fff; }

.quantity-input {
    flex: 1;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.quantity-input:focus {
    outline: none;
    border-color: #0078ce;
    box-shadow: 0 0 0 3px rgba(0, 120, 206, 0.12);
}

/* 加入购物车主按钮：蓝色胶囊 */
.add-to-order-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 24px;
    background: #0078ce;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 120, 206, 0.25);
}

.add-to-order-btn:hover {
    background: #005a9e;
    box-shadow: 0 6px 16px rgba(0, 120, 206, 0.3);
}

.add-to-order-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

/* 未授权 / 未登录提示区 */
.add-to-order-section .text-gray { color: #64748b; }

.view-auth-status-link,
.login-btn-for-order {
    display: inline-block;
    background: #0078ce;
    color: #fff;
    border-radius: 20px;
    padding: 8px 24px;
    font-weight: 600;
    text-decoration: none;
}

.view-auth-status-link:hover,
.login-btn-for-order:hover { background: #005a9e; color: #fff; }

/* 移动端：信息项与价格块内边距微调 + 强制左对齐（覆盖 style.css 里 ≤768px 断点的居中样式） */
@media (max-width: 768px) {
    .product-detail-main { padding: 12px; }
    .detail-title { font-size: 20px; }
    .add-to-order-btn { height: 46px; }

    /* 强制覆盖 style.css 的下划线/居中，保持浅灰圆角块 + 左对齐 */
    .detail-info-item {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: left !important;
        padding: 10px 14px !important;
        background: #f8fafc !important;
        border: 1px solid #eef2f7 !important;
        border-radius: 8px !important;
        border-bottom: none !important;
        margin-bottom: 10px !important;
        font-size: 13px !important;
    }

    .detail-info-item label {
        width: 70px !important;
        font-size: 13px !important;
    }

    .detail-info-item span {
        font-size: 13px !important;
        flex: 1 !important;
    }

    .detail-price {
        text-align: left !important;
        font-size: 16px !important;
        padding: 12px 14px !important;
    }

    .supply-price {
        text-align: left !important;
        padding: 10px 14px !important;
    }
}

/* ≤480px：更小屏幕，保持左对齐 + 字号再小一点 */
@media (max-width: 480px) {
    .detail-title { font-size: 18px; }

    .detail-info-item {
        padding: 10px 12px !important;
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .detail-info-item label {
        width: 64px !important;
        font-size: 12px !important;
    }

    .detail-info-item span {
        font-size: 12px !important;
    }

    .detail-price {
        font-size: 15px !important;
    }
}
