/* ============================================
   FitPath — 阳光明亮健身平台
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #FF6B35;
    --primary-light: #FF8F5E;
    --primary-dark: #E55A25;
    --secondary: #FFC145;
    --accent: #00C9A7;
    --accent-light: #00E5BE;

    --bg: #FFFDF9;
    --bg-warm: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-dark: #1A1A2E;

    --text: #2D2D3A;
    --text-light: #6B7280;
    --text-white: #FFFFFF;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-glow: 0 4px 24px rgba(255,107,53,0.25);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-white);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255,107,53,0.35);
}
.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: white; }
.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,253,249,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 12px 0;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.logo-icon { font-size: 28px; }
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}
.shape-1 {
    width: 500px; height: 500px;
    background: var(--primary);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}
.shape-2 {
    width: 300px; height: 300px;
    background: var(--secondary);
    bottom: -50px; left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
    width: 200px; height: 200px;
    background: var(--accent);
    top: 40%; left: 30%;
    animation: float 12s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,107,53,0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}
.stat-label {
    font-size: 13px;
    color: var(--text-light);
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(0,0,0,0.1);
}

/* Hero Visual (Cards) */
.hero-visual {
    position: relative;
    height: 420px;
}
.hero-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}
.hero-card-main {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 320px;
    z-index: 2;
}
.card-header-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(255,107,53,0.08);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.hero-card-main h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.hero-card-main p { color: var(--text-light); font-size: 14px; margin-bottom: 16px; }
.card-stats-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.card-stat {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.card-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    border-radius: 100px;
    transition: width 1s ease;
}
.card-progress-text { font-size: 12px; color: var(--text-light); }

.hero-card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}
.float-emoji { font-size: 24px; }
.hero-card-float-1 { top: 0; right: 0; animation-delay: 0s; }
.hero-card-float-2 { bottom: 100px; right: 20px; animation-delay: 2s; }
.hero-card-float-3 {
    bottom: 20px; left: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    animation-delay: 4s;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Section Shared --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
}
.section-tag {
    display: inline-block;
    background: rgba(255,107,53,0.1);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 12px;
}
.section-header p {
    font-size: 17px;
    color: var(--text-light);
}

/* --- Goals --- */
.goals {
    padding: 100px 0;
}
.goals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.goal-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.goal-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.goal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.goal-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.goal-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}
.goal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.tag {
    background: var(--bg-warm);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}
.goal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.goal-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}
.goal-link:hover { text-decoration: underline; }

/* --- Programs --- */
.programs {
    padding: 100px 0;
    background: var(--bg-warm);
}
.program-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    background: white;
    border: 2px solid #eee;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 100px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.program-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}
.program-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.program-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.program-badge.hot { background: #FFE8DD; color: var(--primary-dark); }
.program-badge.new { background: #E8F5E9; color: #2E7D32; }
.program-badge.popular { background: #FFF3E0; color: #E65100; }
.program-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}
.program-icon { font-size: 40px; }
.program-header h3 { font-size: 18px; font-weight: 700; }
.program-level {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}
.program-card > p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}
.program-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 14px;
}
.detail { text-align: center; }
.detail-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}
.detail-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.program-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.program-rating {
    font-size: 14px;
    font-weight: 600;
}
.program-rating span {
    color: var(--text-light);
    font-weight: 400;
    font-size: 13px;
}
.programs-cta {
    text-align: center;
    margin-top: 40px;
}

/* --- Quiz --- */
.quiz-section {
    padding: 100px 0;
}
.quiz-wrapper {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.quiz-header {
    text-align: center;
    padding: 40px 40px 0;
}
.quiz-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}
.quiz-header p {
    color: var(--text-light);
    font-size: 16px;
}
.quiz-body {
    padding: 32px 40px 40px;
}
.quiz-step {
    display: none;
}
.quiz-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.quiz-progress {
    height: 6px;
    background: #f0f0f0;
    border-radius: 100px;
    margin-bottom: 32px;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 100px;
    transition: width 0.4s ease;
}
.quiz-question {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}
.quiz-options {
    display: grid;
    gap: 12px;
}
.quiz-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-warm);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}
.quiz-option:hover {
    border-color: var(--primary);
    background: white;
}
.quiz-option.selected {
    border-color: var(--primary);
    background: rgba(255,107,53,0.06);
}
.quiz-option-icon { font-size: 24px; }

.quiz-result { text-align: center; }
.result-header { margin-bottom: 24px; }
.result-emoji { font-size: 48px; display: block; margin-bottom: 12px; }
.result-header h3 { font-size: 24px; font-weight: 700; }
.result-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    text-align: left;
}
.result-card {
    background: var(--bg-warm);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.result-card-icon { font-size: 36px; }
.result-card-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.result-card-info p { font-size: 13px; color: var(--text-light); margin: 0; }
.result-card-match {
    margin-left: auto;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

/* --- How It Works --- */
.how-section {
    padding: 100px 0;
    background: var(--bg-warm);
}
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    flex: 1;
    max-width: 320px;
    transition: all 0.3s ease;
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.step-number {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,107,53,0.15);
    margin-bottom: 8px;
}
.step-icon { font-size: 40px; margin-bottom: 16px; }
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.step-connector {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
}

/* --- Testimonials --- */
.testimonials {
    padding: 100px 0;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.testimonial-stars {
    font-size: 16px;
    margin-bottom: 16px;
}
.testimonial-card > p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--text-light); }

/* --- CTA --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary));
}
.cta-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-wrapper h2 {
    font-size: 40px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
}
.cta-wrapper p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}
.cta-actions { margin-bottom: 16px; }
.cta-note {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* --- Footer --- */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.6);
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 {
    color: white;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 42px; }
    .goals-grid { grid-template-columns: repeat(2, 1fr); }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar .btn { display: none; }
    .mobile-toggle { display: block; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 34px; }
    .section-header h2 { font-size: 28px; }
    .goals-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .steps-grid { flex-direction: column; }
    .step-connector { transform: rotate(90deg); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .quiz-body { padding: 24px 20px 32px; }
    .quiz-header { padding: 28px 20px 0; }
    .quiz-question { font-size: 18px; }
    .cta-wrapper h2 { font-size: 30px; }
    .footer-grid { grid-template-columns: 1fr; }
}
