/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background-color: #3a5bd9;
}

.btn-outline {
    background-color: transparent;
    color: #4a6cf7;
    border: 2px solid #4a6cf7;
}

.btn-outline:hover {
    background-color: #4a6cf7;
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 18px;
}

/* 头部样式 */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 24px;
    color: #4a6cf7;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 25px;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover, .nav a.active {
    color: #4a6cf7;
}

.user-actions {
    display: flex;
    gap: 10px;
}

/* 面包屑导航 */
.breadcrumb {
    margin: 20px 0;
    font-size: 14px;
    color: #666;
}

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

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

/* 英雄区域 */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 支付方式展示 */
.payment-methods {
    padding: 80px 0;
    background-color: white;
}

.payment-methods h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.payment-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.payment-card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.payment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.payment-icon {
    width: 80px;
    height: 80px;
    background-color: #e9f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.payment-icon img {
    width: 50px;
    height: 50px;
}

.payment-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.payment-card p {
    color: #666;
}

/* 商品列表 */
.products {
    padding: 80px 0;
}

.products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #4a6cf7;
}

.stock {
    font-size: 14px;
    color: #666;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

/* 商品详情页 */
.product-detail {
    padding: 40px 0;
}

.product-container {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-images {
    flex: 1;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    display: block;
}

.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.product-price .price {
    font-size: 36px;
    color: #4a6cf7;
}

.product-description {
    margin-bottom: 30px;
}

.product-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

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

.product-features {
    margin-bottom: 30px;
}

.product-features h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.product-features ul {
    list-style-type: none;
}

.product-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.product-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4a6cf7;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 15px;
}

/* 商品标签页 */
.product-tabs {
    margin-top: 60px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 15px 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #4a6cf7;
    border-bottom-color: #4a6cf7;
}

.tab-btn:hover {
    color: #4a6cf7;
}

.tabs-content {
    padding: 20px 0;
}

.tab-pane {
    display: none;
}

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

.tab-pane h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.tab-pane p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 30px;
}

.faq-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #4a6cf7;
}

.faq-item p {
    color: #666;
}

/* 相关商品 */
.related-products {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

/* 结算页面 */
.checkout {
    padding: 40px 0;
}

.checkout-container {
    display: flex;
    gap: 40px;
}

.checkout-left {
    flex: 2;
}

.checkout-right {
    flex: 1;
}

.checkout-section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.product-info {
    display: flex;
    gap: 20px;
}

.product-info img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.product-info-details {
    flex: 1;
}

.product-info-details h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-info-details p {
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price .price {
    font-size: 24px;
    color: #4a6cf7;
}

/* 支付方式选择 */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #4a6cf7;
}

.payment-method input[type="radio"] {
    margin-right: 15px;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method-content img {
    width: 40px;
    height: 40px;
}

.payment-method-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.payment-method-content p {
    color: #666;
    font-size: 14px;
}

/* 订单备注 */
textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

/* 订单摘要 */
.order-summary {
    position: sticky;
    top: 100px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #666;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: 15px;
}

/* 收款二维码 */
.qr-code-container {
    margin: 30px 0;
    text-align: center;
}

.qr-code-container h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.qr-code {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.qr-code img {
    width: 150px;
    height: 150px;
    border: 1px solid #eee;
    border-radius: 5px;
    display: none;
}

.qr-code img.active {
    display: block;
}

.payment-notice {
    color: #666;
    font-size: 14px;
}

.payment-notice #payment-amount {
    font-weight: bold;
    color: #4a6cf7;
}

/* 订单详情页 */
.order-detail {
    padding: 40px 0;
}

.order-container {
    display: flex;
    gap: 40px;
}

.order-left {
    flex: 2;
}

.order-right {
    flex: 1;
}

.order-section {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.order-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-info {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
}

.info-row {
    display: contents;
}

.info-row span:first-child {
    color: #666;
}

.order-number {
    font-family: monospace;
    font-weight: bold;
    color: #4a6cf7;
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status.paid {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status.confirmed {
    background-color: #d4edda;
    color: #155724;
}

.status.completed {
    background-color: #d4edda;
    color: #155724;
}

.status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

/* 订单操作面板 */
.order-actions {
    position: sticky;
    top: 100px;
}

.action-panel {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.action-panel h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.action-panel p {
    color: #666;
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-method {
    text-align: center;
}

.payment-method img {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

.payment-method span {
    display: block;
    font-size: 14px;
    color: #666;
}

.qr-codes {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.qr-codes img {
    width: 120px;
    height: 120px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.notice {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

/* 卡密显示 */
.card-key-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.card-key {
    font-family: monospace;
    font-size: 18px;
    word-break: break-all;
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

/* 关于我们 */
.about {
    padding: 80px 0;
    background-color: white;
}

.about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #555;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.feature {
    flex: 1;
    max-width: 300px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.feature p {
    color: #666;
    font-size: 16px;
}

/* 联系我们 */
.contact {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.contact-item {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 300px;
}

.contact-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.contact-item p {
    color: #666;
    margin-bottom: 20px;
}

.contact-qr {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 5px;
}

/* 页脚 */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo h3 {
    font-size: 24px;
    color: #4a6cf7;
}

.footer-links h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4a6cf7;
}

.footer-contact h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bdc3c7;
}

.footer-contact span {
    color: #4a6cf7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #95a5a6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .payment-cards {
        flex-direction: column;
        align-items: center;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .product-container {
        flex-direction: column;
    }

    .checkout-container {
        flex-direction: column;
    }

    .order-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }

    .nav {
        margin: 20px 0;
    }

    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav li {
        margin: 5px 15px;
    }

    .user-actions {
        margin-top: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .order-info {
        grid-template-columns: 1fr;
    }

    .info-row span:first-child {
        font-weight: bold;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-large {
        padding: 12px 20px;
        font-size: 16px;
    }

    .payment-methods h2,
    .products h2,
    .about h2,
    .contact h2 {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .payment-methods {
        flex-direction: column;
    }

    .qr-code {
        flex-direction: column;
        align-items: center;
    }

    .qr-codes {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}