    :root {
      --brand: #0b6e4f;
      --brand-dark: #075a3f;
      --brand-light: #e6f4ef;
      --accent: #ff7a00;
      --danger: #dc2626;
      --text: #1f2937;
      --text-muted: #6b7280;
      --bg: #f5f7f6;
      --card: #ffffff;
      --border: #e5e7eb;
      --radius: 14px;
      --shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
      --max-width: 1200px;
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html { -webkit-text-size-adjust: 100%; }

    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    a { color: inherit; text-decoration: none; }
    button { font: inherit; cursor: pointer; border: none; background: none; }
    input { font: inherit; }

    .container {
      width: 100%;
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 0 16px;
    }

    /* ========== Header ========== */
    .site-header {
      position: relative;
      z-index: 10;
      background: var(--brand);
      color: #fff;
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      min-height: 56px;
      padding: 8px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      font-size: 18px;
      letter-spacing: 0.5px;
    }

    .logo-mark {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: #fff;
      color: var(--brand);
      display: grid;
      place-items: center;
      font-size: 16px;
      font-weight: 800;
    }

    .header-link {
      font-size: 13px;
      color: rgba(255, 255, 255, 0.92);
      padding: 5px 12px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.28);
      white-space: nowrap;
    }

    .header-link:active { background: rgba(255, 255, 255, 0.14); }

    /* ========== 顶部装饰 ========== */
    .auth-banner {
      position: relative;
      height: 132px;
      background:
        radial-gradient(520px 220px at 85% -20%, rgba(255, 122, 0, 0.24), transparent 62%),
        radial-gradient(420px 180px at 6% 120%, rgba(255, 255, 255, 0.10), transparent 60%),
        linear-gradient(135deg, #0d4a3a 0%, #0b6e4f 55%, #12926b 100%);
    }

    /* ========== 注册卡片 ========== */
    .auth-wrap {
      flex: 1;
      margin-top: -96px;
      position: relative;
      z-index: 5;
      padding-bottom: 32px;
    }

    .auth-card {
      background: var(--card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 24px 20px;
      max-width: 440px;
      margin: 0 auto;
    }

    /* 品牌区 */
    .brand {
      text-align: center;
      margin-bottom: 20px;
    }

    .brand-mark {
      width: 54px;
      height: 54px;
      border-radius: 15px;
      background: linear-gradient(135deg, var(--brand), var(--brand-dark));
      color: #fff;
      display: grid;
      place-items: center;
      font-size: 26px;
      font-weight: 800;
      margin: 0 auto 12px;
      box-shadow: 0 6px 16px rgba(11, 110, 79, 0.26);
    }

    .brand h1 {
      font-size: 20px;
      font-weight: 800;
      letter-spacing: 0.3px;
      line-height: 1.4;
    }

    .brand p {
      margin-top: 5px;
      font-size: 12.5px;
      color: var(--text-muted);
      line-height: 1.65;
    }

    /* 表单 */
    .field { margin-bottom: 14px; }

    .field-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      font-size: 12.5px;
      font-weight: 600;
      color: var(--text);
      margin-bottom: 6px;
    }

    .field-label .opt {
      font-size: 11px;
      font-weight: 400;
      color: var(--text-muted);
    }

    .input {
      width: 100%;
      height: 46px;
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 0 14px;
      font-size: 15px;
      color: var(--text);
      background: var(--bg);
      outline: none;
      transition: border-color 0.2s, background 0.2s;
      letter-spacing: 0.3px;
    }

    .input::placeholder { color: #9ca3af; letter-spacing: 0; }

    .input:focus { border-color: var(--brand); background: #fff; }

    .input.is-error { border-color: var(--danger); background: #fef2f2; }

    .field-err {
      display: none;
      margin-top: 5px;
      font-size: 11.5px;
      color: var(--danger);
      line-height: 1.5;
    }

    .field-err.show { display: block; }

    /* 验证码行 */
    .code-row {
      display: flex;
      gap: 8px;
    }

    .code-row .input { flex: 1; min-width: 0; }

    .code-btn {
      flex-shrink: 0;
      height: 46px;
      padding: 0 14px;
      border-radius: 10px;
      border: 1px solid var(--brand);
      color: var(--brand-dark);
      background: #fff;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      transition: all 0.2s;
    }

    .code-btn:active { background: var(--brand-light); }

    .code-btn:disabled {
      border-color: var(--border);
      color: var(--text-muted);
      background: var(--bg);
      cursor: default;
    }

    /* 密码可见切换 */
    .pwd-wrap { position: relative; }

    .pwd-wrap .input { padding-right: 48px; }

    .pwd-eye {
      position: absolute;
      right: 4px;
      top: 50%;
      transform: translateY(-50%);
      width: 40px;
      height: 40px;
      display: grid;
      place-items: center;
      font-size: 17px;
      opacity: 0.5;
      line-height: 1;
    }

    .pwd-eye:active { opacity: 0.8; }

    /* 密码强度 */
    .pwd-strength {
      margin-top: 7px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .ps-bars {
      flex: 1;
      display: flex;
      gap: 4px;
    }

    .ps-bar {
      flex: 1;
      height: 4px;
      border-radius: 2px;
      background: #e5e7eb;
      transition: background 0.2s;
    }

    .ps-bar.on-weak { background: #f59e0b; }
    .ps-bar.on-mid { background: #3b82f6; }
    .ps-bar.on-strong { background: var(--brand); }

    .ps-text {
      flex-shrink: 0;
      font-size: 11px;
      color: var(--text-muted);
      min-width: 26px;
      text-align: right;
    }

    .ps-text.weak { color: #b45309; }
    .ps-text.mid { color: #1d4ed8; }
    .ps-text.strong { color: var(--brand-dark); }

    /* 协议 */
    .agree {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      margin: 16px 0 18px;
      cursor: pointer;
      user-select: none;
    }

    .agree input { position: absolute; opacity: 0; width: 0; height: 0; }

    .agree-box {
      flex-shrink: 0;
      width: 17px;
      height: 17px;
      border-radius: 5px;
      border: 1.5px solid #cbd5d1;
      background: #fff;
      margin-top: 1px;
      display: grid;
      place-items: center;
      transition: all 0.18s;
    }

    .agree-box::after {
      content: "✓";
      font-size: 11px;
      font-weight: 900;
      color: #fff;
      transform: scale(0);
      transition: transform 0.15s;
      line-height: 1;
    }

    .agree input:checked + .agree-box {
      background: var(--brand);
      border-color: var(--brand);
    }

    .agree input:checked + .agree-box::after { transform: scale(1); }

    .agree input:focus-visible + .agree-box {
      box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.18);
    }

    .agree-text {
      font-size: 12px;
      line-height: 1.7;
      color: var(--text-muted);
    }

    .agree-text a {
      color: var(--brand-dark);
      font-weight: 600;
      border-bottom: 1px solid var(--brand-light);
    }

    .agree-text a:active { opacity: 0.7; }

    .agree.is-error .agree-box { border-color: var(--danger); }

    .agree-err {
      display: none;
      margin: -10px 0 14px;
      font-size: 11.5px;
      color: var(--danger);
      padding-left: 25px;
    }

    .agree-err.show { display: block; }

    /* 主按钮 */
    .btn-primary {
      width: 100%;
      height: 48px;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 15.5px;
      font-weight: 700;
      letter-spacing: 0.5px;
      transition: background 0.2s, opacity 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .btn-primary:active { background: var(--brand-dark); }

    .btn-primary.is-loading { opacity: 0.72; pointer-events: none; }

    /* 分割线 */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 22px 0 16px;
      font-size: 11.5px;
      color: var(--text-muted);
    }

    .divider::before,
    .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* 第三方 */
    .third-party {
      display: flex;
      justify-content: center;
      gap: 16px;
    }

    .third-btn {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      font-size: 24px;
      background: #f2fbf6;
      border: 1px solid #d6ece1;
      transition: transform 0.15s, background 0.2s;
    }

    .third-btn:active { transform: scale(0.94); background: var(--brand-light); }

    /* 底部登录入口 */
    .auth-foot {
      margin-top: 20px;
      text-align: center;
      font-size: 13px;
      color: var(--text-muted);
    }

    .auth-foot a {
      color: var(--brand-dark);
      font-weight: 700;
      margin-left: 4px;
    }

    /* 页面底部 */
    .page-foot {
      padding: 20px 16px 28px;
      text-align: center;
      font-size: 11.5px;
      color: var(--text-muted);
      line-height: 1.8;
    }

    /* Toast */
    .toast {
      position: fixed;
      left: 50%;
      bottom: 60px;
      transform: translateX(-50%) translateY(10px);
      background: rgba(31, 41, 55, 0.94);
      color: #fff;
      font-size: 13px;
      padding: 10px 18px;
      border-radius: 999px;
      z-index: 300;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.25s, transform 0.25s;
      max-width: 80vw;
      text-align: center;
      line-height: 1.5;
    }

    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ========== 协议弹窗 ========== */
    .doc-modal {
      position: fixed;
      inset: 0;
      z-index: 500;
      display: flex;
      align-items: flex-end;
      justify-content: center;
    }

    .doc-modal[hidden] { display: none; }

    .doc-mask {
      position: absolute;
      inset: 0;
      background: rgba(17, 24, 39, 0.52);
      opacity: 0;
      transition: opacity 0.24s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .doc-panel {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 560px;
      max-height: 86vh;
      max-height: 86dvh;
      background: var(--card);
      border-radius: 18px 18px 0 0;
      box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      transform: translateY(24px);
      opacity: 0;
      transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.24s ease;
      padding-bottom: env(safe-area-inset-bottom);
    }

    .doc-modal.show .doc-mask { opacity: 1; }

    .doc-modal.show .doc-panel {
      transform: translateY(0);
      opacity: 1;
    }

    /* 弹窗头部 */
    .doc-head {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 16px 12px 20px;
      border-bottom: 1px solid var(--border);
    }

    .doc-title {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 0.3px;
      line-height: 1.4;
    }

    .doc-close {
      flex-shrink: 0;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--bg);
      color: var(--text-muted);
      display: grid;
      place-items: center;
      font-size: 14px;
      line-height: 1;
      transition: background 0.2s, color 0.2s;
    }

    .doc-close:active { background: #e5e7eb; color: var(--text); }

    /* 弹窗内容 */
    .doc-body {
      flex: 1;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      padding: 18px 20px 22px;
      font-size: 13.5px;
      line-height: 1.85;
      color: var(--text);
    }

    .doc-body::-webkit-scrollbar { width: 5px; }
    .doc-body::-webkit-scrollbar-thumb {
      background: #d7dde1;
      border-radius: 3px;
    }

    .doc-body h3 {
      font-size: 14.5px;
      font-weight: 800;
      color: var(--brand-dark);
      margin: 18px 0 6px;
      line-height: 1.5;
    }

    .doc-body h3:first-child { margin-top: 0; }

    .doc-body p {
      margin-bottom: 8px;
      color: #374151;
    }

    .doc-body p:last-child { margin-bottom: 0; }

    .doc-body ul {
      margin: 0 0 10px;
      padding-left: 1.25em;
      color: #374151;
    }

    .doc-body li { margin-bottom: 4px; }

    .doc-body strong { color: var(--text); font-weight: 700; }

    .doc-updated {
      margin-bottom: 14px;
      padding: 9px 12px;
      background: var(--brand-light);
      border-radius: 8px;
      font-size: 11.5px;
      color: var(--brand-dark);
      line-height: 1.6;
    }

    /* 弹窗底部按钮 */
    .doc-foot {
      flex-shrink: 0;
      padding: 12px 16px 16px;
      border-top: 1px solid var(--border);
      background: var(--card);
    }

    .doc-confirm {
      width: 100%;
      height: 48px;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 15.5px;
      font-weight: 700;
      letter-spacing: 0.5px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
    }

    .doc-confirm:active { background: var(--brand-dark); }

    /* ========== 平板 ≥768px ========== */
    @media (min-width: 768px) {
      .container { padding: 0 24px; }
      .header-inner { min-height: 64px; padding: 8px 24px; }
      .logo { font-size: 20px; }

      .auth-banner { height: 180px; }

      .auth-wrap { margin-top: -120px; }

      .auth-card { padding: 30px 32px; }

      .brand-mark { width: 60px; height: 60px; font-size: 29px; }
      .brand h1 { font-size: 22px; }
      .brand p { font-size: 13px; }

      .input, .code-btn { height: 48px; }

      /* 弹窗居中 */
      .doc-modal { align-items: center; padding: 24px; }

      .doc-panel {
        border-radius: 16px;
        max-height: 78vh;
        max-height: 78dvh;
        transform: translateY(12px) scale(0.98);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
      }

      .doc-modal.show .doc-panel { transform: translateY(0) scale(1); }

      .doc-body { padding: 22px 26px 26px; font-size: 14px; }

      .doc-head { padding: 18px 20px 14px 26px; }

      .doc-title { font-size: 17px; }

      .doc-foot { padding: 14px 26px 20px; }
    }

    /* ========== 桌面 ≥1024px ========== */
    @media (min-width: 1024px) {
      .header-inner { min-height: 72px; padding: 8px 24px; }
      .logo { font-size: 22px; }
      .header-link { font-size: 14px; }

      .auth-banner { height: 220px; }

      .auth-wrap { margin-top: -150px; }

      .auth-card { padding: 36px 40px; }
    }

    @media (prefers-reduced-motion: reduce) {
      * { transition: none !important; }
      .doc-panel { transform: none !important; }
    }
