/* 页面基础样式 */
body {
    background: #f5f5f5;
    min-width: 1200px;
}

/* 页面主体布局 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background: #fff;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* 商品详情区 */
.detail-section {
    display: flex;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* 左侧预览区 */
.product-preview {
    width: 400px;
}

.preview-main {
    width: 400px;
    height: 400px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    overflow: hidden;
}

.preview-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-list {
    display: flex;
    gap: 10px;
}

.preview-list img {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: border-color 0.3s;
}

.preview-list img.active,
.preview-list img:hover {
    border-color: #ff6700;
}

/* 右侧信息区 */
.product-info {
    flex: 1;
    min-width: 0;
}

.product-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.product-meta {
    display: flex;
    gap: 40px;
    padding: 20px;
    margin-bottom: 20px;
    background: #fafafa;
    border-radius: 4px;
}

.price-box,
.sales-box {
    display: flex;
    align-items: center;
}

.price-label,
.sales-label {
    color: #999;
    margin-right: 10px;
}

.price-value {
    color: #ff6700;
    font-size: 28px;
    font-weight: bold;
}

.sales-value {
    color: #666;
}

/* 商品属性选择 */
.product-attrs {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.attr-item {
    margin-bottom: 20px;
}

.attr-label {
    display: block;
    color: #999;
    margin-bottom: 10px;
}

.attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attr-options a {
    padding: 8px 20px;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.attr-options a:hover,
.attr-options a.active {
    border-color: #ff6700;
    color: #ff6700;
    background: #fff4f0;
}

/* 数量选择器 */
.quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-box button {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.quantity-box button:hover {
    border-color: #ff6700;
    color: #ff6700;
}

.quantity-input {
    width: 60px;
    height: 32px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.stock-info {
    color: #999;
    margin-left: 15px;
}

/* 购买按钮 */
.product-btns {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.btn-buy,
.btn-cart {
    min-width: 180px;
    height: 48px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-buy {
    background: #ff6700;
    color: #fff;
}

.btn-buy:hover {
    background: #ff5000;
}

.btn-cart {
    background: #fef0e5;
    color: #ff6700;
}

.btn-cart:hover {
    background: #ffe4d1;
}

/* 商品详情tabs */
.detail-tabs {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tabs-header a {
    padding: 20px 40px;
    font-size: 16px;
    color: #666;
    position: relative;
    transition: all 0.3s;
}

.tabs-header a:hover {
    color: #ff6700;
}

.tabs-header a.active {
    color: #ff6700;
}

.tabs-header a.active:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #ff6700;
}

/* 详情内容区 */
.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 商品详情 */
.detail-content {
    color: #666;
    line-height: 1.8;
}

.detail-content h3 {
    font-size: 18px;
    color: #333;
    margin: 20px 0;
}

.detail-content p {
    margin-bottom: 15px;
}

.detail-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

/* 规格参数表 */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    border: 1px solid #eee;
    line-height: 1.6;
}

.specs-table th {
    width: 140px;
    text-align: right;
    background: #fafafa;
    color: #666;
}

.specs-table td {
    color: #333;
}

/* 用户评价 */
.reviews-list {
    padding: 20px 0;
}

.review-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    color: #666;
    font-size: 14px;
}

.review-stars {
    color: #ff6700;
    margin-bottom: 10px;
}

.review-content p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-images {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.review-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.review-time {
    color: #999;
    font-size: 12px;
}

/* footer样式调整 */
.footer {
    background: #fff;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
} 