/* ==========================================================================
   站点提示页样式（深色主题 · 蘭林閣酒店）
   --------------------------------------------------------------------------
   服务于 app/routes/public.py 的 _html_page()：站点入口 `/`、SSO 错误页、
   二维码失效页、位置无效页。这些页面原来用白底内联样式，现统一抽到本文件。

   配色与 app/static/css/display.css 完全同源（取自品牌 logo），
   但这是独立文件 —— 因为 _html_page() 也可能出现在极简环境下，
   不希望它依赖展示页那份带 .qr-box / .stage 等业务类名的样式表。
   ========================================================================== */

:root {
  --bg:        #17110B;
  --bg-2:      #1F1710;
  --surface:   #241A11;
  --brand:     #C08A45;
  --brand-dim: #9A6C34;
  --brand-deep:#7A4E1E;
  --fg:        #F4EADC;
  --fg-strong: #FFFFFF;
  --sub:       #B9A48A;
  --muted:     #8A7A66;
  --warn:      #E8B45C;
  --danger:    #F0846F;
  --line:      #3A2A1A;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 18px;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 50% -10%, rgba(192, 138, 69, .10), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--fg);
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Segoe UI", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  text-align: center;
}

/* --- 品牌区 --- */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}
.brand-logo {
  height: 52px;
  width: auto;
  /* 白底黑棕 logo → 深底亮字（同 display.css 的处理方式） */
  filter: invert(1) hue-rotate(180deg) saturate(.72) brightness(1.06)
          drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
  opacity: .96;
  user-select: none;
  -webkit-user-drag: none;
}
.brand-line {
  width: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-dim), transparent);
}

/* --- 图标 + 文案 --- */
.icon {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .5));
}
h1 {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fg-strong);
  letter-spacing: 1px;
}
p {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--sub);
  margin: 0 0 8px;
}
p.strong { color: var(--fg); font-size: 16px; font-weight: 500; }
p.tip {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 22px;
}
p.warn-text { color: var(--warn); }
p.err-text  { color: var(--danger); }

/* --- 站点入口列表 --- */
ul.sites {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: block;
  width: 100%;
  max-width: 340px;
  text-align: left;
}
ul.sites li { margin: 10px 0; }
ul.sites a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 17px;
  background: linear-gradient(180deg, rgba(46, 33, 21, .9) 0%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--fg);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: border-color .16s, transform .16s, background .16s;
}
ul.sites a:hover {
  border-color: var(--brand-dim);
  background: linear-gradient(180deg, #33261A 0%, #2A1E13 100%);
  transform: translateY(-1px);
}
ul.sites a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
ul.sites .pid {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  flex: 0 0 auto;
}
ul.sites .arrow { color: var(--brand); flex: 0 0 auto; font-size: 16px; }
ul.sites .nm { flex: 1; }

/* 提示条（无站点配置 / 需要注意时） */
.note {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  background: rgba(232, 180, 92, .10);
  border: 1px solid rgba(232, 180, 92, .28);
  border-radius: 9px;
  color: var(--warn);
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .brand-logo { height: 42px; }
  .icon { font-size: 40px; }
  h1 { font-size: 17.5px; }
  p { font-size: 14px; }
  ul.sites a { padding: 12px 14px; font-size: 14.5px; }
}
