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

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #0891b2;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --bg-color: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --card-bg-hover: rgba(255, 255, 255, 1);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

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

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
}

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

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: white;
    box-shadow: var(--shadow-md);
    letter-spacing: -0.5px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text-wrap {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* 导航 */
.nav {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.nav-link {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link.active {
    color: white;
    background: var(--primary-color);
}

/* 主要内容区域 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 支付区块 */
.payment-section {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.payment-section:nth-child(1) { animation-delay: 0.05s; }
.payment-section:nth-child(2) { animation-delay: 0.1s; }
.payment-section:nth-child(3) { animation-delay: 0.15s; }
.payment-section:nth-child(4) { animation-delay: 0.2s; }

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    padding-left: 2px;
}

.title-icon {
    font-size: 18px;
}

/* 发票信息卡片 */
.invoice-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.invoice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.company-badge {
    padding: 4px 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.company-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.invoice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
}

.invoice-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 8px;
    flex-wrap: wrap;
}

.item-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 100px;
}

.item-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

/* 银行网格 */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 12px;
}

/* 银行卡片 */
.bank-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
}

.bank-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.bank-card.primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(8, 145, 178, 0.03) 100%);
}

.bank-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.bank-icon {
    font-size: 24px;
}

.bank-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bank-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.bank-branch {
    font-size: 12px;
    color: var(--text-secondary);
}

.bank-tag {
    padding: 3px 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.account-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-label {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 60px;
}

.account-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    flex: 1;
    word-break: break-all;
}

.account-number {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.copy-btn {
    padding: 4px 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--primary-color);
    color: white;
}

.tips-card {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
}

.tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tip-icon {
    width: 18px;
    height: 18px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tip-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links .divider {
    color: var(--border-color);
    font-size: 13px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(30, 41, 59, 0.95);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .bank-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-grid {
        grid-template-columns: 1fr;
    }
    
    .invoice-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .account-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 6px;
    }
    
    .footer-links .divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 22px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .logo-icon {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .company-name {
        font-size: 16px;
    }
    
    .invoice-card {
        padding: 16px;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* ɨ��֧�� */
.qrcode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qrcode-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.25s ease;
    box-shadow: var(--shadow);
}

.qrcode-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.qrcode-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.qrcode-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.qrcode-icon.wechat {
    background: linear-gradient(135deg, #07c160 0%, #05a350 100%);
}

.qrcode-icon.alipay {
    background: linear-gradient(135deg, #1677ff 0%, #0066cc 100%);
}

.qrcode-icon.yunshanfu {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.qrcode-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.qrcode-image {
    width: 100%;
    aspect-ratio: 1;
    max-width: 200px;
    margin: 0 auto 12px;
}

.qrcode-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.placeholder-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.placeholder-hint {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.7;
}

.qrcode-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.qrcode-tips {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .qrcode-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .qrcode-grid {
        grid-template-columns: 1fr;
    }
}

/* ɨ��֧���������� */
.qrcode-row {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.qrcode-area {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.qrcode-area:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

.qrcode-area-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.qrcode-area-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.qrcode-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.qrcode-placeholder-large {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
}

.qrcode-area:hover .qrcode-placeholder-large {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
}

.qrcode-area-footer {
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.qrcode-icon.sixun {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
}

@media (max-width: 900px) {
    .qrcode-row {
        flex-direction: column;
    }
    
    .qrcode-area {
        min-height: auto;
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .qrcode-placeholder-large {
        max-width: 200px;
    }
}

/* ɨ��֧����� - �°汾 */
.qrcode-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.qrcode-panel .qrcode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.qrcode-panel .qrcode-card {
    background: #fafbfc;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    border: 1px solid #f0f2f5;
    transition: all 0.3s ease;
}

.qrcode-panel .qrcode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.qrcode-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.qrcode-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}

.wx-icon {
    background: #07c160;
}

.ali-icon {
    background: #1677ff;
}

.sixun-icon {
    background: #ff6600;
}

.qrcode-box {
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qrcode-tip {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.qrcode-tip small {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

.wx-card:hover {
    border-color: #07c160;
}

.ali-card:hover {
    border-color: #1677ff;
}

.sixun-card:hover {
    border-color: #ff6600;
}

@media (max-width: 768px) {
    .qrcode-panel .qrcode-grid {
        grid-template-columns: 1fr;
    }
    
    .qrcode-box {
        width: 140px;
        height: 140px;
    }
}

