/* 页面顶部通栏 */
@font-face {
    font-family: 'iconfont';
    src: url('iconfont.ttf?t=1776951465403') format('truetype');
}
.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.page-banner {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: center;
}

.banner-content {
    color: #fff;
}

.banner-content h1 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-path {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.banner-path a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.banner-path a:hover {
    color: var(--bright-red);
}

.banner-path span {
    color: rgba(255, 255, 255, 0.7);
}

.banner-path .current {
    color: var(--bright-red);
    font-weight: 500;
}

/* 面包屑导航 */
.breadcrumb-section {
    padding: 15px 0;
}

.breadcrumb-section .container {
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--bright-red);
}

.breadcrumb span {
    color: #999;
}

.breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 产品详情主体 */
.product-detail-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.product-detail-section .container {
    position: relative;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start; /* 改回 start，让两侧按内容自然高度 */
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* 左侧图片区域 */
.product-images {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    /* aspect-ratio: 1; */ /* 移除固定宽高比，让高度由 JS 动态控制 */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f9f9f9;
    /* max-height: 450px; */ /* 移除最大高度限制，由 JS 动态控制 */
    min-height: 280px; /* 设置最小高度，与 JS 保持一致 */
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 改为 cover，填充容器，避免留白和模糊 */
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail-item {
    aspect-ratio: 1;
    border: 2px solid rgba(31, 31, 51, 0.1);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: #ff5000;
    color: #ff5000;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右侧信息区域 */
.product-info-panel {
    padding: 10px 0; /* 减小上下内边距 */
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 20px;
    color: #333;
    line-height: 1.3; /* 减小行高 */
    text-align: left;
    margin-bottom: 15px; /* 添加底部间距 */
}

/* 价格区域 */
.price-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px; /* 减小底部间距 */
}

.current-price {
    display: flex;
    margin: 8px 0 15px; /* 减小外边距 */
    align-items: baseline;
    gap: 2px;
}

.currency-symbol {
    font-size: 18px;
    color: #ff5000;
    font-weight: bold;
}

.price-value {
    font-size: 28px;
    color: #ff5000;
    font-weight: bold;
}

/* 服务承诺 */
.service-promises {
    margin-bottom: 10px; /* 减小底部间距 */
}

.promise-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px; /* 减小间距 */
    font-size: 13px;
    color: #666;
    line-height: 1.4; /* 减小行高 */
}

.promise-icon {
    color: rgba(9, 9, 10, .92);
    font-size: 22px;
    line-height: 22px;
}

/* 规格选择 */
.spec-section {
    margin-bottom: 15px; /* 减小底部间距 */
}

.spec-row {
    display: flex;
    align-items: flex-start;
}

/* 需要换行的规格行 */
.spec-row-wrap {
    flex-wrap: wrap;
}

.spec-row-wrap .spec-label {
    min-width: 80px;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.spec-row-wrap .size-options,
.spec-row-wrap .color-options,
.spec-row-wrap .install-type-options {
    flex: 1 1 100%;
    margin-left: 0;
    padding-left: 0;
}

.spec-row-wrap .quantity-selector-wrapper {
    flex: 1 1 100%;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.spec-row-wrap .quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    width: auto;
}

.spec-label {
    min-width: 80px;
    font-size: 14px;
    color: #999;
    padding-top: 5px; /* 减小顶部间距 */
    line-height: 1.4; /* 减小行高 */
}

/* 尺寸选择 */
.size-options,
.color-options,
.install-type-options {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.size-btn,
.color-btn,
.install-type-btn {
    margin: 0 8px 5px 0; /* 减小底部间距 */
    height: 36px; /* 减小按钮高度 */
    padding: 0px 12px;
    border: 1px solid rgba(31, 31, 51, 0.1);
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #333;
    position: relative;
    line-height: 36px; /* 与高度一致 */
}

.size-btn:hover,
.color-btn:hover,
.install-type-btn:hover {
    border-color: #ff5000;
    color: #ff5000;
}

.size-btn.active,
.color-btn.active,
.install-type-btn.active {
    border-color: #ff5000;
    color: #ff5000;
    background: #fff;
}

.color-text {
    display: inline-block;
}

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

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: #e0e0e0;
}

.quantity-selector input {
    width: 40px;
    height: 32px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
}

.stock-info {
    margin-left: 15px;
    color: #999;
    font-size: 14px;
    padding-top: 6px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    flex-direction: row; /* 改为一行显示 */
    gap: 15px;
    margin: 15px 0; /* 减小外边距 */
    padding: 15px 0; /* 减小内边距 */
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.btn-buy-now {
    flex: 1; /* 平分宽度 */
    padding: 14px 30px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff5000 0%, #ff6a00 100%);
    color: #fff;
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #e64800 0%, #ff5000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
}

.btn-contact-service {
    flex: 1; /* 平分宽度 */
    padding: 14px 30px;
    border: 2px solid #ff5000;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #ff5000;
}

.btn-contact-service:hover {
    background: #ff5000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.3);
}

/* 产品信息 */
.product-meta {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.meta-item {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    min-width: 80px;
    color: #999;
}

.meta-value {
    color: #666;
}

/* 产品详情标签页 */
.product-tabs-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.product-tabs-section .container {
    position: relative;
}

.tabs-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-height: 600px; /* 提高默认高度 */
}

.tabs-header {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 40px;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--bright-red);
}

.tab-btn.active {
    color: var(--bright-red);
    font-weight: 500;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bright-red);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.detail-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
}

.detail-content img {
    max-width: 100%;
    height: auto;
}

/* 规格参数表格 */
.specs-table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.specs-table th {
    width: 150px;
    background: #f9f9f9;
    color: #666;
    font-weight: 500;
}

.specs-table td {
    color: #333;
}

/* 推荐产品 */
.related-products-section {
    padding: 40px 0;
    background: #f9f9f9;
}

.related-products-section .container {
    position: relative;
}

.related-products-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.related-products-section .section-title {
    text-align: center;
    margin-bottom: 30px;
}

.related-products-section .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-products-section .product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-products-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-products-section .product-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.related-products-section .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products-section .product-card:hover .product-image img {
    transform: scale(1.1);
}

.related-products-section .product-info {
    padding: 15px;
}

.related-products-section .product-info h4 {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-products-section .product-price {
    font-size: 18px;
    color: var(--bright-red);
    font-weight: bold;
}

/* 订单详情模态框样式 */
.order-detail-modal {
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
}

.order-detail-content {
    padding: 20px 0;
}

.order-detail-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.order-detail-section:last-child {
    border-bottom: none;
}

.order-detail-section h3 {
    font-size: 16px;
    color: var(--primary-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-blue);
    font-weight: 600;
}

.detail-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    min-width: 120px;
    color: #666;
    font-weight: 500;
}

.detail-value {
    flex: 1;
    color: #333;
    word-break: break-all;
}

.total-amount-row {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.total-amount {
    font-size: 20px;
    color: var(--bright-red);
    font-weight: bold;
}

/* 商品列表 */
.order-items-list {
    margin-top: 10px;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.order-item:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.item-info {
    flex: 1;
}

.item-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin-bottom: 5px;
}

.item-price {
    font-size: 13px;
    color: #666;
}

.item-quantity {
    font-size: 13px;
    color: #666;
    margin: 0 20px;
}

.item-subtotal {
    font-size: 16px;
    color: var(--bright-red);
    font-weight: bold;
    min-width: 100px;
    text-align: right;
}

/* 订单详情操作按钮 */
.order-detail-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-print-order,
.btn-close-detail {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-print-order {
    background: var(--primary-blue);
    color: white;
}

.btn-print-order:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-close-detail {
    background: #6b7280;
    color: white;
}

.btn-close-detail:hover {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-shipped {
    background: #dbeafe;
    color: #1e40af;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.payment-unpaid {
    background: #f3f4f6;
    color: #374151;
}

.payment-paid {
    background: #d1fae5;
    color: #065f46;
}

.payment-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* 联系客服模态框样式 */
.contact-service-modal {
    max-width: 550px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeInSimple 0.3s ease-out;
}

@keyframes modalFadeInSimple {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-service-modal h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-service-modal .form-group {
    margin-bottom: 20px;
    position: relative;
}

.contact-service-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
    transition: color 0.3s ease;
}

.contact-service-modal input,
.contact-service-modal textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
    box-sizing: border-box;
}

.contact-service-modal input:hover,
.contact-service-modal textarea:hover {
    border-color: #ffb380;
    background: #fff;
}

.contact-service-modal input:focus,
.contact-service-modal textarea:focus {
    outline: none;
    border-color: #ff5000;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 80, 0, 0.1);
}

.contact-service-modal textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.6;
}

.btn-submit-contact {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff5000 0%, #ff6a00 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 80, 0, 0.3);
    letter-spacing: 1px;
}

.btn-submit-contact:hover {
    background: linear-gradient(135deg, #e64800 0%, #ff5000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 80, 0, 0.4);
}

.btn-submit-contact:active {
    transform: translateY(0);
}

.btn-submit-contact:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .action-buttons {
        flex-direction: column; /* 手机上恢复垂直排列 */
        gap: 12px;
        margin: 20px 0;
        padding: 15px 0;
    }

    .btn-buy-now,
    .btn-contact-service {
        width: 100%; /* 手机上全宽 */
        padding: 12px 20px;
        font-size: 15px;
    }

    .contact-service-modal {
        max-width: 90%;
        margin: 20px;
    }

    .contact-service-modal h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .contact-service-modal input,
    .contact-service-modal textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn-submit-contact {
        padding: 14px;
        font-size: 15px;
    }
}
