:root {
  --ink: #0b2845;
  --ink-soft: #3d5871;
  --paper: #f7fbfe;
  --paper-soft: #e9f4fb;
  --blue: #1596d2;
  --blue-dark: #07518d;
  --orange: #f6aa1c;
  --orange-deep: #d98300;
  --line: rgba(11, 40, 69, 0.15);
  --nav-height: 74px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(18px, 4vw, 68px);
  color: var(--ink);
  border-bottom: 1px solid rgba(11, 40, 69, 0.1);
  background: rgba(247, 251, 254, 0.9);
  box-shadow: 0 8px 26px rgba(15, 83, 126, 0.08);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo {
  width: 126px;
  height: 54px;
  flex: none;
  display: block;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
.brand-mark { position: relative; width: 29px; height: 35px; display: grid; place-items: center; }
.brand-mark i { position: absolute; width: 22px; height: 27px; border: 1px solid currentColor; transform: skewY(-9deg); }
.brand-mark i:nth-child(1) { translate: -5px 3px; opacity: .42; }
.brand-mark i:nth-child(2) { translate: 0 0; opacity: .7; }
.brand-mark i:nth-child(3) { translate: 5px -3px; background: currentColor; opacity: .92; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 16px; letter-spacing: .08em; }
.brand-copy small { font: 9px/1.2 Arial, sans-serif; letter-spacing: .16em; color: var(--blue-dark); opacity: .72; }

.nav-links { position: absolute; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; padding: 26px 0 24px; color: var(--ink-soft); font-size: 13px; transition: color .2s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 17px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--blue-dark); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-button, .account-trigger {
  height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(7, 81, 141, .28);
  background: rgba(255, 255, 255, .7);
  color: var(--blue-dark);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, translate .2s ease;
}
.nav-button:hover, .account-trigger:hover { background: #fff; border-color: var(--blue); translate: 0 -1px; }
.nav-points { display: inline-flex; align-items: center; gap: 8px; border-color: rgba(217, 131, 0, .42); background: rgba(246, 170, 28, .13); color: #915b00; }
.point-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(246, 170, 28, .15); }
.account-menu { position: relative; }
.account-trigger { display: flex; align-items: center; gap: 8px; }
.account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 150px;
  padding: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(7, 47, 80, .2);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  translate: 0 -5px;
  transition: .18s ease;
}
.account-menu.open .account-popover { opacity: 1; visibility: visible; translate: 0; }
.account-popover a, .account-popover button { display: block; width: 100%; padding: 10px; border: 0; text-align: left; background: none; cursor: pointer; }
.account-popover a:hover, .account-popover button:hover { background: var(--paper-soft); color: var(--blue-dark); }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--ink); background: #ddecf5; }
.hero-image { position: absolute; inset: 0; background: url('/assets/hero-youyixue.png') center/cover no-repeat; scale: 1.025; animation: hero-breathe 18s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(247, 251, 254, .98) 0%, rgba(247, 251, 254, .9) 32%, rgba(247, 251, 254, .38) 62%, rgba(7, 81, 141, .08) 100%), linear-gradient(0deg, rgba(7, 81, 141, .18), transparent 44%); }
.hero-content { position: relative; z-index: 2; width: min(760px, calc(100vw - 48px)); padding: clamp(150px, 20vh, 220px) 0 120px clamp(24px, 8vw, 138px); }
.hero-eyebrow { display: flex; align-items: center; gap: 16px; width: max-content; max-width: 100%; margin: 0 0 32px; padding-bottom: 10px; border-bottom: 1px solid rgba(7, 81, 141, .3); color: var(--blue-dark); font-size: 13px; letter-spacing: .16em; }
.hero-eyebrow b { font: 11px Arial, sans-serif; color: var(--orange-deep); }
.hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 78px); line-height: 1.08; letter-spacing: -.055em; font-weight: 800; }
.hero h1 em { color: var(--blue-dark); font: italic .92em Georgia, serif; letter-spacing: -.045em; }
.hero-lede { max-width: 480px; margin: 28px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.primary-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; min-width: 238px; padding: 17px 20px; color: #fff; background: var(--blue-dark); font-weight: 700; box-shadow: 0 12px 28px rgba(7, 81, 141, .2); transition: translate .2s ease, background .2s ease, box-shadow .2s ease; }
.primary-action:hover { translate: 0 -2px; background: var(--blue); box-shadow: 0 16px 32px rgba(7, 81, 141, .25); }
.primary-action span { color: var(--orange); font-size: 21px; }
.text-action { border: 0; border-bottom: 1px solid rgba(7, 81, 141, .36); padding: 9px 0; color: var(--blue-dark); cursor: pointer; background: none; }
.text-action:hover { border-color: var(--orange-deep); color: var(--orange-deep); }
.hero-index { position: absolute; z-index: 3; right: clamp(24px, 4vw, 72px); top: 50%; translate: 0 -44%; display: grid; gap: 11px; font: 10px Arial, sans-serif; color: rgba(7, 81, 141, .45); }
.hero-index span { display: grid; grid-template-columns: 22px 18px; align-items: center; gap: 8px; }
.hero-index span::after { content: ''; width: 18px; height: 1px; background: currentColor; }
.hero-index span:first-child, .hero-index span:last-child { color: var(--orange-deep); }
.scroll-cue { position: absolute; z-index: 3; left: clamp(24px, 8vw, 138px); bottom: 34px; display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .16em; color: rgba(7, 81, 141, .68); }
.scroll-cue i { display: block; width: 72px; height: 1px; position: relative; overflow: hidden; background: rgba(7, 81, 141, .32); }
.scroll-cue i::after { content: ''; position: absolute; inset: 0; background: var(--orange); translate: -100% 0; animation: scan 2.5s ease-in-out infinite; }

.workbench { padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 96px) 120px; background: var(--paper); }
.module-groups { display: block; }
.module-group + .module-group { margin-top: clamp(68px, 9vw, 118px); }
.module-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 24px; }
.module-group-kicker { margin: 0 0 12px; color: var(--blue); font: 10px Arial, sans-serif; letter-spacing: .2em; }
.module-group-heading h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 52px); letter-spacing: -.06em; }
.module-group-heading > p { max-width: 300px; margin: 0 0 4px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--blue-dark); border-left: 1px solid var(--line); }
.module-card { position: relative; min-height: 310px; padding: 26px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .66); transition: background .25s ease, color .25s ease, translate .25s ease; }
.module-card::after { content: ''; position: absolute; inset: auto 0 0; height: 5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.module-card:hover { translate: 0 -3px; background: var(--blue-dark); color: #fff; }
.module-card:hover::after { transform: scaleX(1); }
.module-top { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.module-number { font: 12px Arial, sans-serif; letter-spacing: .14em; color: var(--blue-dark); }
.module-card:hover .module-number { color: var(--orange); }
.module-cost { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; background: rgba(246, 170, 28, .18); color: #915b00; font-size: 11px; }
.module-card:hover .module-cost { color: var(--ink); background: var(--orange); }
.module-title { margin: auto 0 12px; font-size: 24px; letter-spacing: -.035em; }
.module-label { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--blue-dark); }
.module-card:hover .module-label { color: var(--orange); }
.module-description { margin: 0; min-height: 48px; color: var(--ink-soft); font-size: 13px; line-height: 1.75; }
.module-card:hover .module-description { color: rgba(255, 255, 255, .72); }
.module-enter { margin-top: 23px; display: flex; align-items: center; justify-content: space-between; color: var(--ink); font-size: 12px; letter-spacing: .08em; }
.module-card:hover .module-enter { color: #fff; }
.module-enter b { color: var(--blue); font-size: 23px; font-weight: 400; transition: translate .2s ease; }
.module-card:hover .module-enter b { color: var(--orange); translate: 5px -3px; }
.module-loading { padding: 30px; color: var(--ink-soft); }

footer { display: flex; align-items: center; justify-content: space-between; padding: 32px clamp(20px, 6vw, 96px); background: var(--paper-soft); color: var(--ink); border-top: 1px solid rgba(7, 81, 141, .12); }
footer .brand-logo { width: 126px; height: 54px; }
footer p { color: var(--ink-soft); font-size: 12px; }

.modal { width: min(480px, calc(100vw - 30px)); padding: 36px; border: 0; color: var(--ink); background: var(--paper); box-shadow: 0 35px 100px rgba(3, 35, 62, .35); }
.modal::backdrop { background: rgba(4, 35, 62, .7); backdrop-filter: blur(8px); }
.modal-close { position: absolute; right: 18px; top: 14px; width: 34px; height: 34px; border: 0; background: none; color: var(--ink); font-size: 26px; cursor: pointer; }
.modal-heading p { margin: 0 0 12px; color: var(--blue); font: 10px Arial, sans-serif; letter-spacing: .2em; }
.modal-heading h2 { margin: 0 0 10px; font-size: 30px; letter-spacing: -.04em; }
.modal-heading span { color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 12px; border: 0; border-bottom: 3px solid transparent; background: none; cursor: pointer; }
.auth-tabs button.active { border-bottom-color: var(--orange); font-weight: 700; color: var(--blue-dark); }
.auth-form, .points-form { display: grid; gap: 16px; }
.auth-form label, .points-form label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.auth-form input, .points-form input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #b7c9d5; border-radius: 0; background: #fff; outline: 0; }
.auth-form input:focus, .points-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 150, 210, .14); }
.agreement-consent { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.agreement-check { display: inline-flex !important; align-items: center; grid-template-columns: none !important; gap: 7px !important; font-weight: 400 !important; cursor: pointer; }
.agreement-check input { width: 16px; height: 16px; flex: none; accent-color: var(--blue); cursor: pointer; }
.agreement-consent a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.agreement-consent a:hover { color: var(--orange-deep); }
.modal-primary { height: 48px; border: 0; background: var(--blue-dark); color: #fff; font-weight: 700; cursor: pointer; }
.modal-primary:hover { background: var(--blue); }
.form-message { min-height: 20px; margin: 0; color: #c05a00; font-size: 12px; }
.form-message.success { color: var(--blue-dark); }
.purchase-divider { display: flex; align-items: center; gap: 12px; margin: 25px 0 14px; color: #72889a; font-size: 11px; }
.purchase-divider::before, .purchase-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.purchase-link { display: flex; align-items: center; justify-content: space-between; padding: 15px; border: 1px solid var(--blue-dark); font-weight: 700; color: var(--blue-dark); }
.purchase-link:hover { background: var(--blue-dark); color: #fff; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
@keyframes scan { 0%, 15% { translate: -100% 0; } 65%, 100% { translate: 100% 0; } }
@keyframes hero-breathe { from { scale: 1.025; } to { scale: 1.075; } }

@media (min-width: 1001px) {
  .hero-content { padding-top: clamp(250px, 31vh, 360px); padding-bottom: 150px; }
}

@media (max-width: 1000px) {
  .nav-links { gap: 20px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .module-group-heading { align-items: start; flex-direction: column; gap: 12px; }
  .module-group-heading > p { max-width: 520px; }
  .hero-content { width: calc(100vw - 48px); }
}

@media (max-width: 700px) {
  :root { --nav-height: 66px; }
  .site-nav { padding: 0 14px; }
  .brand-logo { width: 92px; height: 48px; }
  .brand-copy { display: none; }
  .nav-links { gap: 14px; }
  .nav-link { padding: 23px 0 21px; font-size: 12px; }
  .nav-link::after { bottom: 14px; }
  .nav-button { height: 36px; padding: 0 10px; font-size: 12px; }
  .nav-auth { display: none; }
  .account-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; }
  .hero-content { width: auto; padding: 145px 22px 110px; }
  .hero-eyebrow { font-size: 11px; letter-spacing: .11em; }
  .hero h1 { font-size: clamp(38px, 12vw, 58px); }
  .hero-lede { margin-top: 22px; font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .primary-action { min-width: 0; }
  .text-action { align-self: flex-start; }
  .hero-index { display: none; }
  .scroll-cue { left: 22px; }
  .workbench { padding: 82px 16px 80px; }
  .module-grid { grid-template-columns: 1fr; }
  .module-card { min-height: 270px; }
  footer { align-items: flex-start; flex-direction: column; gap: 22px; }
  .modal { padding: 32px 22px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
