/* 面包屑导航 */
.breadcrumb {
    margin: 20px auto;
    color: #999;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #2979ff;
}

.breadcrumb span {
    margin: 0 10px;
}

/* 商品详情布局 */
.product-detail {
    display: flex;
    gap: 40px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 商品图片区域 */
.product-gallery {
    position: relative;
    width: 500px;
}

.main-img {
    position: relative;
    width: 500px;
    height: 500px;
    border: 1px solid #e5e5e5;
}

.main-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.magnifier-box {
    display: none;
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.3);
    border: 1px solid #e5e5e5;
    cursor: move;
}

.main-img:hover .magnifier-box {
    display: block;
}

.zoom-view {
    display: none;
    position: absolute;
    top: 0;
    left: 520px;
    width: 500px;
    height: 500px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    z-index: 9;
}

.main-img:hover + .zoom-view {
    display: block;
}

.zoom-view img {
    position: absolute;
    width: 1250px;
    height: 1250px;
}

.thumb-list {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.thumb-list a {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
}

.thumb-list a:hover,
.thumb-list a.active {
    border-color: #2979ff;
}

.thumb-list img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 商品信息区域 */
.product-info {
    flex: 1;
}

.product-title {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.product-meta {
    padding: 20px;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 4px;
}

.price-box {
    margin-bottom: 10px;
}

.price-label {
    color: #999;
}

.price-value {
    margin: 0 10px;
    font-size: 28px;
    color: #ff2020;
    font-weight: bold;
}

.original-price {
    color: #999;
    text-decoration: line-through;
}

.sales-box {
    color: #666;
}

.sales-value {
    margin-left: 10px;
}

/* 规格选择 */
.product-attrs {
    margin-bottom: 30px;
}

.attr-item {
    margin-bottom: 20px;
}

.attr-title {
    margin-bottom: 10px;
    color: #666;
}

.attr-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attr-options a {
    padding: 5px 15px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #333;
}

.attr-options a:hover,
.attr-options a.active {
    border-color: #2979ff;
    color: #2979ff;
}

.quantity-box {
    display: flex;
    align-items: center;
}

.quantity-input {
    width: 60px;
    height: 32px;
    margin: 0 5px;
    text-align: center;
    border: 1px solid #e5e5e5;
}

.btn-minus,
.btn-plus {
    width: 32px;
    height: 32px;
    border: 1px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
}

.stock-info {
    margin-left: 15px;
    color: #999;
}

/* 购买按钮 */
.purchase-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.btn-add-cart,
.btn-buy-now {
    flex: 1;
    height: 50px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-add-cart {
    background: #fff;
    border: 1px solid #2979ff;
    color: #2979ff;
}

.btn-buy-now {
    background: #2979ff;
    color: #fff;
}

/* 服务承诺 */
.service-promises {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
}

.promise-item {
    display: flex;
    align-items: center;
    color: #666;
}

.promise-item i {
    margin-right: 5px;
}

/* 商��详情内容 */
.product-content {
    margin: 30px auto;
}

.content-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.content-tabs a {
    padding: 15px 30px;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.content-tabs a:hover,
.content-tabs a.active {
    color: #2979ff;
    border-bottom-color: #2979ff;
}

.content-main {
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

.content-main img {
    max-width: 100%;
} 