:root { color-scheme: light; --ink: #171b23; --muted: #566170; --line: #e3e7ed; --paper: #fff; --wash: #f7f8fa; --yellow: #ffd83e; --amber: #795300; --radius: 19px; font-family: "Inter","PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ac7300; outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(1200px,calc(100% - 80px)); min-height: 76px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; }
.brand, .teacher-link, nav a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 9px; width: max-content; white-space: nowrap; }
.brand strong { font-size: 1.15rem; letter-spacing: -.025em; }
.brand span { font-size: .82rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 9px; }
nav { display: flex; align-items: center; gap: clamp(4px,2vw,23px); }
nav a { padding: 11px 14px; border-radius: 9px; font-size: .94rem; font-weight: 650; white-space: nowrap; }
nav a:hover { background: var(--wash); }
nav a[aria-current="page"] { color: #4d3500; background: #fff3bd; }
.teacher-link { justify-self: end; color: #414c5b; font-size: .88rem; font-weight: 650; white-space: nowrap; }
.teacher-link:hover, .site-footer a:hover { color: var(--amber); }
.page-wrap { flex: 1; width: min(1200px,calc(100% - 80px)); margin: 0 auto; padding: clamp(34px,6vw,80px) 0 66px; }
.parent-page { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0,1.08fr); align-items: start; gap: clamp(28px,5vw,75px); }
.intro { padding: 35px 22px 18px 0; }
.intro h1 { font-size: clamp(2.65rem,5.3vw,5rem); line-height: 1.08; letter-spacing: -.06em; margin: 0 0 20px; }
.intro h1 span { color: #a57400; }
.intro p { max-width: 29rem; margin: 0 0 15px; color: var(--muted); font-size: 1.04rem; line-height: 1.75; }
.phone-showcase { max-width: 520px; margin-top: 20px; }
.phone-orbit {
  --phone-width: clamp(120px,35%,162px);
  --orbit-radius: clamp(86px,13vw,142px);
  position: relative; height: clamp(306px,34vw,390px); perspective: 980px;
}
.phone-orbit::before, .phone-orbit::after { content: ""; position: absolute; pointer-events: none; }
.phone-orbit::before { inset: 0; background: radial-gradient(ellipse at 50% 56%,#fff2bb 0%,#fff8e4a0 36%,transparent 72%); }
.phone-orbit::after {
  left: 9%; right: 9%; bottom: 0; height: 24%; border-radius: 50%;
  background: radial-gradient(ellipse,#9a73233d 4%,#e5ae3052 30%,#f4c73c28 54%,transparent 72%);
  transform: scaleY(.56);
}
.phone-ring { position: absolute; z-index: 1; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.preview-phone {
  position: absolute; top: 48%; left: 50%; width: var(--phone-width); padding: 0; border: 0; border-radius: 24px;
  background: transparent; touch-action: manipulation; pointer-events: auto;
  transform: translate(-50%,calc(-50% + var(--phone-drop))) rotateY(var(--phone-angle)) translateZ(var(--orbit-radius))
    rotateY(calc(-1 * var(--phone-angle))) rotateY(var(--phone-lean)) rotateZ(var(--phone-tilt));
  transition: transform 640ms cubic-bezier(.25,.7,.25,1);
}
.preview-phone[data-slot="front"] { --phone-angle: 0deg; --phone-lean: 0deg; --phone-tilt: 0deg; --phone-drop: 0px; }
.preview-phone[data-slot="left"] { --phone-angle: -120deg; --phone-lean: 17deg; --phone-tilt: -10deg; --phone-drop: 16px; }
.preview-phone[data-slot="right"] { --phone-angle: -240deg; --phone-lean: -17deg; --phone-tilt: 10deg; --phone-drop: 16px; }
.preview-frame {
  position: relative; display: block; padding: 7px 4px 4px; overflow: hidden; border: 1px solid #817861;
  border-radius: clamp(17px,2vw,25px); background: #121316; box-shadow: 0 16px 28px #2a1c1940,0 0 0 1px #eee0b430;
  animation: phone-hover 5.6s ease-in-out infinite; transition: filter 360ms ease, box-shadow 360ms ease;
}
.preview-phone[data-preview="1"] .preview-frame { animation-delay: -1.8s; }
.preview-phone[data-preview="2"] .preview-frame { animation-delay: -3.5s; }
.preview-phone:not([data-slot="front"]) .preview-frame { filter: brightness(.84); }
.preview-phone:hover .preview-frame, .preview-phone:focus-visible .preview-frame { filter: brightness(1); box-shadow: 0 18px 30px #2a1c1950,0 0 0 2px #e5ba5a; }
.preview-frame::after {
  content: ""; position: absolute; top: 8px; left: 50%; width: 22%; height: 5px; border-radius: 8px;
  background: #0a0a0b; transform: translateX(-50%); pointer-events: none;
}
.preview-frame img { display: block; width: 100%; height: auto; border-radius: clamp(13px,1.7vw,20px); }
@keyframes phone-hover { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.preview-controls { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.preview-controls button { min-height: 44px; padding: 6px 11px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--muted); font-size: .83rem; font-weight: 650; }
.preview-controls button:hover { background: var(--wash); }
.preview-controls button[aria-pressed="true"] { border-color: #f0dc8e; background: #fff4cd; color: #624700; }
.journey { margin: 34px 0 0; padding: 0; list-style: none; display: grid; gap: 1px; border-top: 1px solid var(--line); max-width: 360px; }
.journey li { position: relative; display: grid; gap: 3px; border-bottom: 1px solid var(--line); padding: 13px 8px 13px 26px; color: var(--ink); }
.journey li::before { content: ""; position: absolute; top: 20px; left: 2px; width: 9px; height: 9px; border-radius: 2px; background: var(--yellow); transform: rotate(45deg); }
.journey span, .quiet { color: var(--muted); font-size: .88rem; }
.surface { min-width: 0; padding: clamp(20px,3vw,37px); border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: 0 12px 30px #2d38420a; }
.surface h2 { font-size: clamp(1.4rem,2.5vw,1.85rem); margin: 0 0 22px; letter-spacing: -.025em; }
.surface p { line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-grid label { display: grid; align-content: start; min-width: 0; gap: 7px; color: #252b35; font-size: .91rem; font-weight: 700; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea { min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 9px; border: 1px solid #d9dfe7; color: var(--ink); background: var(--wash); font-weight: 450; }
.form-grid :is(input,select,textarea):hover { border-color: #9fa9b6; }
.form-grid textarea { resize: vertical; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #637082; }
.form-privacy { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 9px 17px; border-radius: 9px; border: 1px solid transparent; font-weight: 750; transition: background .16s ease, transform .16s ease; }
.primary-button { background: var(--yellow); color: #211c0d; }
.primary-button:hover { background: #efc52b; }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.secondary-button { border-color: #cfd6df; background: #fff; color: var(--ink); }
.secondary-button:hover { background: var(--wash); }
.primary-button:disabled, .secondary-button:disabled { opacity: .52; cursor: default; }
.parent-form .primary-button { margin-top: 12px; }
.form-status { color: #176742; font-size: .9rem; margin: 10px 0 0; }
.form-status:empty { margin: 0; }
.form-status[data-error="true"] { color: #a72118; }
.source-link { color: var(--amber); font-size: .86rem; font-weight: 700; text-underline-offset: .18em; }
.quiz-progress { display: grid; gap: 8px; color: var(--muted); font-size: .88rem; }
.quiz-progress progress { width: 100%; height: 10px; border: 0; border-radius: 10px; background: var(--wash); accent-color: #e9ab00; }
.quiz-progress progress::-webkit-progress-bar { background: #edf0f4; border-radius: 10px; }
.quiz-progress progress::-webkit-progress-value { background: #e9ab00; border-radius: 10px; }
.quiz-fieldset { border: 0; padding: 0; margin: 23px 0 20px; min-inline-size: 0; }
.quiz-fieldset legend { font-size: 1.2rem; font-weight: 760; margin-bottom: 14px; }
.quiz-options { display: grid; gap: 8px; }
.quiz-option { display: flex; align-items: center; gap: 10px; padding: 12px; min-height: 47px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.quiz-option:hover { background: var(--wash); }
.quiz-option:has(input:checked) { border-color: #be8500; background: #fff7d9; }
.quiz-option input { accent-color: #966500; }
.quiz-actions { display: flex; justify-content: space-between; gap: 12px; }
.quiz-type { font-weight: 800; font-size: 1.85rem; letter-spacing: .07em; margin: 0; color: var(--amber); }
.quiz-dimensions { display: grid; gap: 10px; }
.quiz-dimensions article { padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--wash); }
.quiz-dimensions h3 { margin: 0; font-size: 1rem; }
.quiz-dimensions p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.site-footer { width: min(1200px,calc(100% - 80px)); display: flex; justify-content: space-between; gap: 10px; margin: 0 auto; padding: 21px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
@keyframes parent-slide-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
.site-header, .parent-page:not([hidden]) > .intro, .parent-page:not([hidden]) > .surface,
.parent-page:not([hidden]) .form-grid > label, .site-footer { animation: parent-slide-down .42s cubic-bezier(.18,.68,.27,1) backwards; }
.parent-page:not([hidden]) > .intro { animation-delay: 60ms; }
.parent-page:not([hidden]) > .surface { animation-delay: 125ms; }
.parent-page:not([hidden]) .form-grid > label { animation-delay: 175ms; }
.parent-page:not([hidden]) .form-grid > label:nth-child(n+3) { animation-delay: 215ms; }
.parent-page:not([hidden]) .form-grid > label:nth-child(n+5) { animation-delay: 255ms; }
.parent-page:not([hidden]) .form-grid > label:nth-child(n+7), .site-footer { animation-delay: 295ms; }
@media (max-width: 850px) {
  .header-inner, .page-wrap, .site-footer { width: calc(100% - 34px); }
  .parent-page { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .intro { padding: 12px 0 0; }
  .intro h1 br { display: none; }
  .journey { display: none; }
  .phone-showcase { margin-inline: auto; }
  .phone-orbit { --orbit-radius: clamp(85px,24vw,140px); }
}
@media (max-width: 590px) {
  .header-inner { grid-template-columns: 1fr auto; gap: 0 8px; padding: 12px 0 7px; min-height: 0; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; margin: 10px 0 2px; }
  .site-header nav a { padding: 9px 10px; }
  .teacher-link { grid-row: 1; grid-column: 2; }
  .page-wrap { padding-block: 22px 34px; }
  .intro h1 { font-size: clamp(2rem,8.6vw,2.9rem); margin-bottom: 12px; }
  .intro p { margin-bottom: 8px; }
  .phone-orbit { --phone-width: clamp(112px,37%,146px); --orbit-radius: clamp(73px,24vw,119px); height: clamp(278px,83vw,330px); perspective: 790px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .parent-form .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
