/* 尚品购（ShangPinGou） - 三级商品详情页专用样式表 (detail.css) */

.detail-main {
    background-color: #ffffff;
    border-radius: 6px;
    padding: 25px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-intro {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

/* ================= 1. 图片放大镜组件 (.preview-wrap) ================= */
.preview-wrap {
    width: 400px;
}

.preview-wrap .main-img-box {
    width: 400px;
    height: 400px;
    border: 1px solid #e0e0e0;
    position: relative;
    cursor: crosshair;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-wrap .main-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 放大镜遮罩层 */
.preview-wrap .mask-lens {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background-color: rgba(228, 57, 60, 0.25);
    border: 1px solid #e4393c;
    pointer-events: none;
}

/* 右侧高清放大框 */
.preview-wrap .big-zoom-box {
    display: none;
    position: absolute;
    left: 415px;
    top: 0;
    width: 400px;
    height: 400px;
    border: 1px solid #cccccc;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 100;
}

.preview-wrap .big-zoom-box img {
    position: absolute;
    width: 800px;
    height: 800px;
    max-width: none;
}

/* 小缩略图切换列表 */
.preview-wrap .thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.preview-wrap .thumb-item {
    width: 68px;
    height: 68px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    transition: all 0.2s ease;
}

.preview-wrap .thumb-item.active,
.preview-wrap .thumb-item:hover {
    border-color: #e4393c;
}

.preview-wrap .thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ================= 2. 规格选择与参数 (.spec-wrap) ================= */
.spec-wrap {
    flex: 1;
}

.spec-wrap .detail-title {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.spec-wrap .detail-subtitle {
    font-size: 13px;
    color: #e4393c;
    margin-bottom: 15px;
}

.spec-wrap .price-panel {
    background-color: #fdeeee;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.spec-wrap .price-panel .label {
    font-size: 13px;
    color: #888888;
}

.spec-wrap .price-panel .current-price {
    font-size: 28px;
    font-weight: bold;
    color: #e4393c;
}

.spec-wrap .spec-group {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
}

.spec-wrap .spec-group .spec-label {
    width: 80px;
    font-size: 13px;
    color: #888888;
}

.spec-wrap .spec-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.spec-wrap .spec-option {
    border: 1px solid #cccccc;
    padding: 6px 14px;
    font-size: 13px;
    color: #333333;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spec-wrap .spec-option.active {
    border-color: #e4393c;
    color: #e4393c;
    background-color: #fff5f5;
    font-weight: bold;
}

/* 数量加减控制与加购按钮 */
.action-panel {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.count-selector {
    display: flex;
    border: 1px solid #cccccc;
    border-radius: 4px;
    overflow: hidden;
}

.count-selector button {
    width: 32px;
    height: 38px;
    background-color: #f5f5f5;
    font-size: 16px;
    font-weight: bold;
    color: #555555;
    transition: background-color 0.2s ease;
}

.count-selector button:hover {
    background-color: #e0e0e0;
}

.count-selector input {
    width: 50px;
    height: 38px;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.btn-add-cart {
    height: 42px;
    padding: 0 35px;
    background: linear-gradient(135deg, #e4393c, #c02d30);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(228, 57, 60, 0.3);
    transition: transform 0.2s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
}

/* ================= 3. Tab 选项卡内容区 (.detail-tabs) ================= */
.detail-tabs {
    margin-top: 30px;
    border-top: 2px solid #e4393c;
}

.tab-nav {
    display: flex;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.tab-nav-item {
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    border-right: 1px solid #eee;
}

.tab-nav-item.active {
    background-color: #ffffff;
    color: #e4393c;
    font-weight: bold;
    border-top: 2px solid #e4393c;
    margin-top: -2px;
}

.tab-content-panel {
    padding: 25px;
}

.tab-pane {
    display: none;
    line-height: 1.8;
}

.tab-pane.active {
    display: block;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.spec-table th, .spec-table td {
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 13px;
}

.spec-table th {
    background-color: #f9f9f9;
    width: 150px;
    text-align: left;
    color: #666;
}
