/* ============================================================
   莱茵系统中心 · 门户样式
   暗色奢华 + 金色，移动优先
   ============================================================ */
:root {
  --gold: #d4a574;
  --gold-soft: rgba(212, 165, 116, .16);
  --bg: #0e0e11;
  --bg-2: #16161b;
  --card: #1b1b21;
  --line: rgba(212, 165, 116, .18);
  --text: #ece8e1;
  --muted: #8d8a84;
  --danger: #c99784;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -180px, rgba(212,165,116,.10), transparent 62%),
    var(--bg);
}

/* ---------------------------------------------------- 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14,14,17,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, #7a5c3e 0%, #b98d5e 45%, #d4a574 100%);
  box-shadow:
    0 0 0 1px rgba(212,165,116,.65),
    0 0 0 4px rgba(212,165,116,.12),
    0 0 22px rgba(212,165,116,.30);
}
.brand-text strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
}
.brand-text small {
  display: block;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
  margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.who { font-size: 13px; color: var(--gold); }
.role {
  font-size: 11px;
  color: var(--muted);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.btn-ghost {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .2s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------------------------------------------- 内容 */
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 20px 90px;
}
.gate { text-align: center; margin-bottom: 26px; }
.gate h2 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .04em;
}
.gate p { margin: 0; font-size: 13px; color: var(--muted); }
.gate a { color: var(--gold); }

/* ---------------------------------------------------- 卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,165,116,.55);
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: var(--gold-soft);
}
.card-icon svg { width: 22px; height: 22px; }
.card-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .03em;
}
.card-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.card-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tag {
  font-size: 11px;
  color: var(--gold);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.go { font-size: 12px; color: var(--muted); }
.card:hover .go { color: var(--gold); }

/* ---------------------------------------------------- 页脚 */
.foot {
  text-align: center;
  padding: 26px 20px 40px;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--muted);
}

/* ---------------------------------------------------- 登录页 */
.page-login { display: grid; place-items: center; }
.login-wrap {
  width: 100%;
  max-width: 380px;
  padding: 32px 20px;
}
.login-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 26px 24px;
  background: linear-gradient(180deg, var(--card) 0%, var(--bg-2) 100%);
  box-shadow: 0 22px 60px rgba(0,0,0,.5);
}
.login-card .brand { justify-content: center; margin-bottom: 26px; }
.login-card .brand-text { text-align: left; }
.login-card .brand-text h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .05em;
}
.login-card .brand-text p {
  margin: 3px 0 0;
  font-size: 9.5px;
  letter-spacing: .2em;
  color: var(--muted);
}
.field { display: block; margin-bottom: 16px; }
.field span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: .04em;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  background: #111116;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  outline: none;
  transition: .18s;
}
.field input:focus {
  border-color: rgba(212,165,116,.6);
  box-shadow: 0 0 0 3px rgba(212,165,116,.10);
}
.alert {
  margin: 2px 0 16px;
  padding: 10px 12px;
  font-size: 13px;
  color: #f0d5c9;
  background: rgba(201,151,132,.12);
  border: 1px solid rgba(201,151,132,.32);
  border-radius: 10px;
}
.btn-primary {
  width: 100%;
  padding: 13px 0;
  margin-top: 4px;
  font-size: 15px;
  letter-spacing: .3em;
  color: #14100b;
  background: linear-gradient(135deg, #c1915f 0%, var(--gold) 100%);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: .18s;
}
.btn-primary:hover { filter: brightness(1.08); }
.foot-note {
  margin: 18px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------- 小屏 */
@media (max-width: 520px) {
  .wrap { padding: 26px 16px 80px; }
  .grid { grid-template-columns: 1fr; gap: 13px; }
  .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }
  .brand-text strong { font-size: 15px; }
  .topbar-inner { padding: 12px 16px; }
}
