/* ============================================
   Kissho.school — Main Stylesheet
   Design reference: placeholder-reference.html
   ============================================ */

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #c4362a;
  --red-lt:   #d9534f;
  --red-bg:   rgba(196, 54, 42, 0.07);
  --gold:     #d4a853;
  --gold-lt:  #e8c87a;
  --cream:    #faf8f5;
  --warm:     #f3efe8;
  --white:    #ffffff;
  --dark:     #2a2118;
  --mid:      #6b5d50;
  --muted:    #a09080;
  --border:   rgba(196, 54, 42, 0.15);
  --border-light: rgba(196, 54, 42, 0.08);
  --shadow-sm:  0 2px 12px rgba(42, 33, 24, 0.04);
  --shadow-md:  0 4px 24px rgba(42, 33, 24, 0.06);
  --radius:   3px;
  --max-w:    1080px;
  --max-w-narrow: 780px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif SC', 'SimSun', serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.8;
  font-size: 16px;
}

/* ── Utility ── */
.container       { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.container--narrow { max-width: var(--max-w-narrow); }
.en  { font-family: 'EB Garamond', Georgia, serif; }
.jp  { font-family: 'Noto Serif JP', 'Yu Mincho', serif; }

/* ── Placeholder Blocks ── */
.placeholder {
  border: 2px dashed var(--gold-lt);
  border-radius: var(--radius);
  background: rgba(212, 168, 83, 0.06);
  padding: 32px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.placeholder-label {
  display: block;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ── Top Stripe ── */
.top-stripe {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--red), var(--gold), var(--red));
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--dark);
}

.site-logo-mark {
  width: 64px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
}

.site-logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.site-logo-zh {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.65em;
  white-space: nowrap;
}

.site-logo-en {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: nowrap;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 29px;
  padding-right: 190px;
}

.nav-link {
  font-size: 0.92rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  border-bottom-color: var(--red);
}

html[lang="ja"] .nav { gap: 18px; }
html[lang="ja"] .nav-link { font-size: 13.5px; }
html[lang="en"] .nav {
  gap: 22px;
}
html[lang="en"] .nav-link { font-size: 0.92rem; }
html[lang="en"] .nav > .nav-link:last-of-type { margin-right: 6px; }

.lang-switch {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  gap: 4px;
  margin-left: 0;
  padding-left: 24px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.site-header .lang-switch {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
}

.lang-btn {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex: 0 0 auto;
}

.lang-btn:hover { color: var(--mid); }

.lang-btn.active {
  color: var(--red);
  border-color: var(--border);
  background: var(--red-bg);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Noto Serif SC', serif;
  font-size: 0.92rem;
  padding: 12px 28px;
  min-height: 50px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
  align-self: flex-start;
  max-width: 100%;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid transparent;
}

.btn-primary:hover { background: var(--red-lt); }

.btn-ghost {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--red); }

/* ============================================
   Ornament Divider
   ============================================ */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 400px;
  margin: 0 auto;
  padding: 0 40px;
}

.orn-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}

.orn-line.rev {
  background: linear-gradient(to left, transparent, var(--gold));
}

.orn-diamond {
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================
   Section Common
   ============================================ */
.section        { padding: 45px 0; }
.section--warm  { background: var(--warm); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-kicker {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.5;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   Page Hero (shared for inner pages)
   ============================================ */
.page-hero {
  padding: 42px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-hero .section-kicker { margin-bottom: 16px; }

.page-hero .section-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.page-hero .section-desc {
  max-width: 640px;
}

main > .page-hero + .section { padding-top: 58px; }

/* ============================================
   Homepage: Hero
   ============================================ */
.hero {
  padding: 35px 0 54px;
  background: var(--cream);
}

.home-offer-section {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.home-featured-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-about-section {
  padding-top: 68px;
  padding-bottom: 68px;
  background: #fffdfb;
  border-top: 1px solid var(--border-light);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-kicker {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--red);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--dark);
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-title em { font-style: normal; color: var(--red); }

.hero-desc {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--mid);
}

.hero-cta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

/* ============================================
   Homepage: Module Cards
   ============================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.module-icon { width: 40px; height: 40px; color: var(--red); }

.module-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.module-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); }

.module-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.8; flex: 1; }

.module-link {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.88rem;
  color: var(--red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.module-link:hover { gap: 10px; }
.module-link::after { content: '\2192'; }

/* ============================================
   Homepage: Articles Preview
   ============================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-image { aspect-ratio: 16 / 10; overflow: hidden; }

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-tag {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.article-title { font-size: 1.02rem; font-weight: 600; color: var(--dark); line-height: 1.6; }

.article-excerpt { font-size: 0.85rem; color: var(--muted); line-height: 1.75; }

.article-date {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ============================================
   Homepage: About Preview
   ============================================ */
.about-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-quote {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--dark);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  font-style: italic;
}

.about-desc { font-size: 0.92rem; color: var(--mid); line-height: 1.85; }

.about-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2048 / 1365;
}

/* ============================================
   Schools Page: Filter Bar
   ============================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 130px;
  max-width: 200px;
}

.filter-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-select {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.88rem;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23a09080' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--red);
}

/* Schools Grid */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.school-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.school-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.school-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.school-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
}

.school-tag {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-bg);
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.school-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}

.school-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.school-summary {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ============================================
   Articles Page
   ============================================ */
.category-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.category-btn {
  font-family: 'Noto Serif SC', serif;
  font-size: 0.85rem;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
  color: var(--mid);
  cursor: pointer;
  transition: all 0.2s;
}

.category-btn:hover { border-color: var(--red); color: var(--red); }

.category-btn.active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.articles-page-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.articles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.article-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.article-list-image {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
}

.article-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================
   Tools Page
   ============================================ */
.tool-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.tool-showcase:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.tool-showcase.reversed { direction: rtl; }
.tool-showcase.reversed > * { direction: ltr; }

.tool-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(212, 168, 83, 0.1);
  padding: 5px 14px;
  border-radius: 20px;
  width: fit-content;
}

.tool-title { font-size: 1.4rem; font-weight: 700; color: var(--dark); }

.tool-desc { font-size: 0.92rem; color: var(--mid); line-height: 1.85; }

.tool-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tool-features li {
  font-size: 0.88rem;
  color: var(--mid);
  padding-left: 20px;
  position: relative;
}

.tool-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
}

.tool-preview {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.tool-showcase--coming-soon {
  align-items: start;
}

.tool-showcase--coming-soon .tool-preview {
  aspect-ratio: 5 / 3;
  max-width: 420px;
  justify-self: end;
  width: 100%;
}

.tools-main {
  display: flex;
  flex-direction: column;
}

.tools-main .page-hero {
  background: var(--cream);
}

.tools-section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--border-light);
}

.tools-section--chinese {
  order: 1;
  background: var(--white);
}

.tools-section--japanese {
  order: 2;
  background: var(--warm);
}

.tools-section--map {
  order: 3;
  background: var(--white);
}

.tools-section--note {
  order: 4;
  background: var(--warm);
}

/* ============================================
   Services Page
   ============================================ */
.services-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.services-group,
.services-overview--primary,
.services-overview--secondary {
  display: contents;
}

.services-section-label {
  display: none;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-card--flagship,
.service-card:has(.service-title[data-i18n="services.s7.title"]) {
  border-color: rgba(196, 54, 42, 0.22);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.14), #fff 52%);
  box-shadow: 0 6px 24px rgba(42, 33, 24, 0.08);
}

.service-icon { width: 40px; height: 40px; color: var(--red); }

.service-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); }

.service-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.8; }

.service-includes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.service-includes li {
  font-size: 0.85rem;
  color: var(--mid);
  padding-left: 18px;
  position: relative;
}

.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Process Timeline */
.process-timeline {
  max-width: 640px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.process-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.9rem;
  color: var(--red);
  background: var(--cream);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-content { padding-top: 6px; }

.process-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.process-content p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.75;
}

/* ============================================
   About Page
   ============================================ */
.about-story {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-story p {
  font-size: 1rem;
  line-height: 2;
  color: var(--mid);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.team-member {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-photo { aspect-ratio: 4 / 3; overflow: hidden; }

.team-info { padding: 28px; }

.team-name { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }

.team-role {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.team-bio { font-size: 0.88rem; color: var(--mid); line-height: 1.8; }

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.contact-channel {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.contact-icon { width: 36px; height: 36px; color: var(--red); }

.contact-channel-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
}

.contact-channel-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.contact-channel-value {
  font-size: 0.92rem;
  color: var(--red);
  word-break: break-all;
}

.contact-channel-value a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.contact-channel-value a:hover { border-color: var(--red); }

.contact-qr {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Company info card */
.company-info-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}

.info-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
}

.info-row:not(:last-child) {
  border-bottom: 1px solid var(--border-light);
}

.info-label {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 120px;
  padding-top: 3px;
  flex-shrink: 0;
}

.info-value {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.65;
}

/* Floating message widget */
.contact-message-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.contact-message-toggle,
.contact-message-panel {
  pointer-events: auto;
}

.contact-message-toggle {
  min-height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  padding: 0 22px;
  box-shadow: 0 10px 30px rgba(196, 54, 42, 0.22);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-message-toggle:hover {
  background: var(--red-lt);
  transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(196, 54, 42, 0.28);
}

.contact-message-toggle-text--mobile { display: none; }

.contact-message-panel {
  width: min(360px, calc(100vw - 48px));
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(42, 33, 24, 0.16);
  padding: 22px;
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.contact-message-widget.is-open .contact-message-panel {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.contact-message-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-message-title {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--dark);
}

.contact-message-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
}

.contact-message-close::before,
.contact-message-close::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 9px;
  width: 12px;
  height: 1px;
  background: currentColor;
}

.contact-message-close::before { transform: rotate(45deg); }
.contact-message-close::after  { transform: rotate(-45deg); }

.contact-message-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-message-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mid);
  line-height: 1.4;
}

.contact-message-input,
.contact-message-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-message-textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-message-input:focus,
.contact-message-textarea:focus {
  background: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 54, 42, 0.08);
}

.contact-message-submit {
  min-height: 42px;
  border: none;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.contact-message-submit:hover { background: var(--red); }
.contact-message-submit:disabled { cursor: wait; opacity: 0.64; }

.contact-message-status {
  min-height: 20px;
  color: var(--mid);
  font-size: 0.78rem;
  line-height: 1.55;
}

.contact-message-status.is-error { color: var(--red); }

.contact-message-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo-text { font-size: 1.1rem; font-weight: 700; color: rgba(255, 255, 255, 0.9); }

.footer-brand-desc { font-size: 0.84rem; line-height: 1.7; max-width: 32ch; }

.footer-heading {
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255, 255, 255, 0.9); }

.footer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-list svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-contact-link:hover {
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 12px;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.footer-bottom .lang-switch {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  margin-left: 0;
  padding-left: 16px;
}

.footer-bottom .lang-btn { color: rgba(255, 255, 255, 0.4); }
.footer-bottom .lang-btn.active { color: rgba(255, 255, 255, 0.7); background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

/* ============================================
   Article Detail Page
   ============================================ */
.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 20px;
  font-family: 'EB Garamond', Georgia, serif;
  letter-spacing: 0.04em;
}

.article-page-meta span::before {
  content: '·';
  margin-right: 8px;
  opacity: 0.4;
}

.article-page-meta span:first-child::before { content: none; }

.article-cover {
  width: 100%;
  overflow: hidden;
  max-height: 480px;
}

.article-cover img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 70%;
  display: block;
}

.article-content {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--dark);
}

.article-content p { margin-bottom: 1.5em; }

.article-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 2.8em 0 0.8em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

.article-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 2em 0 0.5em;
  color: var(--red);
}

.article-img-wrap {
  margin: 2em 0;
}

.article-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.article-img-caption {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.article-photo-grid {
  display: grid;
  gap: 12px;
  margin: 2em 0;
}

.article-photo-grid--2 { grid-template-columns: repeat(2, 1fr); }
.article-photo-grid--3 { grid-template-columns: repeat(3, 1fr); }

.article-photo-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.article-photo-grid .article-img-caption { margin-top: 4px; }

.article-pullquote {
  border-left: 3px solid var(--red);
  padding: 14px 24px;
  margin: 2.5em 0;
  background: var(--warm-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--dark);
  font-style: italic;
}

.school-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5em 0 2.5em;
}

.school-fact-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.school-fact-item:nth-child(even) { border-right: none; }
.school-fact-item:nth-last-child(-n+2) { border-bottom: none; }

.school-fact-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-family: 'EB Garamond', Georgia, serif;
  margin-bottom: 3px;
}

.school-fact-value {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s;
}

.article-back-link:hover { color: var(--red); }

.article-cta-box {
  background: var(--warm-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  text-align: center;
  margin-top: 48px;
}

.article-cta-box p {
  color: var(--muted);
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .article-cover img { height: 260px; }
  .article-photo-grid--2 { grid-template-columns: 1fr; }
  .article-photo-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .school-facts-grid { grid-template-columns: 1fr; }
  .school-fact-item:nth-child(even) { border-right: 1px solid var(--border); }
  .school-fact-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .school-fact-item:last-child { border-bottom: none; }
  .article-cta-box { padding: 24px 20px; }
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-inner            { grid-template-columns: 1fr; gap: 40px; }
  .hero-image            { max-width: 480px; }
  .modules-grid          { grid-template-columns: 1fr; }
  .articles-grid         { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .about-preview         { grid-template-columns: 1fr; gap: 32px; }
  .about-photo           { max-width: 440px; margin-left: auto; margin-right: auto; }
  .footer-grid           { grid-template-columns: 1fr; gap: 28px; }
  .schools-grid          { grid-template-columns: 1fr; }
  .articles-list         { grid-template-columns: 1fr; }
  .tool-showcase         { grid-template-columns: 1fr; gap: 32px; }
  .tool-showcase.reversed { direction: ltr; }
  .services-overview     { grid-template-columns: 1fr; }
  .team-grid             { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .contact-grid          { grid-template-columns: 1fr; }
  .article-list-item     { grid-template-columns: 1fr; }
  .article-list-image    { max-width: 320px; }

  .header-inner          { padding: 0 24px; justify-content: space-between; }
  .site-header .nav      { display: none; margin-left: 0; padding-right: 0; }
  .site-header .lang-switch { display: none; position: static; transform: none; }
  .site-header .nav-toggle { display: block; }

  .site-header .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .site-header .nav.open .lang-switch {
    display: flex;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }
}

@media (max-width: 380px) {
  .hero-title { white-space: normal; }
}

@media (max-width: 700px) {
  .container       { padding: 0 24px; }
  .header-inner    { padding: 0 24px; justify-content: space-between; }
  .ornament        { padding: 0 24px; }
  .site-footer     { padding: 38px 0 22px; }

  .nav             { display: none; margin-left: 0; padding-right: 0; }
  .lang-switch     { display: none; }
  .site-header .lang-switch { position: static; transform: none; }
  .nav-toggle      { display: block; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border-light);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav.open .lang-switch {
    display: flex;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
  }

  .hero              { padding: 48px 0 60px; }
  .hero-title        { font-size: 1.35rem; }
  .section           { padding: 45px 0; }
  .section-title     { font-size: 1.35rem; }
  .page-hero         { padding: 30px 0 26px; }
  .page-hero .section-title { font-size: 1.5rem; }
  main > .page-hero + .section { padding-top: 40px; }
  .home-offer-section { padding-top: 42px; }
  .modules-grid      { gap: 20px; }
  .module-card       { padding: 28px 24px 24px; }
  .footer-grid       { gap: 24px; margin-bottom: 24px; }
  .footer-brand-desc { max-width: none; }
  .footer-heading    { margin-bottom: 12px; }
  .footer-links,
  .footer-contact-list { gap: 8px; }
  .footer-bottom     { padding-top: 16px; gap: 10px; }
  .filter-bar        { flex-direction: column; }
  .filter-group      { min-width: unset; }
  .info-row          { flex-direction: column; gap: 4px; }
  .info-label        { min-width: unset; }
  .services-stack    { gap: 40px; }
  .services-section-label { margin-bottom: 18px; }
  .contact-grid      {
    gap: 24px;
    grid-template-areas:
      "wechat"
      "xhs"
      "phone"
      "email";
  }
  .contact-channel   { padding: 24px; gap: 14px; }
  .contact-channel--wechat { grid-area: wechat; }
  .contact-channel--xhs    { grid-area: xhs; }
  .contact-channel--phone  { grid-area: phone; }
  .contact-channel--email  { grid-area: email; }
  .contact-qr        { width: 150px; height: 150px; }
  .company-info-card { margin-top: 40px; padding: 28px 24px; }

  .contact-message-widget {
    right: 16px;
    bottom: 16px;
    left: 16px;
    align-items: flex-end;
  }

  .contact-message-toggle {
    min-width: 76px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
  }

  .contact-message-toggle-text--desktop { display: none; }
  .contact-message-toggle-text--mobile  { display: inline; }

  .contact-message-panel {
    width: 100%;
    padding: 20px;
  }

  .contact-message-textarea { min-height: 112px; }
}

/* ── Article pages: ornament divider spacing ────────────────────── */
.article-main .section                                    { padding: 30px 0; }
.article-main .article-content > h2:first-child           { margin-top: 0; }
.article-main .article-content > p:last-child             { margin-bottom: 0; }
