/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "PingFang SC", sans-serif;
    color: #1a1a2e;
    background: #f8f9fa;
    line-height: 1.7;
}

/* ===== Nav ===== */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 24px;
}
.nav-logo { color: #ffd700; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: #ffd700; }

/* ===== Hero ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    text-align: center;
    padding: 80px 24px 60px;
}
.hero h1 { font-size: 2.8rem; margin-bottom: 12px; }
.hero .emoji { font-size: 2.4rem; }
.tagline { font-size: 1.3rem; color: #ffd700; margin-bottom: 8px; }
.subtitle { font-size: 1rem; color: #8a8aa0; font-style: italic; }

/* ===== Container ===== */
.container { max-width: 900px; margin: 0 auto; padding: 40px 24px 60px; }

/* ===== Sections ===== */
.section { margin-bottom: 48px; }
.section h2 { font-size: 1.6rem; margin-bottom: 20px; color: #1a1a2e; border-bottom: 2px solid #ffd700; padding-bottom: 8px; display: inline-block; }
.company { font-size: 0.9rem; color: #888; font-weight: normal; }

/* ===== Cards ===== */
.card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    line-height: 1.9;
}
.card p { margin-bottom: 12px; }
.card blockquote {
    border-left: 4px solid #ffd700;
    padding: 12px 20px;
    margin: 16px 0;
    background: #faf8e8;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* ===== Chapter Grid ===== */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.chapter-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.chapter-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.chapter-num { font-size: 0.8rem; color: #ffd700; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.chapter-card h3 { font-size: 1.15rem; margin: 8px 0; color: #1a1a2e; }
.chapter-card p { font-size: 0.9rem; color: #666; line-height: 1.6; }

/* ===== Team Grid ===== */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.team-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    display: flex; flex-direction: column; gap: 4px;
}
.team-card .role { font-size: 0.7rem; color: #999; text-transform: uppercase; letter-spacing: 1px; }
.team-card strong { font-size: 1.05rem; color: #1a1a2e; }
.team-card .desc { font-size: 0.85rem; color: #777; }
.team-card.highlight { border: 2px solid #ffd700; background: #fffdf0; }

/* ===== Footer ===== */
.footer {
    background: #1a1a2e;
    color: #888;
    text-align: center;
    padding: 32px 24px;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer p { margin-bottom: 4px; }
.footer-small { font-size: 0.8rem; color: #666; }

/* ===== Chapter Page ===== */
.chapter-list { display: flex; flex-direction: column; gap: 20px; }
.chapter-entry { background: #fff; border-radius: 12px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.chapter-entry .meta { font-size: 0.85rem; color: #999; margin-bottom: 8px; }
.chapter-entry h2 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 12px; border: none; display: block; }
.chapter-entry .content { line-height: 1.9; color: #333; }
.chapter-entry .content p { margin-bottom: 14px; }
.chapter-entry .content blockquote {
    border-left: 3px solid #ffd700;
    padding: 10px 16px;
    margin: 12px 0;
    background: #faf8e8;
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: #555;
}

/* ===== Rules Page ===== */
.rules-grid { display: flex; flex-direction: column; gap: 16px; }
.rule-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #e74c3c;
}
.rule-card h3 { font-size: 1.1rem; color: #c0392b; margin-bottom: 8px; }
.rule-card .lesson { font-size: 0.85rem; color: #999; margin-bottom: 6px; }
.rule-card .rule-text { color: #333; line-height: 1.7; }

/* ===== About Page ===== */
.about-content { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); line-height: 1.9; }
.about-content p { margin-bottom: 14px; }

/* ===== Featured Cards (首页) ===== */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card.featured { position: relative; padding-bottom: 60px; }
.card.featured h3 { margin-bottom: 10px; color: #1a1a2e; font-size: 1.15rem; }
.card.featured p { font-size: 0.92rem; color: #555; }
.badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.read-more {
    position: absolute;
    bottom: 20px; left: 28px;
    color: #0051ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.read-more:hover { text-decoration: underline; }

/* ===== Highlight Section ===== */
.highlight-section { text-align: center; padding: 20px 0; }
.big-quote {
    font-size: 1.5rem;
    font-style: italic;
    color: #1a1a2e;
    border: none;
    background: none;
    padding: 0;
    line-height: 1.6;
}

/* ===== Mini Team Grid ===== */
.mini-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.team-card.mini { padding: 14px 10px; }
.team-card.mini .role { font-size: 0.65rem; }
.team-card.mini strong { font-size: 0.95rem; }

/* ===== Domain Badge ===== */
.domain { font-size: 0.9rem; color: #8a8aa0; font-family: monospace; letter-spacing: 1px; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.8rem; }
    .hero h1 { font-size: 2rem; }
    .tagline { font-size: 1rem; }
    .chapter-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}
