/* SGG外语学院 中文站 —— 视觉与 2027 学校案内统一：米白底、珊瑚红主色、青绿辅色、圆角照片 */
:root {
  --coral: #C65F5A;        /* 宣传册主色 */
  --coral-deep: #A94C47;
  --coral-soft: #F6E3E0;
  --teal: #237A80;         /* 宣传册辅色 */
  --teal-light: #5DA9AE;
  --teal-soft: #E3EFEF;
  --cream: #F6F2EC;        /* 宣传册封面的米白 */
  --card: #FFFFFF;
  --ink: #2A2522;          /* 暖调近黑 */
  --muted: #6F6660;
  --line: #E7DFD5;
  --shadow: 0 1px 2px rgba(90, 50, 40, .05), 0 8px 24px rgba(90, 50, 40, .07);
  --r-lg: 24px; --r-md: 16px; --r-sm: 10px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px; line-height: 1.85; font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 6px; z-index: 30; }
.skip:focus { left: 8px; }

/* ── 页头 ── */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { height: 38px; width: auto; }
.brand span { font-size: 12px; color: var(--muted); line-height: 1.3; letter-spacing: .04em; }
header.top nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
header.top nav a { display: block; padding: 6px 10px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
header.top nav a:hover { background: var(--coral-soft); color: var(--coral-deep); }
header.top nav a[aria-current="page"] { background: var(--coral); color: #fff; }
@media (max-width: 900px) {
  header.top .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: 8px; }
  .brand span { display: none; }
  header.top nav { overflow-x: auto; scrollbar-width: none; margin: 4px -20px 0; padding: 0 14px 8px; }
  header.top nav::-webkit-scrollbar { display: none; }
}

/* ── 首页首屏 ── */
.home-hero { padding: 28px 0 0; }
.home-hero .frame { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 36px 36px 0; box-shadow: var(--shadow); overflow: hidden; }
.home-hero .kicker { margin: 0; color: var(--coral); font-weight: 800; letter-spacing: .02em; font-size: clamp(30px, 6.2vw, 64px); line-height: 1.02; }
.home-hero h1 { margin: 14px 0 10px; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.35; font-weight: 800; text-wrap: balance; }
.home-hero .lead { max-width: 640px; color: var(--muted); font-size: 16.5px; margin: 0 0 22px; }
.home-hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.home-hero .photo-wide { margin: 0 -36px; height: clamp(220px, 38vw, 440px); }
.home-hero .photo-wide img { width: 100%; height: 100%; object-fit: cover; }
.since { position: absolute; right: 36px; top: 36px; text-align: right; color: var(--coral); font-weight: 800; line-height: 1.05; font-size: 22px; }
.since small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; }
@media (max-width: 700px) { .home-hero .frame { padding: 24px 20px 0; } .home-hero .photo-wide { margin: 0 -20px; } .since { position: static; text-align: left; margin-bottom: 8px; } }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 6px 16px rgba(198, 95, 90, .28); }
.btn-primary:hover { background: var(--coral-deep); color: #fff; }
.btn-ghost { background: var(--teal-soft); color: var(--teal); }
.btn-ghost:hover { background: #d3e6e6; color: var(--teal); }

/* ── 内页首屏 ── */
.page-hero { padding: 28px 0 8px; }
.page-hero .inner { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; background: var(--coral); color: #fff; border-radius: var(--r-lg); padding: 34px 36px; overflow: hidden; position: relative; }
.page-hero.has-img .inner { grid-template-columns: 1.15fr .85fr; padding-right: 0; padding-top: 0; padding-bottom: 0; }
.page-hero .text { padding: 34px 0; }
.page-hero.has-img .text { padding-right: 8px; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(26px, 4vw, 40px); line-height: 1.3; font-weight: 800; text-wrap: balance; }
.page-hero .lead { margin: 0; font-size: 16.5px; opacity: .95; max-width: 640px; }
.page-hero .bc { margin: 0 0 12px; font-size: 13px; opacity: .9; }
.page-hero .bc a { color: #fff; }
.page-hero .en { display: block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.page-hero figure { margin: 0; align-self: stretch; min-height: 260px; }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .page-hero .inner, .page-hero.has-img .inner { grid-template-columns: 1fr; padding: 0 22px; }
  .page-hero .text { padding: 26px 0 22px; }
  .page-hero.has-img figure { margin: 0 -22px; min-height: 0; height: 210px; order: -1; }
}

/* ── 正文 ── */
main section { padding: 44px 0 6px; }
main section + section { border-top: 1px dashed var(--line); }
h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 18px; line-height: 1.35; font-weight: 800; text-wrap: balance; }
h2[data-en]::after { content: attr(data-en); display: block; margin-top: 4px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
h2::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--coral); margin-bottom: 12px; }
h3 { font-size: 18.5px; margin: 26px 0 10px; font-weight: 700; }
p { margin: 0 0 14px; max-width: 72ch; }
.note { color: var(--muted); font-size: 13.5px; }
.callout { background: var(--card); border-left: 4px solid var(--coral); border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 16px; box-shadow: var(--shadow); max-width: none; }
.thin { background: var(--teal-soft); border-radius: var(--r-sm); padding: 10px 14px; font-size: 14px; color: var(--muted); }
ul.plain, ol.plain { margin: 0 0 14px; padding-left: 1.3em; max-width: 76ch; }
ul.plain li, ol.plain li { margin: 5px 0; }
ul.plain li::marker { color: var(--coral); }
ol.plain li::marker { color: var(--coral); font-weight: 700; }

/* 两栏：文字 + 照片 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 18px; } .split.rev > :first-child { order: 0; } }

/* 照片 */
figure.ph { margin: 0 0 14px; }
figure.ph img { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow); object-fit: cover; }
figure.ph.tall img { aspect-ratio: 4 / 5; }
figure.ph.wide img { aspect-ratio: 16 / 9; }
figure.ph.map { max-width: 520px; }
figure.ph.map img { box-shadow: none; border: 1px solid var(--line); background: #fff; }
.split figure.ph.map { max-width: none; }
figure.ph figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin: 6px 0 16px; }
.gallery figure.ph { margin: 0; grid-column: span 4; }
.gallery figure.ph img { aspect-ratio: 4 / 3; height: 100%; }
.gallery figure.ph:first-child { grid-column: span 8; grid-row: span 2; }
.gallery figure.ph:first-child img { aspect-ratio: auto; height: 100%; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure.ph, .gallery figure.ph:first-child { grid-column: span 1; grid-row: auto; } .gallery figure.ph:first-child { grid-column: span 2; } .gallery figure.ph:first-child img { aspect-ratio: 16 / 10; } }

/* 人物 */
.person { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); margin: 0 0 16px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-md); }
.person .role { color: var(--coral); font-weight: 700; font-size: 14px; margin: 0 0 2px; }
.person .name { font-size: 22px; font-weight: 800; margin: 0 0 10px; }
.person p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; } .person img { aspect-ratio: 4 / 3; } }

/* 表格 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 14px; border-radius: var(--r-md); box-shadow: var(--shadow); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
th { background: var(--teal-soft); color: #18575B; font-weight: 700; }
table.kv th { width: 8em; white-space: nowrap; background: #F2F7F7; }
td + td, th + th, th + td { border-left: 1px solid var(--line); }

/* 数字块（宣传册的大号数字） */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 0 0 18px; }
.fact { background: var(--card); border-radius: var(--r-md); padding: 16px 18px 14px; box-shadow: var(--shadow); }
.fact b { display: block; font-size: clamp(26px, 3.2vw, 34px); color: var(--coral); line-height: 1.15; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.home-facts { margin-top: -28px; position: relative; z-index: 2; padding: 0 16px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 16px; }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-md); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card .body { padding: 16px 18px 18px; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card b { display: block; color: var(--ink); font-size: 17.5px; margin-bottom: 4px; font-weight: 700; }
.card span { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card .num { color: var(--coral); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.card:not(:has(.body)) { padding: 16px 18px 18px; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(90, 50, 40, .06), 0 14px 32px rgba(90, 50, 40, .12); color: var(--ink); }
a.card:hover b { color: var(--coral); }
a.card:active { transform: translateY(-1px); }

.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .cards.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .cards.cols-3 { grid-template-columns: 1fr; } }

/* 合格故事 */
.story { background: var(--card); border-radius: var(--r-md); padding: 18px 20px; margin: 0 0 12px; box-shadow: var(--shadow); position: relative; }
.story::before { content: "“"; position: absolute; right: 18px; top: -6px; font-size: 64px; color: var(--coral-soft); font-weight: 800; line-height: 1; }
.story b { color: var(--coral); font-size: 17px; }

/* FAQ */
.faq details { background: var(--card); border-radius: var(--r-sm); padding: 0; margin: 0 0 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 48px 14px 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #3d3632; }
.faq h3 { margin-top: 30px; }

/* 页脚 */
footer.site { margin-top: 64px; background: #1E5458; color: #DCE9E9; padding: 44px 0 36px; font-size: 14px; }
footer.site a { color: #fff; }
footer.site .grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px; }
footer.site img { height: 44px; width: auto; margin-bottom: 12px; }
footer.site .contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; }
footer.site .contacts b { color: #fff; display: block; }
footer.site p { margin: 0 0 8px; max-width: none; }
footer.site .fine { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 24px; padding-top: 16px; font-size: 12.5px; color: #A9C6C7; }
@media (max-width: 760px) { footer.site .grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
