/* HaoQingAi Home Page - Modern V2 Style */
/* Matching pro_v2 design: rounded cards, gradients, soft shadows */

:root {
    --bg-body: #f0f4ff;
    --bg-card: #ffffff;
    --bg-input: #f4f6fb;
    --border-color: #e8ecf4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-dim: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-warm: linear-gradient(135deg, #f97316, #ec4899);
    --gradient-cyan: linear-gradient(135deg, #06b6d4, #6366f1);
    --shadow-card: 0 2px 12px rgba(99,102,241,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 12px 40px rgba(99,102,241,0.14), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-btn: 0 2px 8px rgba(99,102,241,0.25);
    --radius: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 50px;
    --wizard-accent: #06b6d4;
    --wizard-gradient: linear-gradient(135deg, #06b6d4, #6366f1);
    --pro-accent: #6366f1;
    --pro-gradient: linear-gradient(135deg, #6366f1, #ec4899);
    --feature-bg: rgba(99,102,241,0.06);
    --home-bg: #f0f4ff;
    --home-card-bg: #ffffff;
    --home-text: #1e293b;
    --home-text-dim: #64748b;
    --home-border: #e8ecf4;
    --home-shadow: 0 2px 12px rgba(99,102,241,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --home-shadow-hover: 0 12px 40px rgba(99,102,241,0.14), 0 4px 12px rgba(0,0,0,0.06);
}

[data-theme="dark"] {
    --bg-body: #0f1129;
    --bg-card: #1e2145;
    --bg-input: #151833;
    --border-color: #2a2d52;
    --text-primary: #e8ecf4;
    --text-secondary: #94a3b8;
    --text-dim: #5a5e82;
    --accent-primary: #818cf8;
    --accent-secondary: #a78bfa;
    --accent-cyan: #22d3ee;
    --accent-pink: #f472b6;
    --accent-green: #34d399;
    --gradient-primary: linear-gradient(135deg, #818cf8, #a78bfa);
    --gradient-warm: linear-gradient(135deg, #fb923c, #f472b6);
    --gradient-cyan: linear-gradient(135deg, #22d3ee, #818cf8);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.3);
    --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.45);
    --shadow-btn: 0 2px 8px rgba(99,102,241,0.3);
    --wizard-accent: #22d3ee;
    --wizard-gradient: linear-gradient(135deg, #22d3ee, #818cf8);
    --pro-accent: #818cf8;
    --pro-gradient: linear-gradient(135deg, #818cf8, #f472b6);
    --feature-bg: rgba(99,102,241,0.1);
    --home-bg: #0f1129;
    --home-card-bg: #1e2145;
    --home-text: #e8ecf4;
    --home-text-dim: #94a3b8;
    --home-border: #2a2d52;
    --home-shadow: 0 2px 12px rgba(0,0,0,0.3);
    --home-shadow-hover: 0 12px 40px rgba(0,0,0,0.45);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: transparent;
    color: var(--home-text);
    min-height: 100vh;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed; top: 16px; right: 20px; z-index: 100;
    background: var(--home-card-bg);
    border: 1.5px solid var(--home-border);
    color: var(--home-text-dim);
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px;
    transition: all 0.25s;
    box-shadow: var(--home-shadow);
    backdrop-filter: blur(8px);
}
.theme-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(15deg) scale(1.05);
}

/* Container */
.home-container {
    max-width: 1000px; width: 100%; margin: 0 auto; padding: 16px 24px 32px;
    position: relative;
}

/* Hero */
.hero { text-align: center; padding: 20px 0 44px; }
.hero-badge {
    display: inline-block; font-size: 0.75em; font-weight: 700;
    padding: 5px 16px; border-radius: var(--radius-pill); margin-bottom: 18px;
    background: var(--feature-bg); color: var(--accent-primary);
    border: 1px solid var(--home-border);
    letter-spacing: 0.03em;
}
.hero-title {
    font-size: 3.2em; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.hero-subtitle {
    font-size: 1.25em; color: var(--home-text-dim); margin-bottom: 14px;
    font-weight: 500;
}
.hero-desc {
    font-size: 0.92em; color: var(--home-text-dim);
    max-width: 580px; margin: 0 auto; line-height: 1.8;
}

/* Features */
.features {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-bottom: 44px;
}
.feature-item {
    text-align: center; padding: 28px 14px; border-radius: var(--radius);
    background: var(--home-card-bg); border: 1px solid var(--home-border);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--home-shadow);
}
.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-hover);
    border-color: var(--accent-primary);
}
.feature-item .icon-svg {
    color: var(--accent-primary); margin-bottom: 12px;
}
.feature-item h4 { font-size: 0.95em; margin-bottom: 8px; font-weight: 700; }
.feature-item p { font-size: 0.78em; color: var(--home-text-dim); line-height: 1.6; }

/* Card Grid */
.card-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 44px;
}
.mode-card {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: var(--home-text);
    background: var(--home-card-bg); border: 1.5px solid var(--home-border);
    border-radius: var(--radius); padding: 40px 30px 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--home-shadow);
    position: relative; overflow: hidden;
}
.mode-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px; border-radius: var(--radius) var(--radius) 0 0;
}
.wizard-card::before { background: var(--wizard-gradient); }
.pro-card::before { background: var(--pro-gradient); }
.mode-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--home-shadow-hover);
    border-color: transparent;
}
.wizard-card:hover { border-color: var(--wizard-accent); }
.pro-card:hover { border-color: var(--pro-accent); }
.card-icon { margin-bottom: 16px; line-height: 1; }
.wizard-card .card-icon { color: var(--wizard-accent); }
.pro-card .card-icon { color: var(--pro-accent); }
.mode-card h2 { font-size: 1.5em; font-weight: 700; margin-bottom: 12px; }
.wizard-card h2 { color: var(--wizard-accent); }
.pro-card h2 { color: var(--pro-accent); }
.mode-card p { font-size: 0.9em; color: var(--home-text-dim); line-height: 1.7; margin-bottom: 18px; }
.mode-card ul { list-style: none; text-align: left; width: 100%; margin-bottom: 22px; }
.mode-card ul li { font-size: 0.85em; color: var(--home-text-dim); padding: 5px 0; }
.mode-card ul li::before { content: '\2713\0020'; font-weight: 700; }
.wizard-card ul li::before { color: var(--wizard-accent); }
.pro-card ul li::before { color: var(--pro-accent); }

.card-action {
    font-size: 0.9em; font-weight: 700;
    padding: 10px 24px; border-radius: var(--radius-sm);
    transition: all 0.25s; display: flex; align-items: center; gap: 6px;
}
.wizard-card .card-action { color: var(--wizard-accent); border: 1.5px solid var(--wizard-accent); }
.wizard-card:hover .card-action {
    background: var(--wizard-gradient); color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(6,182,212,0.3);
}
.pro-card .card-action { color: var(--pro-accent); border: 1.5px solid var(--pro-accent); }
.pro-card:hover .card-action {
    background: var(--gradient-primary); color: #fff; border-color: transparent;
    box-shadow: var(--shadow-btn);
}

/* Workflow */
.section-title {
    text-align: center; font-size: 1.1em; font-weight: 700;
    color: var(--home-text-dim); margin-bottom: 20px;
}
.workflow {
    background: var(--home-card-bg); border: 1.5px solid var(--home-border);
    border-radius: var(--radius); padding: 30px 24px; margin-bottom: 44px;
    box-shadow: var(--home-shadow);
}
.workflow-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; flex-wrap: wrap;
}
.wf-step {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    background: var(--feature-bg); min-width: 76px;
    transition: all 0.2s;
}
.wf-step:hover { transform: translateY(-2px); background: rgba(99,102,241,0.1); }
.wf-step .icon-svg { color: var(--accent-primary); }
.wf-step span { font-size: 0.78em; color: var(--home-text-dim); font-weight: 500; }
.wf-arrow { color: var(--home-text-dim); opacity: 0.35; }

/* Footer */
.home-footer { text-align: center; color: var(--home-text-dim); font-size: 0.8em; }
.home-footer a.footer-link {
    color: var(--accent-primary); text-decoration: none; font-size: 0.95em;
    display: inline-flex; align-items: center; gap: 4px;
    font-weight: 600;
}
.home-footer a.footer-link:hover { text-decoration: underline; }
.home-footer p + p { margin-top: 8px; }

/* Responsive */
@media (max-width: 640px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2em; }
    .workflow-steps { gap: 4px; }
    .wf-step { min-width: 56px; padding: 8px 8px; }
    .wf-arrow { display: none; }
}
