/* =============================================================
   德育银行 · 落地页与登录
   ============================================================= */
:root {
  --paper: #f6f3eb;
  --paper-2: #efeade;
  --card: #fffdf9;
  --ink: #16231f;
  --ink-2: #3a4f49;
  --muted: #6d7c76;
  --line: #e3dccb;
  --line-2: #d3c9b3;
  --brand: #16655a;
  --brand-deep: #0c453d;
  --gold: #c68a20;
  --gold-soft: #f8efd8;
  --in: #1f7a5c;
  --out: #b4442f;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --num: "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  background: rgba(246, 243, 235, .84); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(211, 201, 179, .55);
}
.logo { display: flex; align-items: center; gap: 10px; }
.coin {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #f4d289, #c68a20 62%, #9a6a12);
  color: #4a3208; display: grid; place-items: center;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.coin.small { width: 28px; height: 28px; font-size: 14px; }
.logo-text b { display: block; font-size: 15.5px; letter-spacing: .06em; line-height: 1.3; }
.logo-text i { font-style: normal; font-size: 9.5px; letter-spacing: .22em; color: var(--muted); }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { font-size: 13.5px; color: var(--ink-2); }
.nav-links a:hover { color: var(--brand); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; transition: .16s;
  background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2);
  white-space: nowrap;
}
.btn:hover { border-color: #b9ad93; background: #fff; transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #3d2a06; }
.btn-gold:hover { background: #b57c18; border-color: #b57c18; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  max-width: 1180px; margin: 0 auto;
  padding: 64px 24px 72px;
  display: grid; grid-template-columns: 1.05fr .85fr; gap: 56px; align-items: center;
}
.hero-glow {
  position: absolute; right: -140px; top: -120px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(198, 138, 32, .16), rgba(198,138,32,0) 62%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; letter-spacing: .2em; color: var(--brand);
  text-transform: uppercase; font-weight: 600;
  background: rgba(22, 101, 90, .07); padding: 4px 11px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.28; letter-spacing: .01em; margin: 18px 0 16px;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal; position: relative; color: var(--brand);
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px;
  background: var(--gold-soft); z-index: -1;
}
.lead { font-size: 15px; color: var(--ink-2); max-width: 520px; line-height: 1.95; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.hero-points { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.hero-points li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.tick {
  width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 3px;
}
.hero-stats { display: flex; gap: 34px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-stats b { font-family: var(--num); font-size: 25px; font-weight: 600; display: block; color: var(--brand); }
.hero-stats span { font-size: 11.5px; color: var(--muted); }

/* ---------------- 登录卡 ---------------- */
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px; box-shadow: 0 24px 60px -34px rgba(23, 36, 31, .45);
  position: relative; scroll-margin-top: 80px;
}
.auth-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
}
.auth-head h2 { font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.auth-head p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tabs {
  display: flex; gap: 4px; background: var(--paper-2); padding: 4px;
  border-radius: 11px; margin: 18px 0 16px;
}
.tab {
  flex: 1; height: 33px; border-radius: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); transition: .15s;
}
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; font-weight: 500; }
.input {
  width: 100%; height: 40px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
  font-size: 13.5px; outline: none; transition: .15s; font-family: var(--font);
  color: var(--ink);
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(22,101,90,.12); }
.input.mono { font-family: var(--num); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { font-size: 12px; color: var(--out); min-height: 18px; margin: 2px 0 6px; }
.switch-line { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 14px; }
.link { color: var(--brand); font-weight: 600; font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.auth-note {
  display: flex; align-items: center; gap: 7px; margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted);
}
.auth-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--in); }

/* ---------------- 区块 ---------------- */
.section { max-width: 1180px; margin: 0 auto; padding: 68px 24px; }
.section-head { max-width: 620px; margin-bottom: 34px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px);
  font-weight: 600; margin: 12px 0 10px; line-height: 1.4;
}
.section-head p { color: var(--ink-2); font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; transition: .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(23,36,31,.35); border-color: var(--line-2); }
.fico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--pay-1, #f3f7f5); font-size: 20px; margin-bottom: 13px;
}
.feature:nth-child(1) .fico, .feature:nth-child(4) .fico { background: var(--gold-soft); }
.feature h3 { font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.feature p { font-size: 13px; color: var(--muted); line-height: 1.85; }

.steps-section { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; padding: 24px 22px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.step-no {
  font-family: var(--num); font-size: 12px; font-weight: 700; color: var(--gold);
  letter-spacing: .1em; margin-bottom: 10px;
}
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.85; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 20px; }
.role-card {
  border-radius: 18px; padding: 24px; border: 1px solid var(--line);
  background: var(--card);
}
.role-card.teacher { background: linear-gradient(160deg, #0f5a4f, #0b4239); color: #eaf3f0; border: none; }
.role-card.teacher h3 { color: #fff; }
.role-card.teacher li { color: #c8ded8; }
.role-card.teacher li::before { color: var(--gold); }
.role-card.student { background: linear-gradient(160deg, #fffdf9, #f8f0dd); }
.role-card.admin { background: var(--card); }
.role-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: .18em; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; background: rgba(0,0,0,.05); color: var(--muted);
  margin-bottom: 12px;
}
.role-card.teacher .role-tag { background: rgba(255,255,255,.12); color: #dcc79a; }
.role-card h3 { font-size: 17px; margin-bottom: 12px; }
.role-card li {
  display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.9;
}
.role-card li::before { content: "·"; color: var(--gold); font-weight: 800; }

.cta-band {
  max-width: 1132px; margin: 20px auto 72px; padding: 34px 38px;
  background: linear-gradient(120deg, #124f46, #0b423a);
  border-radius: 22px; color: #eaf3f0;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(198,138,32,.3), transparent 68%);
}
.cta-band h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.cta-band p { font-size: 13px; color: #b9d3cd; margin-top: 4px; }
.cta-band .btn { margin-left: auto; position: relative; }

.foot {
  max-width: 1180px; margin: 0 auto; padding: 26px 24px 40px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.foot-left { display: flex; align-items: center; gap: 9px; }
.foot-left b { display: block; font-size: 13px; }
.foot-left span { font-size: 11px; color: var(--muted); }
.foot-right { margin-left: auto; display: flex; gap: 7px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding: 40px 20px 56px; }
  .nav-links { display: none; }
  .feature-grid, .steps, .roles { grid-template-columns: 1fr 1fr; }
  .section { padding: 48px 20px; }
}
@media (max-width: 640px) {
  .feature-grid, .steps, .roles { grid-template-columns: 1fr; }
  .hero { padding-top: 30px; }
  .hero-stats { gap: 20px; }
  .auth-card { padding: 20px; border-radius: 16px; }
  .cta-band { margin: 12px 16px 48px; padding: 26px 22px; }
  .cta-band .btn { margin-left: 0; width: 100%; }
  .nav { padding: 12px 16px; gap: 12px; }
  .hero h1 { font-size: 30px; }
}
