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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    line-height: 1.5;
}

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

/* ==================== 导航栏 ==================== */
.navbar {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eef2ff;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #4b5563;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2563eb;
}

.phone-btn {
    background: #f3f4f6;
    padding: 6px 14px;
    border-radius: 40px;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

/* ==================== 底部 ==================== */
.footer {
    background: #0f172a;
    color: #cbd5e1;
    text-align: center;
    padding: 48px 0 24px;
    margin-top: 40px;
}

.footer p {
    margin: 0;
}

/* ==================== 按钮 ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(105deg, #2563eb, #1e40af);
    color: white;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -8px rgba(37,99,235,0.4);
}

.btn-primary.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading:after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-secondary {
    background: white;
    border: 1px solid #2563eb;
    color: #2563eb;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #eff6ff;
    transform: translateY(-2px);
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    cursor: pointer;
}

/* ==================== 表单 ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-size: 1rem;
    transition: 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ==================== 卡片 ==================== */
.card {
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    padding: 32px;
    margin-bottom: 40px;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
}
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-paid { background: #dbeafe; color: #2563eb; }
.badge-processing { background: #e0e7ff; color: #4338ca; }
.badge-success { background: #d1fae5; color: #059669; }
.badge-failed { background: #fee2e2; color: #dc2626; }

/* ==================== 提示 Toast ==================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 12px 24px;
    border-radius: 48px;
    font-size: 0.9rem;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .toast {
        white-space: normal;
        max-width: 80%;
        text-align: center;
    }
}

/* ==================== 加载动画 ==================== */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.loader.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .navbar .nav-container {
        flex-direction: column;
        gap: 10px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .card {
        padding: 20px;
    }
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1.2;
    min-width: 280px;
}
.hero-image {
    flex: 0.9;
    text-align: center;
    min-width: 280px;
}
.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 32px;
}
@media (max-width: 768px) {
    .hero-content, .hero-image {
        flex: 1 1 100%;
    }
    .hero-image {
        margin-top: 20px;
    }
}