/* ===== 棋韵阁 · 围棋招生 样式 ===== */

:root {
    --ink: #1a1a1a;
    --paper: #f5f0e6;
    --paper-2: #efe7d6;
    --wood: #c8a063;
    --wood-dark: #9a6f3a;
    --gold: #b8860b;
    --red: #a4232a;
    --jade: #2f6b5a;
    --text: #2b2b2b;
    --text-soft: #6b6b6b;
    --line: #d8cfbe;
    --shadow: 0 12px 40px rgba(60, 40, 10, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.75;
    overflow-x: hidden;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(245, 240, 230, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.logo-img { width: 38px; height: 38px; }
.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.25s;
}
.nav-links a:hover { color: var(--red); }

.nav-btn {
    background: var(--red);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 24px;
    transition: transform 0.25s, box-shadow 0.25s;
}
.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(164, 35, 42, 0.35);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== 首屏 ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 68px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(154,111,58,0.18), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(164,35,42,0.12), transparent 50%),
        linear-gradient(135deg, #f5f0e6 0%, #e8dcc4 100%);
}
.hero-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(40,30,15,0.07) 1.5px, transparent 1.5px);
    background-size: 34px 34px;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 24px;
}
.hero-tag {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(164,35,42,0.1);
    color: var(--red);
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: 4px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--ink);
}
.hero-title span { color: var(--red); }
.hero-subtitle {
    font-size: clamp(15px, 2vw, 19px);
    color: var(--text-soft);
    margin-bottom: 40px;
    line-height: 2;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: inherit;
}
.btn-primary {
    background: var(--red);
    color: #fff;
}
.btn-primary:hover {
    background: #8c1d23;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(164,35,42,0.35);
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
}
.btn-outline:hover {
    background: var(--ink);
    color: #fff;
}
.btn-soft {
    background: rgba(164,35,42,0.08);
    color: var(--red);
}
.btn-soft:hover {
    background: var(--red);
    color: #fff;
}
.btn-block { width: 100%; text-align: center; }

.hero-stats {
    display: flex;
    gap: 56px;
    justify-content: center;
    flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
    font-size: 40px;
    font-weight: 800;
    color: var(--wood-dark);
}
.stat span {
    font-size: 14px;
    color: var(--text-soft);
    letter-spacing: 2px;
}

/* ===== 通用 section ===== */
.section { padding: 100px 0; }
.section-header {
    text-align: center;
    margin-bottom: 64px;
}
.section-label {
    display: inline-block;
    color: var(--red);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 12px;
    position: relative;
}
.section-label::before, .section-label::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--red);
    vertical-align: middle;
    margin: 0 12px;
    opacity: 0.5;
}
.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 2px;
}
.section-title.light, .section-label.light { color: #fff; }
.section-label.light::before, .section-label.light::after { background: var(--gold); }
.section-desc {
    color: var(--text-soft);
    max-width: 600px;
    margin: 16px auto 0;
}

/* ===== 关于我们 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.about-text p {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 16px;
}
.about-list {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 14px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}
.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--jade);
    color: #fff;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
}
.about-visual {
    display: flex;
    justify-content: center;
}
.board-img {
    width: 100%;
    max-width: 420px;
    filter: drop-shadow(0 20px 40px rgba(60,40,10,0.25));
    border-radius: 16px;
}

/* ===== 课程 ===== */
.courses { background: var(--paper-2); }
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.course-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: transform 0.35s, box-shadow 0.35s;
    border: 1px solid var(--line);
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}
.course-card.featured {
    border: 2px solid var(--red);
}
.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 12px;
}
.course-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--wood), var(--wood-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}
.course-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--ink);
}
.course-age {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 14px;
}
.course-card p {
    color: var(--text-soft);
    font-size: 15px;
    margin-bottom: 24px;
    min-height: 66px;
}
.course-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 24px;
}
.course-price span { font-size: 16px; font-weight: 500; }

/* ===== 师资 ===== */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.teacher-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 28px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform 0.35s, box-shadow 0.35s;
}
.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.teacher-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 3px solid var(--wood);
}
.teacher-card h3 {
    font-size: 22px;
    color: var(--ink);
    margin-bottom: 4px;
}
.teacher-title {
    color: var(--red);
    font-size: 14px;
    margin-bottom: 14px;
}
.teacher-bio {
    color: var(--text-soft);
    font-size: 15px;
}

/* ===== 报名 ===== */
.enroll {
    background: linear-gradient(135deg, #2b2118 0%, #1a1a1a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.enroll::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(200,160,99,0.08) 1.5px, transparent 1.5px);
    background-size: 34px 34px;
}
.enroll-container {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.enroll-desc {
    color: rgba(255,255,255,0.75);
    margin: 20px 0 36px;
    font-size: 17px;
}
.enroll-meta {
    display: grid;
    gap: 20px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.meta-label {
    color: var(--wood);
    font-size: 13px;
    letter-spacing: 2px;
    min-width: 80px;
}
.meta-value {
    color: #fff;
    font-size: 16px;
}

.enroll-form {
    background: #fff;
    color: var(--text);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.enroll-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--ink);
    text-align: center;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-soft);
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: var(--paper);
    color: var(--text);
    transition: border-color 0.25s;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}
.form-note {
    text-align: center;
    color: var(--text-soft);
    font-size: 12px;
    margin-top: 12px;
}

/* ===== 页脚 ===== */
.footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    text-align: center;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}
.footer-text { font-size: 13px; }

/* ===== 提示 ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--jade);
    color: #fff;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.4s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 68px;
        right: 0;
        width: 240px;
        height: calc(100vh - 68px);
        background: var(--paper);
        flex-direction: column;
        padding: 32px;
        gap: 20px;
        transform: translateX(100%);
        transition: transform 0.3s;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }
    .nav-links.open { transform: translateX(0); }
    .menu-toggle { display: flex; }

    .about-grid, .enroll-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .course-grid, .teacher-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-stats { gap: 32px; }
    .section { padding: 64px 0; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; text-align: center; }
    .stat strong { font-size: 32px; }
}
