@charset "UTF-8";
/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 20px;
}

.breadcrumb .container {
    display: flex;
    align-items: center;
}

.breadcrumb a {
    color: #ff5000;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

.breadcrumb .current {
    color: #666;
}

/* 商品详情页主内容 */
.product-detail {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* 左侧商品信息区 */
.product-info {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    color: #999;
    font-size: 13px;
    margin-bottom: 5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.stock-status {
    color: #ff5000;
    font-weight: 600;
}

.stock-warning {
    color: #ff5000;
    font-weight: 600;
}

.price-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.current-price {
    font-size: 32px;
    color: #ff5000;
    font-weight: 700;
}

/* 支付方式 */
.payment-methods {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.payment-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    background-color: #e9ecef;
    border-color: #ff5000;
}

.payment-option.active {
    background-color: #fff9f5;
    border-color: #ff5000;
    color: #ff5000;
    font-weight: 600;
}

.payment-icon {
    margin-right: 8px;
    font-size: 16px;
}

/* 邮箱输入 */
.email-input-section {
    margin-bottom: 25px;
}

.email-input-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.email-input-container {
    margin-bottom: 10px;
}

.email-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.email-input:focus {
    outline: none;
    border-color: #ff5000;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.email-hint {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    display: none;
}

.email-valid {
    color: #ff5000;
    display: block;
}

.email-invalid {
    color: #ff5000;
    display: block;
}

/* 购买选项 */
.purchase-options {
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.quantity-label {
    margin-right: 15px;
    font-weight: 600;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background-color: #f8f9fa;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #e9ecef;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.action-buttons {
    display: flex;
    gap: 15px;
}

.btn-buy-now {
    flex: 1;
    background: linear-gradient(to right, #ff5000, #ff7e2e);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-buy-now i {
    margin-right: 10px;
}

.btn-buy-now:hover {
    background: linear-gradient(to right, #ff7e2e, #ff5000);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

/* 右侧购买须知 */
.purchase-notice {
    flex: 0 0 350px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.notice-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fff9f5;
    font-weight: 700;
}

.notice-list {
    list-style: none;
}

.notice-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: flex-start;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-icon {
    color: #ff5000;
    margin-right: 12px;
    font-size: 16px;
    margin-top: 3px;
}

.notice-content h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 15px;
}

.notice-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* 商品描述 */
.product-description {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.description-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fff9f5;
    font-weight: 700;
}

.description-content {
    line-height: 1.8;
    color: #666;
}

.description-content h3 {
    color: #333;
    margin: 20px 0 10px;
    font-size: 17px;
}

.description-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.description-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 10px;
}

.description-content li:before {
    content: "•";
    color: #ff5000;
    position: absolute;
    left: 0;
}

/* 相关商品 - 简化布局 */
.related-products {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #fff9f5;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.related-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border-left: 4px solid #ff5000;
    display: flex;
    flex-direction: column;
}

.related-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.related-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.related-item-price {
    color: #ff5000;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-item-stock {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.stock-label {
    color: #666;
    font-size: 14px;
    margin-right: 8px;
}

.stock-value {
    font-weight: 600;
    font-size: 14px;
}

.stock-in {
    color: #ff5000;
}

.stock-low {
    color: #ff9800;
}

.stock-out {
    color: #ff5000;
}

.related-item-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-item-btn {
    background-color: #ff5000;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: auto;
}

.related-item-btn:hover {
    background-color: #ff7e2e;
}

/* 文章列表 */
.article-list {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.article-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.3s;
    cursor: pointer;
}

.article-item:hover {
    border-color: #ff5000;
    background-color: #f9f9f9;
}

.article-category {
    display: inline-block;
    background-color: #fff9f5;
    color: #ff5000;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-excerpt {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 12px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    /* 商品详情适配 */
    .product-detail {
        flex-direction: column;
        gap: 20px;
    }
    
    .purchase-notice {
        flex: 0 0 auto;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .current-price {
        font-size: 28px;
    }
    
    .product-meta {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-buy-now {
        width: 100%;
    }
    
    .related-grid, .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
  
    .product-info, .purchase-notice, .product-description, .related-products, .article-list {
        padding: 20px 15px;
        margin-bottom: 70px; /* 为底部菜单留出空间 */
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-label {
        margin-bottom: 10px;
    }
    
}

@media (max-width: 480px) {
    .related-grid, .article-grid {
        grid-template-columns: 1fr;
    }
}