﻿body {
    margin: 0;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    color: #1f2937;
    background:
        radial-gradient(circle at top left, rgba(125, 211, 252, 0.24), transparent 26%),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 24%),
        linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%);
}

.home-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.home-hero {
    padding: 36px;
    border-radius: 30px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.16), transparent 18%),
        linear-gradient(135deg, #0f3d66 0%, #0b7799 58%, #49b6b6 100%);
    box-shadow: 0 24px 44px rgba(15, 61, 102, 0.18);
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 0.92rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.84;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
}

.hero-text {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.95rem;
}

.home-main {
    margin-top: 24px;
}

.intro-card,
.chapter-card,
.feature-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    box-shadow: 0 16px 30px rgba(148, 163, 184, 0.12);
}

.intro-card {
    padding: 24px 26px;
}

.intro-card h2,
.chapter-card h2,
.feature-card h3 {
    margin-top: 0;
}

.intro-card h2 {
    color: #0f4c81;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.chapter-card {
    padding: 22px;
}

.chapter-card.featured {
    background:
        linear-gradient(180deg, rgba(219, 234, 254, 0.76), rgba(255, 255, 255, 0.95));
    border-color: rgba(37, 99, 235, 0.20);
}

.chapter-head {
    margin-bottom: 16px;
}

.chapter-no {
    margin: 0 0 6px;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0891b2;
    font-weight: 700;
}

.chapter-card h2 {
    margin-bottom: 0;
    color: #0f4c81;
    font-size: 1.45rem;
}

.lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.lesson-list a {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lesson-list a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.12);
    border-color: #93c5fd;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.feature-card {
    padding: 22px;
}

.feature-card h3 {
    color: #155e75;
}

.home-footer {
    text-align: center;
    color: #475569;
    margin-top: 30px;
}

@media (max-width: 860px) {
    .chapter-grid,
    .feature-row {
        grid-template-columns: 1fr;
    }

    .home-hero,
    .intro-card,
    .chapter-card,
    .feature-card {
        padding: 22px;
    }
}
