@charset "UTF-8";
/* 主要内容区域 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    color: #6c757d;
}

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

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

.breadcrumb i {
    margin: 0 8px;
    color: #adb5bd;
}

/* 修改布局结构 */
.product-main-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 第一行：左侧商品标题+信息+右侧购买 */
.product-info-purchase-row {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    align-items: start; /* 改为顶部对齐 */
}

/* 左侧：商品标题、图片和商品信息 */
.product-info-section {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: auto; /* 改为自适应高度 */
}

.product-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.product-tag {
    background-color: #e6f2ff;
    color: #0066cc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid #cce0ff;
}

/* 商品图片区域 */
.product-image-section {
    margin-bottom: 25px;
    text-align: center;
}

.product-image-placeholder {
    width: 400px;
    height: 200px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    border-radius: 8px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-image-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.product-image-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

.product-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

/* 修改：商品信息网格 - 两个一行，手机端也保持两行 */
.product-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
}

.meta-label {
    font-size: 13px;
    color: #6c757d;
}

.meta-value {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.meta-price {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
}

.stock-available {
    color: #28a745;
    font-weight: 500;
}

/* 右侧：商品购买区域 */
.purchase-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.purchase-section h3 {
    font-size: 20px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 第二行：商品详情和相关商品在一行 */
.product-detail-related-row {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
}

/* 左侧：商品详情 */
.product-detail-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.product-detail-section h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-detail-section h3 i {
    color: #0066cc;
}

.description-list {
    list-style: none;
    padding-left: 0;
}

.description-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #495057;
}

.description-list li:before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #0066cc;
    font-weight: bold;
}

.info-block {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
    margin-bottom: 10px;
}

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

.info-block p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* 右侧：相关商品区域 */
.related-products-section {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.related-products-section h3 {
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-products-section h3 i {
    color: #0066cc;
}

.related-product-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-product-item {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    gap: 15px;
}

.related-product-item:hover {
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.1);
}

.related-product-image {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.related-product-content {
    flex: 1;
    min-width: 0;
}

.related-product-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 8px;
}

.related-product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.related-product-tag {
    background-color: #f8f9fa;
    color: #6c757d;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    border: 1px solid #e1e5e9;
}

.view-product-btn {
    display: inline-block;
    background-color: #0066cc;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s;
}

.view-product-btn:hover {
    background-color: #0052a3;
    transform: translateY(-1px);
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.form-label i {
    margin-right: 5px;
    color: #0066cc;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    background-color: white;
    color: #333;
}

.form-input:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    overflow: hidden;
    background-color: white;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: none;
    width: 40px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #495057;
    transition: all 0.3s;
}

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

.quantity-input {
    flex: 1;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    padding: 0;
    outline: none;
}

/* 支付方式 */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 480px) {
    .payment-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.payment-option:hover {
    border-color: #0066cc;
}

.payment-option.selected {
    border-color: #0066cc;
    background-color: #f0f8ff;
}

.payment-radio {
    margin-right: 12px;
    accent-color: #0066cc;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 14px;
}

.payment-desc {
    font-size: 12px;
    color: #6c757d;
}

.payment-recommend {
    position: absolute;
    top: -8px;
    right: 8px;
    background-color: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

/* 订单总价 */
.order-total {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.total-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 5px;
}

.total-price {
    font-size: 22px;
    font-weight: 700;
    color: #dc3545;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

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

/* 响应式设计 - 移动端优化 */
@media (max-width: 992px) {
    .product-info-purchase-row,
    .product-detail-related-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        align-items: center;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px;
    }
    
    .logo span {
        font-size: 20px;
    }
    
    .page-container {
        padding: 15px;
    }
    
    .product-info-section,
    .purchase-section,
    .product-detail-section,
    .related-products-section {
        padding: 20px;
    }
    
    .product-title {
        font-size: 19px;
    }
    
    .meta-price {
        font-size: 16px;
    }
    
    .total-price {
        font-size: 20px;
    }
    
    /* 手机端商品信息网格保持两个一行 */
    .product-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 支付方式移动端优化 */
    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* 超小屏幕手机适配 */
@media (max-width: 480px) {
    .product-tags {
        justify-content: center;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .breadcrumb {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    /* 超小屏幕手机商品信息网格改为单列 */
    .product-meta-grid {
        grid-template-columns: 1fr;
    }
    
    /* 相关商品在小屏幕上调整布局 */
    .related-product-item {
        flex-direction: column;
    }
    
    .related-product-image {
        width: 100%;
        height: 120px;
        min-width: auto;
    }
}

/* 支付弹窗等其他样式保持不变 */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.payment-modal-content {
    background-color: white;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-header h3 {
    font-size: 18px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
}

.payment-details-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.payment-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.payment-detail-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.payment-detail-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.payment-total {
    font-size: 18px;
    color: #dc3545;
    font-weight: 700;
}

.wallet-address-section {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.wallet-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.wallet-address {
    background-color: white;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
    font-size: 13px;
    word-break: break-all;
    margin-bottom: 10px;
    position: relative;
}

.copy-address-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
    min-width: 100px;
}

.copy-address-btn:hover {
    background-color: #0052a3;
}

.copy-address-btn.copied {
    background-color: #28a745;
}

.qrcode-section {
    text-align: center;
    margin: 15px 0;
    padding: 15px;
    border-top: 1px solid #f0f2f5;
}

.qrcode-placeholder {
    width: 160px;
    height: 160px;
    background-color: #f8f9fa;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px dashed #adb5bd;
}

.qrcode-placeholder i {
    font-size: 40px;
    color: #adb5bd;
}

.network-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .network-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* 弹窗移动端优化 */
    .payment-modal {
        padding: 10px;
    }
    
    .payment-modal-content {
        max-height: 80vh;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .payment-details-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .qrcode-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .qrcode-placeholder i {
        font-size: 35px;
    }
    
    .modal-footer {
        padding: 12px 15px;
    }
}

.network-option {
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.network-option:hover {
    border-color: #0066cc;
}

.network-option.active {
    border-color: #0066cc;
    background-color: #f0f8ff;
}

.network-name {
    font-weight: 600;
    color: #333;
    font-size: 13px;
    margin-bottom: 3px;
}

.network-desc {
    font-size: 11px;
    color: #6c757d;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f2f5;
    text-align: center;
    background-color: #f8f9fa;
    position: sticky;
    bottom: 0;
}

.confirm-payment-btn {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.confirm-payment-btn:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
}
@media (max-width: 360px) {
    .logo span {
    font-size: 18px;
}

.related-product-item {
    padding: 12px;
}

.payment-modal-content {
    max-height: 70vh;
}

/* 弹窗超小屏幕优化 */
.payment-detail-label {
    font-size: 12px;
}

.payment-detail-value {
    font-size: 13px;
}

.wallet-address {
    font-size: 12px;
    padding: 8px;
}

.copy-address-btn {
    padding: 6px 12px;
    font-size: 12px;
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
}

.qrcode-placeholder i {
    font-size: 30px;
}

.network-options {
    grid-template-columns: 1fr;
}
}