
/* ===== 全局重置与基调 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f4f7fc;  /* 柔和背景 */
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ===== 头部设计 ===== */
.header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    border-bottom: 2px solid rgba(0, 107, 164, 0.15);
}

.header h1 {
    font-size: 2.8rem;
    font-weight: 600;
    background: linear-gradient(145deg, #1e3c5f, #0f2b40);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.header .desc {
    font-size: 1.2rem;
    color: #5271a0;
    font-weight: 400;
    display: inline-block;
    padding-bottom: 0.6rem;
}

/* ===== 教案网格 ===== */
.lesson-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ===== 卡片设计 ===== */
.lesson-item {
    background: #ffffff;
    border-radius: 2rem;
    padding: 2rem 1.8rem;
    box-shadow: 0 20px 35px -12px rgba(0, 55, 100, 0.15);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
}

.lesson-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 45px -12px rgba(0, 80, 130, 0.25);
    border-color: rgba(0, 107, 164, 0.2);
}

.lesson-item h2 {
    font-size: 1.9rem;
    font-weight: 550;
    color: #0a3b5c;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid rgba(0, 107, 164, 0.15);
    line-height: 1.2;
}

.lesson-item .intro {
    font-size: 1rem;
    color: #3f546d;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex: 1;
}

/* ===== 按钮组 ===== */
.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    border-radius: 3rem;
    font-size: 1rem;
    font-weight: 530;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1 1 0;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 60, 100, 0.08);
}

/* 主按钮 (查看详情) */
.btn:first-child {
    background: #006ba4;
    color: white;
    border-color: #006ba4;
}

.btn:first-child:hover {
    background: #004b7c;
    border-color: #004b7c;
    transform: scale(1.02);
    box-shadow: 0 12px 20px -10px #006ba4;
}

/* 演示按钮 (在线演示) */
.demo-btn {
    background: #e6f2fa;
    color: #006ba4;
    border-color: #b8d1e6;
}

.demo-btn:hover {
    background: #d0e6f5;
    border-color: #006ba4;
    transform: scale(1.02);
    box-shadow: 0 12px 20px -10px rgba(0,107,164,0.25);
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 2rem 0 1rem;
    border-top: 2px solid rgba(0, 80, 120, 0.1);
    color: #5f7895;
    font-size: 0.95rem;
    font-weight: 380;
    letter-spacing: 0.3px;
}

/* ===== 响应式优化 ===== */
@media (max-width: 700px) {
    .header h1 {
        font-size: 2.2rem;
    }
    .header .desc {
        font-size: 1rem;
    }
    .lesson-list {
        gap: 1.5rem;
    }
    .lesson-item {
        padding: 1.8rem 1.5rem;
    }
    .btn-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    .lesson-item h2 {
        font-size: 1.7rem;
    }
}

/* ===== 保留原有的知识点详情样式（可选，不影响当前页面）===== */
.lesson-detail {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 30px -12px rgba(0,0,0,0.12);
}
.lesson-detail h2 {
    font-size: 2rem;
    color: #0a3b5c;
    border-bottom: 2px solid #e2ecf5;
    padding-bottom: 0.75rem;
}
.knowledge-point h3 {
    font-size: 1.4rem;
    color: #006ba4;
    margin: 1.5rem 0 1rem;
}
.code-block {
    background: #f2f7fc;
    border-radius: 20px;
    padding: 1.2rem;
    font-family: 'Fira Code', monospace;
    border: 1px solid #cde0ed;
}
.step-list li {
    margin-bottom: 0.6rem;
}
.example-desc {
    background: #ecf5fb;
    border-left: 5px solid #006ba4;
    padding: 1.2rem;
    border-radius: 16px;
}
  