:root {
  --primary: #1f2d4d;
  --primary-dark: #111b33;
  --primary-soft: #f2e6d3;
  --paper-orange: #d4a85a;
  --gold: #d4a85a;
  --gold-dark: #8b6b4f;
  --mist: #a8c6e8;
  --steel: #3e5c7a;
  --text: #111827;
  --muted: #697386;
  --line: #e5e7eb;
  --bg: #ffffff;
  --shadow: 0 20px 55px rgba(17, 27, 51, .12);
  font-family: Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: #fff; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
input, textarea, select { outline: none; }
.hidden { display: none !important; }

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 66px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid #eef0f3;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); }
.brand img { width: 50px; height: 50px; border-radius: 8px; }
.brand strong { font-size: 25px; font-weight: 900; }
.main-links { justify-self: center; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); color: #0f1f3d; font-size: 16px; }
.main-links a { display: inline-flex; align-items: center; gap: 5px; }
.main-links a:hover { color: var(--primary); }
.main-links svg { width: 16px; height: 16px; fill: #ef4444; color: #ef4444; }
.auth-entry {
  min-width: 118px;
  padding: 12px 18px;
  border-radius: 9px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  background: #de260c;
}
.account-menu {
  position: relative;
  justify-self: end;
}
.account-trigger {
  width: 52px;
  height: 52px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  padding: 3px;
  background: linear-gradient(135deg, #d50036, #6b0f7d);
  box-shadow: 0 8px 18px rgba(17,27,51,.18);
}
.account-trigger img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 178px;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17,27,51,.18);
}
.account-menu.open .account-dropdown { display: block; }
.account-dropdown strong,
.account-dropdown span {
  display: block;
  text-align: center;
}
.account-dropdown strong { padding: 18px 12px 5px; color: var(--primary-dark); font-size: 18px; }
.account-dropdown span { padding: 0 12px 14px; color: #667085; }
.account-dropdown a,
.account-dropdown button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #eef0f3;
  padding: 0 24px;
  color: #344054;
  background: #fff;
  font-weight: 900;
  text-align: left;
}
.account-dropdown a:hover,
.account-dropdown button:hover { background: #f8fafc; color: var(--primary); }
.account-dropdown svg { width: 18px; height: 18px; }
.mobile-menu { display: none; }
main { padding-top: 66px; }
.view { display: none; }
.view.active { display: block; }

.notice {
  padding: 14px;
  text-align: center;
  color: #8b270f;
  background: #fff0eb;
  font-size: 14px;
}
.gradient { background: linear-gradient(90deg, #d53369 0%, #daae51 100%); }
.home-hero {
  min-height: 620px;
  padding: 90px max(28px, calc((100vw - 1280px) / 2 + 28px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: center;
  gap: 40px;
  color: #fff;
}
.home-hero > div { min-width: 0; max-width: 100%; }
.home-hero h1 { margin: 0 0 12px; font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.home-hero h2 { margin: 0 0 22px; font-size: clamp(34px, 5vw, 58px); line-height: 1.1; }
.home-hero p { max-width: 700px; margin: 0; font-size: 22px; line-height: 1.7; }
.home-hero img { width: min(620px, 100%); justify-self: center; }
.hero-actions { display: flex; gap: 16px; margin-top: 40px; }
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 900;
}
.primary-btn { color: #fff; background: var(--primary); box-shadow: 0 18px 35px rgba(239,67,32,.22); }
.primary-btn:hover { background: var(--primary-dark); }
.secondary-btn { color: var(--primary); background: #fff0eb; }
.primary-btn svg, .secondary-btn svg { width: 17px; height: 17px; }
.home-section { max-width: 1180px; margin: 0 auto; padding: 60px 24px; text-align: center; }
.home-section h2 { margin: 0; font-size: 38px; }
.section-rule { width: 320px; height: 4px; margin: 18px auto 38px; border-radius: 8px; background: linear-gradient(90deg,#d53369,#daae51); opacity: .25; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.feature-grid article { padding: 28px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.feature-grid svg { width: 42px; height: 42px; padding: 10px; border-radius: 999px; color: var(--primary); background: var(--primary-soft); }
.feature-grid h3 { margin: 18px 0 8px; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.7; }

.write-view {
  position: relative;
  min-height: calc(100vh - 66px);
  display: none;
  grid-template-columns: 210px minmax(350px, 400px) minmax(0, 1fr);
  background: #fff;
}
.write-view.active { display: grid; }
.write-sidebar {
  height: calc(100vh - 66px);
  overflow: auto;
  padding: 24px 8px 24px 4px;
  border-right: 1px solid #f1f1f1;
  background: #fff;
}
.type-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 50px;
  padding: 0 12px 0 16px;
  color: #344054;
  border-left: 4px solid transparent;
  font-size: 16px;
}
.type-item span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 70% 20%, #f6d65b, #f4efe7 52%, #e8efff);
}
.type-item svg { width: 18px; height: 18px; color: #667085; }
.type-item.active {
  color: var(--primary);
  border-left-color: #ff744f;
  background: #fee7dc;
  font-weight: 900;
}
.type-item.active svg { color: var(--primary); }

.write-flow-panel {
  position: relative;
  height: calc(100vh - 66px);
  overflow: hidden auto;
  padding: 62px 28px;
  color: #f04018;
  text-align: center;
  border-left: 3px solid #ff744f;
  border-right: 3px solid #ff744f;
  background:
    radial-gradient(circle at 70% 8%, rgba(255,255,255,.45), transparent 170px),
    linear-gradient(180deg, #f7c8b2, #f6754e);
}
.write-flow-panel h2 { margin: 0 0 36px; font-size: 30px; }
.flow-step,
.flow-card {
  border: 1px solid rgba(255,255,255,.58);
  border-radius: 9px;
  background: rgba(255,255,255,.14);
}
.flow-step {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  text-align: left;
  color: #ff744f;
  font-weight: 900;
  font-size: 18px;
}
.flow-step b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
}
.flow-step.muted { opacity: .55; }
.down-mark { margin: 20px 0; font-size: 56px; line-height: .6; color: var(--primary); }
.flow-card { margin-top: 12px; padding: 0 26px 24px; text-align: left; }
.flow-card .flow-step { margin: 0 -26px 20px; border-width: 0 0 1px; border-radius: 9px 9px 0 0; }
.flow-card p { margin: 0 0 13px; font-size: 17px; line-height: 1.8; color: #f0441d; }
.plus { margin: 26px 0; font-size: 42px; color: var(--primary); }

.write-main {
  height: calc(100vh - 66px);
  overflow: auto;
  padding: 36px clamp(24px, 2.2vw, 44px) 80px;
}
.write-ticker {
  max-width: 960px;
  height: 52px;
  margin: 0 auto 78px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: clamp(24px, 10vw, 180px);
  border-radius: 9px;
  color: #667085;
  background: #fff0eb;
}
.write-ticker svg { width: 21px; height: 21px; color: var(--primary); }
.write-main h1 { margin: 0 0 18px; text-align: center; font-size: 40px; }
.write-subtitle { margin: 0 0 40px; text-align: center; color: #f02f11; font-size: 24px; line-height: 1.5; }
.form-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 18px auto;
  max-width: 960px;
}
.form-row > label { text-align: right; font-size: 20px; font-weight: 900; }
.title-box { display: grid; grid-template-columns: 1fr auto; border: 1px solid #d5dce7; border-radius: 10px; overflow: hidden; }
.title-box input, .wide-input, textarea {
  width: 100%;
  border: 1px solid #d5dce7;
  border-radius: 9px;
  padding: 13px 14px;
  color: #344054;
  background: #fff;
}
.title-box input { min-width: 0; border: 0; border-radius: 0; font-size: 17px; }
.title-box button {
  margin: 5px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #ef947e;
  font-weight: 900;
  white-space: nowrap;
}
.title-box button svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; }
.helper-text { max-width: 960px; margin: -6px auto 28px; padding-left: 134px; color: #59657a; font-size: 16px; }
.literature-hint { margin-top: -8px; margin-bottom: 18px; color: #9a6a2f; font-weight: 900; }
.upload-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; max-width: 960px; margin: 0 auto 26px; }
.upload-row > label { text-align: right; font-size: 20px; font-weight: 900; line-height: 1.35; }
.upload-card {
  position: relative;
  padding: 24px 26px 24px;
  border-radius: 18px;
  background: linear-gradient(115deg, #fff, #fff6f2);
  box-shadow: var(--shadow);
}
.close-card { position: absolute; top: 14px; right: 16px; border: 0; background: transparent; color: #344054; font-size: 32px; }
.upload-card h3 { margin: 0 0 18px; padding-left: 14px; border-left: 5px solid #c41f0b; font-size: 20px; }
.dropzone {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: #9aa3b2;
  background: #f8fafc;
  line-height: 1.7;
}
.dropzone svg { width: 58px; height: 58px; color: #cbd5e1; margin-bottom: 6px; }
.dropzone strong { color: var(--primary); }
.dropzone small { display: block; margin-top: 6px; font-size: 16px; }
.warning { margin: 12px 0 0; color: #e31d0b; font-size: 14px; font-weight: 900; line-height: 1.45; }
.file-summary { margin-top: 10px; color: #667085; font-size: 13px; }
textarea { min-height: 92px; resize: vertical; line-height: 1.7; }
.segmented-options,
.radio-options {
  display: grid;
  gap: 12px;
}
.segmented-options { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.segmented-options button {
  min-height: 56px;
  border: 1px solid #d5dce7;
  border-radius: 9px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.segmented-options button.active {
  color: var(--primary-dark);
  border-color: var(--gold);
  background: linear-gradient(135deg, #fff, #f8f0e2);
  box-shadow: 0 10px 22px rgba(212,168,90,.16);
}
.radio-options {
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  align-items: center;
}
.radio-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}
.radio-options input,
.consent-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}
.reference-controls {
  display: grid;
  gap: 16px;
}
.reference-controls label {
  display: grid;
  grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-weight: 900;
}
.reference-controls input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}
.reference-controls p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}
.type-module-container:empty { display: none; }
.module-row {
  align-items: stretch;
  margin-block: 24px;
}
.module-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 30px 34px;
  border: 1px solid rgba(212,168,90,.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 0, rgba(212,168,90,.18), transparent 220px),
    linear-gradient(135deg, #fff, #fbf8f1);
  box-shadow: 0 18px 52px rgba(31,45,77,.08);
}
.module-card label {
  display: grid;
  gap: 10px;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 900;
}
.module-card input[type="range"] {
  width: 100%;
  accent-color: var(--gold);
}
.module-card p {
  margin: 0;
  color: #475467;
  line-height: 1.65;
}
.module-label {
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 900;
}
.choice-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}
.choice-buttons button,
.ppt-template-grid button {
  min-height: 54px;
  border: 1px solid #d8dee8;
  border-radius: 10px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.choice-buttons button.active,
.ppt-template-grid button.active {
  border-color: var(--gold);
  color: var(--primary-dark);
  background: linear-gradient(135deg, #fff, #f2e6d3);
  box-shadow: 0 10px 26px rgba(212,168,90,.18);
}
.literature-level-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.literature-level-grid button {
  min-height: 82px;
  align-items: start;
  justify-items: start;
  padding: 16px 18px;
  text-align: left;
}
.literature-level-grid strong,
.literature-level-grid small {
  display: block;
}
.literature-level-grid small {
  margin-top: 6px;
  color: #475467;
  font-weight: 700;
  line-height: 1.35;
}
.ppt-dropzone {
  min-height: 270px;
  display: grid;
  place-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: #697386;
  background: #f8fafc;
}
.ppt-dropzone svg {
  width: 64px;
  height: 64px;
  color: #cbd5e1;
}
.ppt-dropzone strong {
  color: var(--primary);
}
.ppt-dropzone span,
.ppt-dropzone small {
  display: block;
  color: #667085;
}
.ppt-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ppt-template-grid button {
  min-height: 118px;
  justify-content: start;
  padding: 16px;
  text-align: left;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.18)),
    linear-gradient(145deg, #cfe6ff, #7eb1ec 52%, #1f2d4d);
}
.ppt-template-grid button:nth-child(2) { background: linear-gradient(145deg, #d9fbff, #85d9ec 58%, #3e5c7a); }
.ppt-template-grid button:nth-child(3) { background: linear-gradient(145deg, #f5fbff, #a8c6e8 58%, #4c7db8); }
.ppt-template-grid button:nth-child(4) { background: linear-gradient(145deg, #111b33, #3e5c7a); color: #fff; }
.ppt-template-grid button:nth-child(5) { background: linear-gradient(145deg, #e9f8df, #95c978 60%, #31572c); color: #102a12; }
.ppt-template-grid button:nth-child(6) { background: linear-gradient(145deg, #fff3dc, #d4a85a 60%, #8b6b4f); }
.ppt-template-grid span {
  display: block;
  max-width: 170px;
  font-size: 13px;
  line-height: 1.4;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field-grid input,
.revision-module textarea,
.journal-reference-module textarea,
.text-only-module textarea,
.speech-module input,
.speech-module textarea,
.topic-type-select {
  width: 100%;
  border: 1px solid #d5dce7;
  border-radius: 10px;
  padding: 13px 14px;
  color: #344054;
  background: #fff;
}
.revision-module textarea,
.journal-reference-module textarea,
.text-only-module textarea,
.speech-module textarea {
  min-height: 180px;
}
.topic-type-select {
  min-height: 54px;
  font-weight: 800;
}
.module-helper {
  grid-column: 2;
  margin: -8px 0 0;
  padding-left: 0;
}
.upload-note {
  color: #f04018;
  font-weight: 800;
}
.write-actions { max-width: 960px; margin: 22px auto; padding-left: 134px; display: flex; gap: 12px; }
.consent-row {
  max-width: 960px;
  margin: 8px auto 18px;
  padding-left: 134px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #667085;
  line-height: 1.5;
}
.write-result {
  max-width: 960px;
  min-height: 140px;
  margin: 20px auto 0;
  padding: 16px;
  border: 1px solid #e6eaf0;
  border-radius: 12px;
  background: #fbfcfe;
  color: #344054;
  white-space: pre-wrap;
  line-height: 1.7;
}
.support-avatar {
  position: fixed;
  right: 24px;
  bottom: 220px;
  width: 50px;
  height: 50px;
  padding: 3px;
  border: 1px solid #dde3eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}
.support-avatar img { width: 100%; height: 100%; border-radius: 999px; object-fit: cover; }

.simple-view { max-width: 1024px; margin: 0 auto; padding: 90px 24px; }
.simple-view h1 { font-size: 42px; }
.simple-view p { color: var(--muted); font-size: 18px; line-height: 1.8; }

.gift-view {
  min-height: calc(100vh - 66px);
  padding: 110px 24px 84px;
  background:
    radial-gradient(circle at 12% 10%, rgba(168,198,232,.24), transparent 260px),
    radial-gradient(circle at 92% 18%, rgba(212,168,90,.18), transparent 280px),
    linear-gradient(180deg, #fff, #fbfcfe 52%, #fff);
}
.gift-hero,
.gift-title-band,
.gift-platforms,
.gift-rules,
.gift-benefits {
  max-width: 1360px;
  margin-inline: auto;
}
.gift-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .72fr);
  align-items: center;
  gap: 28px;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 8px;
  padding: clamp(34px, 5vw, 58px);
  color: #fff;
  background:
    linear-gradient(125deg, rgba(31,45,77,.98), rgba(17,27,51,.94) 54%, rgba(62,92,122,.82)),
    radial-gradient(circle at 86% 28%, rgba(212,168,90,.42), transparent 260px);
  box-shadow: 0 28px 75px rgba(17,27,51,.16);
}
.gift-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 0 44%, rgba(255,255,255,.12) 44% 48%, transparent 48%),
    radial-gradient(circle at 68% 70%, rgba(168,198,232,.16), transparent 220px);
  pointer-events: none;
}
.gift-hero-copy,
.gift-hero-art { position: relative; z-index: 1; }
.gift-hero-copy span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 900;
}
.gift-hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}
.gift-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #eef4fb;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.75;
}
.gift-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.gift-copy-result {
  min-height: 26px;
  margin-top: 14px;
  color: #f2e6d3;
  font-weight: 900;
}
.gift-hero-art {
  justify-self: center;
  width: min(380px, 100%);
  display: grid;
  place-items: center;
}
.gift-hero-art img {
  width: min(320px, 78vw);
  filter: drop-shadow(0 24px 36px rgba(0,0,0,.24));
}
.gift-ticket {
  position: absolute;
  right: 0;
  bottom: 12px;
  min-width: 170px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--primary-dark);
  background: linear-gradient(135deg, #fff, #f2e6d3);
  box-shadow: 0 20px 35px rgba(17,27,51,.18);
}
.gift-ticket b {
  display: block;
  font-size: 34px;
  line-height: 1;
}
.gift-ticket span {
  display: block;
  margin-top: 6px;
  color: var(--gold-dark);
  font-weight: 900;
}
.gift-title-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 58px;
  color: #de260c;
}
.gift-title-band svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}
.gift-title-band h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: 0;
}
.gift-platforms {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 18px;
  margin-top: 46px;
}
.gift-platforms button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 70px;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 8px;
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 14px 35px rgba(17,27,51,.06);
  font-weight: 900;
}
.gift-platforms button.active,
.gift-platforms button:hover {
  border-color: rgba(212,168,90,.66);
  background: linear-gradient(135deg, #fff, #fbf6ea);
  transform: translateY(-1px);
}
.gift-platforms span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--steel));
  font-size: 14px;
}
.gift-platforms button:nth-child(2) span { background: linear-gradient(135deg, #49a35b, #7fc88a); }
.gift-platforms button:nth-child(3) span { background: linear-gradient(135deg, #0f72f2, #53a4ff); }
.gift-platforms button:nth-child(4) span { background: linear-gradient(135deg, #de260c, #f16a4c); }
.gift-platforms button:nth-child(5) span { background: linear-gradient(135deg, #0877e8, #2a9df4); }
.gift-rules {
  display: grid;
  grid-template-columns: 1.2fr .95fr minmax(280px, .85fr);
  gap: 20px;
  margin-top: 48px;
  border: 2px dashed rgba(222,38,12,.55);
  border-radius: 8px;
  padding: 30px;
  background: rgba(255,255,255,.86);
}
.gift-rules article,
.gift-share-card {
  min-width: 0;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.gift-rules h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--primary-dark);
  font-size: 20px;
}
.gift-rules h3 svg {
  width: 22px;
  height: 22px;
  color: #de260c;
}
.gift-rules p,
.gift-rules li,
.gift-share-card p {
  color: #475467;
  line-height: 1.8;
  font-size: 16px;
}
.gift-rules p { margin: 0 0 12px; }
.gift-rules strong { color: #de260c; }
.gift-rules ol {
  margin: 0;
  padding-left: 22px;
}
.gift-share-card {
  background:
    radial-gradient(circle at 100% 0, rgba(212,168,90,.18), transparent 130px),
    linear-gradient(180deg, #fff, #fbf8f1);
}
.gift-share-card > span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-weight: 900;
}
.gift-share-card .secondary-btn {
  width: 100%;
  margin-top: 10px;
}
.gift-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.gift-benefits article {
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(17,27,51,.06);
}
.gift-benefits svg {
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 9px;
  border-radius: 999px;
  color: var(--primary);
  background: linear-gradient(135deg, #f2e6d3, #fff);
}
.gift-benefits h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 20px;
}
.gift-benefits p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
body:has(#gift-view.active) .companion-fab,
body:has(#gift-view.active) .recruit-fab {
  display: none !important;
}
@media (max-width: 980px) {
  .gift-view { padding: 90px 18px 60px; }
  .gift-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .gift-hero-art {
    width: 100%;
    min-height: 250px;
  }
  .gift-ticket {
    right: max(12px, 10%);
    bottom: 0;
  }
  .gift-platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .gift-rules,
  .gift-benefits {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .gift-view { padding-inline: 14px; }
  .gift-hero { padding: 28px 20px; }
  .gift-hero-copy h1 { font-size: 38px; }
  .gift-title-band {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .gift-title-band h2 { font-size: 26px; }
  .gift-platforms { grid-template-columns: 1fr; }
  .gift-rules { padding: 18px; }
  .gift-rules article,
  .gift-share-card,
  .gift-benefits article {
    padding: 18px;
  }
}

.auth-view {
  min-height: calc(100vh - 66px);
  padding: 60px 20px;
  background: linear-gradient(135deg, #fff7f3, #fff);
}
.auth-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid #f1d8cf;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--primary); }
.auth-brand img { width: 48px; height: 48px; border-radius: 9px; }
.auth-brand strong { font-size: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 28px 0 18px; padding: 6px; border-radius: 12px; background: #f8fafc; }
.auth-tabs button { border: 0; border-radius: 9px; padding: 11px; background: transparent; color: #667085; font-weight: 900; }
.auth-tabs button.active { color: #fff; background: var(--primary); }
.auth-form { display: none; gap: 14px; }
.auth-form.active { display: grid; }
.auth-form label { display: grid; gap: 8px; color: #344054; font-weight: 900; }
.auth-form input,
.auth-form select { width: 100%; border: 1px solid #d5dce7; border-radius: 10px; padding: 13px; background: #fff; }
.auth-form p { text-align: center; color: var(--primary); }
.auth-result { min-height: 22px; color: var(--gold-dark); text-align: center; line-height: 1.6; font-weight: 900; }
.code-row { display: grid; grid-template-columns: 1fr 108px; gap: 8px; }
.code-row button { border: 0; border-radius: 10px; color: #fff; background: #ef947e; font-weight: 900; }

.orders-view,
.usage-view,
.password-view {
  min-height: calc(100vh - 66px);
  background:
    radial-gradient(circle at 18% 12%, rgba(212,168,90,.18), transparent 280px),
    linear-gradient(180deg, #fff, #f8fafc);
}
.orders-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 22px;
}
.orders-create,
.orders-list-panel,
.account-page {
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 55px rgba(17,27,51,.1);
}
.orders-create { padding: 28px; }
.orders-create .section-heading { text-align: left; }
.orders-create h1,
.account-page h1 { margin: 0; color: var(--primary-dark); font-size: 42px; }
.orders-create p,
.account-page p { color: var(--muted); line-height: 1.75; }
.order-form { display: grid; gap: 18px; margin-top: 24px; }
.order-service-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.order-service-options button {
  min-height: 118px;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 13px;
  padding: 14px;
  color: var(--primary-dark);
  background: #fff;
  text-align: left;
}
.order-service-options button.active {
  border-color: rgba(212,168,90,.68);
  background: linear-gradient(135deg, #f2e6d3, #fff);
  box-shadow: inset 0 0 0 1px rgba(212,168,90,.2);
}
.order-service-options strong { display: block; margin-bottom: 8px; font-size: 16px; }
.order-service-options span { color: var(--muted); line-height: 1.55; font-size: 13px; }
.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.order-form label,
.password-form label {
  display: grid;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 900;
}
.order-form input,
.order-form select,
.order-form textarea,
.password-form input {
  width: 100%;
  border: 1px solid rgba(31,45,77,.16);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
}
.order-form textarea { min-height: 110px; resize: vertical; }
.order-result,
.password-result { color: var(--gold-dark); line-height: 1.65; font-weight: 900; }
.orders-list-panel { padding: 22px; align-self: start; }
.orders-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.orders-list-head span {
  color: var(--gold-dark);
  font-weight: 900;
}
.orders-list-head h1,
.orders-list-head h2 { margin: 4px 0 0; color: var(--primary-dark); }
.orders-list-head button {
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 10px;
  padding: 9px 14px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.order-list,
.usage-list { display: grid; gap: 12px; }
.order-list article {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #fbfcfe);
}
.order-list article > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.order-list span {
  min-width: 70px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #f2e6d3;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}
.order-list h3 { margin: 0; color: var(--primary-dark); }
.order-list p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }
.order-list dl {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 6px 10px;
  margin: 0;
  color: var(--muted);
}
.order-list dt { color: #475467; font-weight: 900; }
.order-list dd { margin: 0; }
.order-list b { color: var(--gold-dark); line-height: 1.55; }
.account-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px 28px;
}
.account-page.narrow { max-width: 520px; }
.usage-list article {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid #eef0f3;
  padding: 14px 0;
}
.usage-list strong { color: var(--primary-dark); }
.usage-list span { color: var(--muted); }
.usage-list time { color: #98a2b3; font-size: 13px; }
.password-form { display: grid; gap: 16px; margin-top: 24px; }

@media (max-width: 1200px) {
  .write-view.active { grid-template-columns: 200px minmax(330px, 380px) minmax(0, 1fr); }
  .write-main { padding-inline: 30px; }
}
@media (max-width: 900px) {
  .top-nav { grid-template-columns: auto 1fr auto; }
  .main-links { display: none; }
  body:has(#write-view.active) .recruit-fab { display: none; }
  .write-view.active { display: flex; flex-direction: column; width: 100%; overflow-x: hidden; }
  .write-sidebar, .write-flow-panel, .write-main { height: auto; }
  .write-main { order: 1; min-height: auto; width: 100%; max-width: 100vw; overflow: hidden; padding-inline: 24px; }
  .write-sidebar {
    order: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    overflow: visible;
    padding-block: 14px;
  }
  .write-flow-panel { order: 3; min-height: auto; }
  .write-flow-panel { border-left: 0; border-right: 0; }
  .write-ticker { margin-bottom: 34px; gap: 20px; }
  .write-ticker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .write-main h1 { font-size: 34px; }
  .write-subtitle { font-size: 21px; }
  .form-row, .upload-row { grid-template-columns: 1fr; }
  .form-row > label, .upload-row > label { text-align: left; }
  .helper-text, .write-actions, .consent-row { padding-left: 0; }
  .segmented-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-controls label { grid-template-columns: 1fr; }
  .module-card { padding: 22px; }
  .choice-buttons,
  .ppt-template-grid,
  .field-grid,
  .literature-level-grid { grid-template-columns: 1fr; }
  .helper-text, .warning, .dropzone small { overflow-wrap: anywhere; word-break: break-word; }
  .home-hero { grid-template-columns: 1fr; text-align: center; }
  .home-hero img { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .orders-shell,
  .order-service-options,
  .order-form-grid { grid-template-columns: 1fr; }
  .orders-shell { padding-inline: 18px; }
  .account-dropdown { right: -12px; }
}
@media (max-width: 560px) {
  .brand strong { display: none; }
  .auth-entry { min-width: auto; padding-inline: 12px; }
  .account-trigger { width: 46px; height: 46px; }
  .orders-create,
  .orders-list-panel,
  .account-page { padding: 20px; border-radius: 14px; }
  .orders-create h1,
  .account-page h1 { font-size: 34px; }
  .write-sidebar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 14px;
  }
  .type-item {
    min-width: 158px;
    padding: 10px 12px;
    white-space: nowrap;
  }
  .write-main { padding-inline: 18px; }
  .write-ticker { max-width: 100%; padding: 0 14px; font-size: 14px; overflow: hidden; }
  .write-main h1 { font-size: 32px; }
  .write-subtitle { font-size: 20px; }
  .upload-card { padding: 24px 12px 22px; border-radius: 14px; }
  .dropzone { width: 100%; min-height: 230px; padding: 12px; overflow: hidden; }
  .title-box { grid-template-columns: 1fr; }
  .title-box button { height: 40px; }
  .companion-fab { right: 12px; bottom: 12px; width: 82px; }
  .mascot-stage { width: 70px; height: 70px; }
  .mascot-stage img { width: 60px; height: 60px; }
  .companion-fab b { display: none; }
}

/* MOMO伴写 brand layer */
.top-nav {
  border-bottom-color: rgba(31,45,77,.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(250,247,241,.94));
}
.brand { color: var(--primary); }
.brand img { width: 172px; height: 50px; object-fit: contain; border-radius: 0; }
.brand strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.main-links { color: var(--primary-dark); }
.main-links a:hover, .main-links a.active { color: var(--gold-dark); }
.main-links svg { fill: var(--gold); color: var(--gold); }
.auth-entry,
.primary-btn {
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(135deg, #1f2d4d, #111b33 58%, #3e5c7a);
  box-shadow: 0 18px 35px rgba(31,45,77,.24), inset 0 1px 0 rgba(255,255,255,.24);
}
.primary-btn:hover { background: linear-gradient(135deg, #111b33, #1f2d4d 58%, #8b6b4f); }
.secondary-btn {
  color: var(--primary);
  border: 1px solid rgba(212,168,90,.32);
  background: linear-gradient(135deg, #fff, #f2e6d3);
}
.notice {
  color: #6f542b;
  background: linear-gradient(90deg, #fff, #f2e6d3 50%, #fff);
}
.metal-hero {
  position: relative;
  overflow: hidden;
  color: var(--primary);
  background:
    linear-gradient(115deg, rgba(31,45,77,.96) 0%, rgba(17,27,51,.94) 42%, rgba(62,92,122,.78) 62%, rgba(242,230,211,.88) 100%),
    radial-gradient(circle at 78% 30%, rgba(212,168,90,.34), transparent 260px);
}
.metal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.22) 36%, transparent 45%),
    radial-gradient(circle at 20% 18%, rgba(168,198,232,.18), transparent 240px);
  pointer-events: none;
}
.metal-hero > * { position: relative; z-index: 1; }
.home-hero h1,
.home-hero h2,
.home-hero p { color: #fff; }
.home-hero img {
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 28px 45px rgba(17,27,51,.2));
}
.section-rule { background: linear-gradient(90deg, #1f2d4d, #d4a85a, #a8c6e8); opacity: .55; }
.feature-grid article {
  border: 1px solid rgba(31,45,77,.1);
  background: linear-gradient(145deg, #fff, #f7f4ee);
}
.feature-grid svg {
  color: var(--primary);
  background: linear-gradient(135deg, #f2e6d3, #a8c6e8);
}

.home-stats-band {
  max-width: 1180px;
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 18px;
  background: rgba(31,45,77,.12);
  box-shadow: var(--shadow);
}
.home-stats-band div {
  padding: 24px;
  text-align: center;
  background: linear-gradient(145deg, #fff, #f8f4eb);
}
.home-stats-band strong { display: block; color: var(--primary); font-size: 34px; line-height: 1; }
.home-stats-band span { display: block; margin-top: 8px; color: var(--gold-dark); font-weight: 900; }

.split-section,
.process-section,
.capability-section,
.home-knowledge-section,
.testimonial-section {
  text-align: left;
}
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold-dark);
  font-weight: 900;
}
.section-heading h2 { margin: 0 0 10px; color: var(--primary-dark); font-size: 36px; line-height: 1.25; }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.home-service-grid article,
.capability-grid article,
.testimonial-grid article,
.home-knowledge-card {
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fbf8f1);
  box-shadow: 0 14px 34px rgba(31,45,77,.08);
}
.home-service-grid article { padding: 20px; }
.home-service-grid svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 13px;
  color: #111b33;
  background: linear-gradient(135deg, #f2e6d3, #d4a85a);
}
.home-service-grid h3,
.capability-grid h3 { margin: 16px 0 8px; color: var(--primary-dark); }
.home-service-grid p,
.capability-grid p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; }
.home-service-grid b {
  display: block;
  color: var(--gold-dark);
  font-size: 13px;
  line-height: 1.55;
}

.home-process-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.home-process-timeline article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(242,230,211,.18);
  border-radius: 16px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), transparent 34%),
    linear-gradient(160deg, #1f2d4d, #111b33);
  box-shadow: 0 16px 40px rgba(17,27,51,.16);
}
.home-process-timeline b { color: var(--gold); }
.home-process-timeline h3 { margin: 14px 0 10px; color: #fff; }
.home-process-timeline p { margin: 0; color: #d8e0ed; line-height: 1.65; }

.compliance-band {
  max-width: 1180px;
  margin: 34px auto;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 20%, rgba(212,168,90,.32), transparent 220px),
    linear-gradient(135deg, #111b33, #1f2d4d 60%, #3e5c7a);
  box-shadow: var(--shadow);
}
.compliance-band span { color: var(--gold); font-weight: 900; }
.compliance-band h2 { margin: 8px 0 12px; font-size: 34px; }
.compliance-band p { margin: 0; color: #e8edf6; font-size: 18px; line-height: 1.8; }
.compliance-band small {
  display: block;
  margin-top: 14px;
  color: rgba(232,237,246,.72);
  font-size: 13px;
  line-height: 1.7;
}
.compliance-band ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.compliance-band li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
.compliance-band li span { color: #fff; }
.compliance-band svg { width: 22px; height: 22px; color: var(--gold); }
.soft-note-band {
  background:
    radial-gradient(circle at 84% 20%, rgba(212,168,90,.2), transparent 220px),
    linear-gradient(135deg, #1f2d4d, #3e5c7a);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.capability-grid article { padding: 24px; }
.capability-grid svg {
  width: 38px;
  height: 38px;
  color: var(--primary);
}

.consult-band {
  max-width: 1180px;
  margin: 20px auto;
  padding: 26px 32px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(212,168,90,.28);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #f2e6d3);
  box-shadow: var(--shadow);
}
.consult-band img { width: 76px; height: 76px; border-radius: 18px; }
.consult-band h2 { margin: 0 0 8px; color: var(--primary-dark); }
.consult-band p { margin: 0; color: var(--muted); line-height: 1.65; }

.home-knowledge-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.home-knowledge-card { display: block; padding: 22px; }
.home-knowledge-card span { color: var(--gold-dark); font-weight: 900; }
.home-knowledge-card h3 { min-height: 58px; margin: 10px 0; color: var(--primary-dark); line-height: 1.45; }
.home-knowledge-card p { min-height: 78px; margin: 0 0 16px; color: var(--muted); line-height: 1.65; }
.home-knowledge-card b { color: var(--steel); font-size: 13px; }
.center-actions { margin-top: 22px; text-align: center; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.testimonial-grid article { padding: 24px; }
.testimonial-grid p { margin: 0 0 18px; color: var(--primary-dark); font-size: 18px; line-height: 1.75; }
.testimonial-grid b { color: var(--gold-dark); }

.home-footer {
  margin-top: 40px;
  padding: 34px max(28px, calc((100vw - 1180px) / 2 + 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #d8e0ed;
  background: #111b33;
}
.home-footer img { width: 190px; height: auto; padding: 8px; border-radius: 12px; background: #fff; }
.home-footer p { margin: 12px 0 0; color: #b8c2d2; }
.home-footer nav { display: flex; flex-wrap: wrap; gap: 18px; color: #fff; }
.home-footer a:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .home-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-process-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-stats-band,
  .capability-grid,
  .home-knowledge-preview,
  .testimonial-grid { grid-template-columns: 1fr; }
  .compliance-band,
  .consult-band { grid-template-columns: 1fr; }
  .consult-band { text-align: center; justify-items: center; }
  .home-footer { display: grid; }
}
@media (max-width: 560px) {
  html,
  body,
  main,
  .home-view.active {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .home-hero {
    width: 100vw;
    max-width: 100vw;
    min-height: 620px;
    padding: 72px 20px;
    overflow: hidden;
  }
  .home-hero > div {
    width: min(280px, calc(100vw - 40px));
    max-width: min(280px, calc(100vw - 40px));
    justify-self: center;
  }
  .home-hero h1 { font-size: 46px; }
  .home-hero h2 { font-size: 36px; }
  .home-hero h1,
  .home-hero h2,
  .home-hero p {
    max-width: calc(100vw - 40px);
  }
  .home-hero p {
    width: min(280px, calc(100vw - 40px)) !important;
    max-width: min(280px, calc(100vw - 40px)) !important;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    overflow-wrap: anywhere;
    word-break: break-all;
  }
  .hero-actions {
    width: min(280px, calc(100vw - 40px));
    margin-left: auto;
    margin-right: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
  }
  .home-section,
  .feature-grid,
  .home-service-grid,
  .home-process-timeline,
  .capability-grid,
  .home-knowledge-preview,
  .testimonial-grid {
    width: 100vw;
    max-width: 100vw;
    margin-left: 0;
    margin-right: 0;
  }
  .feature-grid article,
  .home-service-grid article,
  .home-process-timeline article,
  .capability-grid article,
  .testimonial-grid article,
  .home-knowledge-card {
    width: min(280px, calc(100vw - 40px));
    max-width: min(280px, calc(100vw - 40px));
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .home-view p,
  .home-view h2,
  .home-view h3,
  .home-view b,
  .home-view span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .home-section { padding-inline: 20px; overflow: hidden; }
  .section-heading h2 { font-size: 30px; }
  .home-service-grid,
  .home-process-timeline { grid-template-columns: 1fr; }
  .home-stats-band {
    margin-top: 0;
    border-radius: 0;
  }
  .compliance-band {
    margin-inline: 20px;
    padding: 24px;
  }
  .compliance-band h2 { font-size: 28px; }
  .compliance-band p { font-size: 16px; }
  .home-footer { padding-inline: 20px; }
  .home-footer nav { display: grid; gap: 10px; }
}

.type-item span { background: radial-gradient(circle at 70% 20%, #d4a85a, #f2e6d3 52%, #a8c6e8); }
.type-item.active {
  color: var(--primary);
  border-left-color: var(--gold);
  background: linear-gradient(90deg, rgba(212,168,90,.24), rgba(242,230,211,.52));
}
.write-flow-panel {
  color: #f7f1e6;
  border-left-color: rgba(212,168,90,.72);
  border-right-color: rgba(212,168,90,.72);
  background:
    radial-gradient(circle at 72% 8%, rgba(255,255,255,.22), transparent 170px),
    linear-gradient(180deg, #3e5c7a, #1f2d4d 52%, #111b33);
}
.write-flow-panel h2 { color: #f2e6d3; }
.flow-step { color: #f2e6d3; }
.flow-step b { background: linear-gradient(135deg, #d4a85a, #8b6b4f); }
.down-mark, .plus { color: var(--gold); }
.flow-card p { color: #f4eadb; }
.write-ticker {
  color: var(--primary);
  background: linear-gradient(90deg, #fff, #f2e6d3);
}
.write-ticker svg,
.write-subtitle { color: var(--gold-dark); }
.title-box button,
.code-row button {
  color: #111b33;
  background: linear-gradient(135deg, #f2e6d3, #d4a85a);
}
.upload-card {
  background: linear-gradient(135deg, #fff, #fbf8f1);
  border: 1px solid rgba(31,45,77,.08);
}
.upload-card h3 { border-left-color: var(--gold); }
.dropzone strong,
.warning { color: var(--gold-dark); }
.support-avatar { display: none; border-color: rgba(212,168,90,.45); }

.simple-view { max-width: 1220px; }
.examples-view { padding-top: 90px; }
.examples-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: center;
  gap: 34px;
  margin-bottom: 24px;
  min-height: 320px;
  padding: 42px 46px;
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31,45,77,.98), rgba(17,27,51,.94) 58%, rgba(62,92,122,.84)),
    radial-gradient(circle at 86% 24%, rgba(212,168,90,.38), transparent 230px);
  box-shadow: var(--shadow);
}
.examples-hero span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 900;
}
.examples-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.08;
}
.examples-hero p {
  max-width: 760px;
  margin: 0;
  color: #edf2f8;
  font-size: 18px;
  line-height: 1.8;
}
.examples-hero img {
  width: min(320px, 100%);
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 24px 38px rgba(0,0,0,.2));
}
.examples-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.examples-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.examples-toolbar button {
  min-height: 42px;
  border: 1px solid rgba(31,45,77,.14);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.examples-toolbar button.active {
  border-color: transparent;
  color: #111b33;
  background: linear-gradient(135deg, #f2e6d3, #d4a85a);
}
.examples-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.example-card {
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31,45,77,.08);
}
.example-art {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(31,45,77,.98), rgba(62,92,122,.9)),
    radial-gradient(circle at 90% 20%, rgba(212,168,90,.42), transparent 170px);
}
.example-art span {
  align-self: start;
  color: #f2e6d3;
  font-weight: 900;
}
.example-art svg { width: 44px; height: 44px; }
.example-art img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 24px rgba(0,0,0,.16);
}
.example-card-body { padding: 22px; text-align: left; }
.example-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-dark);
  font-weight: 900;
  font-size: 14px;
}
.example-meta b { color: #60708a; font-weight: 800; }
.example-card h3 {
  min-height: 58px;
  margin: 12px 0 12px;
  color: var(--primary-dark);
  font-size: 21px;
  line-height: 1.4;
}
.example-card p {
  min-height: 78px;
  margin: 0;
  color: #59657a;
  font-size: 16px;
  line-height: 1.75;
}
.example-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.example-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--primary);
  background: #f6efe4;
  font-size: 13px;
  font-weight: 900;
}
.example-card dl {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(31,45,77,.1);
}
.example-card dt { color: var(--primary-dark); font-weight: 900; }
.example-card dd { margin: 6px 0 0; color: #60708a; line-height: 1.7; }
.example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.example-actions a,
.example-actions button {
  min-height: 38px;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.example-actions a { background: var(--primary); color: #fff; }
.knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 28px;
  margin-bottom: 26px;
  padding: 34px;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(31,45,77,.97), rgba(17,27,51,.95) 54%, rgba(62,92,122,.86)),
    radial-gradient(circle at 86% 20%, rgba(212,168,90,.34), transparent 220px);
  box-shadow: var(--shadow);
}
.knowledge-hero span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0;
}
.knowledge-hero h1 { margin: 0 0 12px; color: #fff; font-size: 42px; }
.knowledge-hero p { max-width: 760px; margin: 0; color: #e8edf6; font-size: 17px; line-height: 1.8; }
.knowledge-hero img { width: 120px; height: 120px; object-fit: contain; border-radius: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.knowledge-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.knowledge-toolbar button {
  border: 1px solid rgba(31,45,77,.14);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.knowledge-toolbar button.active {
  color: #111b33;
  border-color: transparent;
  background: linear-gradient(135deg, #f2e6d3, #d4a85a);
}
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.knowledge-card {
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31,45,77,.08);
  transition: transform .18s ease, box-shadow .18s ease;
}
.knowledge-card:hover { transform: translateY(-4px); box-shadow: 0 24px 52px rgba(31,45,77,.14); }
.knowledge-card a { display: grid; min-height: 100%; color: inherit; }
.article-art {
  position: relative;
  min-height: 138px;
  padding: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background:
    linear-gradient(135deg, #1f2d4d, #3e5c7a 58%, #a8c6e8),
    radial-gradient(circle at 76% 22%, rgba(212,168,90,.5), transparent 150px);
}
.knowledge-card[data-visual="ai"] .article-art { background: linear-gradient(135deg, #111b33, #1f2d4d 54%, #d4a85a); }
.knowledge-card[data-visual="graduation"] .article-art,
.knowledge-card[data-visual="campus"] .article-art { background: linear-gradient(135deg, #3e5c7a, #a8c6e8 52%, #f2e6d3); }
.knowledge-card[data-visual="jiangxi"] .article-art { background: linear-gradient(135deg, #1f2d4d, #8b6b4f 52%, #d4a85a); }
.article-art svg {
  width: 54px;
  height: 54px;
  color: #fff;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.16));
}
.article-art img {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 16px 28px rgba(0,0,0,.14);
}
.article-index {
  position: absolute;
  top: 16px;
  left: 18px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 900;
}
.article-body { padding: 18px; }
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 900;
}
.article-body h3 {
  min-height: 78px;
  margin: 12px 0 10px;
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.45;
}
.article-body p {
  min-height: 78px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}
.article-source {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(31,45,77,.1);
  color: #4b5563;
  font-size: 13px;
}
.article-source span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-source b { color: var(--primary); white-space: nowrap; }

@media (max-width: 1100px) {
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .brand img { width: 54px; object-fit: cover; object-position: left center; border-radius: 10px; }
  .examples-view { padding-top: 72px; }
  .examples-hero { grid-template-columns: 1fr; padding: 28px; }
  .examples-hero img { width: 210px; }
  .examples-grid { grid-template-columns: 1fr; }
  .example-card h3,
  .example-card p { min-height: auto; }
  .knowledge-hero { grid-template-columns: 1fr; padding: 24px; }
  .knowledge-hero img { width: 92px; height: 92px; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .article-body h3, .article-body p { min-height: auto; }
}

.companion-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 132px;
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 6px;
  perspective: 900px;
}
.companion-fab.hidden { display: none; }
body:has(#write-view.active) .companion-fab {
  display: none;
}
.mascot-stage {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.98), rgba(242,230,211,.82) 52%, rgba(31,45,77,.24)),
    linear-gradient(135deg, rgba(168,198,232,.55), rgba(212,168,90,.22));
  box-shadow: 0 22px 44px rgba(17,27,51,.28), inset 0 1px 0 rgba(255,255,255,.78);
  animation: mascotFloat 4.2s ease-in-out infinite;
  transform-style: preserve-3d;
}
.mascot-stage img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(17,27,51,.2));
}
.companion-fab b {
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1f2d4d, #111b33);
  box-shadow: 0 12px 24px rgba(17,27,51,.24);
  font-size: 13px;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0) rotateY(-8deg) rotateX(3deg); }
  50% { transform: translateY(-10px) rotateY(10deg) rotateX(-2deg); }
}

.companion-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: min(430px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 92px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(17,27,51,.24);
}
.companion-panel.open { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.companion-header {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,168,90,.34), transparent 180px),
    linear-gradient(135deg, #1f2d4d, #111b33);
}
.companion-header img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
}
.companion-header strong { display: block; font-size: 18px; }
.companion-header span { display: block; margin-top: 4px; color: #d8e0ed; font-size: 12px; line-height: 1.4; }
.companion-header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font-size: 24px;
}
.companion-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 10px;
  background: #f8fafc;
}
.companion-tabs button {
  border: 0;
  border-radius: 10px;
  padding: 10px 6px;
  color: var(--primary);
  background: transparent;
  font-weight: 900;
}
.companion-tabs button.active {
  color: #111b33;
  background: linear-gradient(135deg, #f2e6d3, #d4a85a);
}
.companion-pane {
  display: none;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}
.companion-pane.active { display: block; }
.companion-intake {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.companion-intake button {
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 12px;
  padding: 9px;
  color: var(--primary);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}
.companion-messages {
  height: 270px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbf8f1);
}
.assistant-msg,
.user-msg {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.65;
  font-size: 14px;
  white-space: pre-wrap;
}
.assistant-msg { color: var(--primary-dark); background: #eef4fb; }
.user-msg { margin-left: auto; color: #fff; background: linear-gradient(135deg, #1f2d4d, #3e5c7a); }
.companion-compose { display: grid; gap: 10px; margin-top: 12px; }
.companion-compose textarea {
  min-height: 88px;
  border: 1px solid rgba(31,45,77,.16);
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
}
.companion-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.companion-actions button:not(.primary-btn),
.library-head button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(31,45,77,.14);
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--primary);
  background: #fff;
  font-weight: 900;
}
.companion-actions button svg { width: 16px; height: 16px; }
#voiceBtn.active { color: #111b33; background: linear-gradient(135deg, #f2e6d3, #d4a85a); }
.companion-compose small { color: var(--muted); line-height: 1.5; }
.library-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.library-head h3,
#companionTeacherPane h3 { margin: 0 0 8px; color: var(--primary-dark); }
#companionLibraryPane p,
#companionTeacherPane p { color: var(--muted); line-height: 1.65; }
.library-list { display: grid; gap: 10px; margin-top: 12px; }
.library-list article {
  padding: 12px;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 12px;
  background: #fbfcfe;
}
.library-list strong { display: block; color: var(--primary-dark); }
.library-list span,
.library-list small { display: block; margin-top: 4px; color: var(--muted); }
#companionTeacherPane label { display: grid; gap: 7px; margin: 12px 0; color: var(--primary-dark); font-weight: 900; }
#companionTeacherPane input,
#companionTeacherPane textarea {
  width: 100%;
  border: 1px solid rgba(31,45,77,.16);
  border-radius: 12px;
  padding: 11px 12px;
}
#companionTeacherPane textarea { min-height: 96px; }
.teacher-result { margin-top: 12px; color: var(--gold-dark); line-height: 1.65; font-weight: 900; }

.data-stats-band strong { font-size: clamp(28px, 3.6vw, 44px); }
.resource-engine-section { max-width: 1220px; }
.resource-engine-section .section-heading p,
.teacher-preview-section .section-heading p,
.teachers-section .section-heading p {
  max-width: 850px;
  margin: 14px auto 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 17px;
}
.resource-engine-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}
.resource-engine-grid article,
.match-section article {
  padding: 24px;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96)),
    linear-gradient(135deg, rgba(31,45,77,.06), rgba(212,168,90,.12));
  box-shadow: 0 18px 44px rgba(17,27,51,.08);
}
.resource-engine-grid svg,
.match-section svg {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  color: var(--primary);
  background: linear-gradient(135deg, #f2e6d3, #d4a85a);
}
.resource-engine-grid h3,
.match-section h3 { margin: 18px 0 8px; color: var(--primary-dark); }
.resource-engine-grid p,
.match-section p { margin: 0; color: var(--muted); line-height: 1.7; }
.soft-disclaimer {
  display: block;
  max-width: 900px;
  margin: 22px auto 0;
  color: #7b8190;
  line-height: 1.7;
}

.teacher-preview-section {
  max-width: 1220px;
  overflow: hidden;
}
.teacher-strip {
  display: flex;
  gap: 18px;
  margin: 34px 0 28px;
  padding: 8px 0 18px;
  overflow: hidden;
}
.teacher-strip img {
  width: 176px;
  aspect-ratio: 1 / 1.18;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(31,45,77,.1);
  box-shadow: 0 18px 38px rgba(17,27,51,.16);
  animation: teacherFloat 7s ease-in-out infinite;
}
.teacher-strip img:nth-child(2n) { animation-delay: -2s; }
.teacher-strip img:nth-child(3n) { animation-delay: -4s; }
@keyframes teacherFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.teachers-view {
  min-height: calc(100vh - 66px);
  background:
    linear-gradient(180deg, #ffffff, #f8fafc 44%, #ffffff);
}
.teachers-hero {
  min-height: 560px;
  padding: 84px max(24px, calc((100vw - 1200px) / 2 + 24px)) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: center;
  gap: 48px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17,27,51,.98), rgba(31,45,77,.94) 58%, rgba(212,168,90,.78)),
    #111b33;
}
.teachers-hero span,
.teachers-section .section-heading span,
.teacher-preview-section .section-heading span,
.resource-engine-section .section-heading span {
  color: var(--gold-dark);
  font-weight: 900;
  letter-spacing: 0;
}
.teachers-hero span { color: #f2e6d3; }
.teachers-hero h1 {
  margin: 12px 0 20px;
  font-size: clamp(42px, 5.8vw, 70px);
  line-height: 1.08;
}
.teachers-hero p {
  max-width: 740px;
  margin: 0;
  color: #e8edf6;
  font-size: 20px;
  line-height: 1.75;
}
.teacher-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.teacher-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.teacher-hero-card img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 28px 64px rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.26);
}
.teacher-hero-card img:first-child { grid-row: span 2; }

.teacher-marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid rgba(31,45,77,.1);
  background: #fff;
}
.teacher-marquee div {
  display: flex;
  gap: 14px;
  min-width: max-content;
  padding: 16px 7px;
  animation: teacherMarquee 26s linear infinite;
}
.teacher-marquee span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--primary);
  background: #f2e6d3;
  font-weight: 900;
}
@keyframes teacherMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.teachers-section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 70px 24px 48px;
  text-align: center;
}
.teacher-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}
.teacher-wall article {
  overflow: hidden;
  border: 1px solid rgba(31,45,77,.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(17,27,51,.1);
}
.teacher-wall img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
}
.teacher-wall h3 { margin: 18px 18px 8px; color: var(--primary-dark); font-size: 20px; }
.teacher-wall p { margin: 0 18px; color: var(--muted); line-height: 1.7; }
.teacher-wall b {
  display: block;
  margin: 16px 18px 20px;
  color: var(--gold-dark);
  line-height: 1.5;
}
.match-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recruit-fab {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 89;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(212,168,90,.48);
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, #111b33, #1f2d4d);
  box-shadow: 0 18px 40px rgba(17,27,51,.26);
  font-weight: 900;
}
.recruit-fab.hidden { display: none; }
body:has(#write-view.active) .recruit-fab { display: none !important; }
.recruit-fab svg { width: 20px; height: 20px; color: var(--gold); }
.recruit-panel {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 101;
  width: min(420px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 92px));
  display: none;
  overflow: auto;
  border: 1px solid rgba(31,45,77,.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(17,27,51,.24);
}
.recruit-panel.open { display: block; }
.recruit-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #111b33, #1f2d4d 70%, #8b6b4f);
}
.recruit-panel header span {
  display: block;
  color: #f2e6d3;
  font-size: 12px;
  font-weight: 900;
}
.recruit-panel header strong { display: block; margin-top: 4px; font-size: 20px; }
.recruit-panel header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.14);
  font-size: 24px;
}
.recruit-panel > p {
  margin: 16px 18px 0;
  color: var(--muted);
  line-height: 1.7;
}
.recruit-form {
  display: grid;
  gap: 12px;
  padding: 16px 18px 18px;
}
.recruit-form label {
  display: grid;
  gap: 7px;
  color: var(--primary-dark);
  font-weight: 900;
}
.recruit-form input,
.recruit-form textarea,
.recruit-form select {
  width: 100%;
  border: 1px solid rgba(31,45,77,.16);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
}
.recruit-form textarea { min-height: 96px; resize: vertical; }
.recruit-form small { color: var(--muted); line-height: 1.5; font-weight: 500; }
.recruit-result { color: var(--gold-dark); line-height: 1.65; font-weight: 900; }

@media (max-width: 720px) {
  .companion-fab { right: 12px; bottom: 14px; width: 100px; }
  .mascot-stage { width: 84px; height: 84px; }
  .mascot-stage img { width: 76px; height: 76px; }
  .companion-fab b { font-size: 12px; }
  .companion-panel {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 84px);
    border-radius: 18px;
  }
  .companion-intake { grid-template-columns: 1fr; }
  .companion-messages { height: 250px; }
  .companion-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .companion-actions .primary-btn { grid-column: 1 / -1; }
  .resource-engine-grid,
  .teacher-wall,
  .match-section,
  .teachers-hero { grid-template-columns: 1fr; }
  .teachers-hero { padding-top: 58px; }
  .teacher-hero-card { grid-template-columns: repeat(3, 1fr); }
  .teacher-hero-card img:first-child { grid-row: auto; }
  .teacher-strip { overflow-x: auto; }
  .teacher-strip img { width: 142px; }
  .recruit-fab { left: 12px; bottom: 112px; padding: 9px 12px; }
  .recruit-panel {
    left: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 84px);
    border-radius: 18px;
  }
}
