/* ============================================
   商品详情页样式 - 优化版（PC+手机完美适配）
   ============================================ */

   .main-content {
    margin: 20px 0 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 15px 0 25px;
    font-size: 13px;
    color: #666;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #DD302D;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* ========== 商品主区域 - 两列布局 ========== */
.product-layout {
    display: flex;
    gap: 50px;
    margin-bottom: 50px;
    align-items: flex-start;
}

/* 左侧区域 */
.product-left {
    flex: 1;
    min-width: 0;
}

/* 右侧区域 */
.product-right {
    flex: 1;
    min-width: 0;
}

/* ========== 左侧图片区 ========== */
.product-gallery {
    margin-bottom: 20px;
}

.main-image {
    position: relative;
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #eee;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 产品标签 */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #DD302D;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== 信任标识（3个特点） ========== */
.trust-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.trust-badge-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.trust-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.trust-badge-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.trust-badge-text strong {
    font-size: 12px;
    color: #333;
    display: block;
}

.trust-badge-text span {
    font-size: 10px;
    color: #888;
}

/* ========== 配送信息卡片 ========== */
.delivery-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 20px 0;
}

.delivery-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.delivery-row:last-child {
    margin-bottom: 0;
}

.delivery-icon {
    font-size: 16px;
    min-width: 24px;
}

.delivery-label {
    font-weight: 600;
    color: #333;
    min-width: 110px;
}

.delivery-value {
    color: #555;
    flex: 1;
}

.delivery-value a {
    color: #DD302D;
    text-decoration: none;
}

.delivery-value a:hover {
    text-decoration: underline;
}

/* ========== 右侧区域样式 ========== */
.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.product-price {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.price-currency {
    font-size: 24px;
    font-weight: 600;
    color: #DD302D;
    vertical-align: top;
}

.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #DD302D;
}

/* 商品分区 */
.product-section {
    margin-bottom: 20px;
}

.product-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    border-left: 3px solid #DD302D;
    padding-left: 12px;
}

.product-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 购买按钮 */
.product-actions {
    margin: 20px 0;
}

.btn-add-to-cart {
    width: 100%;
    max-width: 280px;
    height: 52px;
    background: #DD302D;
    color: white;
    border: none;
    border-radius: 26px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    background: #b02623;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(221, 48, 45, 0.3);
}

.btn-add-to-cart i {
    font-size: 20px;
}

/* 信任声明 */
.trust-notice {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 10px;
}

.trust-item {
    font-size: 12px;
    color: #555;
    padding: 4px 0;
}

/* ========== 商品详情描述区 ========== */
.product-detail-section {
    border-top: 1px solid #eee;
    padding: 40px 0 30px;
    margin-top: 20px;
}

.product-detail-section h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #DD302D;
    display: inline-block;
}

.product-detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px 0;
}

.detail-content {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}

.delivery-policy p {
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.delivery-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.delivery-links a {
    color: #DD302D;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
}

.delivery-links a:hover {
    text-decoration: underline;
}

/* ========== 相关推荐 ========== */
.related-products {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.related-products h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 8px;
    border-bottom: 2px solid #DD302D;
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-item a {
    text-decoration: none;
}

.related-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #fafafa;
}

.related-info {
    padding: 12px;
    text-align: center;
}

.related-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin: 0 0 5px;
    line-height: 1.4;
    height: 38px;
    overflow: hidden;
}

.related-price {
    font-size: 16px;
    font-weight: 700;
    color: #DD302D;
}

/* ========== 平板端适配 ========== */
@media (max-width: 992px) {
    .product-layout {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-left {
        width: 100%;
    }
    
    .product-right {
        width: 100%;
    }
    
    .trust-badges {
        justify-content: space-between;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ========== 手机端适配 ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .breadcrumb {
        padding: 10px 0 15px;
        margin-bottom: 20px;
        font-size: 12px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .price-currency {
        font-size: 20px;
    }
    
    /* 信任标识手机端 - 3个横向排列，不换行 */
    .trust-badges {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .trust-badge-item {
        padding: 8px 4px;
        min-width: 0;
    }
    
    .trust-badge-icon {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .trust-badge-text strong {
        font-size: 9px;
    }
    
    .trust-badge-text span {
        font-size: 8px;
    }
    
    /* 配送信息手机端优化 */
    .delivery-info-card {
        padding: 12px 16px;
        margin: 15px 0;
    }
    
    .delivery-row {
        flex-direction: column;
        gap: 3px;
        margin-bottom: 10px;
    }
    
    .delivery-label {
        min-width: auto;
    }
    
    /* 购买按钮 - 第一屏就能看到 */
    .product-actions {
        margin: 15px 0;
    }
    
    .btn-add-to-cart {
        max-width: 100%;
        width: 100%;
    }
    
    /* 相关推荐 */
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .related-item img {
        height: 150px;
    }
    
    .related-info h3 {
        font-size: 12px;
        height: auto;
        white-space: normal;
    }
    
    .related-price {
        font-size: 14px;
    }
    
    /* 详情区 */
    .product-detail-section h2 {
        font-size: 18px;
    }
    
    .product-detail-section h3 {
        font-size: 16px;
    }
    
    .detail-content, .delivery-policy p {
        font-size: 13px;
    }
    
    .delivery-links a {
        font-size: 12px;
        margin-right: 10px;
    }
    
    /* 信任声明 */
    .trust-notice {
        padding: 10px 12px;
    }
    
    .trust-item {
        font-size: 11px;
    }
}

/* ========== 小手机端适配 ========== */
@media (max-width: 480px) {
    .product-title {
        font-size: 18px;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .price-currency {
        font-size: 18px;
    }
    
    .trust-badge-icon {
        font-size: 16px;
    }
    
    .trust-badge-text strong {
        font-size: 8px;
    }
    
    .trust-badge-text span {
        font-size: 7px;
    }
    
    .product-section h3 {
        font-size: 14px;
    }
    
    .product-content {
        font-size: 13px;
    }
    
    .delivery-row {
        font-size: 12px;
    }
    
    .related-grid {
        gap: 10px;
    }
    
    .related-item img {
        height: 120px;
    }
    
    .related-info {
        padding: 8px;
    }
    
    .related-info h3 {
        font-size: 11px;
    }
    
    .related-price {
        font-size: 12px;
    }
}