/* ============================================================
   问渠 · 布局层
   登录页 / 顶部导航外壳 / 内容容器
   ============================================================ */

/* ================= 登录页 ================= */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(480px, 52%) minmax(420px, 48%);
  background: var(--bg-deep);
}

.auth-brand {
  position: relative;
  overflow: hidden;
  padding: 44px 56px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8ebc8;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(190, 140, 55, .30), transparent 55%),
    radial-gradient(100% 80% at 10% 100%, rgba(120, 45, 30, .28), transparent 60%),
    linear-gradient(150deg, #2a1d0e 0%, #1b1208 42%, #120c06 100%);
}

.auth-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(0, 0, 0, .35));
  pointer-events: none;
}

.auth-art { position: absolute; inset: 0; pointer-events: none; opacity: .9; }

.auth-art .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 169, 97, .10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 169, 97, .10) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 78%);
}

.auth-art .radar {
  position: absolute;
  width: 560px;
  height: 560px;
  right: -60px;
  top: 50%;
  transform: translateY(-52%);
  opacity: .55;
}

.auth-art .wave {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 230px;
  opacity: .8;
}

.auth-art .corner-meta {
  position: absolute;
  top: 26px; right: 32px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  line-height: 1.9;
  letter-spacing: .16em;
  color: rgba(232, 210, 154, .40);
  text-align: right;
  text-transform: uppercase;
}

.auth-brand-inner { position: relative; z-index: 2; }

.auth-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 56px; }
.logo-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: #e9ce83;
  background: linear-gradient(150deg, #2c2010, #17110a);
  border: 1px solid rgba(217, 183, 103, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 8px 22px -14px rgba(217, 183, 103, .7);
}
.auth-logo .logo-mark { width: 48px; height: 48px; font-size: 23px; border-radius: 12px; }
.auth-logo .name { font-family: var(--font-serif); font-size: 18px; font-weight: 700; letter-spacing: .01em; color: #f8ebc8; }
.auth-logo .sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(232, 210, 154, .5); margin-top: 3px;
}

.brand-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em;
  color: rgba(232, 210, 154, .72); margin-bottom: 14px;
}
.brand-eyebrow::before {
  content: ""; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 210, 154, .8));
}

.brand-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: .02em;
  margin: 0 0 22px;
  background: linear-gradient(96deg, #8b6118 0%, #d6b459 26%, #f7edcb 52%, #d6b459 76%, #8b6118 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-title .accent { font-style: italic; letter-spacing: .01em; }
.brand-subline {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .46em;
  color: rgba(246, 236, 214, .6);
  margin: -12px 0 24px;
}

.brand-tagline {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(246, 236, 214, .72);
  letter-spacing: .04em;
  margin-bottom: 28px;
}

.brand-pills { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.feature-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px;
  font-size: 12px;
  color: rgba(246, 236, 214, .74);
  border: 1px solid rgba(232, 210, 154, .20);
  border-radius: 99px;
  background: rgba(232, 210, 154, .045);
  backdrop-filter: blur(4px);
}
.feature-pill .dot { width: 4px; height: 4px; border-radius: 50%; background: #d9b767; box-shadow: 0 0 8px #d9b767; }

/* 表单侧 */
.auth-form-side {
  background: #f7f1e3;
  color: #1c150d;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
}
.auth-form-side::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(120, 90, 40, .10) 1px, transparent 0);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}

.auth-card { position: relative; width: min(388px, 100%); animation: fade-up .55s var(--ease-out) both; }
.auth-title { font-family: var(--font-serif); font-size: 30px; font-weight: 600; letter-spacing: .01em; }
.auth-subtitle { font-size: 13px; color: #7a6b56; margin-top: 8px; margin-bottom: 26px; }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 4px;
  background: #ece2cd;
  border-radius: 10px;
  margin-bottom: 22px;
}
.auth-tabs button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 0; border-radius: 7px;
  font-size: 13px; color: #7a6b56;
  transition: .2s var(--ease);
}
.auth-tabs button.active {
  background: #fffdf7;
  color: #1c150d;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .10), 0 0 0 1px rgba(120, 90, 40, .08);
}

.auth-field { margin-bottom: 15px; }
.auth-label {
  font-size: 12px; color: #6b5c47; margin-bottom: 6px; letter-spacing: .02em;
  display: flex; justify-content: space-between;
}
.auth-input {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid #dccfb6; border-radius: 9px;
  background: #fffdf7; color: #1c150d; font-size: 14px;
  transition: .2s var(--ease);
}
.auth-input::placeholder { color: #b0a28b; }
.auth-input:focus {
  outline: none; border-color: #a8792a;
  box-shadow: 0 0 0 3px rgba(168, 121, 42, .13);
}
.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 44px; }
.auth-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  color: #8a7a63; border-radius: 6px; display: grid; place-items: center;
}
.auth-eye:hover { background: #efe6d3; color: #1c150d; }

.auth-code-row { display: grid; grid-template-columns: 1fr 116px; gap: 10px; }
.auth-code-btn {
  height: 44px; border-radius: 9px; cursor: pointer;
  border: 1px solid #dccfb6; background: #f2e9d7; color: #6b5c47; font-size: 12.5px;
  transition: .2s var(--ease);
}
.auth-code-btn:hover:not(:disabled) { border-color: #a8792a; color: #8b6118; }
.auth-code-btn:disabled { cursor: default; opacity: .62; }

.auth-submit {
  width: 100%; height: 46px; margin-top: 8px;
  border: 0; border-radius: 9px; cursor: pointer;
  background: linear-gradient(180deg, #241a10, #150f08);
  color: #e9ce83; font-size: 14px; font-weight: 600; letter-spacing: .28em;
  box-shadow: 0 10px 24px -14px rgba(20, 12, 4, .9), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: .22s var(--ease);
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(20, 12, 4, .95); }
.auth-submit:active { transform: none; }

.auth-links { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 16px; color: #7a6b56; }
.auth-links a { cursor: pointer; }
.auth-links a:hover { color: #8b6118; }
.auth-links .reg { color: #8b6118; font-weight: 600; }

.auth-demo {
  margin-top: 26px; padding: 13px 15px;
  border: 1px dashed #d8c9ac; border-radius: 10px;
  background: rgba(255, 253, 247, .55);
  font-size: 12px; color: #7a6b56; line-height: 1.7;
}
.auth-demo b { color: #8b6118; font-weight: 600; }
.auth-demo code {
  font-family: var(--font-mono); font-size: 11.5px;
  background: #efe6d3; border-radius: 4px; padding: 1px 5px; color: #5a4a33;
}
.auth-terms { margin-top: 18px; font-size: 11px; color: #a3947d; text-align: center; }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-side { padding: 32px 22px; min-height: 100vh; }
}

/* ================= 应用外壳：顶部导航 ================= */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px) saturate(120%);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-head.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px -26px rgba(60, 40, 10, .5); }

.head-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-brand { display: flex; align-items: center; gap: 10px; flex: none; cursor: pointer; }
.site-brand .mark { color: var(--gold-deep); }
.site-brand .wordmark { line-height: 1.05; }
.site-brand .name { font-family: var(--font-serif); font-size: 16.5px; font-weight: 700; letter-spacing: .02em; }
.site-brand .sub {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: .26em;
  color: var(--ink-4); text-transform: uppercase; margin-top: 3px;
}

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-link {
  position: relative;
  height: 66px;
  padding: 0 11px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ink-3);
  cursor: pointer; white-space: nowrap;
  transition: color .18s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after {
  content: "";
  position: absolute; left: 11px; right: 11px; bottom: 17px;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.nav-link .caret { color: var(--ink-4); margin-left: 1px; }
.nav-link .spark { color: var(--gold); }

.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ghost-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 99px;
  background: transparent;
  font-size: 12px; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
  transition: .18s var(--ease);
}
.ghost-pill:hover { border-color: var(--gold-line); color: var(--gold-deep); background: var(--gold-soft); }

.head-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-3);
  display: grid; place-items: center;
  cursor: pointer;
  transition: .18s var(--ease);
}
.head-icon:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 99px;
  cursor: pointer;
  transition: background .18s var(--ease);
  position: relative;
}
.user-chip:hover { background: var(--surface-2); }
.user-chip .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(150deg, #7d9c6d, #4a6e3f);
  color: #f6f1e2; border: 0;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
}
.user-chip .who { line-height: 1.25; }
.user-chip .who .n { font-size: 12.5px; font-weight: 600; }
.user-chip .who .lvl { font-size: 10px; color: var(--ink-4); }
.user-chip .caret { color: var(--ink-4); }

.app-main { min-height: calc(100vh - 66px); }
.view {
  max-width: 1160px;
  margin: 0 auto;
  padding: 34px 28px 72px;
}
.view.wide { max-width: 1280px; }

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.site-foot .inner {
  max-width: 1160px; margin: 0 auto;
  padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 11.5px; color: var(--ink-4);
  flex-wrap: wrap;
}
.site-foot .links { display: flex; gap: 16px; }
.site-foot a:hover { color: var(--gold-deep); }

/* 移动端导航 */
.nav-toggle { display: none; }
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
  .head-inner { gap: 12px; }
  .ghost-pill .txt { display: none; }
  .ghost-pill { width: 32px; padding: 0; justify-content: center; }
  .user-chip .who { display: none; }
}
@media (max-width: 720px) {
  .view { padding: 22px 16px 56px; }
  .head-inner { padding: 0 16px; height: 58px; }
  .site-brand .name { font-size: 15px; }
  .site-foot .inner { padding: 18px 16px; }
}

/* 移动端抽屉 */
.drawer-nav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  animation: fade-in .18s var(--ease) both;
}
.drawer-nav .panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(300px, 84vw);
  background: var(--bg);
  border-left: 1px solid var(--line);
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
  animation: drawer-in .26s var(--ease-out) both;
}
.drawer-nav .panel .ttl {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .2em;
  color: var(--ink-4); text-transform: uppercase;
  padding: 12px 10px 6px;
}
.drawer-nav .item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 8px;
  font-size: 13.5px; color: var(--ink-2);
  cursor: pointer;
}
.drawer-nav .item:hover { background: var(--surface-2); }
.drawer-nav .item.active { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }



