/**
 * 启红金主站 - 全局样式文件
 * 冷色系配色方案，响应式布局
 */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    background-color: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 冷色系配色变量 */
:root {
    --primary-color: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary-color: #475569;
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #cbd5e1;
    --success-color: #059669;
    --warning-color: #d97706;
    --error-color: #dc2626;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
    padding: 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo a {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

/* 导航菜单 */
.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: white;
}

.auth-links {
    display: flex;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-email {
    font-size: 12px;
    opacity: 0.9;
}

.logout-link {
    font-size: 12px;
    opacity: 0.8;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #334155;
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-small {
    padding: 4px 12px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    padding: 40px 0;
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control:disabled {
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* 验证码输入框组 */
.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-group .form-control {
    flex: 1;
}

.captcha-group img {
    height: 44px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 页面标题 */
.page-title {
    font-size: 28px;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* 底部 */
.footer {
    background-color: #1e293b;
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    text-align: left;
}

.copyright, .icp {
    margin: 5px 0;
    font-size: 12px;
    opacity: 0.8;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.qrcode span {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

/* 浮层/模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-header .close {
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-header .close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* 充值浮层样式 */
.recharge-options {
    margin-bottom: 20px;
}

.recharge-options label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 12px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-btn:hover, .amount-btn.active {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    color: var(--primary-color);
}

.custom-amount {
    margin-top: 15px;
}

.recharge-info {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.recharge-info p {
    margin: 0;
    font-size: 16px;
}

#selectedAmount {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 营销联盟浮层样式 */
.marketing-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.marketing-info .info-item label {
    font-weight: 500;
    width: 100px;
    color: var(--text-secondary);
}

.copy-link {
    display: flex;
    flex: 1;
    gap: 10px;
}

.copy-link input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #f8fafc;
}

.marketing-desc {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid var(--primary-light);
}

.marketing-desc p {
    margin: 5px 0;
    color: var(--text-secondary);
}

/* 主页样式 - Hero区域与导航无缝衔接 */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
    color: white;
    padding: 60px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -60px;
    padding-top: 120px;
}

/* 装饰性背景元素 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30, 58, 95, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #94c5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 向下滚动提示 */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    transition: color 0.3s;
}

.hero-scroll a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.hero-scroll .arrow-down {
    width: 24px;
    height: 24px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.products-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 36px;
    color: var(--text-primary);
    margin-bottom: 60px;
    font-weight: 700;
}

/* 产品展示区域 - 新布局 */
.product-showcase {
    display: flex;
    align-items: stretch;
    gap: 60px;
    margin-bottom: 80px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-showcase.reverse {
    flex-direction: row-reverse;
}

/* 产品图片区域 */
.product-image {
    flex: 0 0 40%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    padding: 40px;
}

.image-placeholder {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.image-placeholder svg {
    width: 100%;
    height: 100%;
}

.image-placeholder.quant-bg {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
}

/* 产品内容区域 */
.product-content {
    flex: 1;
    padding: 50px 50px 50px 0;
}

.product-showcase.reverse .product-content {
    padding: 50px 0 50px 50px;
}

.product-title {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.product-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
}

/* 版本卡片布局 */
.product-versions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.version-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.version-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.version-card.enterprise {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    border-color: #bfdbfe;
}

.version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.version-header h4 {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
}

.version-badge {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    background: #e2e8f0;
    color: var(--text-secondary);
    font-weight: 500;
}

.version-badge.enterprise {
    background: var(--primary-color);
    color: white;
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.icon-check::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    width: 18px;
    height: 18px;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* 价格信息 */
.pricing-info {
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.price-label {
    color: var(--text-secondary);
}

.price-value {
    color: var(--text-primary);
    font-weight: 600;
}

.price-value.free {
    color: var(--success-color);
}

.enterprise-notice {
    margin: 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    text-align: center;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 500;
}

/* 量化系统特性网格 */
.quant-features {
    margin-bottom: 30px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px 15px;
    background: #f8fafc;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-item p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* 产品底部 */
.product-footer {
    margin-top: 30px;
}

.product-footer .btn {
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 8px;
}

.product-footer .arrow {
    margin-left: 8px;
    transition: transform 0.3s;
}

.product-footer .btn:hover .arrow {
    transform: translateX(4px);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .product-showcase,
    .product-showcase.reverse {
        flex-direction: column;
    }
    
    .product-image {
        flex: none;
        min-height: 250px;
        padding: 30px;
    }
    
    .image-placeholder {
        max-width: 200px;
    }
    
    .product-content,
    .product-showcase.reverse .product-content {
        padding: 35px;
    }
    
    .product-versions {
        grid-template-columns: 1fr;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .product-showcase {
        margin-bottom: 40px;
        border-radius: 16px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .feature-icon {
        margin-bottom: 0;
        font-size: 24px;
    }
    
    .feature-item h4 {
        margin-bottom: 4px;
    }
}

/* 旧版样式兼容 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-card .version {
    margin-bottom: 20px;
}

.product-card .version h4 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-light);
    display: inline-block;
}

.product-card ul {
    list-style: none;
    padding: 0;
}

.product-card ul li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.product-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.product-card .note {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.product-card .note strong {
    color: var(--text-primary);
}

/* 关于我们页面 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.about-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

/* 用户面板 */
.user-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.user-info-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-email-display {
    font-size: 18px;
    color: var(--text-primary);
}

.user-balance {
    font-size: 16px;
    color: var(--text-secondary);
}

.user-balance strong {
    color: var(--primary-color);
    font-size: 24px;
}

/* 表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-primary);
}

.data-table tr:hover {
    background-color: #f8fafc;
}

.data-table .empty-row {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
}

/* Tab样式 */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 佣金信息展示 */
.commission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header .container {
        height: auto;
        padding: 10px 15px;
        flex-wrap: wrap;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        margin-top: 10px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 10px 0;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 25px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .commission-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 20px 0;
    }
    
    .card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 提示消息 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* 链接样式 */
.link-group {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.link-group a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

.link-group a:hover {
    text-decoration: underline;
}

/* 页面切换链接 */
.page-links {
    text-align: center;
    margin-top: 30px;
}

.page-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 15px;
}

.page-links a:hover {
    text-decoration: underline;
}

/* ==================== DataAI 介绍页面样式 ==================== */

/* 页面 Hero 样式 */
.hero-section.page-hero {
    padding: 140px 0 100px;
    min-height: auto;
}

.hero-section.page-hero::after {
    height: 60px;
}

/* 通用区块样式 */
.section {
    padding: 80px 0;
}

.section-light {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-dark {
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
}

.section-dark .section-title {
    color: white;
}

.section-pricing {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.section-cta {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

/* 产品概述区域 */
.product-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.highlight-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.overview-image .product-img svg {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 功能特性网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon-wrap svg {
    width: 32px;
    height: 32px;
    color: #60a5fa;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* 使用流程 */
.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 200px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-arrow {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 300;
}

/* 定价卡片 */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 25px;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.item-name {
    font-size: 14px;
    color: var(--text-secondary);
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.item-price.free {
    color: var(--success-color);
}

.feature-list-clean {
    list-style: none;
    padding: 0;
}

.feature-list-clean li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-list-clean li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.pricing-footer {
    margin-top: 25px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 14px 30px;
    font-size: 16px;
}

/* CTA 区域 */
.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== 购买页面样式 ==================== */

.purchase-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-weight: 600;
}

/* 套餐列表 */
.package-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.package-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.package-card:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.package-card.selected {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.package-card.recommended {
    border-color: var(--primary-color);
}

.recommend-badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.package-header h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.package-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.package-price {
    margin: 15px 0;
}

.price-symbol {
    font-size: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.price-number {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 700;
}

.package-sessions {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.sessions-count {
    font-weight: 600;
    color: var(--text-primary);
}

.package-unit {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 订单面板 */
.order-panel {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.order-summary {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.order-item.total {
    font-size: 16px;
    font-weight: 600;
}

.order-item.total .price {
    font-size: 24px;
    color: var(--primary-color);
}

.order-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 10px 0;
}

.item-label {
    color: var(--text-secondary);
}

.item-value {
    color: var(--text-primary);
}

/* 支付方式 */
.payment-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-option:hover {
    border-color: var(--primary-light);
}

.payment-option input {
    display: none;
}

.payment-option input:checked + .payment-content + .payment-check,
.payment-option.selected .payment-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.payment-option input:checked + .payment-content + .payment-check::after,
.payment-option.selected .payment-check::after {
    content: "✓";
    color: white;
    font-size: 12px;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.payment-icon {
    width: 32px;
    height: 32px;
}

.payment-icon svg {
    width: 100%;
    height: 100%;
}

.payment-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.payment-check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* 订单操作 */
.order-actions {
    margin-top: 25px;
}

.order-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.order-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    font-size: 12px;
    color: var(--text-secondary);
    justify-content: center;
}

/* 购买须知 */
.notice-panel {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.notice-panel h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.notice-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notice-panel li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.notice-panel li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 1024px) {
    .product-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .highlight-stats {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .purchase-container {
        grid-template-columns: 1fr;
    }
    
    .package-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin-left: 10px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .package-list {
        grid-template-columns: 1fr;
    }
    
    .highlight-stats {
        flex-direction: column;
        gap: 20px;
    }
}
