/* ============ Global Path · 杂志风留学图志 ============ */
:root {
  --ink: #1c1a17;
  --ink-soft: #4a453e;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --accent: #b5432a;
  --accent-dark: #8f3220;
  --gold: #a8853c;
  --line: #e3dccd;
  --serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; letter-spacing: 0.5px;
}
.brand em { color: var(--accent); font-style: normal; }
.brand .brand-cn { font-size: 14px; color: var(--ink-soft); margin-left: 10px; font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden;
  font-size: 12px; font-weight: 600; letter-spacing: 1px;
}
.lang-toggle button {
  border: none; background: transparent; padding: 6px 14px; cursor: pointer;
  font-family: var(--sans); color: var(--ink);
}
.lang-toggle button.active { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 82vh; display: flex; align-items: flex-end; color: var(--cream); }
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/img/hero.png") center / cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.15) 0%, rgba(20,16,12,0.75) 100%);
}
.hero-content { position: relative; padding: 0 0 72px; width: 100%; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  color: #f0e6d2; margin-bottom: 20px;
}
.kicker::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.12; font-weight: 700; max-width: 820px;
}
.hero p.sub {
  margin-top: 22px; max-width: 560px;
  font-size: 17px; color: #e8e0d0;
}
.hero-cta {
  margin-top: 34px; display: inline-block;
  background: var(--accent); color: #fff;
  padding: 14px 32px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.5px;
  transition: background 0.2s;
}
.hero-cta:hover { background: var(--accent-dark); }

/* ---------- Section headers ---------- */
.section { padding: 80px 0 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(26px, 3.4vw, 40px); font-weight: 700;
}
.section-head .rule { flex: 1; height: 1px; background: var(--line); margin: 0 28px; align-self: center; }
.section-head .label {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
}

/* ---------- Featured story ---------- */
.featured {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden;
}
.featured-img { position: relative; min-height: 440px; }
.featured-img img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.featured-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-body .tag {
  color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 14px;
}
.featured-body h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.25; }
.featured-body p { margin-top: 16px; color: var(--ink-soft); font-size: 15px; }
.featured-body .facts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.fact-chip {
  font-size: 12.5px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--cream); color: var(--ink-soft);
}
.featured-body .read {
  margin-top: 28px; font-weight: 600; color: var(--accent); font-size: 15px;
}
.featured:hover .read { text-decoration: underline; }

/* ---------- Filter chips ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-chip {
  border: 1px solid var(--ink-soft); background: transparent; color: var(--ink-soft);
  padding: 8px 20px; border-radius: 999px; font-size: 13.5px; cursor: pointer;
  font-family: var(--sans); transition: all 0.15s;
}
.filter-chip.active, .filter-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Cards grid ---------- */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px;
  padding-bottom: 60px;
}
.school-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.school-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(28,26,23,0.12); }
.card-img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.card-img img { height: 100%; object-fit: cover; transition: transform 0.4s; }
.school-card:hover .card-img img { transform: scale(1.05); }
.card-img .country {
  position: absolute; top: 14px; left: 14px;
  background: rgba(250,246,238,0.94); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 999px;
}
.card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.card-body .city { font-size: 13px; color: var(--gold); margin-top: 4px; letter-spacing: 0.5px; }
.card-body p { margin-top: 12px; font-size: 14px; color: var(--ink-soft); flex: 1; }
.card-meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft);
}
.card-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- About / disclaimer ---------- */
.about {
  background: var(--ink); color: #efe9db; border-radius: 20px;
  padding: 56px 52px; margin: 40px 0 80px;
}
.about h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); color: var(--cream); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 32px; }
.about-grid h4 { color: var(--gold); font-size: 15px; margin-bottom: 10px; letter-spacing: 0.5px; }
.about-grid p { font-size: 14px; color: #c9c2b2; }
.disclaimer {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid #3a362f;
  font-size: 12.5px; color: #948d7d;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line); padding: 32px 0 48px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 12px;
}

/* ---------- Detail page ---------- */
.detail-hero { position: relative; height: 62vh; min-height: 420px; color: var(--cream); display: flex; align-items: flex-end; }
.detail-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.detail-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,12,0.1) 30%, rgba(20,16,12,0.8) 100%);
}
.detail-hero .inner { position: relative; padding-bottom: 52px; width: 100%; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 1px; color: #e8e0d0; margin-bottom: 24px;
}
.back-link:hover { color: #fff; }
.detail-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); line-height: 1.15; }
.detail-hero .place { margin-top: 12px; font-size: 15px; color: #e8e0d0; letter-spacing: 1px; }

.facts-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; margin-top: -34px; position: relative; z-index: 2;
  box-shadow: 0 16px 40px rgba(28,26,23,0.08);
}
.fact-cell { background: var(--paper); padding: 22px 24px; }
.fact-cell .k { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.fact-cell .v { font-family: var(--serif); font-size: 19px; margin-top: 6px; font-weight: 600; }

.detail-section { padding: 64px 0 8px; }
.detail-section h2 {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 34px);
  display: flex; align-items: center; gap: 16px;
}
.detail-section h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.detail-section .lede { margin-top: 20px; font-size: 16.5px; color: var(--ink-soft); max-width: 780px; }
.detail-section p + p { margin-top: 14px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 8px; }
.detail-section .prose { margin-top: 20px; color: var(--ink-soft); }

.pro-con { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.pro-con .panel { border-radius: 16px; padding: 32px 34px; }
.pro-con .pros { background: #f0f4ec; border: 1px solid #d8e2d0; }
.pro-con .cons { background: #f7efe9; border: 1px solid #ecdcd0; }
.pro-con h3 { font-size: 15px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.pro-con .pros h3 { color: #3f6b3a; }
.pro-con .cons h3 { color: var(--accent-dark); }
.pro-con li { margin: 0 0 12px 18px; font-size: 14.5px; color: var(--ink-soft); }

.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 32px; }
.gallery img { height: 100%; object-fit: cover; border-radius: 14px; aspect-ratio: auto; }
.gallery .g-main { aspect-ratio: 16/10; object-fit: cover; border-radius: 14px; }
.gallery .g-side { display: grid; gap: 16px; }
.gallery .g-side img { aspect-ratio: 16/8; }

.unlock-note {
  margin: 56px 0 72px; background: var(--paper); border: 1px dashed var(--gold);
  border-radius: 16px; padding: 28px 32px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.unlock-note .msg { flex: 1; font-size: 14px; color: var(--ink-soft); min-width: 240px; }
.unlock-note .msg strong { color: var(--ink); }
.unlock-btn {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  padding: 12px 28px; border-radius: 999px; font-weight: 600; font-size: 14px; font-family: var(--sans);
}
.unlock-btn:hover { background: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-img { min-height: 280px; position: relative; }
  .about-grid { grid-template-columns: 1fr; }
  .facts-bar { grid-template-columns: repeat(2, 1fr); }
  .two-col, .pro-con { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero { min-height: 68vh; }
}
