/* ==========================================================================
   MiBridge Language and Culture Service Center
   Brand site — v1 working build
   Palette / type locked to MiBridge brand system (2026-11)
   ========================================================================== */

:root {
  --paper:    #FBF9F5;
  --sand:     #F1EBDF;
  --ink:      #1C264A;
  --seal:     #A82D29;
  --charcoal: #333433;
  --body:     #2B2E36;
  --gray:     #565B66;
  --line:     rgba(28, 38, 74, 0.14);
  --line-soft:rgba(28, 38, 74, 0.08);

  --serif: "Cormorant Garamond", Georgia, "Songti SC", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --pad: 72px;
  --max: 1280px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: rgba(168, 45, 41, 0.14); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(46px, 6vw, 82px);
  line-height: 0.99;
}

h2 {
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.08;
}

h3 {
  font-size: clamp(21px, 1.6vw, 25px);
  line-height: 1.24;
  letter-spacing: -0.005em;
}

p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0;
}

.lead {
  font-size: 19px;
  line-height: 1.66;
  color: var(--gray);
}

.prose p + p { margin-top: 1.25em; }

.prose p {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--body);
}

.prose strong { color: var(--ink); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 17px 32px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: var(--seal);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.btn:hover { background: #8E2521; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(28, 38, 74, 0.28);
}

.btn--ghost:hover {
  background: rgba(28, 38, 74, 0.04);
  border-color: var(--ink);
}

.link-arrow {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid rgba(28, 38, 74, 0.28);
  padding-bottom: 3px;
  transition: border-color 180ms ease, color 180ms ease;
}

.link-arrow:hover { border-color: var(--seal); color: var(--seal); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  height: 98px;
}

.brand img {
  height: 60px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
  margin-right: 40px;
}

.nav a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.012em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  opacity: 0.86;
  transition: opacity 160ms ease;
}

.nav a:hover { opacity: 1; }

.nav a.is-current { opacity: 1; }

.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--seal);
}

.site-header .btn {
  padding: 14px 24px;
  font-size: 14px;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 108px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 452px;
  gap: 80px;
  align-items: center;
}

.hero-copy { max-width: 660px; }

.hero-copy h1 { margin: 26px 0 28px; }

.hero-sub {
  font-size: 18.5px;
  line-height: 1.68;
  color: var(--gray);
  max-width: 568px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gray);
}

.seal-panel {
  background: var(--sand);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
}

.seal-panel img {
  width: 59%;
  height: auto;
}

/* ---------- Section shell ---------- */

.section { padding: 108px 0; }

.section--paper { background: var(--paper); }

.section--tight { padding: 84px 0; }

.section--white { background: #fff; }

/* ---------- AI / Two-col principles ---------- */
/* 必须定义在 .principles 之后，否则 3 栏基础规则会覆盖 2 栏 */

.section--sand { background: var(--sand); }

.section--ink { background: var(--ink); color: rgba(251, 249, 245, 0.78); }

.section--ink h2, .section--ink h3 { color: var(--paper); }

.section--ink .eyebrow { color: rgba(251, 249, 245, 0.62); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 72px;
}

.section-head h2 { margin-top: 20px; }

.section-head p {
  font-size: 17px;
  line-height: 1.74;
  color: var(--gray);
}

/* ---------- Three principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.principles--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
  margin-top: 60px;
}

.principles--two .principle { border-top-color: var(--line); }

.principle {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.principle .num {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--seal);
  display: block;
  margin-bottom: 20px;
}

.principle h3 { margin-bottom: 14px; }

.principle p {
  font-size: 15.5px;
  line-height: 1.74;
  color: var(--gray);
}

/* ---------- Materials strip (home) ---------- */

.books {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.book {
  background: var(--paper);
  padding: 34px 26px 38px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.book .tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.book .title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.26;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.book .for {
  margin-top: auto;
  padding-top: 20px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray);
}

.book--flagship {
  background: var(--ink);
}

.book--flagship .tag { color: rgba(251, 249, 245, 0.6); }

.book--flagship .title { color: var(--paper); font-size: 18px; }

.book--flagship .for { color: rgba(251, 249, 245, 0.66); }

/* ---------- Split content ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}

.split--reverse .split-media { order: 2; }

.sticky-card {
  position: sticky;
  top: 132px;
  border: 1px solid var(--line);
  padding: 40px 38px;
  background: var(--paper);
}

.sticky-card dl {
  margin: 0;
  display: grid;
  gap: 22px;
}

.sticky-card dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 5px;
}

.sticky-card dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.34;
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Timeline ---------- */

.timeline {
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.tl-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line-soft);
}

.tl-item .year {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--seal);
  line-height: 1.2;
}

.tl-item h4 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.tl-item p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--gray);
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(251, 249, 245, 0.16);
  border: 1px solid rgba(251, 249, 245, 0.16);
}

.step {
  background: var(--ink);
  padding: 34px 28px 40px;
}

.step .n {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--seal);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 18px;
}

.step h4 {
  margin: 0 0 10px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
}

.step p {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(251, 249, 245, 0.7);
}

/* ---------- Course cards ---------- */

.tracks { display: grid; gap: 0; border-top: 1px solid var(--line); }

.track {
  display: grid;
  grid-template-columns: 88px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.track .idx {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gray);
  padding-top: 8px;
}

.track h3 { margin-bottom: 12px; }

.track .who {
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--seal);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}

.track .desc { font-size: 16px; line-height: 1.75; color: var(--gray); }

.track .facts { display: grid; gap: 16px; }

.fact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.fact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.fact dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--body); }

/* ---------- Flagship block ---------- */

.flagship {
  background: var(--ink);
  color: rgba(251, 249, 245, 0.76);
  padding: 84px 0;
}

.flagship-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 88px;
  align-items: center;
}

.flagship h2 { color: var(--paper); margin: 20px 0 24px; }

.flagship .eyebrow { color: rgba(251, 249, 245, 0.58); }

.flagship p { font-size: 16.5px; line-height: 1.76; max-width: 620px; }

.flagship .btn {
  background: transparent;
  border-color: rgba(251, 249, 245, 0.42);
  color: var(--paper);
  margin-top: 34px;
}

.flagship .btn:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.flagship-seal img { width: 100%; opacity: 0.95; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 96px;
}

.contact-list { border-top: 1px solid var(--line); }

.contact-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}

.contact-row dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

.contact-row dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
}

.contact-row dd a { border-bottom: 1px solid rgba(28, 38, 74, 0.24); padding-bottom: 2px; }

.contact-row dd a:hover { color: var(--seal); border-color: var(--seal); }

.note-box {
  border: 1px solid var(--line);
  padding: 34px 32px;
  background: var(--sand);
}

.note-box h3 { font-size: 20px; margin-bottom: 12px; }

.note-box p { font-size: 15px; line-height: 1.74; color: var(--gray); }

.note-box .btn { margin-top: 26px; width: 100%; text-align: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(251, 249, 245, 0.7);
  padding: 82px 0 34px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.9fr) 120px;
  gap: 64px;
  align-items: start;
}

.footer-brand .wordmark {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--paper);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.footer-brand .tagline {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(251, 249, 245, 0.56);
  max-width: 300px;
}

.footer-brand address {
  margin-top: 24px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(251, 249, 245, 0.62);
}

.footer-col h5 {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 249, 245, 0.44);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.footer-col a {
  font-size: 14.5px;
  color: rgba(251, 249, 245, 0.78);
  transition: color 160ms ease;
}

.footer-col a:hover { color: var(--paper); }

.footer-seal img { width: 88px; }

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(251, 249, 245, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 12.5px;
  color: rgba(251, 249, 245, 0.46);
  flex-wrap: wrap;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding: 92px 0 76px; border-bottom: 1px solid var(--line); }

.page-hero h1 { margin: 24px 0 0; max-width: 15em; }

.page-hero .lead { max-width: 640px; margin-top: 28px; }

/* ---------- Placeholders for missing assets ---------- */

.asset-slot {
  border: 1px dashed rgba(28, 38, 74, 0.22);
  background: repeating-linear-gradient(
    -45deg,
    rgba(28, 38, 74, 0.018),
    rgba(28, 38, 74, 0.018) 8px,
    transparent 8px,
    transparent 16px
  );
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 28px;
  min-height: 220px;
}

.asset-slot span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  opacity: 0.8;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  :root { --pad: 44px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; }
  .section-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 52px; }
  .principles { gap: 36px; }
  .footer-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 100px; row-gap: 48px; }
  .track { grid-template-columns: 60px minmax(0, 1fr); gap: 32px; }
  .track .facts { grid-column: 2; margin-top: 26px; }
}

@media (max-width: 860px) {
  :root { --pad: 26px; }

  body { font-size: 16.5px; }

  .eyebrow { letter-spacing: 0.14em; }
  .hero-trust { letter-spacing: 0.01em; }

  .header-inner { height: auto; padding: 18px 0 16px; flex-wrap: wrap; gap: 14px; }
  .brand img { height: 46px; }
  .nav {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 22px;
    overflow-x: auto;
    padding: 6px 0 2px;
    -webkit-overflow-scrolling: touch;
  }
  .nav a { font-size: 13.5px; white-space: nowrap; }
  .site-header .btn { padding: 11px 16px; font-size: 12.5px; }

  .hero { padding: 52px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .seal-panel { order: -1; max-width: 320px; }
  .hero-copy h1 { margin: 20px 0 22px; }
  .hero-actions { gap: 20px; margin-top: 32px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }

  .section { padding: 64px 0; }
  .section--tight { padding: 56px 0; }
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .principles--two { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }
  .books { grid-template-columns: 1fr; }
  .book { min-height: 0; }
  .split, .split--reverse .split-media { grid-template-columns: 1fr; order: 0; gap: 40px; }
  .sticky-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .flagship { padding: 60px 0; }
  .flagship-inner { grid-template-columns: 1fr; gap: 40px; }
  .flagship-seal { max-width: 150px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-seal { display: none; }
  .page-hero { padding: 54px 0 44px; }
  .track { grid-template-columns: 1fr; gap: 18px; padding: 38px 0; }
  .track .idx { padding-top: 0; }
  .track .facts { grid-column: 1; }
  .fact { grid-template-columns: 88px minmax(0, 1fr); }
  .tl-item { grid-template-columns: 76px minmax(0, 1fr); gap: 22px; }
}

/* ---------- Case notes ---------- */
.cases { margin-top: 60px; border-top: 1px solid var(--line); }
.case {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 48px;
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}
.case-meta .num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--seal);
  text-transform: uppercase;
}
.case-meta h3 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.case-meta .case-year {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gray);
  text-transform: uppercase;
}
.case-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.74; color: var(--body); max-width: 660px; }
.case-body p:last-child { margin-bottom: 0; }
.case-body strong {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 20px; padding: 34px 0; }
  .case-meta h3 { font-size: 23px; }
}
