/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #667eea;
    --primary-light: #8b9eff;
    --primary-dark: #5568d3;
    --secondary: #f59e0b;
    --danger: #ef4444;
    --success: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 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);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== 导航栏 ==================== */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

header .content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

header p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.qrcode-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.qrcode-text {
    opacity: 0.9;
    font-size: 0.9rem;
}

.qrcode {
    width: 100px;
    height: 100px;
    background: white;
    padding: 5px;
    border-radius: 8px;
}

/* ==================== 统计区域 ==================== */
.stats {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 0 20px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-light);
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-color);
    margin: 0 20px;
}

/* ==================== 用户分类区域 ==================== */
.user-groups {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    color: var(--text-dark);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.group-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.group-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.group-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.group-card p:last-child {
    margin-bottom: 0;
}

/* ==================== 7日计划表 ==================== */
.plan-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.plan-table {
    width: 100%;
    border-collapse: collapse;
}

.plan-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.plan-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.plan-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.plan-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.plan-table tbody tr:hover {
    background: #f0f4ff;
}

.plan-table td:first-child {
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
}

.table-note {
    margin-top: 20px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-left: 3px solid var(--secondary);
    font-size: 0.85rem;
    color: var(--text-light);
    border-radius: 4px;
}

/* ==================== Do和Don't区域 ==================== */
.do-dont {
    padding: 80px 0;
    background: white;
}

.do-dont-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.do-card, .dont-card {
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid;
}

.do-card {
    background: #ecfdf5;
    border-left-color: var(--success);
}

.dont-card {
    background: #fef2f2;
    border-left-color: var(--danger);
}

.do-card h3, .dont-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.do-card h3 {
    color: var(--success);
}

.dont-card h3 {
    color: var(--danger);
}

.do-card ul, .dont-card ul {
    list-style: none;
}

.do-card li, .dont-card li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.do-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}

.dont-card li::before {
    content: '✕';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--danger);
    font-size: 1.1rem;
}

/* ==================== 错误驳回表 ==================== */
.error-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.error-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.error-table thead {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.error-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.error-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.error-table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.error-table tbody tr:hover {
    background: #fff8f0;
}

.error-table td:first-child {
    font-weight: 700;
    color: var(--danger);
}

/* ==================== 规则和支持区域 ==================== */
.rules-section {
    padding: 80px 0;
    background: white;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.rule-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 12px;
    border-top: 3px solid var(--primary);
}

.rule-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.rule-card ul {
    list-style: none;
}

.rule-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.rule-card li::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--primary);
    font-weight: 700;
}

/* ==================== 为什么选择我们 ==================== */
.why-us {
    padding: 80px 0;
    background: var(--bg-light);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.why-us-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.why-item {
    display: flex;
    gap: 20px;
}

.why-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.why-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.why-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.why-us-image {
    background: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.why-us-image img {
    max-width: 100%;
    height: auto;
}

/* ==================== 商家功能区 ==================== */
.features {
    padding: 80px 0;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

.process-flow {
    background: var(--bg-light);
    padding: 40px 30px;
    border-radius: 12px;
}

.process-flow h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.flow-steps {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.flow-arrow {
    width: 30px;
    height: 2px;
    background: var(--primary);
    display: inline-block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .flow-steps {
        flex-direction: column;
        align-items: flex-start;
    }

    .flow-arrow {
        display: none;
    }

    .flow-step::before {
        content: '→';
        margin-right: 8px;
        color: var(--primary);
        font-weight: 700;
    }
}

/* ==================== FAQ区域 ==================== */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
    width: 100%;
    border: none;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-question {
    background: var(--bg-light);
}

.faq-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 20px 20px 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 底部 ==================== */
footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
    text-align: center;
}

footer p {
    color: #d1d5db;
    margin: 15px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-desc {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links {
    margin: 30px 0;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    margin-top: 20px;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 768px) {
    header {
        padding: 50px 0;
    }

    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 1rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }

    .groups-grid,
    .do-dont-grid,
    .features-grid,
    .rules-grid {
        grid-template-columns: 1fr;
    }

    .why-us-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stat-divider {
        display: none;
    }

    .plan-table {
        font-size: 0.85rem;
    }

    .plan-table th,
    .plan-table td {
        padding: 12px 10px;
    }

    .flow-steps {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .plan-table {
        font-size: 0.75rem;
    }

    .plan-table th,
    .plan-table td {
        padding: 10px 8px;
    }
}