/* ============================================
   掌舵者百家乐软件 - 公共样式表
   ============================================ */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* ============================================
   头部样式
   ============================================ */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    padding: 20px 0;
    border-bottom: 2px solid #3b82f6;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.brand-text h1 {
    font-size: 26px;
    color: #1e40af;
    margin-bottom: 5px;
}

.brand-text p {
    font-size: 14px;
    color: #64748b;
}

.highlight {
    color: #3b82f6;
    font-weight: bold;
}

/* ============================================
   导航栏样式
   ============================================ */
.nav {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
}

.nav-list a {
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
}

.nav-list a:hover, .nav-list a.active {
    color: #3b82f6;
    background: #eff6ff;
}

/* ============================================
   主要内容区域
   ============================================ */
.main-content {
    padding: 30px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    font-size: 36px;
    color: #1e40af;
    margin-bottom: 10px;
    font-weight: 800;
}

.page-title p {
    font-size: 16px;
    color: #64748b;
}

/* ============================================
   页脚样式
   ============================================ */
.footer {
    background: #f1f5f9;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    margin-top: 50px;
}

.footer p {
    color: #64748b;
    font-size: 14px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-links a:hover {
    color: #3b82f6;
}

/* ============================================
   公共组件样式
   ============================================ */

/* 分割线 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    margin: 50px 0;
}

/* 区块头部 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h3 {
    font-size: 28px;
    color: #1e40af;
    margin-bottom: 8px;
}

.section-header p {
    color: #64748b;
}

/* 按钮样式 - 主要 */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.cta-button.secondary {
    background: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: #eff6ff;
}

/* 卡片基础样式 */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

/* CTA区域 */
.cta-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 50px 40px;
    text-align: center;
    margin-bottom: 50px;
}

.cta-section h3 {
    font-size: 32px;
    color: #1e40af;
    margin-bottom: 15px;
    font-weight: 800;
}

/* ============================================
   响应式设计
   ============================================ */
@media (max-width: 768px) {
    .page-title h2 {
        font-size: 26px;
    }
    
    .nav-list {
        gap: 15px;
    }
    
    .nav-list a {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .cta-section h3 {
        font-size: 24px;
    }
    
    .footer-links {
        gap: 15px;
    }
}
/* ============================================
   购买页面专用样式 - 浅色版
   ============================================ */

/* 购买流程步骤 */
.steps {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    transition: all 0.3s;
}

.step.active {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.step-number {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #fff;
}

.step-text {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

/* 产品选择卡片 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #3b82f6;
}

.product-card.popular {
    border-color: #3b82f6;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 5px 40px;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

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

.product-name {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 700;
}

.product-desc {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-price {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #3b82f6;
}

.product-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 16px;
    margin-bottom: 25px;
}

.product-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.product-features li {
    padding: 8px 0;
    color: #475569;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
}

.select-btn {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.select-btn:hover, .select-btn.selected {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* 支付区域 */
.payment-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    display: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.payment-section.active {
    display: block;
    animation: fadeIn 0.5s;
}

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

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
    color: #1e40af;
    font-weight: 700;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.payment-method {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-method:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.payment-method.selected {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.payment-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.payment-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1e293b;
}

.payment-desc {
    font-size: 12px;
    color: #64748b;
}

/* 支付详情 */
.payment-details {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    display: none;
    border: 1px solid #e2e8f0;
}

.payment-details.active {
    display: block;
    animation: fadeIn 0.5s;
}

.qr-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.qr-box {
    text-align: center;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.qr-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.qr-text {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.payment-info {
    flex: 1;
    min-width: 300px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.info-label {
    color: #64748b;
    font-weight: 500;
}

.info-value {
    color: #3b82f6;
    font-weight: 700;
    font-family: monospace;
}

.copy-btn {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.copy-btn:hover {
    background: #3b82f6;
    color: #fff;
}

.countdown {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.countdown-text {
    color: #dc2626;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.countdown-time {
    font-size: 32px;
    font-weight: 800;
    color: #dc2626;
    font-family: monospace;
}

/* USDT特殊样式 */
.usdt-address {
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
    color: #3b82f6;
    border: 1px solid #e2e8f0;
    font-weight: 500;
}

.network-select {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.network-btn {
    padding: 8px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.network-btn.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #3b82f6;
}

/* 卡密显示区域 */
.card-key-section {
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
    border: 2px solid #3b82f6;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    display: none;
    position: relative;
    overflow: hidden;
}

.card-key-section.active {
    display: block;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(59, 130, 246, 0.2); }
    to { box-shadow: 0 0 40px rgba(59, 130, 246, 0.3); }
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: #10b981;
}

.success-title {
    font-size: 28px;
    margin-bottom: 10px;
    color: #1e293b;
    font-weight: 700;
}

.success-desc {
    color: #64748b;
    margin-bottom: 30px;
}

.card-key-box {
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-key-label {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.card-key-value {
    font-size: 24px;
    font-family: 'Courier New', monospace;
    color: #3b82f6;
    letter-spacing: 3px;
    word-break: break-all;
    font-weight: 700;
    user-select: all;
}

.card-key-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: #ffffff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
}

.warning-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: left;
}

.warning-title {
    color: #92400e;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-list {
    list-style: none;
    color: #78350f;
    font-size: 14px;
    line-height: 1.8;
}

.warning-list li::before {
    content: '•';
    color: #f59e0b;
    margin-right: 10px;
}

/* 订单查询 */
.order-check {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 30px auto;
    flex-wrap: wrap;
    justify-content: center;
}

.input-field {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.input-field:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.input-field::placeholder {
    color: #94a3b8;
}

/* 提示框 */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 9999;
    font-weight: 600;
}

.toast.show {
    transform: translateX(0);
}

/* 响应式 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .payment-section, .order-check {
        padding: 30px 20px;
    }

    .payment-methods {
        grid-template-columns: 1fr;
    }

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

    .step {
        padding: 10px 15px;
    }

    .step-text {
        font-size: 12px;
    }
}
/* ============================================
   USDT支付专用样式
   ============================================ */

.usdt-payment-box {
    background: #f8fafc;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.usdt-payment-box .network-select {
    margin-bottom: 30px;
}

.usdt-payment-box .qr-container {
    align-items: flex-start;
}

.usdt-payment-box .payment-info {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.usdt-payment-box .info-row {
    padding: 12px 0;
}

.usdt-payment-box .warning-box {
    background: #fffbeb;
    border-color: #fde68a;
}

.usdt-payment-box .warning-list li {
    color: #92400e;
}

.usdt-payment-box .countdown {
    background: #fef2f2;
    border-color: #fecaca;
}

.usdt-payment-box .countdown-text {
    color: #dc2626;
}

/* 产品卡片4列布局 */
.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .usdt-payment-box {
        padding: 20px;
    }
    
    .usdt-payment-box .qr-container {
        flex-direction: column;
    }
    
    .usdt-payment-box .payment-info {
        min-width: unset;
        width: 100%;
    }
}