/* ==========================================================================
   纽约房地产学校 · 家禾置业 JIAHE REALTY
   设计系统 — 品牌色取自校徽（深蓝 #31394C / 铜金 #C08A45 / 朱红 #A93B31）
   ========================================================================== */

:root {
    /* 品牌色 */
    --navy: #31394C;
    --navy-deep: #232A3A;
    --navy-ink: #171C27;
    --gold: #C08A45;
    --gold-light: #D9A961;
    --gold-soft: #F3E6D2;
    --red: #A93B31;

    /* 中性色 */
    --ink: #1F242E;
    --body: #4A5162;
    --muted: #7A8296;
    --line: #E4E7EC;
    --cream: #FAF8F4;
    --cream-deep: #F2EEE7;
    --white: #FFFFFF;

    /* 排版 */
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
                 "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: "Songti SC", "SimSun", "Source Han Serif SC", "Noto Serif SC", Georgia, serif;

    /* 尺度 */
    --container: 1200px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(35, 42, 58, .06);
    --shadow: 0 8px 30px rgba(35, 42, 58, .09);
    --shadow-lg: 0 20px 60px rgba(35, 42, 58, .14);
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------- Reset -- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* 内联图标统一为线框风格；具体尺寸/颜色由各组件覆盖 */
svg { fill: none; stroke: currentColor; stroke-width: 1.8; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5 {
    margin: 0 0 .6em;
    color: var(--ink);
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.05rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .5em; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 22px;
}
.container-narrow { max-width: 860px; }

section { padding: 84px 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, .82); }
.section-navy h2, .section-navy h3 { color: var(--white); }
/* 深色区块内的白底卡片，标题需回到深色 */
.section-navy .card h3,
.section-navy .teacher-card h3,
.section-navy .course-card h3,
.section-navy .course-card h3 a,
.section-navy .post-card h3,
.section-navy .post-card h3 a,
.section-navy .quote-card h3,
.section-navy .faq-item summary { color: var(--ink); }
.section-tight { padding: 56px 0; }

/* ------------------------------------------------------------- 通用组件 -- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: .9rem;
}
.eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--gold);
}
.section-navy .eyebrow { color: var(--gold-light); }
.section-navy .eyebrow::before { background: var(--gold-light); }

.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { font-size: 1.05rem; color: var(--muted); margin-bottom: 0; }
.section-navy .section-head p { color: rgba(255, 255, 255, .72); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: 14px 30px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: .98rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.4;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--gold); border-color: var(--gold); color: var(--white); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 10px 22px; font-size: .9rem; }
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------------------------------------------------------------- 顶栏 -- */
.topbar {
    background: var(--navy-deep);
    color: rgba(255, 255, 255, .72);
    font-size: .87rem;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 44px;
    flex-wrap: wrap;
}
.topbar-info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .45em; color: rgba(255, 255, 255, .78); }
.topbar-info a:hover { color: var(--gold-light); }
.topbar-info svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.topbar-note { color: var(--gold-light); font-weight: 600; }

/* -------------------------------------------------------------- 导航栏 -- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(35, 42, 58, .04);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 78px;
}
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 1.06rem; color: var(--navy); font-weight: 800; letter-spacing: .02em; }
.logo-text small { font-size: .7rem; color: var(--muted); letter-spacing: .12em; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu > li { margin: 0; position: relative; }
.nav-menu > li > a {
    display: block;
    padding: 10px 14px;
    font-size: .97rem;
    font-weight: 600;
    color: var(--ink);
    border-radius: 8px;
}
.nav-menu > li > a:hover,
.nav-menu > li.current > a { color: var(--gold); background: var(--cream); }

.nav-menu .has-sub > a::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-left: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .55;
}
.sub-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 246px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}
.has-sub:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li { margin: 0; }
.sub-menu a {
    display: block;
    padding: 9px 14px;
    font-size: .93rem;
    color: var(--body);
    border-radius: 8px;
}
.sub-menu a:hover { background: var(--cream); color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    padding: 0;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 20px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: var(--transition);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 6px; left: 0; transform: none; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- Hero -- */
.hero {
    position: relative;
    background: var(--navy);
    color: rgba(255, 255, 255, .88);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%;
    height: 100%;
    opacity: .3;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(23, 28, 39, .93) 0%, rgba(49, 57, 76, .84) 48%, rgba(49, 57, 76, .58) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { padding: 96px 0 88px; max-width: 730px; }
.hero h1 { color: var(--white); margin-bottom: .45em; }
.hero h1 em {
    font-style: normal;
    color: var(--gold-light);
    display: block;
}
.hero-lead {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 1.7em;
    max-width: 620px;
}
.hero-points {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    gap: 12px;
}
.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, .9);
}
.hero-points li::before {
    content: "";
    flex: none;
    width: 20px; height: 20px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* 页面小 Hero */
.page-hero {
    position: relative;
    background: var(--navy);
    color: rgba(255, 255, 255, .8);
    padding: 68px 0 60px;
    overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; }
.page-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(23, 28, 39, .92), rgba(49, 57, 76, .72));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { max-width: 720px; color: rgba(255, 255, 255, .78); margin-bottom: 0; }

.breadcrumb {
    font-size: .87rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255, 255, 255, .78); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { margin: 0 .5em; opacity: .5; }

/* --------------------------------------------------------------- 数据条 -- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2px;
    background: var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat {
    background: var(--white);
    padding: 30px 20px;
    text-align: center;
}
.stat strong {
    display: block;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: .2em;
}
.stat span { font-size: .92rem; color: var(--muted); }
.section-navy .stats { background: rgba(255, 255, 255, .14); }
.section-navy .stat { background: var(--navy); }
.section-navy .stat strong { color: var(--gold-light); }
.section-navy .stat span { color: rgba(255, 255, 255, .7); }

/* --------------------------------------------------------------- 网格 -- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 52px;
    align-items: center;
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

/* --------------------------------------------------------------- 卡片 -- */
.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    height: 100%;
}
.card:hover { border-color: var(--gold-soft); box-shadow: var(--shadow); transform: translateY(-4px); }
.card h3 { margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    margin-bottom: 18px;
    border-radius: 12px;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 800;
}
.card-icon {
    width: 52px; height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.card-icon svg { width: 25px; height: 25px; stroke: var(--gold-light); fill: none; stroke-width: 1.7; }

/* ------------------------------------------------------------- 课程卡 -- */
.course-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); border-color: transparent; }
.course-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-price {
    position: absolute;
    left: 16px; bottom: 16px;
    background: var(--gold);
    color: var(--white);
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
}
.course-hours {
    position: absolute;
    right: 16px; top: 16px;
    background: rgba(23, 28, 39, .82);
    color: var(--white);
    padding: 6px 13px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
}
.course-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.course-tag { font-size: .8rem; color: var(--gold); font-weight: 700; letter-spacing: .06em; margin-bottom: .55em; }
.course-body h3 { font-size: 1.24rem; margin-bottom: .5em; }
.course-body h3 a { color: var(--ink); }
.course-body h3 a:hover { color: var(--gold); }
.course-body > p { font-size: .95rem; color: var(--muted); flex: 1; }
.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 16px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
    font-size: .87rem;
    color: var(--muted);
}
.course-meta span { display: inline-flex; align-items: center; gap: .4em; }
.course-meta svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 1.8; }

/* ------------------------------------------------------------- 老师卡 -- */
.teacher-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}
.teacher-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.teacher-photo {
    aspect-ratio: 1 / 1;
    background: linear-gradient(160deg, var(--cream-deep), var(--gold-soft));
    overflow: hidden;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-card-body { padding: 22px 18px 26px; }
.teacher-card h3 { font-size: 1.16rem; margin-bottom: .2em; }
.teacher-card p { font-size: .9rem; color: var(--gold); font-weight: 600; margin: 0; }

/* 老师详情 */
.teacher-profile {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}
.teacher-profile-photo { border-radius: var(--radius); overflow: hidden; background: var(--cream-deep); aspect-ratio: 3 / 4; }
.teacher-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-profile h2 { margin-bottom: .15em; }
.teacher-role { color: var(--gold); font-weight: 700; margin-bottom: 1.3em; }
.profile-block { margin-bottom: 1.4em; }
.profile-block:last-child { margin-bottom: 0; }
.profile-block h4 {
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5em;
}
.profile-block ul { margin: 0; padding-left: 1.15em; }
.profile-block li { font-size: .96rem; }

/* ------------------------------------------------------------- 博客卡 -- */
.post-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream-deep); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-cat {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .05em;
    margin-bottom: .6em;
}
.post-body h3 { font-size: 1.13rem; line-height: 1.5; margin-bottom: .5em; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--gold); }
.post-body p { font-size: .94rem; color: var(--muted); flex: 1; margin-bottom: 1em; }
.post-date { font-size: .84rem; color: var(--muted); }

/* --------------------------------------------------------- 文章正文 -- */
.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 52px;
    align-items: start;
}
.article-body { font-size: 1.03rem; }
.article-body > img,
.article-figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; margin-bottom: 1.6em; }
.article-body h2 {
    margin-top: 1.9em;
    padding-top: .2em;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 1.6em; font-size: 1.2rem; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li { margin-bottom: .65em; }
.article-body strong { color: var(--ink); }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    padding-bottom: 22px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
}
.article-meta span { display: inline-flex; align-items: center; gap: .45em; }
.article-meta svg { width: 15px; height: 15px; flex: none; stroke: var(--gold); }

.callout {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 24px 28px;
    margin: 2em 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin-bottom: .5em; color: var(--navy); }

.sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }
.widget {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 26px 24px;
}
.widget h3 { font-size: 1.06rem; margin-bottom: .9em; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: .7em; padding-bottom: .7em; border-bottom: 1px solid var(--line); }
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget a { color: var(--body); font-size: .95rem; font-weight: 600; line-height: 1.55; display: block; }
.widget a:hover { color: var(--gold); }
.widget-cta { background: var(--navy); color: rgba(255, 255, 255, .82); text-align: center; }
.widget-cta h3 { color: var(--white); }
.widget-cta p { font-size: .94rem; }

.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 2.2em; }
.tag {
    display: inline-block;
    padding: 6px 15px;
    background: var(--cream);
    border-radius: 999px;
    font-size: .84rem;
    color: var(--body);
}
a.tag:hover { background: var(--gold); color: var(--white); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 2.6em;
    padding-top: 2em;
    border-top: 1px solid var(--line);
}
.post-nav a {
    display: block;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.5;
}
.post-nav a:hover { border-color: var(--gold); color: var(--gold); }
.post-nav small { display: block; font-size: .8rem; color: var(--muted); font-weight: 500; margin-bottom: .35em; }
.post-nav .next { text-align: right; }

/* ---------------------------------------------------------------- FAQ -- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.faq-item[open] { border-color: var(--gold-soft); box-shadow: var(--shadow-sm); }
.faq-item summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.03rem;
    line-height: 1.6;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    flex: none;
    width: 20px; height: 20px;
    margin-top: 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C08A45' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/18px no-repeat;
    transition: var(--transition);
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item .faq-answer { padding: 0 24px 22px; color: var(--body); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- 评价 -- */
.quote-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    border: 1px solid var(--line);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.quote-card::before {
    content: "\201C";
    font-family: var(--font-serif);
    font-size: 3.6rem;
    line-height: .8;
    color: var(--gold);
    opacity: .35;
    margin-bottom: .1em;
}
.quote-card p { font-size: 1rem; color: var(--body); flex: 1; }
.quote-author { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.quote-author strong { color: var(--ink); font-size: .98rem; }
.quote-author span { font-size: .86rem; color: var(--muted); }
.quote-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    flex: none;
}
.stars { color: var(--gold); letter-spacing: .12em; font-size: .95rem; margin-bottom: .7em; }

/* -------------------------------------------------------------- 相册 -- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream-deep);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 26px 18px 14px;
    background: linear-gradient(transparent, rgba(23, 28, 39, .86));
    color: var(--white);
    font-size: .92rem;
    font-weight: 600;
}

/* ------------------------------------------------------------- 联系页 -- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 42px;
    align-items: start;
}
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; margin: 0; }
.info-ico {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--gold-soft);
    display: flex; align-items: center; justify-content: center;
}
.info-ico svg { width: 21px; height: 21px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.info-list h4 { margin-bottom: .2em; font-size: .98rem; }
.info-list p { margin: 0; font-size: .98rem; }
.info-list a { color: var(--body); }
.info-list a:hover { color: var(--gold); }

.contact-form {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .45em;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-family: inherit;
    font-size: .97rem;
    color: var(--ink);
    background: var(--white);
    transition: var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(192, 138, 69, .14);
}
.contact-form textarea { min-height: 128px; resize: vertical; }
.contact-form button { width: 100%; margin-top: 6px; }
.form-note { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}
.map-embed iframe { width: 100%; height: 380px; border: 0; }

/* ---------------------------------------------------------------- CTA -- */
.cta-band {
    position: relative;
    background: var(--navy);
    color: rgba(255, 255, 255, .82);
    padding: 70px 0;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    right: -120px; top: -120px;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 138, 69, .3), transparent 68%);
}
.cta-band .container { position: relative; z-index: 2; }
.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    flex-wrap: wrap;
}
.cta-inner h2 { color: var(--white); margin-bottom: .3em; }
.cta-inner p { margin-bottom: 0; color: rgba(255, 255, 255, .76); max-width: 560px; }

/* --------------------------------------------------------------- 页脚 -- */
footer {
    background: var(--navy-ink);
    color: rgba(255, 255, 255, .68);
    padding: 66px 0 26px;
    font-size: .95rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 46px;
}
.footer-section h3 {
    color: var(--white);
    font-size: 1.04rem;
    margin-bottom: 1.1em;
}
.footer-section p { margin-bottom: .7em; line-height: 1.75; }
.footer-section a { color: rgba(255, 255, 255, .68); }
.footer-section a:hover { color: var(--gold-light); }
.footer-section ul { list-style: none; margin: 0; padding: 0; }
.footer-section li { margin-bottom: .55em; }
.footer-logo { height: 44px; width: auto; margin-bottom: 18px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 5px; stroke: var(--gold); fill: none; stroke-width: 1.8; }

.footer-bottom {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
    font-size: .89rem;
}
.footer-bottom p { margin-bottom: .5em; }
.footer-partner { margin-top: 1rem; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.footer-partner a { color: var(--gold-light); }
.footer-partner a:hover { color: var(--white); }

/* ------------------------------------------------------------ 辅助类 -- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-3 { margin-top: 2rem; }
.lead { font-size: 1.08rem; color: var(--body); }

.prose-table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .96rem; }
.prose-table th, .prose-table td { padding: 13px 16px; border: 1px solid var(--line); text-align: left; }
.prose-table th { background: var(--cream); color: var(--ink); font-weight: 700; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ------------------------------------------------------------- 响应式 -- */
@media (max-width: 992px) {
    .article-layout { grid-template-columns: 1fr; gap: 44px; }
    .sidebar { position: static; }
    .footer-content { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; }
    .teacher-profile { grid-template-columns: 1fr; gap: 26px; padding: 26px; }
    .teacher-profile-photo { max-width: 260px; aspect-ratio: 3 / 4; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .nav-cta .btn { display: none; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(330px, 86vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 86px 20px 40px;
        overflow-y: auto;
        box-shadow: -12px 0 40px rgba(23, 28, 39, .18);
        transform: translateX(100%);
        transition: transform .32s cubic-bezier(.4, 0, .2, 1);
        z-index: 950;
    }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu > li > a { padding: 13px 12px; border-radius: 10px; font-size: 1.02rem; }
    .nav-menu .has-sub > a::after { float: right; margin-top: 9px; }
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--gold-soft);
        border-radius: 0;
        margin: 2px 0 8px 14px;
        padding: 0 0 0 8px;
        display: none;
    }
    .has-sub.open .sub-menu { display: block; }
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(23, 28, 39, .45);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 940;
    }
    .nav-backdrop.show { opacity: 1; visibility: visible; }
    .nav-toggle { z-index: 960; }

    .topbar-info span.hide-sm { display: none; }
    section { padding: 62px 0; }
    .hero-inner { padding: 72px 0 66px; }
    .split { gap: 34px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .container { padding: 0 18px; }
    section { padding: 52px 0; }
    .card, .contact-form, .quote-card { padding: 24px 20px; }
    .stat { padding: 22px 14px; }
    .stat strong { font-size: 1.75rem; }
    .btn { padding: 13px 24px; font-size: .95rem; }
    .btn-lg { padding: 15px 28px; font-size: 1rem; }
    .topbar .container { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
    .topbar-note { display: none; }
    .logo img { height: 38px; }
}

@media print {
    .topbar, .site-header, .cta-band, footer, .nav-toggle { display: none; }
}
