/* ============================================
   FitLife - 品牌样式表
   ============================================ */

/* ---- 品牌色板 ---- */
:root {
    --primary: #f97316;
    --primary-dark: #d97706;
    --secondary: #1e293b;
    --accent: #06b6d4;
    --bg-light: #fff7ed;
    --bg-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(249,115,22,0.15);
    --radius: 16px;
    --radius-sm: 8px;
}

/* ---- 字体层级 ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1 { font-weight: 700; font-size: 40px; line-height: 1.2; }
h2 { font-weight: 600; font-size: 28px; line-height: 1.3; }
h3 { font-weight: 600; font-size: 20px; line-height: 1.4; }
h4 { font-weight: 600; font-size: 16px; }
p { font-size: 16px; color: var(--text-secondary); line-height: 1.7; }
small, .text-muted { font-size: 13px; color: var(--text-muted); }

/* ---- 容器 ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- 导航栏 ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 20px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ---- 底部导航 (移动) ---- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border);
    z-index: 999;
    justify-content: space-around;
    padding: 6px 0 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    gap: 2px;
    transition: color 0.3s;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--primary);
}

/* ---- Hero 区 ---- */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f97316 0%, #d97706 50%, #92400e 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 60%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0,0); }
    100% { transform: translate(-20px, -20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 200px;
    margin-bottom: 24px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.2));
}

.hero-slogan {
    font-size: 48px;
    font-weight: 800;
    margin: 16px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-sub {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
}

/* ---- 按钮 ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-lg {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-block {
    width: 100%;
}

/* ---- 卡片通用 ---- */
.features-grid,
.categories-grid,
.workout-grid,
.nutrition-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card,
.category-card,
.workout-card,
.nutrition-card,
.team-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover,
.category-card:hover,
.workout-card:hover,
.nutrition-card:hover,
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.category-card .card-img,
.workout-card-img,
.nutrition-card-img {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    margin-bottom: 16px;
}

.card-meta,
.workout-meta,
.nutrition-meta {
    display: flex;
    gap: 16px;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    margin: 12px 0;
}

.workout-card-body,
.nutrition-card-body {
    text-align: left;
}

.workout-card .btn,
.nutrition-card .btn {
    margin-top: 12px;
}

/* ---- Section 标题 ---- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 4px;
}

/* ---- 页面通用 ---- */
.page-main {
    padding: 100px 0 60px;
}

.page-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 8px;
}

.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-section {
    padding: 60px 0;
}

.bg-light {
    background: var(--bg-white);
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.mv-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.mv-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 16px;
}

.team-card {
    padding: 24px;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

.timeline-content {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
}

.timeline-year {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary);
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-success {
    text-align: center;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-success i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 16px;
}

.map-section {
    padding: 40px 0;
}

.map-placeholder {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 60px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.map-placeholder i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 20px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    color: rgba(255,255,255,0.85);
}

.cta .btn-primary {
    background: #fff;
    color: var(--primary);
}

/* ---- Footer ---- */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4 {
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-contact i {
    margin-right: 8px;
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .mission-vision {
        grid-template-columns: 1fr 1fr;
    }
    .timeline-item {
        width: 100%;
        padding: 20px 0;
    }
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 50px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 16px;
    }
    .nav-links.open {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        padding: 100px 0 60px;
    }
    .hero-slogan {
        font-size: 32px;
    }
    .hero-sub {
        font-size: 16px;
    }
    .section-title {
        font-size: 24px;
    }
    .features-grid,
    .categories-grid,
    .workout-grid,
    .nutrition-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    .mission-vision {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bottom-nav {
        display: flex;
    }
    .page-main {
        padding-bottom: 80px;
    }
    .navbar {
        bottom: auto;
    }
    .cta-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 375px) {
    .hero-slogan {
        font-size: 26px;
    }
    .hero-logo {
        max-width: 150px;
    }
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ---- 辅助类 ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 16px; }
.mt-2 { margin-top: 32px; }
.mb-1 { margin-bottom: 16px; }
.mb-2 { margin-bottom: 32px; }