@charset "utf-8";
/* ============================================================
   니하오친구 — 方案1 subpage components
   Works on top of style.css (shared tokens & header/footer)
   ============================================================ */

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(680px 320px at 88% -10%, rgba(46, 132, 26, .12), transparent 62%),
    radial-gradient(420px 240px at 4% 110%, rgba(254, 2, 2, .05), transparent 60%),
    linear-gradient(180deg, #f6faf3 0%, #fff 78%);
  padding-block: clamp(34px, 4.2vw, 58px) clamp(20px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: .7813rem; color: var(--muted); flex-wrap: wrap; }
.crumb a:hover { color: var(--green-700); }
.crumb span { opacity: .45; }
.crumb b { color: var(--ink); font-weight: 700; }
.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  line-height: 1.3; font-weight: 800; letter-spacing: -.03em; color: var(--ink);
}
.page-hero .lead { margin-top: 12px; max-width: 62ch; font-size: .9688rem; line-height: 1.85; color: var(--muted); }
.page-hero--center { text-align: center; }
.page-hero--center .crumb { justify-content: center; }
.page-hero--center .lead { margin-inline: auto; }

.tabs { display: flex; gap: 8px; margin-top: clamp(22px, 2.6vw, 32px); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: .9063rem; font-weight: 700; color: var(--ink-2);
  transition: all .2s var(--ease); white-space: nowrap;
}
.tabs a:hover { border-color: var(--green-600); color: var(--green-700); }
.tabs a.is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; box-shadow: 0 12px 24px -16px rgba(46, 132, 26, .9); }



/* ---------- subpage layout: left sub-navigation ---------- */
.page-layout {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 52px); align-items: start;
}
.submain { min-width: 0; }
.subnav { position: sticky; top: 96px; align-self: start; }
.subnav__title {
  padding: 0 14px 12px;
  font-size: .6875rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.subnav nav { display: grid; gap: 2px; border-left: 1px solid var(--line); }
.subnav nav a {
  position: relative; display: block; padding: 11px 14px;
  border-radius: 0 10px 10px 0;
  font-size: .9375rem; font-weight: 600; color: var(--ink-2);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.subnav nav a::before {
  content: ""; position: absolute; left: -1px; top: 6px; bottom: 6px;
  width: 3px; border-radius: 2px; background: var(--green-600);
  opacity: 0; transition: opacity .18s var(--ease);
}
.subnav nav a:hover { background: var(--green-50); color: var(--green-700); }
.subnav nav a.is-active { background: var(--green-50); color: var(--green-700); font-weight: 800; }
.subnav nav a.is-active::before { opacity: 1; }

.subnav__help {
  margin-top: 24px; padding: 16px;
  border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line);
}
.subnav__help b { display: block; font-size: .7188rem; font-weight: 800; letter-spacing: .06em; color: var(--green-700); }
.subnav__help > a { display: block; margin-top: 6px; font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.subnav__help span { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.subnav__help .subnav__cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 14px; min-height: 38px; padding: 0 16px; border-radius: 999px;
  background: var(--green-600); color: #fff; font-size: .7813rem; font-weight: 800;
}
.subnav__help .subnav__cta:hover { background: var(--green-700); color: #fff; }

@media (min-width: 1081px) {
  .page-hero .tabs { display: none; }
}
@media (max-width: 1080px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .subnav { display: none; }
}

/* ---------- page body ---------- */
.page-body { padding-block: clamp(38px, 4.6vw, 68px) clamp(56px, 6vw, 88px); }
.page-body--soft { background: var(--bg-soft); }
.stack { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.stack--lg { gap: clamp(28px, 3.6vw, 48px); }
.panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 2.8vw, 34px);
}
.panel--soft { background: var(--bg-soft); }
.panel--green { background: linear-gradient(140deg, #163f0b, #2e841a 70%, #38961f); color: rgba(255,255,255,.82); border-color: transparent; }
.panel--green h2, .panel--green h3 { color: #fff; }

.sec-head-sm { margin-bottom: clamp(18px, 2vw, 26px); }
.sec-head-sm .eyebrow { margin-bottom: 10px; }
.sec-head-sm h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -.025em; color: var(--ink); line-height: 1.4; }
.sec-head-sm p { margin-top: 8px; font-size: .9063rem; color: var(--muted); line-height: 1.8; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }

/* ---------- advantage rows (company) ---------- */
.adv { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; padding-block: clamp(18px, 2.4vw, 26px); border-bottom: 1px solid var(--line); }
.adv:first-child { padding-top: 0; }
.adv:last-child { border-bottom: 0; padding-bottom: 0; }
.adv__img { border-radius: 18px; overflow: hidden; background: var(--green-50); border: 1px solid var(--line); }
.adv__img img { width: 100%; height: auto; display: block; }
.adv__no { font-family: var(--font-en); font-size: .75rem; font-weight: 800; color: var(--red-700); letter-spacing: .08em; }
.adv h3 { margin-top: 6px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 800; color: var(--ink); line-height: 1.45; }
.adv p { margin-top: 8px; max-width: 72ch; font-size: .9375rem; line-height: 1.85; color: var(--muted); }

/* ---------- figure ---------- */
.fig { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.fig img { width: 100%; height: auto; display: block; }
.fig figcaption { padding: 12px 16px; border-top: 1px solid var(--line); font-size: .7813rem; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }

/* ---------- compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.tb { width: 100%; border-collapse: collapse;  background: #fff; }
table.tb th, table.tb td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .9063rem; text-align: center; }
table.tb thead th { background: var(--green-50); color: var(--green-800); font-weight: 800; font-size: .8438rem; }
table.tb tbody th { text-align: left; font-weight: 700; color: var(--ink); background: #fff; }
table.tb td { color: var(--ink-2); }
table.tb td.yes { color: var(--green-600); font-weight: 800; }
table.tb td.no { color: #b9c0b3; }
table.tb tr:last-child th, table.tb tr:last-child td { border-bottom: 0; }

/* ---------- steps ---------- */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 20px); }
.stepc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.2vw, 26px); }
.stepc__no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green-600); color: #fff; font-family: var(--font-en); font-size: .8125rem; font-weight: 800; }
.stepc h3 { margin-top: 14px; font-size: 1rem; font-weight: 800; color: var(--ink); line-height: 1.5; }
.stepc ul { margin-top: 10px; display: grid; gap: 6px; }
.stepc li { position: relative; padding-left: 14px; font-size: .8438rem; line-height: 1.7; color: var(--muted); }
.stepc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }

/* ---------- prose ---------- */
.prose { font-size: .9375rem; line-height: 1.95; color: var(--ink-2); }
.prose h2 { margin: 34px 0 12px; font-size: 1.1875rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 22px 0 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.prose p { margin: 8px 0; }
.prose ul { margin: 8px 0; padding-left: 0; display: grid; gap: 6px; }
.prose li { position: relative; padding-left: 15px; }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }
.prose strong { color: var(--ink); }
.prose .note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--red-50); color: var(--red-700); font-size: .8438rem; line-height: 1.75; }



/* ---------- checkbox row + inline link button ---------- */
.check-line { display: flex; align-items: flex-start; gap: 8px; }
.check-line .check { flex: 1; }
.link-btn {
  flex: none; margin-top: 2px; padding: 0 0 1px;
  font-size: .8125rem; font-weight: 700; color: var(--green-700);
  border-bottom: 1px solid rgba(46, 132, 26, .35);
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.link-btn:hover { color: var(--green-800); border-color: var(--green-600); }

/* ---------- modal (terms / privacy) ---------- */
.modal { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: clamp(10px, 3vw, 28px); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 8, .72); }
.modal__dialog {
  position: relative; width: min(760px, 100%); max-height: calc(100vh - 24px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.modal__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal__head b { font-size: .9688rem; font-weight: 800; color: var(--ink); }
.modal__close {
  margin-left: auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; font-size: .75rem; color: var(--ink);
}
.modal__close:hover { background: var(--green-50); color: var(--green-700); }
.modal__body { padding: 18px 22px; overflow-y: auto; overscroll-behavior: contain; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.terms-body h2 { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.terms-body h3 { margin: 20px 0 6px; font-size: .9375rem; font-weight: 800; color: var(--ink); }
.terms-body p { margin: 6px 0; font-size: .875rem; line-height: 1.85; color: var(--ink-2); }

/* ---------- textbook (original table layout) ---------- */
.book {
  display: grid; grid-template-columns: 225px minmax(0, 1fr);
  background: #fff; border: 1px solid #d4d4d4; border-radius: var(--radius-lg);
  overflow: hidden;
}
.book + .book { margin-top: 28px; }
.book__cover { padding: 12px; border-right: 1px solid #ebebe6; background: #fafbf8; }
.book__cover img { width: 100%; height: auto; display: block; border-radius: 10px; border: 1px solid #eceee8; background: #fff; }
.book__title {
  margin: 0; padding: 18px 24px;
  font-size: 1.125rem; font-weight: 800; color: var(--ink); line-height: 1.5;
  border-bottom: 1px dotted #d4d4d4;
}
.book__spec { margin: 0; }
.book__spec > div { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 1px dotted #d4d4d4; }
.book__spec dt { padding: 12px 16px; font-size: .8125rem; color: var(--muted); background: #fbfbf8; }
.book__spec dd { margin: 0; padding: 12px 20px; font-size: .875rem; line-height: 1.72; color: var(--ink-2); }
.book__actions { padding: 16px 24px 20px; }
.book__preview {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 28px; border-radius: 10px;
  background: var(--green-600); color: #fff;
  font-size: .875rem; font-weight: 800;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.book__preview:hover { background: var(--green-700); transform: translateY(-1px); }

/* preview modal */
.pv { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(10px, 3vw, 28px); }
.pv[hidden] { display: none; }
.pv__backdrop { position: absolute; inset: 0; background: rgba(8, 14, 8, .74); }
.pv__dialog {
  position: relative; width: min(1060px, 100%); max-height: calc(100vh - 24px);
  display: flex; flex-direction: column;
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7);
}
.pv__head { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.pv__title { font-size: .9375rem; font-weight: 800; color: var(--ink); }
.pv__close {
  margin-left: auto; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: #fff;
  font-size: .8125rem; color: var(--ink);
}
.pv__close:hover { background: var(--green-50); color: var(--green-700); }
.pv__body { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px; background: #f4f5f1; overflow: auto; }
.pv__stage { flex: 1; display: grid; place-items: center; min-width: 0; }
.pv__img { max-width: 100%; max-height: min(74vh, 720px); height: auto; border-radius: 8px; background: #fff; box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .55); }
.pv__nav {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.5rem; line-height: 1;
}
.pv__nav:hover { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.pv__nav:disabled { opacity: .35; cursor: default; }
.pv__nav:disabled:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.pv__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.pv__count { font-weight: 800; color: var(--ink); font-family: var(--font-en); }

/* ---------- forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px); }
.field { display: grid; gap: 7px; margin-bottom: 18px; align-content: start; }
.field:last-child { margin-bottom: 0; }
.field > label, .label { font-size: .875rem; font-weight: 700; color: var(--ink); }
.label i { color: var(--red-600); font-style: normal; margin-left: 3px; }
.field .hint { font-size: .75rem; color: var(--muted); line-height: 1.6; }
.input, .select, textarea.input {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line-strong, #d5ddd0); border-radius: 12px;
  background: #fff; color: var(--ink); font-size: .9375rem; font-family: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(46, 132, 26, .12); }
textarea.input { min-height: 180px; resize: vertical; line-height: 1.75; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235f6d5a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(14px, 2vw, 22px); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .8438rem; line-height: 1.6; color: var(--ink-2); }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-600); flex: none; }
.check a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 24px; }
.form-note { font-size: .75rem; color: var(--muted); line-height: 1.7; }
.inline-group { display: flex; align-items: center; gap: 8px; }
.inline-group .input { flex: 1; }
.inline-group .at { color: var(--muted); }

/* auth pages */
.auth { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.auth__aside { border-radius: var(--radius-lg); padding: clamp(26px, 3.4vw, 40px); background: linear-gradient(150deg, #163f0b, #2e841a 65%, #3d9c26); color: rgba(255,255,255,.78); }
.auth__aside h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; color: #fff; line-height: 1.4; letter-spacing: -.03em; }
.auth__aside p { margin-top: 12px; font-size: .9063rem; line-height: 1.8; }
.auth__list { margin-top: 22px; display: grid; gap: 10px; }
.auth__list li { display: flex; gap: 9px; font-size: .875rem; align-items: flex-start; }
.auth__list svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: #b9e2ac; }
.auth h1 { font-size: clamp(1.6rem, 2.6vw, 2rem); }

/* ---------- board ---------- */
.board { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 2.4vw, 26px); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.board__head h2 { font-size: 1rem; font-weight: 800; color: var(--ink); }
.board__head .board__count { font-size: .7813rem; color: var(--muted); }
.rows { display: grid; }
.rows__item {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 96px 100px;
  gap: 14px; align-items: center;
  padding: 15px clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--line-2, #eef1ea);
  transition: background-color .16s var(--ease);
}
.rows__item:last-child { border-bottom: 0; }
.rows__item:hover { background: var(--green-50); }
.rows__no { font-family: var(--font-en); font-size: .7813rem; color: var(--muted); }
.rows__title { font-size: .9375rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; min-width: 0; }
.rows__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows__title svg { width: 13px; height: 13px; color: #b0b9ab; flex: none; }
.rows__meta { font-size: .7813rem; color: var(--muted); text-align: right; }
.rows__date { font-size: .7813rem; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.rows__item--notice .rows__title { font-weight: 800; }
.rows__item--notice .rows__no { color: var(--red-700); font-weight: 800; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 22px 0 4px; }
.pager a, .pager span {
  display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  font-size: .8438rem; font-weight: 700; color: var(--ink-2);
}
.pager a:hover { border-color: var(--green-600); color: var(--green-700); }
.pager .is-active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.pager .is-disabled { color: #b9c0b3; }

/* article (notice view) */
.article__head { padding: clamp(18px, 2.4vw, 26px) 0; border-bottom: 1px solid var(--line); }
.article__head h1 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; color: var(--ink); line-height: 1.5; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .7813rem; color: var(--muted); }
.meta-row b { color: var(--ink-2); font-weight: 600; }
.article__body { padding: clamp(20px, 2.6vw, 30px) 0; font-size: .9375rem; line-height: 1.95; color: var(--ink-2); white-space: pre-line; }
.article__nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.article__nav a { font-size: .8438rem; color: var(--muted); }
.article__nav a:hover { color: var(--green-700); }

/* ---------- faq ---------- */
.faq-page { display: grid; gap: 10px; }
.faq-page details { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-page details[open] { border-color: rgba(46, 132, 26, .28); box-shadow: var(--shadow-sm); }
.faq-page summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: .9375rem; font-weight: 700; color: var(--ink); }
.faq-page summary::-webkit-details-marker { display: none; }
.faq-page summary .q { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--green-50); color: var(--green-700); font-size: .75rem; font-weight: 800; }
.faq-page summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); flex: none; }
.faq-page details[open] summary::after { transform: rotate(-135deg); }
.faq-page .a { padding: 0 18px 18px 54px; font-size: .875rem; line-height: 1.85; color: var(--muted); white-space: pre-line; }
.faq-page .a a { color: var(--green-700); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- pricing tables ---------- */
.price-block { display: grid; gap: 22px; }
.price-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price-head h2 { font-size: 1.125rem; font-weight: 800; color: var(--ink); }
.price-head .badge { font-size: .6875rem; font-weight: 800; color: var(--red-700); background: var(--red-50); border-radius: 999px; padding: 3px 9px; }
.price-head p { font-size: .8125rem; color: var(--muted); }
table.price { width: 100%; border-collapse: collapse; background: #fff; }
table.price th, table.price td { padding: 13px 16px; border-bottom: 1px solid var(--line-2, #eef1ea); font-size: .875rem; }
table.price thead th { background: var(--green-600); color: #fff; font-weight: 700; font-size: .8125rem; text-align: center; }
table.price thead th:first-child { text-align: left; }
table.price tbody td { text-align: center; color: var(--ink-2); }
table.price tbody td:first-child { text-align: left; color: var(--ink); font-weight: 600; }
table.price th:first-child, table.price td:first-child { width: 44%; }
table.price th:nth-child(2), table.price td:nth-child(2) { width: 22%; }
table.price th:nth-child(3), table.price td:nth-child(3) { width: 34%; }
table.price tbody tr:hover { background: var(--green-50); }
table.price .won { font-weight: 800; color: var(--ink); }
table.price .was { display: block; font-size: .7188rem; color: var(--muted); text-decoration: line-through; }
table.price .sale { color: var(--red-700); font-weight: 800; }

/* ---------- AI levels ---------- */
.ai-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; }
.ai-card h3 { font-size: 1.0625rem; font-weight: 800; color: var(--ink); }
.ai-card dl { margin-top: 14px; display: grid; gap: 10px; }
.ai-card dt { font-size: .75rem; font-weight: 800; color: var(--green-700); letter-spacing: .02em; }
.ai-card dd { margin: 3px 0 0; font-size: .8438rem; line-height: 1.75; color: var(--muted); }
.ai-card .price-line { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .8125rem; color: var(--ink-2); }
.ai-card .price-line b { color: var(--red-700); font-size: 1rem; }
.ai-card .btn { margin-top: 16px; }

.points { display: grid; gap: 10px; }
.point-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.point-row b { font-size: .9375rem; color: var(--ink); }
.point-row span { font-size: .8125rem; color: var(--muted); }
.point-row .btn { flex: none; }

/* ---------- exercise / quiz ---------- */
.quiz-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.level-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.level-tabs a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: .8125rem; font-weight: 700; color: var(--ink-2); }
.level-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 28px); }
.q-card + .q-card { margin-top: 14px; }
.q-card__head { display: flex; align-items: center; gap: 10px; font-size: .7813rem; font-weight: 800; color: var(--red-700); }
.q-card__head span { color: var(--muted); font-weight: 600; }
.q-card h3 { margin-top: 8px; font-size: 1rem; font-weight: 800; color: var(--ink); }
.q-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 20px; align-items: start; margin-top: 14px; }
.q-body .q-text { font-size: .9375rem; color: var(--ink-2); line-height: 1.8; }
.q-body .q-img { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #f7f8f6; }
.q-actions { display: flex; gap: 10px; margin-top: 16px; }
.q-actions .ox { flex: 1; min-height: 48px; border: 1.5px solid var(--line-strong, #d5ddd0); border-radius: 12px; background: #fff; font-size: 1.0625rem; font-weight: 800; color: var(--ink); transition: all .18s var(--ease); }
.q-actions .ox:hover { border-color: var(--green-600); color: var(--green-700); }
.q-actions .ox.is-right { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.q-actions .ox.is-wrong { background: var(--red-600); border-color: var(--red-600); color: #fff; }
.q-result { margin-top: 10px; min-height: 20px; font-size: .8125rem; font-weight: 700; color: var(--muted); }
.q-result.is-right { color: var(--green-700); }
.q-result.is-wrong { color: var(--red-700); }

/* ---------- mypage ---------- */
.mypage { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(18px, 2.6vw, 34px); align-items: start; }
.mp-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.mp-profile { border-radius: var(--radius-lg); padding: 24px; background: linear-gradient(150deg, #163f0b, #2e841a 70%); color: rgba(255,255,255,.75); }
.mp-profile__av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: 1.125rem; }
.mp-profile b { display: block; margin-top: 14px; color: #fff; font-size: 1.0625rem; }
.mp-profile span { display: block; margin-top: 4px; font-size: .7813rem; }
.mp-profile__link { display: inline-flex; margin-top: 16px; font-size: .7813rem; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 2px; }
.mp-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 10px; }
.mp-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.mp-nav a:hover { background: var(--green-50); color: var(--green-700); }
.mp-nav a.is-active { background: var(--green-600); color: #fff; }
.mp-nav svg { width: 17px; height: 17px; }

.mp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.mp-head h1 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.mp-greet { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.mp-greet span { font-weight: 500; color: var(--muted); font-size: .9375rem; }
.mp-head p { margin-top: 6px; font-size: .875rem; color: var(--muted); }

.lesson-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.lesson-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.lesson-card__top b { font-size: .9375rem; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: #e7f5e1; color: var(--green-700); font-size: .7188rem; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-600); }
.kv {
  display: grid;
  /* 把 110px 改成你想要的宽度，比如 130px */
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 10px 16px;
  padding: 20px 22px;
}
.kv dt { font-size: .8125rem; color: var(--muted); }
.kv dd { margin: 0; font-size: .875rem; color: var(--ink); font-weight: 600; }

.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.stat-box { padding: 18px; border-right: 1px solid var(--line); text-align: center; }
.stat-box:last-child { border-right: 0; }
.stat-box b { display: block; font-family: var(--font-en); font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.stat-box span { display: block; margin-top: 4px; font-size: .75rem; color: var(--muted); }

.cal { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(14px, 2vw, 22px); }
.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal__head b { font-size: 1rem; color: var(--ink); }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { text-align: center; font-size: .6875rem; font-weight: 800; color: var(--muted); padding-bottom: 4px; }
.cal__day { min-height: 74px; border: 1px solid var(--line-2, #eef1ea); border-radius: 10px; padding: 6px; font-size: .75rem; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.cal__day.is-muted { background: #fbfcfa; color: #b9c0b3; }
.cal__day.is-today { border-color: var(--green-600); box-shadow: 0 0 0 2px rgba(46, 132, 26, .12); }
.cal__day b { font-size: .75rem; font-weight: 700; }
.cal__tag { display: inline-block; padding: 2px 5px; border-radius: 5px; background: var(--green-50); color: var(--green-700); font-size: .5938rem; font-weight: 800; line-height: 1.3; }
.cal__tag--red { background: var(--red-50); color: var(--red-700); }

/* result page */
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(18px, 2.4vw, 28px); align-items: start; }
.score-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 52px; gap: 12px; align-items: center; margin-bottom: 14px; }
.score-row span { font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.score-row .bar { height: 8px; border-radius: 5px; background: var(--green-50); overflow: hidden; }
.score-row .bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--green-500), var(--green-700)); }
.score-row b { font-family: var(--font-en); font-size: .875rem; color: var(--green-700); text-align: right; }
.result-note { font-size: .8125rem; line-height: 1.8; color: var(--muted); }
.radar { display: grid; place-items: center; padding: 10px 0; }

/* ---------- misc ---------- */
.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: clamp(20px, 2.6vw, 30px); border-radius: var(--radius-lg); background: linear-gradient(120deg, #163f0b, #2e841a 65%); color: rgba(255,255,255,.8); }
.cta-strip h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; color: #fff; line-height: 1.4; }
.cta-strip p { margin-top: 6px; font-size: .875rem; }
.cta-strip .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.contact-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.contact-row div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: .8125rem; color: var(--muted); }
.contact-row b { display: block; margin-bottom: 4px; font-size: .75rem; color: var(--green-700); letter-spacing: .04em; }
.contact-row strong { color: var(--ink); font-size: .875rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .mypage { grid-template-columns: minmax(0, 1fr); }
  .mp-side { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .result-grid { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { order: 2; }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-box:nth-child(2) { border-right: 0; }
  .stat-box:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .q-body { grid-template-columns: minmax(0, 1fr); }
  .q-body .q-img { order: -1; }
  .contact-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .steps4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .adv { grid-template-columns: 80px minmax(0, 1fr); }
  .rows__item { grid-template-columns: 34px minmax(0, 1fr); row-gap: 4px; }
  .rows__meta, .rows__date { text-align: left; grid-column: 2; }
  .rows__meta { display: none; }
  .cal__day { min-height: 54px; padding: 4px; font-size: .625rem; }
  .cal__tag { display: none; }
  .kv { grid-template-columns: 50px minmax(0, 1fr); padding: 16px; }
  .mp-side { grid-template-columns: minmax(0, 1fr); }
  .cta-strip { flex-direction: column; align-items: flex-start; }
  .cta-strip .actions { width: 100%; }
  .cta-strip .actions .btn { flex: 1 1 100%; }
  .page-hero { padding-top: 26px; }
  .tabs { margin-right: calc(var(--gutter, 18px) * -1); padding-right: var(--gutter, 18px); }
}

/* ---------- textbook responsive ---------- */
@media (max-width: 720px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book__cover { border-right: 0; border-bottom: 1px solid #ebebe6; }
  .book__cover img { max-width: 220px; margin-inline: auto; }
  .book__title { padding: 14px 18px; font-size: 1rem; }
  .book__spec > div { grid-template-columns: 92px minmax(0, 1fr); }
  .book__spec dt, .book__spec dd { padding: 10px 12px; }
  .book__actions { padding: 14px 18px 18px; }
  .book__preview { width: 100%; }
  .pv__nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .pv__img { max-height: 62vh; }
  .pv__foot { font-size: .6875rem; }
}

@media (max-width: 720px) {
  .modal__body { padding: 14px 16px; }
  .modal__dialog { max-height: calc(100vh - 16px); }
  .terms-body p { font-size: .8438rem; }
}
