
/* 全局变量与重置 */
:root {
    --primary-color: #00b894; /* 草地绿 */
    --secondary-color: #0984e3; /* 天空蓝 */
    --accent-color: #fdcb6e; /* 阳光黄 */
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-white: #ffffff;
    --bg-dark: #1e272e;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-dark);
}

.navbar nav a {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.btn-join {
    padding: 0.5rem 1.2rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-join:hover {
    background: #00a383;
    transform: translateY(-2px);
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: url('https://picsum.photos/1920/1080?grayscale') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .num {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    background: #00a383;
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 184, 148, 0.4);
}

/* 通用部分样式 */
.section-container {
    padding: 5rem 5%;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: inherit;
}

.section-header p {
    color: var(--text-light);
}

.bg-dark .section-header p {
    color: #b2bec3;
}

/* 技巧网格 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card-visual {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.difficulty {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.difficulty.easy { background: #00b894; }
.difficulty.medium { background: #0984e3; }
.difficulty.hard { background: #d63031; }

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.card-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.key-points {
    margin-bottom: 1.5rem;
    padding-left: 1.2rem;
}

.key-points li {
    position: relative;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.key-points li::before {
    content: "✓";
    position: absolute;
    left: -1.2rem;
    color: var(--primary-color);
    font-weight: bold;
}

.learn-more {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.learn-more:hover {
    color: var(--primary-color);
}

/* 训练计划时间轴 */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-day {
    width: 100px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    padding-right: 2rem;
    position: relative;
}

.timeline-day::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

.timeline-content {
    flex: 1;
    background: rgba(255,255,255,0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-content p {
    color: #b2bec3;
    font-size: 0.9rem;
}

/* 实战心得 */
.tips-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.tip-block {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background 0.3s;
}

.tip-block:hover {
    background: #e9ecef;
}

.tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tip-block h3 {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.tip-block p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* 页脚 */
footer {
    background: #2d3436;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: #dfe6e9;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: #b2bec3;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    color: #636e72;
    font-size: 0.8rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-stats { flex-direction: column; gap: 1rem; }
    .navbar nav { display: none; }
    .timeline::before { left: 20px; }
    .timeline-day { width: 60px; padding-right: 1rem; font-size: 0.9rem; }
    .timeline-day::after { right: -16px; }
}
