/* 学生认证 · 客户页（H5，移动端优先） */
:root {
  --brand: #2563eb;
  --brand-2: #7c3aed;
  --ink: #0f172a;
  --muted: #6b7280;
  --line: #e8ecf3;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(15, 23, 42, .10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 8% -10%, #dbeafe 0%, transparent 60%),
    radial-gradient(760px 420px at 100% 0%, #ede9fe 0%, transparent 55%),
    linear-gradient(180deg, #f7f9fd 0%, #eef2f9 100%);
  background-attachment: fixed;
}

.wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 18px
           calc(36px + env(safe-area-inset-bottom));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
}
.brand .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 2px 6px rgba(37, 99, 235, .4);
}

h1, h2, h3 { margin: 0; }
.page-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.card {
  padding: 20px;
  margin: 16px 0;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

input {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 15px;
  margin: 12px 0;
  font-size: 16px;
  color: var(--ink);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder { color: #a3adbf; }
input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin: 2px 0 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #374151;
  cursor: pointer;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 2px 0 0;
  accent-color: var(--brand);
}
.check span { flex: 1; }
.noinfo-hint {
  padding: 10px 13px;
  margin: 0 2px 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}
.id-hint {
  margin: -4px 4px 4px;
  font-size: 13px;
  line-height: 1.6;
  color: #1d4ed8;
}

button {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: 0;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(37, 99, 235, .28);
  cursor: pointer;
  transition: transform .08s, filter .15s;
}
button:hover { filter: brightness(1.05); }
button:active { transform: translateY(1px); }

.box {
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 15px;
  line-height: 1.85;
  word-break: break-word;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
}
.box.ok { border-left-color: #16a34a; background: linear-gradient(180deg, #f5fdf8, #fff); }
.box.warn { border-left-color: #f59e0b; background: linear-gradient(180deg, #fffbf2, #fff); }
.box a { color: var(--brand); font-weight: 600; }
.box b { color: var(--ink); }

.tip {
  margin: 16px 2px 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.tip b { color: #374151; }

.tut-step { margin: 14px 0; }
.tut-step img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .08);
}
.tut-step .ttext {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: #4b5563;
  white-space: pre-wrap;
}

.tut-wrap { text-align: center; }
.tut-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  margin: 20px auto 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  background: #fff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .12);
}
.tut-btn:hover { background: #f5f8ff; text-decoration: none; }

b.k { font-size: 18px; letter-spacing: .02em; color: #dc2626; }
p { margin: 12px 0; }
code {
  padding: 1px 6px;
  font-size: .92em;
  background: #f1f4f9;
  border-radius: 6px;
}

@media (min-width: 640px) {
  .wrap { padding-top: 44px; }
  .page-title { font-size: 26px; }
}
