/* ========================================
   赚钱指南 - 现代化设计
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 配色方案 */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-color);
    min-height: 100vh;
    box-shadow: var(--shadow-xl);
}

/* 头部 */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 48px 32px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 8px;
    font-weight: 400;
}

.date {
    font-size: 14px;
    opacity: 0.8;
}

/* 导航 */
.nav {
    display: flex;
    gap: 8px;
    padding: 24px 32px;
    overflow-x: auto;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--border-light);
    border-color: var(--text-muted);
}

.nav-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* 主内容 */
.main {
    padding: 32px;
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

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

.section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.subsection {
    margin-bottom: 40px;
}

.subsection h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* 卡片网格 */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card:hover::before {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge.premium {
    background: #fef3c7;
    color: #92400e;
}

.badge.popular {
    background: #fee2e2;
    color: #991b1b;
}

.badge.elite {
    background: #ede9fe;
    color: #5b21b6;
}

.card-desc {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.card-list {
    list-style: none;
    margin-bottom: 16px;
}

.card-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 13px;
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.card-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.card-link:hover {
    color: var(--primary-dark);
}

/* 表格 */
.table-container {
    overflow-x: auto;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background: var(--bg-secondary);
}

/* 时间线 */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.timeline-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-content ul {
    list-style: none;
}

.timeline-content li {
    padding: 4px 0;
    color: var(--text-secondary);
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.timeline-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* 清单 */
.checklist {
    display: grid;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.checklist-item:hover {
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checklist-item span {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.checklist-item input[type="checkbox"]:checked + span {
    text-decoration: line-through;
    color: var(--text-muted);
}

/* 提示 */
.tips {
    display: grid;
    gap: 20px;
}

.tip {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.tip:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.tip-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.tip-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 引用 */
.quote {
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    box-shadow: var(--shadow-lg);
}

.quote-text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.8;
    margin-bottom: 16px;
    font-style: italic;
}

.quote-author {
    font-size: 16px;
    opacity: 0.9;
}

/* 页脚 */
.footer {
    padding: 32px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 32px 20px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 16px;
    }

    .nav {
        padding: 16px 20px;
        gap: 6px;
    }

    .nav-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .main {
        padding: 20px;
    }

    .section h2 {
        font-size: 24px;
    }

    .subsection h3 {
        font-size: 20px;
    }

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

    .timeline {
        padding-left: 32px;
    }

    .timeline-marker {
        width: 28px;
        height: 28px;
        left: -32px;
        font-size: 12px;
    }

    .quote-text {
        font-size: 16px;
    }

    .footer {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .card {
        padding: 20px;
    }

    .tip {
        flex-direction: column;
        text-align: center;
    }
}