/* --- 产品详情页专属样式 --- */
.container { max-width: 1280px; }
.main-layout { padding: 30px 0 60px; }

.breadcrumb { font-size: 13px; color: #888; margin-bottom: 25px; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb a:hover { color: #00a0e9; }

.product-top {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}
.product-images { flex: 1; max-width: 550px; }
.main-image-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}
.main-image-box img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.thumb-item {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.thumb-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.thumb-item.active { border-color: #0056b3; }
.thumb-item:hover { border-color: #ccc; }

.product-details { flex: 1.2; }
.p-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.p-title { font-size: 28px; font-weight: 600; color: #1a1a1a; flex: 1; }

/* 收藏按钮 */
.btn-favorite {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e5e5;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-favorite:hover { border-color: #ff4d4f; color: #ff4d4f; }
.btn-favorite.active { background: #fff1f0; border-color: #ff4d4f; color: #ff4d4f; }

/* 统计行 */
.stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
    padding: 8px 0;
}
.stats-row .stat-item { display: inline-flex; align-items: center; gap: 4px; }
.stats-row .stat-item i { color: #aaa; }
.stats-row .stat-item strong { color: #0056b3; font-weight: 600; }
.stats-row .stat-divider { width: 1px; height: 12px; background: #e5e5e5; }
.p-new-tag {
    background: #0056b3;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 6px;
}
.p-subtitle { font-size: 14px; color: #666; margin-bottom: 15px; line-height: 1.6; }

/* 产品标签 */
.p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.p-tag-item {
    display: inline-block;
    padding: 3px 10px;
    background: #f0f7ff;
    color: #0056b3;
    border: 1px solid #bae0ff;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.price-block {
    background: #f8faff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}
.price-current { font-size: 28px; font-weight: 700; color: #0056b3; margin-right: 15px; }
.price-original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}
.price-discount {
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}
.price-estimate { display: block; margin-top: 8px; font-size: 13px; color: #888; }

.plan-section { margin-bottom: 20px; }
.plan-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    display: block;
}
.plan-options { display: flex; gap: 12px; flex-wrap: wrap; }
.plan-btn {
    min-width: 130px;
    padding: 12px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    box-sizing: border-box;
}
.plan-btn.active { border-color: #0056b3; background: #eaf4ff; color: #0056b3; }
.plan-btn:hover:not(.active) { border-color: #ccc; }
.plan-btn small { display: block; font-weight: 400; font-size: 12px; color: #999; margin-top: 4px; }
.plan-btn.sold-out {
    border-color: #ffd6d6;
    background: #fff1f0;
    color: #999;
}
.plan-btn.sold-out.active {
    border-color: #f5222d;
    background: #fff1f0;
    color: #f5222d;
}
.plan-btn.sold-out small { color: #bbb; }
.plan-btn.sold-out .sold-out-tag { color: #f5222d; font-weight: 600; }
.btn-cart:disabled, .btn-buy:disabled {
    background: #d9d9d9 !important;
    border-color: #d9d9d9 !important;
    color: #fff !important;
    cursor: not-allowed;
}

.quantity-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 6px 15px;
    background: #fff;
}
.qty-btn { background: none; border: none; font-size: 16px; cursor: pointer; color: #333; }
.qty-num { font-size: 16px; font-weight: 500; }
.stock-info { font-size: 13px; color: #888; }

.action-buttons { display: flex; gap: 15px; }
.btn-demo {
    padding: 14px 22px;
    background: #fff;
    border: 1px solid #52c41a;
    color: #52c41a;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.btn-demo:hover { background: #f6ffed; border-color: #73d13d; }
.btn-cart {
    flex: 1;
    padding: 14px;
    background: #fff;
    border: 1px solid #0056b3;
    color: #0056b3;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-cart:hover { background: #f0f7ff; }
.btn-buy {
    flex: 1.2;
    padding: 14px;
    background: #0056b3;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-buy:hover { background: #004494; }

.detail-tabs {
    display: flex;
    gap: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 30px;
    padding-bottom: 10px;
}
.detail-tab {
    font-size: 15px;
    color: #666;
    cursor: pointer;
    padding-bottom: 10px;
    margin-bottom: -11px;
    font-weight: 500;
}
.detail-tab.active { color: #0056b3; border-bottom: 3px solid #0056b3; }
.detail-tab:hover { color: #333; }

.detail-content p { font-size: 14px; color: #555; line-height: 1.8; margin-bottom: 20px; }
.detail-content h3 { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: #1a1a1a; }
.detail-content img { max-width: 100%; border-radius: 12px; margin: 10px 0; }

@media (max-width: 992px) {
    .product-top { flex-direction: column; }
    .product-images { max-width: 100%; }
}
@media (max-width: 768px) {
    .p-title-row { flex-direction: column; gap: 10px; }
    .plan-options { flex-direction: column; }
    .action-buttons { flex-direction: column; }
}
