@charset "UTF-8";
/* 面包屑导航 */
.breadcrumb {
    padding: 12px 0;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
    overflow-x: auto;
    white-space: nowrap;
}

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

.breadcrumb a:hover {
    color: #993448;
}

.breadcrumb i {
    margin: 0 6px;
    font-size: 0.7rem;
}

/* 主体内容区域 */
.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 10px 0 30px;
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .main-content {
        gap: 20px;
    }
}

/* 左侧主内容区域 */
.product-main {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .product-main {
        padding: 15px;
    }
}

/* 右侧侧边栏 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 商品标题区域 */
.product-title-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .product-title {
        font-size: 1.3rem;
    }
}

.product-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}

/* 价格区域 */
.price-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #993448;
}

@media (max-width: 768px) {
    .price {
        font-size: 1.6rem;
    }
}

.price-label {
    font-size: 0.95rem;
    color: #666;
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #E8F5E9;
    color: #2E7D32;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 标签区域 */
.tags-section {
    margin-bottom: 25px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background-color: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tag.highlight {
    background-color: #FFE4EC;
    color: #993448;
    font-weight: 500;
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: #eee;
    margin: 25px 0;
}

/* 最新文章区域 */
.latest-articles {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .latest-articles {
        padding: 15px;
    }
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #993448;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}

.articles-list {
    list-style-type: none;
}

.article-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.article-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.article-item a {
    color: #444;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    line-height: 1.5;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .article-item a {
        font-size: 0.9rem;
    }
}

.article-item a:hover {
    color: #993448;
}

/* 相关产品区域 */
.related-products {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .related-products {
        padding: 15px;
    }
}

.related-product-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #eee;
}

.related-product-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-product-link:hover {
    opacity: 0.9;
}

.related-product-title {
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .related-product-title {
        font-size: 0.9rem;
    }
}

.related-product-price {
    font-weight: 700;
    color: #993448;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .related-product-price {
        font-size: 0.95rem;
    }
}

/* 购买选项区域 */
.purchase-options {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: 25px;
}

@media (max-width: 768px) {
    .purchase-options {
        padding: 15px;
        margin-top: 20px;
    }
}

.quantity-selector {
    margin-bottom: 25px;
}

.quantity-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

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

.quantity-value {
    font-size: 1.2rem;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
}

.purchase-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.purchase-button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .purchase-button {
        padding: 12px;
        font-size: 0.9rem;
    }
}

.buy-now {
    background-color: #993448;
    color: white;
}

.buy-now:hover {
    background-color: #e00046;
}

.add-favorite {
    background-color: white;
    color: #993448;
    border: 2px solid #993448;
}

.add-favorite:hover {
    background-color: #993448;
    color: white;
}

/* 标签页区域 */
.product-tabs {
    background-color: white;
    border-radius: 12px;
    margin-top: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .product-tabs {
        margin-top: 20px;
    }
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}

.tab-header {
    padding: 15px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .tab-header {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

.tab-header.active {
    color: #993448;
    border-bottom: 3px solid #993448;
}

.tab-content {
    padding: 25px;
}

@media (max-width: 768px) {
    .tab-content {
        padding: 15px;
    }
}

.tab-pane {
    display: none;
}

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

.description-content {
    line-height: 1.7;
    color: #555;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .description-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

.description-content p {
    margin-bottom: 12px;
}

/* 支付弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

@media (max-width: 576px) {
    .modal-overlay {
        padding: 10px;
    }
}

.modal-content {
    background-color: white;
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

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

.modal-header {
    background-color: #993448;
    color: white;
    padding: 20px 50px 20px 20px;
    text-align: left;
    position: relative;
}

@media (max-width: 768px) {
    .modal-header {
        padding: 15px 45px 15px 15px;
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .modal-close-btn {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .modal-title {
        font-size: 1.1rem;
    }
}

.modal-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .modal-subtitle {
        font-size: 0.8rem;
    }
}

.modal-body {
    padding: 20px;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 15px;
    }
}

/* 支付方式选择 - 弹窗内 - 手机端优化 */
.modal-payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .modal-payment-options {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
}

@media (max-width: 380px) {
    .modal-payment-options {
        grid-template-columns: 1fr;
    }
}

.modal-payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .modal-payment-option {
        padding: 10px;
        gap: 6px;
    }
}

.modal-payment-option:hover {
    background-color: #fff;
    border-color: #993448;
}

.modal-payment-option.selected {
    background-color: #FFE4EC;
    border-color: #993448;
}

.modal-payment-icon {
    color: #26A17B;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .modal-payment-icon {
        font-size: 1.1rem;
    }
}

.modal-payment-info {
    flex: 1;
    min-width: 0;
}

.modal-payment-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .modal-payment-name {
        font-size: 0.9rem;
    }
}

.modal-payment-network {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .modal-payment-network {
        font-size: 0.75rem;
    }
}

.payment-amount {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .payment-amount {
        padding: 10px;
        margin-bottom: 15px;
    }
}

.amount-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
}

.amount-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #993448;
}

@media (max-width: 768px) {
    .amount-value {
        font-size: 1.6rem;
    }
}

/* 钱包地址样式优化 */
.wallet-address {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .wallet-address {
        padding: 12px;
        margin-bottom: 12px;
    }
}

.wallet-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .wallet-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
}

.wallet-title i {
    color: #993448;
    font-size: 0.9rem;
}

.address-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

@media (min-width: 480px) {
    .address-container {
        flex-direction: row;
        align-items: center;
    }
}

.address-text {
    flex: 1;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    color: #333;
    line-height: 1.4;
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .address-text {
        font-size: 0.8rem;
        padding: 8px 10px;
        min-height: 40px;
    }
}

.copy-btn {
    background-color: #993448;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
    white-space: nowrap;
    height: 44px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .copy-btn {
        padding: 8px 14px;
        height: 40px;
        font-size: 0.85rem;
    }
}

.copy-btn:hover {
    background-color: #e00046;
}

.qrcode-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e0e0e0;
}

.qrcode-container {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 150px;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .qrcode-container {
        width: 140px;
        height: 140px;
        padding: 10px;
    }
}

.qrcode-placeholder {
    width: 120px;
    height: 120px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 0.85rem;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .qrcode-placeholder {
        width: 110px;
        height: 110px;
        font-size: 0.8rem;
    }
}

.qrcode-text {
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}

.payment-steps {
    margin-top: 15px;
}

.steps-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.steps-title i {
    color: #993448;
    font-size: 0.9rem;
}

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

.steps-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .steps-list li {
        font-size: 0.85rem;
        margin-bottom: 6px;
        padding-left: 22px;
    }
}

.steps-list li:before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    background-color: #993448;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 18px;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .steps-list li:before {
        width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 0.7rem;
    }
}

.steps-list {
    counter-reset: step;
}

.modal-footer {
    padding: 15px 20px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .modal-footer {
        padding: 12px 15px;
        gap: 10px;
    }
}

.confirm-btn {
    background-color: #993448;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s;
    flex: 1;
}

@media (max-width: 768px) {
    .confirm-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.confirm-btn:hover {
    background-color: #e00046;
}

.close-btn {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    flex: 1;
}

@media (max-width: 768px) {
    .close-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.close-btn:hover {
    background-color: #f0f0f0;
}