/* ===========================================================
   大旭日留资料库 — 学术高端风 Design System
   配色：暖象牙底 + 墨蓝主色 + 暖金点缀
   字体：衬线标题（Noto Serif SC / Playfair Display）+ 无衬线正文
   =========================================================== */
:root {
  --paper: #faf8f3;
  --paper-2: #f1ede3;
  --ink: #1c2230;
  --ink-soft: #444b59;
  --muted: #8a8576;
  --line: #e4ded2;
  --line-soft: #efe9dc;
  --gold: #a8843c;
  --gold-2: #c8a86a;
  --gold-soft: #f3ead8;
  --navy: #14233b;
  --navy-2: #1d3150;
  --white: #ffffff;
  --nat: #1f6b46; --nat-bg: #e7f1ec;
  --pub: #9a6a12; --pub-bg: #f6ecd6;
  --pri: #7a4fb0; --pri-bg: #efe7f8;
  --radius: 6px;
  --shadow: 0 2px 4px rgba(20,30,60,.05), 0 18px 40px rgba(20,30,60,.08);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1080px, 92vw); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,243,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--navy); color: var(--gold-2); font-family: var(--serif);
  font-size: 20px; border-radius: 4px; letter-spacing: 0;
}
.nav { display: flex; gap: 30px; }
.nav a { position: relative; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; letter-spacing: .5px; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--gold); transition: .25s; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a:hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 30px; border-radius: 3px;
  font-weight: 600; font-size: 15px; letter-spacing: .5px; transition: .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #1c150a; }
.btn-primary:hover { background: var(--gold-2); text-decoration: none; color: #1c150a; }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(28,35,59,.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.btn-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-dark:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* ---------- Hero (full-bleed navy) ---------- */
.hero {
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(1100px 520px at 78% -15%, rgba(200,168,106,.20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f4f1ea;
}
.hero-inner { width: min(1080px, 92vw); margin: 0 auto; padding: 96px 0 0; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--gold-2); font-size: 13px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 600;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold-2); display: inline-block; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: 1px;
  font-size: clamp(40px, 6vw, 66px); line-height: 1.12; margin: 20px 0 16px;
}
.hero h1 .en {
  display: block; font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(15px, 2.2vw, 22px); color: var(--gold-2); letter-spacing: 2px; margin-top: 14px;
}
.hero .lede { color: #d9d4c8; max-width: 640px; font-size: 17px; line-height: 1.85; margin: 0; }
.hero .cta { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.08); border-top: 1px solid rgba(255,255,255,.14);
  margin-top: 56px;
}
.hero-stats .stat { background: transparent; padding: 26px 18px; text-align: center; }
.hero-stats .num { font-family: var(--display); font-size: 38px; font-weight: 600; color: var(--gold-2); line-height: 1; }
.hero-stats .lab { color: #bcb6a8; font-size: 13px; margin-top: 10px; }

/* ---------- Generic Section ---------- */
.section { width: min(1080px, 92vw); margin: 0 auto; padding: 86px 0; }
.section-alt { background: var(--paper-2); }
.section-head { margin-bottom: 42px; }
.section-head .kicker { color: var(--gold); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-family: var(--serif); font-size: 32px; font-weight: 700; margin: 10px 0 0; color: var(--ink); letter-spacing: .5px; }
.section-head .rule { width: 56px; height: 3px; background: var(--gold); margin-top: 16px; }
.section-head p.lead { color: var(--ink-soft); max-width: 700px; margin-top: 16px; line-height: 1.85; }

/* ---------- Mentor ---------- */
.mentor {
  display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.mentor .avatar {
  width: 180px; height: 180px; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: var(--gold-2); display: grid; place-items: center;
  font-family: var(--serif); font-size: 76px; border: 3px solid var(--gold);
}
.mentor .name { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--ink); }
.mentor .role { color: var(--gold); font-size: 14px; letter-spacing: 1px; margin: 6px 0 16px; font-weight: 600; }
.mentor .bio { color: var(--ink-soft); line-height: 1.95; margin: 0; }

/* ---------- Courses ---------- */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.course {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: .2s;
}
.course:hover { transform: translateY(-4px); }
.course .no { font-family: var(--display); font-size: 26px; color: var(--gold); }
.course h3 { font-family: var(--serif); font-size: 20px; margin: 10px 0 12px; color: var(--ink); }
.course p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.85; margin: 0; }

/* ---------- University grid ---------- */
.uni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: block; position: relative; overflow: hidden; transition: .2s;
}
.card::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--gold); transition: .25s; }
.card:hover { transform: translateY(-4px); text-decoration: none; border-color: var(--gold); }
.card:hover::after { width: 100%; }
.card h3 { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 12px 0 6px; }
.card .meta { color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.card .excerpt { color: var(--ink-soft); font-size: 14px; margin: 0 0 12px; line-height: 1.7; }
.card .mini { color: var(--muted); font-size: 12px; margin: 0; }
.empty { color: var(--muted); padding: 30px 0; }

/* ---------- Tags ---------- */
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 5px; }
.tag-nat { color: var(--nat); background: var(--nat-bg); }
.tag-pub { color: var(--pub); background: var(--pub-bg); }
.tag-pri { color: var(--pri); background: var(--pri-bg); }

/* ---------- Contact panel (navy) ---------- */
.contact-panel {
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #f4f1ea;
  border-radius: 8px; padding: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
}
.contact-panel h2 { font-family: var(--serif); font-size: 28px; color: #fff; margin: 0; line-height: 1.4; }
.contact-panel .items { display: flex; flex-direction: column; gap: 14px; }
.contact-panel .item {
  display: flex; align-items: center; gap: 16px; padding: 15px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 6px;
}
.contact-panel .item .k { color: var(--gold-2); font-weight: 600; min-width: 52px; letter-spacing: .5px; }
.contact-panel .item span:last-child { color: #e9e4d8; }

/* ---------- Sample ribbon ---------- */
.sample-ribbon {
  display: inline-block; background: var(--gold-soft); color: #8a6a1a; font-size: 12px;
  font-weight: 700; padding: 4px 12px; border-radius: 5px; margin-bottom: 10px; border: 1px solid var(--gold);
}

/* ---------- Detail page ---------- */
.detail { width: min(1000px, 92vw); margin: 0 auto; padding: 36px 0 70px; }
.back { display: inline-block; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.detail-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 30px; }
.detail-head h1 { font-family: var(--serif); font-size: 30px; margin: 12px 0 8px; letter-spacing: .5px; }
.detail-head .sub { color: var(--muted); margin: 0; }
.detail-body { display: grid; grid-template-columns: 264px 1fr; gap: 38px; align-items: start; }
.sidebar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); position: sticky; top: 90px; }
.sidebar h4 { margin: 0 0 12px; font-size: 15px; font-family: var(--serif); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sidebar li:last-child { border-bottom: none; }
.sidebar li span { color: var(--muted); }
.sidebar .note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); background: var(--gold-soft); padding: 11px; border-radius: 8px; }

/* Content typography */
.content h2 { font-family: var(--serif); font-size: 22px; margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); }
.content h3 { font-family: var(--serif); font-size: 18px; margin: 26px 0 10px; }
.content p { margin: 12px 0; line-height: 1.9; }
.content ul, .content ol { padding-left: 22px; margin: 12px 0; }
.content li { margin: 6px 0; }
.content blockquote { margin: 16px 0; padding: 14px 18px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 8px; color: #4a3c1c; }
.content code { background: #efe9dc; padding: 2px 6px; border-radius: 5px; font-size: 13px; }
.content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.content th, .content td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.content th { background: var(--paper-2); font-weight: 700; }
.content hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }

/* ---------- About ---------- */
.about { width: min(780px, 92vw); margin: 0 auto; padding: 44px 0 70px; }
.about h1 { font-family: var(--serif); font-size: 32px; }
.about h2 { font-family: var(--serif); font-size: 21px; margin-top: 32px; }
.about code { background: #efe9dc; padding: 2px 6px; border-radius: 5px; }
.owner-card {
  display: flex; align-items: center; gap: 20px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: var(--shadow); margin: 18px 0 28px;
}
.owner-avatar {
  flex: 0 0 auto; width: 66px; height: 66px; border-radius: 50%;
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--gold-2);
  font-size: 28px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--gold);
}
.owner-name { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; }
.owner-tagline { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Resources hero (light) ---------- */
.hero-sub { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hero-sub-inner { width: min(1080px, 92vw); margin: 0 auto; padding: 52px 0 30px; }
.hero-sub-inner h1 { font-family: var(--serif); font-size: 38px; margin: 12px 0 8px; letter-spacing: .5px; }
.hero-sub-inner .subtitle { color: var(--muted); font-size: 16px; margin: 0; }
.unis { width: min(1080px, 92vw); margin: 0 auto; padding: 30px 0 70px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 28px; }
.filters input[type="search"] {
  flex: 1 1 240px; min-width: 200px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 8px 15px; border-radius: 999px; font-size: 13px; cursor: pointer; font-weight: 600; transition: .15s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Mentor grid ---------- */
.mentor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.mentor-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px; box-shadow: var(--shadow); text-align: center; }
.mentor-card.lead { border-top: 3px solid var(--gold); }
.mentor-card .avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: var(--gold-2);
  display: grid; place-items: center; font-family: var(--serif); font-size: 42px; border: 2px solid var(--gold);
}
.mentor-card .name { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--ink); }
.mentor-card .role { color: var(--gold); font-size: 13px; letter-spacing: 1px; margin: 6px 0 14px; font-weight: 600; }
.mentor-card .bio { color: var(--ink-soft); font-size: 14px; line-height: 1.85; margin: 0 0 16px; text-align: left; }
.mentor-card .subjects { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.mentor-card .subjects span { font-size: 12px; padding: 3px 11px; border-radius: 999px; background: var(--gold-soft); color: #8a6a1a; }

/* ---------- Course items ---------- */
.course .course-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 11px; border-radius: 5px; background: var(--navy); color: var(--gold-2); margin-bottom: 10px; }
.course .course-items { list-style: none; margin: 14px 0 0; padding: 0; }
.course .course-items li { position: relative; padding: 7px 0 7px 20px; font-size: 14px; color: var(--ink-soft); border-bottom: 1px dashed var(--line); }
.course .course-items li:last-child { border-bottom: none; }
.course .course-items li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }

/* ---------- Results wall ---------- */
.results-wall { display: flex; flex-wrap: wrap; gap: 10px; }
.result-chip { font-family: var(--serif); font-size: 15px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); }

/* ---------- Subject tags ---------- */
.subject-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 24px; }
.subject-tags span { font-size: 14px; padding: 6px 16px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- Voices ---------- */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.voice { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.voice .quote { font-family: var(--serif); font-size: 16px; line-height: 1.9; color: var(--ink); margin: 0 0 16px; }
.voice .who { color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: .5px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #bcb6a8; padding: 42px 0; margin-top: 0; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.site-footer p { margin: 0; font-size: 13px; }
.site-footer .brand-f { font-family: var(--serif); color: #f4f1ea; font-size: 17px; }
.site-footer .muted { color: #8d8a82; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: 1fr; }
  .uni-grid { grid-template-columns: 1fr; }
  .mentor { grid-template-columns: 1fr; text-align: center; }
  .mentor .avatar { margin-bottom: 8px; }
  .mentor-grid { grid-template-columns: 1fr; }
  .voices { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 720px) {
  .nav { gap: 16px; }
  .hero-inner { padding-top: 64px; }
  .section { padding: 60px 0; }
}
