/* ==========================================================================
   Aurora 极光 — NexusPHP v1.10.3 前台皮肤（纯 CSS 增量主题）
   --------------------------------------------------------------------------
   - 不修改任何 PHP，也不修改任何官方 CSS；本文件由 stdhead()
     (include/functions.php:2562) 以 <theme>/theme.css 的形式加载。
   - 加载顺序：font css -> sprites.css -> forumsprites.css -> **theme.css**
     -> DomTT.css -> nexus.css -> 搜索框 cssfile。
     因此 nexus.css / 搜索框 css 中的同名规则需要 !important 才能压住。
   - 深色皮肤见 ../AuroraNight/theme.css（@import 本文件后覆盖令牌）。
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  color-scheme: light;

  --au-bg: #f5f7fa;
  --au-card: #ffffff;
  --au-popover: #ffffff;
  --au-sub: #eef1f6;
  --au-fg: #1b2430;
  --au-muted: #6b7280;
  --au-border: #e4e8ef;
  /* 登录页等表单输入框走内联 border:gray；验证码框对齐同一颜色，令牌化以便统一切换 */
  --au-input-border: #808080;

  --au-primary: #fb7299;
  --au-accent: #00a1d6;
  --au-ok: #2e9e6b;
  --au-warn: #e9a23b;
  --au-danger: #e5484d;
  --au-info: #3b82f6;

  --au-primary-tint: rgba(251, 114, 153, .12);
  --au-accent-tint: rgba(0, 161, 214, .13);
  --au-ok-tint: rgba(46, 158, 107, .13);
  --au-warn-tint: rgba(233, 162, 59, .15);
  --au-danger-tint: rgba(229, 72, 77, .13);
  --au-info-tint: rgba(59, 130, 246, .13);

  /* 页面宽度：最大 1600px；窗口不够宽时两侧各保留至少 --au-gutter 的留白 */
  --au-max-width: 1600px;
  --au-gutter: 24px;
  /* 信息条右列小图标的最小宽度，防止被搜索框挤成一条高竖线 */
  --au-info-icons-min: 112px;   /* 约为原来的 2/3（170px），窄屏右列图标不过宽 */

  --au-code-bg: #f0f2f6;
  --au-r-sm: 6px;
  --au-r: 10px;
  --au-r-lg: 16px;
  --au-r-pill: 999px;
  --au-shadow-sm: 0 1px 3px rgba(16, 24, 40, .05);
  --au-shadow: 0 4px 16px rgba(16, 24, 40, .07);
  --au-shadow-lg: 0 12px 32px rgba(16, 24, 40, .16);

  --au-font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --au-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 14px 0 20px;
  background: var(--au-bg);
  color: var(--au-fg);
  font-family: var(--au-font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 不覆盖 styles/{small,medium,large}font.css 设定的用户字号偏好：
   组件尺寸全部用 em / 相对单位，不在 body / td 上硬设 font-size。 */

/* iframe 页面（shoutbox.php / fun.php / attachment.php / app/upload_rank.php）
   走简化 head，同样加载本文件。背景透明，让父页面卡片透出来，
   这样浅色 / 深色主题都能自动适配，不会出现一块突兀的色块。 */
body.inframe {
  padding: 8px;
  background: transparent;
}

p { margin: 0 0 .8em; }
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 750; line-height: 1.3; color: var(--au-fg); }
h1 { font-size: 1.7em; }
h2 {
  font-size: 1.28em;
  padding-left: 10px;
  border-left: 3px solid var(--au-primary);
}
h3 { font-size: 1.12em; }
hr { border: 0; border-top: 1px solid var(--au-border); margin: 14px 0; }
ul, ol { margin: 0; padding-left: 1.4em; }
li { margin: .25em 0; }
img { border: 0; max-width: 100%; }
/* 分类/状态 sprite 用 1x1 占位图 + background-image，不能被 max-width 挤压 */
img[src*="trans.gif"], img[src*="cattrans.gif"], img[src*="png.png"],
img[src*="icons.gif"], img[class^="c_"] { max-width: none; }
form { margin: 0; }

a:link, a:visited { color: var(--au-fg); text-decoration: none; }
a:hover { color: var(--au-primary); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--au-primary); outline-offset: 2px; border-radius: 3px; }

a.index, a.biglink { font-weight: 700; }
a.faqlink { color: var(--au-accent); }
a.altlink, a.altlink:link, a.altlink:visited { color: var(--au-primary); font-weight: 650; }
a.altlink_blue, a.altlink_blue:link, a.altlink_blue:visited { color: var(--au-accent); font-weight: 650; }
a.altlink_green, a.altlink_green:link, a.altlink_green:visited { color: var(--au-ok); font-weight: 650; }

.small { font-size: .9em; }
.medium { color: var(--au-muted); }
.big { font-size: 1.12em; }
.important { font-weight: 700; }
.sublink { font-style: italic; color: var(--au-muted); }
.red { color: var(--au-danger) !important; }
.yellow { color: var(--au-warn) !important; }
.green { color: var(--au-ok) !important; }
.text-muted { color: var(--au-muted) !important; }
.nowrap { white-space: nowrap; }
font.gray { color: var(--au-muted); text-decoration: underline; }
.listitem { margin-left: 10px; margin-right: 5px; }

/* ---------- 3. 遗留内联样式归一 ----------
   只把 2005 年代硬编码色映射到语义令牌，不动黑色 NFO 框之外的其他内联样式，
   也不碰分类 sprite 的 background-image。 */
font[color] { color: inherit !important; }
/* 注意：不能用裸的 [style*="color:#ff0000"]——它会误匹配
   `background-color:#ff0000`（种子「禁转」标签），把白字压成深红导致看不清。
   用 :is() 收拢后统一排除带 background-color 的元素和 <option>（颜色下拉色块）。 */
font[color="red"], font[color="#FF0000"],
:is([style*="color: red"], [style*="color:red"], [style*="color: orangered"],
    [style*="color:#DC143C"], [style*="color:#FF0000"], [style*="color:#ff0000"],
    [style*="color:#ee0000"]):not([style*="background-color"]):not(option) {
  color: var(--au-danger) !important;
}
font[color="green"], font[color="#008000"],
:is([style*="color: green"], [style*="color:green"],
    [style*="color:#008000"], [style*="color:#00ff00"]):not([style*="background-color"]):not(option) {
  color: var(--au-ok) !important;
}
:is([style*="color:#000000"], [style*="color: #000000"]):not([style*="background-color"]):not(option) {
  color: var(--au-fg) !important;
}
/* 种子标签：tags 表 font_color 本来就是 #ffffff，显式兜底为白字，
   避免任何归一规则再误伤「禁转」这类红底标签。
   例外「官方」(color=#0000ff)：它被下面的浅底规则处理成浅灰底，
   白字会明显降低对比度，按用户要求保持深字不改。 */
#outer span[style*="background-color:#0000ff"] {
  background: var(--au-sub) !important;
  color: var(--au-fg) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r-sm) !important;
}
#outer span[style*="background-color:"][style*="color:#ffffff"]:not([style*="background-color:#0000ff"]) {
  color: #fff !important;
}
/* 深色 inline 背景统一浅化：settings.php:27 的 `background: black` 提示条、
   details.php:96 的 `background-color: black` 驳回说明框，原本配 <font color="white">；
   上面 font[color] 归一后白字变深字，在黑底上就完全看不清了。
   统一改成浅色卡片 + 圆角 + 深字（与 13.1 msgalert 同一套观感）。
   注意排除 <option>：forums.php / functions.php 颜色下拉里的黑色色块要保留原样。 */
#outer *:not(option)[style*="background: black"],
#outer *:not(option)[style*="background:black"],
#outer *:not(option)[style*="background: #000"],
#outer *:not(option)[style*="background:#000"],
#outer *:not(option)[style*="background-color: black"],
#outer *:not(option)[style*="background-color:black"] {
  background: var(--au-sub) !important;
  color: var(--au-fg) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r) !important;
  box-shadow: var(--au-shadow-sm);
}
/* settings.php:27 的黑条在 td 上；border-collapse:collapse 时 td 圆角不生效 */
#outer table[cellpadding="10"][width="97%"] { border-collapse: separate !important; border-spacing: 0; }
[bgcolor="lightgrey"], [bgcolor="#EFF3FF"], [bgcolor="#BBAF9B"], [bgcolor="#F5F4EA"], [bgcolor='#F5F4EA'] {
  background-color: var(--au-sub) !important;
}
[bgcolor="#00A527"] { background-color: var(--au-ok-tint) !important; }

/* ---------- 4. 页头 table.head ---------- */
table.head {
  /* 顶掉 inline style="width:1228.66px"；最大 1600px，窄窗口两侧至少留 24px */
  width: min(var(--au-max-width), calc(100% - var(--au-gutter) * 2)) !important;
  height: auto !important;
  margin: 0 auto 12px;
  background: transparent;
  border: 0;
}
table.head td.clear { padding: 4px 6px; border: 0; background: transparent; }
.logo {
  font-family: var(--au-font);
  font-size: 1.9em;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--au-primary);
  line-height: 1.2;
}
.slogan {
  font-family: var(--au-font);
  font-size: .95em;
  color: var(--au-muted);
  margin-top: 3px;
}
.logo_img img { max-height: 54px; width: auto; border-radius: var(--au-r); }

/* ---------- 5. 主容器 table.mainouter ---------- */
table.mainouter {
  /* 顶掉 width="1200"；与 table.head 用同一公式，保证上下对齐 */
  width: min(var(--au-max-width), calc(100% - var(--au-gutter) * 2)) !important;
  margin: 0 auto 8px;
  background: var(--au-card);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-lg);
  /* [站点定制] 更明显的卡片阴影（登录前后共用容器），比通用 --au-shadow 更立体 */
  box-shadow: 0 6px 24px rgba(16, 24, 40, .14), 0 1px 4px rgba(16, 24, 40, .08);
  border-collapse: separate;
  border-spacing: 0;
}
table.mainouter > tbody > tr > td {
  padding: 0;                            /* 顶掉 cellpadding="5" */
  border: 0;
  background: var(--au-card);
}
table.mainouter > tbody > tr:first-child > td:first-child { border-radius: var(--au-r-lg) var(--au-r-lg) 0 0; }
table.mainouter > tbody > tr:last-child  > td:last-child  { border-radius: 0 0 var(--au-r-lg) var(--au-r-lg); }

#nav_block {
  padding: 10px 14px 8px !important;
  border-bottom: 1px solid var(--au-border) !important;
}
/* 菜单条吸顶（配合 js/nav-sticky.js）：只固定 ul#mainmenu 这一行，
   整块 #nav_block 保持正常流，下面的「欢迎回来 / 魔力值」信息行照常滚走。
   纯 CSS sticky 在这里无效——菜单的包含块（div#nav）只有菜单自身高度，
   没有可粘的余量；所以由 JS 在菜单接触视口顶部时切换 fixed。
   初始占位高度为 0、不加任何样式，进入页面时外观与原来完全一致。 */
.nav-menu-holder { height: 0; margin: 0; padding: 0; border: 0; }
ul#mainmenu.menu.nav-menu-fixed {
  position: fixed;
  top: 0;
  z-index: 20;              /* 与 DomTT tooltip 同级，tooltip 在 DOM 更靠后仍在上 */
}
td#outer.outer {
  padding: 18px 20px !important;          /* 顶掉 inline padding-top/bottom:20px */
  vertical-align: top;
}

/* ---------- 6. 导航 ---------- */
#nav { display: block; }
ul#mainmenu.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  list-style: none;
  white-space: normal;
  text-align: left;
  margin: 0 0 8px;
  padding: 5px;
  background: var(--au-sub);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-pill);
}
ul.menu li { display: inline-block; float: none; margin: 0; padding: 0; }
ul.menu li a,
ul.menu li a:link,
ul.menu li a:visited {
  display: inline-block;
  padding: 6px 13px;
  border: 0;
  border-radius: var(--au-r-pill);
  background: transparent;
  color: var(--au-muted);
  font-family: var(--au-font);
  font-size: 1em;
  font-weight: 650;
  font-style: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
ul.menu li a:hover {
  background: var(--au-card);
  color: var(--au-fg);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--au-shadow-sm);
}
ul.menu li.selected a,
ul.menu li.selected a:link,
ul.menu li.selected a:visited,
ul.menu li.selected a:hover {
  background: var(--au-primary);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(251, 114, 153, .32);
}

.dropmenu {
  background: var(--au-popover);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r);
  box-shadow: var(--au-shadow-lg);
  margin-top: 6px;
  opacity: 1;
  padding: 6px;
  text-align: left;
}
.dropmenu ul { list-style: none; white-space: nowrap; padding: 4px; margin: 0; }
.dropmenu ul li { margin: 0; }
.dropmenu a { color: var(--au-fg); }

/* ---------- 7. 用户信息条 table#info_block ---------- */
#info_block { width: 100% !important; border: 0; background: transparent; }
#info_block td { border: 0; background: transparent; padding: 4px 6px; }
#info_block td.bottom { padding: 5px 8px; }
#info_block .medium { color: var(--au-muted); font-size: .95em; }
#info_block a { color: var(--au-accent); }
.color_bonus, .color_invite, .color_slots { color: var(--au-primary); font-weight: 650; }
.color_uploaded, .color_active { color: var(--au-ok); font-weight: 650; }
.color_downloaded { color: var(--au-danger); font-weight: 650; }
.color_ratio, .color_connectable { color: var(--au-accent); font-weight: 650; }

/* ---------- 7.1 顶部全局搜索框（#info_block，functions.php:2731-2746） ----------
   官方把三个控件的宽高写死在 inline style 里，且把「输入框 + 选择框」用
   flex-direction:column 上下堆叠、按钮单独放右边 —— 站点变宽后这一块显得过高。
   这里改成一行：选择框 → 输入框 → 按钮（用 flex order 把选择框挪到前面），
   并顶掉按钮 39px / white-space:break-spaces 造成的「全站搜索」折行。
   只在本皮肤内修正，不改任何 PHP。 */
#info_block form[action="search.php"] > div {
  align-items: center !important;
  gap: 8px !important;
}
#info_block form[action="search.php"] > div > div:first-child {
  flex-direction: row !important;   /* 顶掉 inline column，三个控件同一行 */
  align-items: center !important;
  gap: 8px !important;
}
/* 选择框原本在输入框下面（第二个 div），用 order 移到输入框前面 */
#info_block form[action="search.php"] > div > div:first-child > div:nth-child(2) { order: -1; }
#info_block form[action="search.php"] > div > div:last-child {
  display: flex !important;
  align-items: center !important;
}
#info_block form[action="search.php"] input[name="search"],
#info_block form[action="search.php"] select[name="search_area"] {
  height: 32px !important;          /* 顶掉 inline 12px */
  min-height: 0;
  padding: 4px 10px !important;
  margin: 0 !important;
  font-size: 1em;
  line-height: 1.3;
}
#info_block form[action="search.php"] input[name="search"] { width: 150px !important; }
#info_block form[action="search.php"] select[name="search_area"] { width: 120px !important; cursor: pointer; }
#info_block form[action="search.php"] input[type="submit"] {
  width: auto !important;           /* 顶掉 inline 39px */
  min-width: 76px;
  max-width: none;
  height: 32px !important;
  white-space: nowrap !important;   /* 顶掉 inline break-spaces，单行显示 */
  padding: 0 12px !important;       /* 顶掉 inline padding:0 */
  align-self: center;
  margin: 0 !important;
  border-radius: var(--au-r-sm) !important;
  letter-spacing: .02em;
}
#info_block form[action="search.php"] input::placeholder { color: var(--au-muted); opacity: 1; }

/* ---------- 7.2 信息条右列小图标（functions.php:2748-2787） ----------
   官方把 buddy / rss / 收件箱等 11~14px 小图标和计数直接塞在右对齐的
   td.bottom 里，中间还硬塞了一个 <br/>。窗口一窄，这一格被搜索框挤到
   几十 px，图标就一个一个换行，把整条信息栏撑成七八行。
   给内容一个最小宽度 + 去掉硬换行，让它横向排布、最多两三行。 */
#info_block td.bottom[align="right"] > span.medium {
  display: inline-block;
  min-width: var(--au-info-icons-min);
  max-width: 100%;
  text-align: right;
  line-height: 1.55;
  white-space: normal;
}
#info_block td.bottom[align="right"] br { display: none; }
#info_block td.bottom[align="right"] img { vertical-align: middle; }
#info_block td.bottom[align="right"] a { white-space: nowrap; }

/* ---------- 8. 通用表格 ----------
   去掉 2005 年那种「每个 td 都有黑色实线边框」的网格感，
   用细分隔线 + 卡片圆角代替。 */
table { border: 0; border-collapse: collapse; background: transparent; }
td, th { border: 0; padding: 7px 10px; vertical-align: middle; background: transparent; }

table.main { width: 100% !important; background: transparent; border: 0 !important; margin: 0 0 10px; }

/* 验证码组件（站点定制）：输入框与图片同一行、各自独立圆角（图片左侧也圆角），
   整行宽严格等于其他输入框(320px)使图片右缘对齐；图片等比例压扁到与其他输入框同高；
   提示文字在图片下方右对齐、字号加大。颜色/圆角均走 --au-* 令牌，随主题自动适配。 */
.nx-captcha-wrap { display: block; max-width: 100%; }
.nx-captcha-row { display: inline-flex; align-items: center; gap: 6px; width: 320px; max-width: 100%; vertical-align: middle; box-sizing: border-box; }
/* 用 input[type=text] 提高特异性，压住第 9 节通用 input 的浅蓝 --au-border，使边框与其他输入框同色 */
input.nx-captcha-input[type=text] {
  /* 拉高到与其他表单输入框接近：图片等比例放大、字符更清晰；输入框由 flex 自动缩短，整行仍 320px */
  flex: 1 1 auto; width: auto; min-width: 0;
  height: 3em;
  border: 1px solid var(--au-input-border, gray);
  border-radius: var(--au-r-sm);
  padding: 6px 10px; font-size: 1em; color: var(--au-fg); background: var(--au-card);
  box-sizing: border-box; outline: none;
}
/* 不用 z-index 抬升，避免 focus 阴影盖住图片右侧圆角 */
input.nx-captcha-input[type=text]:focus { border-color: var(--au-primary); box-shadow: 0 0 0 3px var(--au-primary-tint); }
img.nx-captcha-img {
  display: block; cursor: pointer; margin: 0; flex: 0 0 auto;
  /* 等比例拉高到与输入框同高(3em)，宽度自动，原图 150x40 比例 3.75；四角全圆角 */
  height: 3em; width: auto;
  border: 1px solid var(--au-input-border, gray); border-radius: var(--au-r-sm);
  transition: opacity .15s ease;
}
img.nx-captcha-img:hover { opacity: .85; }
.nx-captcha-tip {
  display: block; width: 320px; max-width: 100%;
  margin-top: 4px; text-align: right;
  font-size: .92em; color: var(--au-muted); line-height: 1.4;
}

/* 官方若干页面把内层表格宽度写死为 CONTENT_WIDTH(1200)，容器放宽后会缩在左侧 */
#outer table[width="1200"], #nav_block table[width="1200"] { width: 100% !important; }

/* 表单 / 说明类内层表格：无 width、无 class 时宽度由内容撑开，是 block 级元素，
   不会被父级 td 的 align="center" / text-align 居中，宽屏下贴左。统一让它在
   #outer 内水平居中（列表类表格带 class=main/torrents 或 width，不受影响）。
   这修复了登录 / 注册 / 找回 / 投诉等表单，以及「朝左问题不少」的同类页面。 */
#outer > form > table:not([width]):not([class]),
#outer > table:not([width]):not([class]) { margin-left: auto; margin-right: auto; }

/* BBCode 标签说明表（tags.php）：全宽 + 左列 25% 在宽屏下左右拉得太散，
   收窄到舒适宽度并居中，与标题 p.sub 对齐。 */
#outer table.bbcode-tag-table { max-width: 960px; margin-left: auto; margin-right: auto; }
#outer p.sub { max-width: 960px; margin-left: auto; margin-right: auto; }

/* 首页定制区块（index.php 的「发种排行榜 + 喊话框」两栏）：
   不再用自身 inline style，统一走主题类，随令牌 / 断点自适应 */
.home-columns { display: flex; gap: 16px; align-items: flex-start; }
.home-columns > .home-col { flex: 1 1 0; min-width: 0; }
/* 首页「最近消息 + 趣味盒」两栏：index.php 里 news 先输出、funbox 后输出，
   DOM 顺序即左→右，所以「最近消息」在左、「趣味盒」在右（不再用 order 翻转）。
   两块都保持自适应高度、不设列级滚动条（用户 2026-11-12 最终定稿：
   曾试过 560px 固定高度 + 内部 scroll，后要求「最新消息还是自适应吧，不要 scroll」，已撤销）。
   funbox 被关闭时该列不存在，news 自动占满整行。小屏竖排时最近消息在上。 */
/* 发种排行榜：15 行 + 表头 + 时间切换，拉高到内容能完整显示、不出现 iframe 滚动条 */
.home-frame {
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
  border-radius: var(--au-r);
  background: transparent;
}
/* 与排行榜同排的群聊区 iframe 同步拉高，避免右列留出大片空白 */
#iframe-shout-box { height: 760px; }
@media (max-width: 768px) { .home-columns { flex-direction: column; } }

/* begin_frame() 会输出 border="1"；给它一个轻量卡片外观 */
#outer table[border="1"], #outer table.message, #outer table.searchbox {
  border: 1px solid var(--au-border) !important;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--au-card);
  border-radius: var(--au-r);
  box-shadow: var(--au-shadow-sm);
  margin-bottom: 14px;
}

td.embedded { padding: 0 !important; }
td.text { padding: 10px 12px; }
td.comment { padding: 10px 12px; text-align: left; }
td.bottom, td.clear, td.no_border, td.no_border_wide, td.shoutrow, td.navigation, td.toolbox {
  border: 0;
  background: transparent;
}
td.no_border_wide { vertical-align: top; }
td.heading { font-weight: 700; }
td.rowhead { font-weight: 700; vertical-align: top; text-align: right; color: var(--au-muted); }
td.rowhead_left { text-align: left; }
td.rowhead_center { text-align: center; }
td.colfollow { text-align: center; }
td.title { font-size: 1.3em; font-weight: 750; }
td.navigation { font-weight: 700; }

td.colhead, th.colhead {
  padding: 9px 12px !important;           /* 顶掉 torrenttable() 的 inline padding:0 */
  border: 0 !important;
  border-bottom: 1px solid var(--au-border) !important;
  background: var(--au-sub) !important;
  color: var(--au-fg) !important;
  font-weight: 750;
  letter-spacing: .02em;
  white-space: nowrap;
  text-align: left;
}
td.colhead a, td.colhead a:link, td.colhead a:visited { color: var(--au-fg); text-decoration: none; }
td.colhead a:hover { color: var(--au-primary); }

/* 种子列表 */
table.torrents {
  width: 100% !important;
  border: 1px solid var(--au-border) !important;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--au-card);
  border-radius: var(--au-r);
  box-shadow: var(--au-shadow-sm);
  overflow: hidden;
}
table.torrents td.colhead { border-bottom: 1px solid var(--au-border) !important; text-align: center; }
table.torrents td.rowfollow, table.torrents td.colfollow {
  border-top: 1px solid var(--au-border) !important;
  padding: 8px 10px;
  text-align: center;
}
table.torrents tr:nth-child(even) td.rowfollow,
table.torrents tr:nth-child(even) td.colfollow { background: rgba(127, 140, 160, .035); }
table.torrentname { border: 0; background: transparent; }
table.torrentname td.embedded { padding: 0 4px !important; }
table.torrentname td.embedded:first-child { padding-left: 0 !important; }

/* ---------- 8.2 种子列表：标题列「内容」左对齐 ----------
   官方 torrenttable() 给标题 td 写了 align="left"，但被上面
   table.torrents td.rowfollow / td.colfollow 的 text-align:center 覆盖，
   导致标题列（含内嵌 table.torrentname 的文字与副标题）整体居中。
   按 align 属性精确还原左对齐。表头「标题」保持居中，不在这里覆盖。
   AuroraNight 通过 @import 复用本文件，极光 / 极夜两套同时生效。 */
table.torrents td.rowfollow[align="left"],
table.torrents td.colfollow[align="left"] { text-align: left; }

/* ---------- 8.3 评分列：官方 PTGen::buildRatingSpan() 写死 width:40px ----------
   每行是 IMDb/豆瓣 图标(16px) + 评分文字，40px 装不下「N/A」，
   Windows Firefox 会把它拆成「N/」+「A」两行并撑高整行（Chrome 容忍度更高所以不明显）。
   放宽到固定 60px 并禁止折行（不要用 width:auto，会被表格布局撑开）；
   官方每行是 justify-content:space-between，td 一变宽图标与评分就被推到两端，
   所以同时改成 flex-start + 固定 gap，保持「图标紧挨文字」的原有观感。
   顺带给标题行末尾的纯图标操作列做同类防御。 */
table.torrentname td.embedded[style*="width: 40px"] {
  width: 60px !important;
  min-width: 60px;
  white-space: nowrap;
}
table.torrentname td.embedded[style*="width: 40px"] div[style*="justify-content: space-between"] {
  justify-content: flex-start !important;  /* 顶掉官方 div 上的 inline space-between */
  gap: 4px;
}
table.torrentname td.embedded[style*="width: 40px"] span { white-space: nowrap; }
table.torrentname td.embedded[width="20"] { white-space: nowrap; }

/* 促销行底色 */
.free_bg, .twoupfree_bg { background-color: var(--au-ok-tint) !important; }
.twoup_bg, .twouphalfdown_bg { background-color: var(--au-accent-tint) !important; }
.halfdown_bg { background-color: var(--au-info-tint) !important; }
.thirtypercentdown_bg { background-color: var(--au-warn-tint) !important; }

/* ---------- 8.1 魔力值奖励按钮（details.php:570-587 自带 inline <style>） ----------
   官方给 ul.magic li 设 width:40px + padding:0 5px，配 50×21 的
   huise.png / boli.png 背景图。主题全局 `* { box-sizing: border-box }`
   会让 li 实际只有 40px，背景图右侧 10px（圆角）被裁掉。
   恢复 content-box，40+5+5=50px 正好等于图片宽度。 */
#outer ul.magic li { box-sizing: content-box; }

/* ---------- 9. 表单 / 按钮 ---------- */
/* 官方 markup 里表单控件 / 按钮常紧挨着（尤其 details.php 字幕区三个按钮连成
   一整条色块）。统一给可见控件补一点右侧间距；hidden / checkbox / radio 不动。
   7.1 的搜索框用 margin:0 !important 单独覆盖，靠 flex gap 控制。 */
input[type=text], input[type=password], input[type=search], input[type=number],
input[type=email], input[type=submit], input[type=button], input[type=reset],
button, select, textarea, .btn, .btn2, .gobutton { margin-right: 6px; }
input[type=text], input[type=password], input[type=search], input[type=number],
input[type=email], textarea, select {
  font-family: var(--au-font);
  color: var(--au-fg);
  background: var(--au-card);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-sm);
  padding: 6px 10px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
/* 老页面常写死 height:12px 的紧凑搜索框，改为自适应高度 */
input[style*="height"], textarea[style*="height"] { height: auto !important; min-height: 26px; }
input:focus, textarea:focus, select:focus {
  border-color: var(--au-primary) !important;
  box-shadow: 0 0 0 3px var(--au-primary-tint);
}
textarea { line-height: 1.5; resize: vertical; }
select { cursor: pointer; }

input[type=submit], input[type=button], button, .btn, .btn2, .gobutton {
  font-family: var(--au-font);
  font-size: .95em;
  font-weight: 700;
  color: #fff !important;
  background: var(--au-primary) !important;
  border: 0 !important;
  border-radius: var(--au-r-sm);
  padding: 6px 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(251, 114, 153, .25);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
input[type=submit]:hover, input[type=button]:hover, button:hover, .btn:hover, .btn2:hover, .gobutton:hover {
  background: var(--au-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 161, 214, .28);
}
/* 重置按钮：配套的次要（描边）样式，与提交主按钮同高、同圆角、同字体。
   padding 比提交少 1px，抵消 1px 边框，使两者像素级等高对齐；
   颜色全部走 --au-* 令牌，Aurora / AuroraNight 自动切换明暗。 */
input[type=reset] {
  font-family: var(--au-font);
  font-size: .95em;
  font-weight: 700;
  color: var(--au-fg) !important;
  background: var(--au-card) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r-sm);
  padding: 5px 13px;
  cursor: pointer;
  box-shadow: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}
/* 通行密钥按钮（站点定制）：图标在左、文字在右的扁按钮，与登录/重置按钮同高对齐。
   颜色/圆角/阴影走 --au-* 令牌，Aurora / AuroraNight 自动适配。 */
button.nx-passkey-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .95em;
  font-weight: 700;
  color: #fff !important;
  background: var(--au-primary) !important;
  border: 0 !important;
  border-radius: var(--au-r-sm);
  padding: 6px 14px;
  margin-right: 0;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(251, 114, 153, .25);
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
button.nx-passkey-btn img { display: block; width: 16px; height: 16px; }
button.nx-passkey-btn:hover {
  background: var(--au-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 161, 214, .28);
}
/* 忘记密码链接（站点定制）：与「点击图片可刷新验证码」同款次级小字，贴在密码框右侧 */
a.nx-forgot-link {
  /* 与「点击图片可刷新验证码」同款：块级、同宽、右对齐，贴在密码框下方右侧 */
  display: block;
  width: min(100%, 320px);
  margin-top: 4px;
  text-align: right;
  font-size: .92em;
  color: var(--au-muted);
  text-decoration: none;
  white-space: nowrap;
}
a.nx-forgot-link:hover { color: var(--au-primary); text-decoration: underline; }

input[type=reset]:hover {
  color: var(--au-primary) !important;
  background: var(--au-primary-tint) !important;
  border-color: var(--au-primary) !important;
  transform: translateY(-1px);
}
/* ---------- 9.0 checkbox：主色方块 + 白色勾 ----------
   原生 accent-color 的勾是深色，在粉色底上对比差。改用 appearance:none 重绘，
   与 9.1 radio 同一套观感；勾用内联 SVG（stroke 白色）。 */
input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  padding: 0;
  border: 2px solid var(--au-border);
  border-radius: 4px;
  background-color: var(--au-card);
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
input[type=checkbox]::before {
  content: "";
  width: 11px;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23ffffff'%20stroke-width='3.5'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M20%206%209%2017l-5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 11px 11px !important;
  transform: scale(0);
  transition: transform .15s ease;
}
input[type=checkbox]:checked {
  background-color: var(--au-primary) !important;
  border-color: var(--au-primary) !important;
}
input[type=checkbox]:checked::before { transform: scale(1); }
input[type=checkbox]:hover:not(:disabled) { border-color: var(--au-primary); }
input[type=checkbox]:focus-visible { outline: 2px solid var(--au-primary); outline-offset: 2px; }
input[type=checkbox]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 9.1 radio：现代自定义样式 ----------
   原生 radio 在浅色主题下是黑圈 + 灰点，偏旧。用 appearance:none 重绘：
   细描边外圈、选中时主色圆环 + 中心圆点、hover / focus 反馈，全站统一。 */
input[type=radio] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-content: center;
  width: 16px;
  height: 16px;
  /* 左侧留 10px：很多页面的 radio 组是 <label>radio+文字</label> 紧连，
     没有间距会让后一个圆圈贴到前一个选项的文字上 */
  margin: 0 6px 0 10px;
  padding: 0;
  border: 2px solid var(--au-border);
  border-radius: 50%;
  background: var(--au-card);
  vertical-align: middle;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type=radio]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--au-primary);
  transform: scale(0);
  transition: transform .15s ease;
}
input[type=radio]:checked { border-color: var(--au-primary); }
input[type=radio]:checked::before { transform: scale(1); }
input[type=radio]:hover:not(:disabled) { border-color: var(--au-primary); }
input[type=radio]:focus-visible { outline: 2px solid var(--au-primary); outline-offset: 2px; }
input[type=radio]:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 9.2 select：自定义下拉箭头，与右边框留空隙 ----------
   原生箭头紧贴右边框、各浏览器位置还不一致。用 appearance:none +
   内联 SVG chevron，把箭头定位在 right 10px；padding-right 给文字让位。 */
select:not([multiple]) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236b7280'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 12px 12px !important;
}
/* 7.1 搜索框的 select 有更高特异性的 padding:4px 10px !important，单独补回右内边距 */
#info_block form[action="search.php"] select[name="search_area"] { padding-right: 28px !important; }

/* nexus.css 在 theme.css 之后加载，这几条需要 !important */
.form-control-row input[type=text], .form-control-row textarea { border-radius: var(--au-r-sm); }
details summary {
  color: var(--au-accent) !important;
  background-color: var(--au-accent-tint) !important;
  border-radius: var(--au-r-sm);
  font-family: var(--au-font);
}
.layui-layer {
  color: var(--au-fg) !important;
  background: var(--au-popover) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r-lg) !important;
  box-shadow: var(--au-shadow-lg) !important;
  font-family: var(--au-font) !important;
}
/* 标题栏（站点定制）：更矮、顶部圆角与主体一致、字重更现代；关闭按钮用 CSS ✕ 适配主题 */
.layui-layer-title {
  background: var(--au-sub) !important;
  border-bottom: 1px solid var(--au-border) !important;
  color: var(--au-fg) !important;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 56px 0 18px !important;
  font-size: 1.08em !important;
  font-weight: 600 !important;
  border-radius: var(--au-r-lg) var(--au-r-lg) 0 0 !important;
}
/* 警告图标（站点定制）：用与正文字号相当的 SVG 感叹号替换 layer 默认 30px 位图图标 */
.layui-layer-dialog .layui-layer-content .layui-layer-ico {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='none' stroke='%23e9a23b' stroke-width='2'/%3E%3Cline x1='12' y1='7' x2='12' y2='14' stroke='%23e9a23b' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='17.5' r='1.2' fill='%23e9a23b'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  width: 20px !important;
  height: 20px !important;
  top: 22px !important;
  left: 15px !important;
}
.layui-layer-dialog .layui-layer-padding { padding: 20px 20px 20px 46px !important; }
.layui-layer-setwin { top: 12px !important; right: 14px !important; }
.layui-layer-setwin .layui-layer-close1 {
  background: none !important;
  width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  text-align: center;
  color: var(--au-muted) !important;
  font-size: 20px !important;
}
.layui-layer-setwin .layui-layer-close1::after { content: "×"; }
.layui-layer-setwin .layui-layer-close1:hover { color: var(--au-primary) !important; opacity: 1 !important; }
/* layer 弹窗按钮（站点定制）：覆盖 layer 默认蓝，改为与站点主题一致的粉色主按钮。
   颜色/圆角/阴影全部走 --au-* 令牌，Aurora / AuroraNight 自动适配。 */
/* 按钮区不加分隔线，靠留白与主按钮形成层级，更现代协调 */
.layui-layer-btn { border-top: 0 !important; padding-top: 4px !important; }
.layui-layer-btn .layui-layer-btn0 {
  background: var(--au-primary) !important;
  background-color: var(--au-primary) !important;
  border-color: var(--au-primary) !important;
  color: #fff !important;
  border-radius: var(--au-r-sm) !important;
  font-family: var(--au-font) !important;
  box-shadow: 0 2px 6px rgba(251, 114, 153, .25) !important;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease !important;
}
.layui-layer-btn .layui-layer-btn0:hover {
  background: var(--au-accent) !important;
  background-color: var(--au-accent) !important;
  border-color: var(--au-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 161, 214, .28) !important;
}
.layui-layer-btn a { border-radius: var(--au-r-sm) !important; font-family: var(--au-font) !important; }
.layui-layer-setwin .layui-layer-close1 { filter: var(--au-layer-close-filter, none); }

/* ---------- 10. 促销 / 状态徽章 ---------- */
.free, .twoup, .twoupfree, .halfdown, .twouphalfdown, .thirtypercent,
.hot, .classic, .recommended, .new, .striking {
  display: inline-block;
  padding: 1px 7px;
  border-radius: var(--au-r-pill);
  font-size: .9em;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
  color: var(--au-ok) !important;
  background: var(--au-ok-tint) !important;
  border: 1px solid transparent;
}
.free, .twoupfree, .halfdown { color: var(--au-ok) !important; background: var(--au-ok-tint) !important; }
.twoup, .twouphalfdown { color: var(--au-accent) !important; background: var(--au-accent-tint) !important; }
.hot, .striking, .new { color: var(--au-danger) !important; background: var(--au-danger-tint) !important; }
.classic { color: var(--au-info) !important; background: var(--au-info-tint) !important; }
.recommended { color: var(--au-primary) !important; background: var(--au-primary-tint) !important; }
.thirtypercent { color: var(--au-warn) !important; background: var(--au-warn-tint) !important; }
img.free, img.new, img.hot, img.striking { display: inline; padding: 0; background: none !important; border: 0; }

/* ---------- 11. 用户等级配色（沿用官方 class 名，换成更协调的色板） ---------- */
.StaffLeader_Name, .StaffLeader_Name:link, .StaffLeader_Name:visited { color: #c0392b !important; font-weight: 650; }
.SysOp_Name, .SysOp_Name:link, .SysOp_Name:visited { color: #b5651d !important; font-weight: 650; }
.Administrator_Name, .Administrator_Name:link, .Administrator_Name:visited { color: #7c4dff !important; font-weight: 650; }
.Moderator_Name, .Moderator_Name:link, .Moderator_Name:visited { color: #2f6fed !important; font-weight: 650; }
.ForumModerator_Name, .ForumModerator_Name:link, .ForumModerator_Name:visited { color: #0891a5 !important; font-weight: 650; }
.Retiree_Name, .Retiree_Name:link, .Retiree_Name:visited { color: #0891a5 !important; font-weight: 650; }
.Uploader_Name, .Uploader_Name:link, .Uploader_Name:visited { color: var(--au-primary) !important; font-weight: 650; }
.VIP_Name, .VIP_Name:link, .VIP_Name:visited { color: #0f9d58 !important; font-weight: 650; }
.NexusMaster_Name, .NexusMaster_Name:link, .NexusMaster_Name:visited { color: var(--au-accent) !important; font-weight: 650; }
.UltimateUser_Name, .UltimateUser_Name:link, .UltimateUser_Name:visited { color: #166534 !important; font-weight: 650; }
.ExtremeUser_Name, .ExtremeUser_Name:link, .ExtremeUser_Name:visited { color: #d97706 !important; font-weight: 650; }
.VeteranUser_Name, .VeteranUser_Name:link, .VeteranUser_Name:visited { color: #4f46e5 !important; font-weight: 650; }
.InsaneUser_Name, .InsaneUser_Name:link, .InsaneUser_Name:visited { color: #9333ea !important; font-weight: 650; }
.CrazyUser_Name, .CrazyUser_Name:link, .CrazyUser_Name:visited { color: #0284c7 !important; font-weight: 650; }
.EliteUser_Name, .EliteUser_Name:link, .EliteUser_Name:visited { color: #0d9488 !important; font-weight: 650; }
.PowerUser_Name, .PowerUser_Name:link, .PowerUser_Name:visited { color: #b45309 !important; font-weight: 650; }
.User_Name, .User_Name:link, .User_Name:visited { color: var(--au-fg) !important; }
.Peasant_Name, .Peasant_Name:link, .Peasant_Name:visited { color: var(--au-muted) !important; }

/* ---------- 12. 代码 / 引用 / 附件 ---------- */
/* 快速回复 / 快速评论等表格：官方把黑框写死在 inline style 里，共 5 处写法完全相同
   （forums.php:918、details.php:754、complains.php:149、offers.php:236、viewrequests.php:174）。
   用 border-width:0 顶掉即可，不改 HTML 结构、不动官方 PHP
   （用户 2026-11-13 要求：回退上一轮的 PHP 改动，纯 CSS 处理）。 */
#outer table[style*="border:1px solid #000000"] { border-width: 0 !important; }

/* 引用框：format_quotes()（include/functions.php:126-128）把 [quote] 输出成
   <fieldset><legend>引用[: xxx]</legend>，论坛回帖引用与种子简介引用共用这套 markup。
   官方无 class、靠浏览器默认的灰黑直角细边框。按 FAQ 框（8. 通用表格里
   #outer table[border="1"] 的卡片外观）统一成浅色边框 + 圆角 + 卡片底 + 轻阴影；
   legend 文字保留，加底色与上边框错开、读作标签。 */
#outer fieldset {
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r);
  background: var(--au-card);
  box-shadow: var(--au-shadow-sm);
  padding: 10px 12px;
  margin: 0 0 14px;
}
#outer fieldset legend {
  padding: 1px 8px;
  font-weight: 700;
  color: var(--au-fg);
  background: var(--au-card);
  border-radius: var(--au-r-sm);
}
.codetop {
  padding: 6px 12px;
  margin: 0 auto;
  font-weight: 700;
  color: var(--au-fg) !important;
  background: var(--au-sub) !important;
  border: 1px solid var(--au-border) !important;
  border-bottom: 0;
  border-radius: var(--au-r) var(--au-r) 0 0;
}
.codemain {
  padding: 10px 12px;
  margin: 0 auto;
  color: var(--au-fg) !important;
  background: var(--au-code-bg) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: 0 0 var(--au-r) var(--au-r);
  font-family: var(--au-mono);
}
.codemain > pre, pre { margin: 0; font-family: var(--au-mono); white-space: pre-wrap; word-break: break-word; }
.attach img { border: 0; }
.attach a:link { color: var(--au-accent); }
.attach .size { color: var(--au-muted); }
.gobutton { color: #fff !important; background: var(--au-primary) !important; }
#sql_debug { background: var(--au-code-bg); border-radius: var(--au-r-sm); padding: 10px; }

/* ---------- 13. 页脚 ---------- */
#footer {
  /* 与 table.mainouter 同宽、同样两侧留白，避免内容变宽后页脚仍横贯整屏 */
  width: min(var(--au-max-width), calc(100% - var(--au-gutter) * 2));
  margin: 14px auto 0;
  color: var(--au-muted);
  font-size: .9em;
  text-align: center;
  padding: 14px 10px 2px;
  border-top: 1px solid var(--au-border);
}
#footer > div { margin: 0 !important; }
#footer a, #footer a:link, #footer a:visited { color: var(--au-muted); }
#footer a:hover { color: var(--au-primary); }
/* 页脚底部行：版权在左、语言切换在右（一左一右）。登录前后共用同一份样式，
   游客页与登录页表现一致。全部走 --au-* 令牌，随 Aurora / AuroraNight 自动适配。 */
.nx-footer-bottom {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
}
.nx-footer-copy {
  font-size: 1.18em;
  font-weight: 700;
  text-align: left;
  color: var(--au-fg);
}
.nx-footer-lang { margin: 0; text-align: right; }
.nx-footer-lang select {
  font-family: var(--au-font);
  font-size: .92em;
  color: var(--au-fg);
  background: var(--au-card);
  border: 1px solid var(--au-border);
  border-radius: var(--au-r-sm);
  padding: 4px 10px;
  cursor: pointer;
}
.nx-footer-lang select:focus-visible { outline: 2px solid var(--au-primary); outline-offset: 2px; }
@media (max-width: 640px) {
  .nx-footer-bottom { justify-content: flex-start; flex-direction: column; align-items: flex-start; gap: 10px; }
  .nx-footer-copy, .nx-footer-lang { text-align: left; }
}

/* ---------- 13.1 首页消息提醒 msgalert()（functions.php:5999） ----------
   官方用 <table cellpadding=10 style="margin:0 auto"> 包一个 td，
   td 上写死 `background: black|blue|darkred|red|green|orange|gray` 纯色 +
   <font color="white">，在宽屏上就是几块刺眼的实色直角块。
   这里统一换成浅色 tint + 圆角细边框 + 深色文字，按语义保留一点色相。 */
#outer table[cellpadding="10"][style*="margin: 0 auto"] {
  border-collapse: separate !important;   /* collapse 下 td 的圆角不生效 */
  border-spacing: 0;
}
#outer table[cellpadding="10"][style*="margin: 0 auto"] > tbody > tr > td[style*="background:"][style*="text-align: center"] {
  background: var(--au-sub) !important;   /* 兜底：任意颜色（含考试自定义 hex）*/
  color: var(--au-fg) !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r) !important;
  padding: 10px 18px !important;
  box-shadow: var(--au-shadow-sm);
}
/* 官方 <font color="white"> 在浅底上改回深色 */
#outer table[cellpadding="10"][style*="margin: 0 auto"] td[style*="background:"] font,
#outer table[cellpadding="10"][style*="margin: 0 auto"] td[style*="background:"] b,
#outer table[cellpadding="10"][style*="margin: 0 auto"] td[style*="background:"] a {
  color: var(--au-fg) !important;
}
/* 按 msgalert() 传入的颜色分发到对应语义 tint（都很淡）；
   选择器与兜底规则同等特异性，靠书写顺序覆盖 */
#outer table[cellpadding="10"][style*="margin: 0 auto"] > tbody > tr > td[style*="background: blue"][style*="text-align: center"] {
  background: var(--au-info-tint) !important;
}
#outer table[cellpadding="10"][style*="margin: 0 auto"] > tbody > tr > td[style*="background: red"][style*="text-align: center"],
#outer table[cellpadding="10"][style*="margin: 0 auto"] > tbody > tr > td[style*="background: darkred"][style*="text-align: center"] {
  background: var(--au-danger-tint) !important;
}
#outer table[cellpadding="10"][style*="margin: 0 auto"] > tbody > tr > td[style*="background: green"][style*="text-align: center"] {
  background: var(--au-ok-tint) !important;
}
#outer table[cellpadding="10"][style*="margin: 0 auto"] > tbody > tr > td[style*="background: orange"][style*="text-align: center"] {
  background: var(--au-warn-tint) !important;
}

/* ---------- 13.3 发帖编辑器：附件工具条 + 表情面板 ----------
   functions.php:1135 的附件 iframe 写死 height="24" 且 scrolling=no；
   主题 body.inframe 的 8px padding 加上 32px 高的提交按钮会把它撑到约 48px，
   下半截被裁掉（截图里「选择文件 / 今日剩余 / 大小限制」只剩上半行）。 */
#outer iframe[src*="attachment.php"] {
  height: 48px !important;
  display: block;
  background: var(--au-sub);
  border-radius: var(--au-r-sm);
}
/* attachment.php 内部：让工具条内容垂直居中，上下留白一致；
   该页是唯一同时带 body.inframe 且内含 name="attachment" 表单的 iframe 页。 */
body.inframe:has(form[name="attachment"]) {
  display: flex;
  align-items: center;
  padding: 8px !important;
}
body.inframe:has(form[name="attachment"]) table { width: 100%; }
/* 其它写死 height:25px 的行容器（details.php:685 魔力值奖励行等），
   改为自适应，避免主题放大后的按钮溢出或与下一行重叠。 */
#outer div[style*="height:25px"] { height: auto !important; min-height: 32px; }
/* 表情选择面板：统一格子尺寸与 hover 反馈（表情图已换成 32px 现代 emoji） */
#outer a[href*="SmileIT"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  border-radius: var(--au-r-sm);
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
#outer a[href*="SmileIT"]:hover { background: var(--au-primary-tint); transform: translateY(-1px); }
#outer a[href*="SmileIT"] img { max-width: 24px; max-height: 24px; vertical-align: middle; }
#outer img[src*="pic/smilies/"] { vertical-align: middle; }

/* ---------- 13.4 论坛 / 主题状态图标（整体换新） ----------
   官方只有 4 个固定状态 sprite：styles/icons.gif + sprites.css 的
   unlocked / unlockednew / locked / lockednew（35×36 斜面渐变方块 + 十字/锁）。
   forums 表没有图标字段、后台不可配置，所有版块/主题共用；
   截图里蓝=已读、黄=有新帖，只是状态差异，不是每个版块单独配的图。
   这里在主题层换成现代圆角小卡片 + 线性 SVG 图标，并恢复被
   td.embedded{padding:0} 吃掉的图标右侧留白。 */
#outer img.unlocked, #outer img.unlockednew, #outer img.locked, #outer img.lockednew {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r-sm) !important;
  box-shadow: var(--au-shadow-sm) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  margin-right: 10px !important;   /* 图标与右侧文字留白 */
  vertical-align: middle;
}
/* 已读：中性卡片 + 空心对话气泡 */
#outer img.unlocked {
  background-color: var(--au-card) !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236b7280'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z'/%3E%3C/svg%3E") !important;
}
/* 有新帖：主色浅底 + 实心对话气泡 */
#outer img.unlockednew {
  background-color: var(--au-primary-tint) !important;
  border-color: var(--au-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23fb7299'%3E%3Cpath%20d='M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z'/%3E%3C/svg%3E") !important;
}
/* 已读锁定：中性卡片 + 线框锁 */
#outer img.locked {
  background-color: var(--au-card) !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236b7280'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='11'%20width='16'%20height='10'%20rx='2'/%3E%3Cpath%20d='M8%2011V7a4%204%200%200%201%208%200v4'/%3E%3C/svg%3E") !important;
}
/* 锁定且有新帖：主色线框锁 */
#outer img.lockednew {
  background-color: var(--au-primary-tint) !important;
  border-color: var(--au-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23fb7299'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='4'%20y='11'%20width='16'%20height='10'%20rx='2'/%3E%3Cpath%20d='M8%2011V7a4%204%200%200%201%208%200v4'/%3E%3C/svg%3E") !important;
}
/* 主题列表里其它小 sprite 也补一点间距，避免贴字 */
#outer img.sticky, #outer img.multipage, #outer img.forum_mod { margin-right: 4px; }

/* ---------- 13.5 认证页左右分屏（站点定制，仅 #outer 内，不碰顶栏） ----------
   左侧：复用顶栏 banner + 深色遮罩 + 标语；右侧：原表单容器（交互/文案/链接不变）。
   全部走 --au-* 令牌，Aurora / AuroraNight 自动适配。 */
.nx-auth {
  display: flex;
  width: 100%;
  max-width: var(--au-max-width);
  margin: 0 auto;
  /* 不再自带卡片阴影/背景：外层 table.mainouter 已有圆角/边框/阴影/背景，
     再叠一层就是截图里的「两层」。这里只保留圆角用于裁切左侧图片、承担分屏布局。 */
  border-radius: var(--au-r-lg);
  overflow: hidden;
  background: transparent;
}
.nx-auth-intro {
  position: relative;
  flex: 0 0 52%;
  min-height: 440px;
  padding: 40px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background-color: var(--au-sub);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.nx-auth-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,12,24,.38) 0%, rgba(8,12,24,.64) 55%, rgba(8,12,24,.9) 100%);
}
.nx-auth-intro > * { position: relative; z-index: 1; }
.nx-auth-badge {
  align-self: flex-start;
  font-size: .75em;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--au-r-pill);
  margin-bottom: auto;
  backdrop-filter: blur(4px);
}
.nx-auth-title {
  font-size: 2.4em;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -1px;
  line-height: 1.1;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.nx-auth-sub {
  margin-top: 12px;
  font-size: 1em;
  color: rgba(255,255,255,.88);
  max-width: 360px;
  line-height: 1.7;
}
.nx-auth-panel {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  background: var(--au-card);
}
/* 表单区域保留边框 + 圆角（卡片感），但不加自己的阴影——阴影由外层 table.mainouter
   统一承担，避免「两层阴影」。之前把 border/border-radius 一起清 0 导致表单边框圆角丢失。 */
.nx-auth-panel form > table[border="1"] {
  border: 1px solid var(--au-border) !important;
  border-radius: var(--au-r) !important;
  box-shadow: none !important;
  background: var(--au-card) !important;
  margin-bottom: 0 !important;
}
.nx-auth-panel form > table[border="1"] td { border: 0 !important; }
.nx-auth-panel h1 { margin-top: 0; }
.nx-auth-panel > p { font-size: .9em; color: var(--au-muted); }
/* 表单下方的注册/申诉等链接行：与表单卡片拉开间距，更协调 */
.nx-auth-panel > form ~ p { line-height: 1.9; }
.nx-auth-panel .nx-auth-links { margin-top: 20px; }

/* ---------- 14. 响应式 ----------
   依赖 stylesheets.addicode 注入的 <meta name="viewport">；
   不尝试把 colspan 密集的种子表重排成卡片，宽表改为横向滚动。 */
@media (max-width: 1024px) {
  /* 宽度交给 :root 的 min() 公式，窄窗口自动保留至少 24px 两侧留白 */
  td#outer.outer { padding: 14px 14px !important; }
  /* 窄屏把搜索控件略收窄，让右列图标稳稳拿到 --au-info-icons-min 的最小宽度，
     不至于被挤成一条高竖线；三个控件仍保持一行 */
  #info_block form[action="search.php"] input[name="search"] { width: 120px !important; }
  #info_block form[action="search.php"] select[name="search_area"] { width: 100px !important; }
}
@media (max-width: 768px) {
  :root { --au-gutter: 12px; }   /* 手机上留白收窄，但仍不贴边 */
  body { padding: 0; }
  table.head { margin-bottom: 6px; }
  table.head td.clear[align="right"] { display: none; }
  table.mainouter {
    display: block;
    /* 宽度沿用 :root 公式（此时 gutter=12px），保留小留白与卡片外观 */
    margin: 8px auto;
    border-radius: var(--au-r);
  }
  table.mainouter > tbody,
  table.mainouter > tbody > tr { display: block; width: 100%; }
  table.mainouter > tbody > tr > td { display: block; width: 100% !important; border-radius: 0 !important; }
  #nav_block { padding: 8px 10px !important; }
  td#outer.outer { padding: 10px !important; overflow-x: auto; }
  ul#mainmenu.menu { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; }
  ul.menu li a { padding: 6px 10px; }
  #info_block, #info_block tbody, #info_block tr,
  #info_block > tbody > tr > td { display: block; width: 100% !important; }
  #info_block td.bottom { padding: 4px 0 !important; }
  #outer table.torrents { min-width: 720px; }
  .logo { font-size: 1.5em; }
  /* 认证分屏：窄屏改上下堆叠，左侧介绍变矮条 */
  .nx-auth { flex-direction: column; }
  .nx-auth-intro { flex: none; min-height: 180px; padding: 24px; }
  .nx-auth-title { font-size: 1.9em; }
  .nx-auth-panel { padding: 24px; }
}
@media (max-width: 480px) {
  .slogan { display: none; }
  h2 { font-size: 1.15em; }
  td, th { padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   [站点定制] 新版首页（include/home_modern.php，class >= UC_STAFFLEADER / 16）
   B 站风格：欢迎条 + 圆角卡片网格 + 排行榜 + 动态流。
   组件规则只写在本文件，AuroraNight 通过 @import 覆盖 --au-* 令牌自动适配；
   颜色 / 圆角 / 阴影一律 var(--au-*, fallback)，尺寸用 em。
   低等级用户的老首页不使用任何 .hm-* 类，完全不受影响。
   ========================================================================== */
.hm-main { padding: 1.4em 1.4em .7em; }
.hm-ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.hm-empty { padding: 1.2em; color: var(--au-muted, #6b7280); font-size: .92em; text-align: center; }

/* ⓪ 欢迎条（第一排右列顶部，宽度随趣味盒列） */
.hm-welcome {
  display: flex; align-items: center; gap: 1.2em; flex-wrap: wrap;
  padding: .9em 1.1em;
  background: linear-gradient(100deg, var(--au-primary-tint, rgba(251,114,153,.12)), transparent 70%);
  border: 1px solid var(--au-border, #e4e8ef);
  border-radius: var(--au-r-lg, 16px);
}
.hm-welcome__hi { font-size: 1.15em; font-weight: 800; }
.hm-welcome__hi b { color: var(--au-primary, #fb7299); }
.hm-welcome__sub { font-size: .86em; color: var(--au-muted, #6b7280); margin-top: .15em; }
/* 第一排右列：欢迎条在上、趣味盒在下，整体与右列同宽 */
.hm-grid-a__side { display: flex; flex-direction: column; gap: 1.2em; min-width: 0; }

/* 分区头 */
.hm-sec { margin-bottom: 0; min-width: 0; }
.hm-sec__head {
  display: flex; align-items: center; gap: .55em; margin-bottom: .75em;
  padding-left: .7em; border-left: 3px solid var(--au-primary, #fb7299);
}
.hm-sec__icon { color: var(--au-primary, #fb7299); display: inline-flex; }
.hm-sec__icon .hm-ic { width: 1.25em; height: 1.25em; }
.hm-sec__title { font-size: 1.18em; font-weight: 800; letter-spacing: .2px; color: var(--au-fg, #1b2430); }
.hm-sec__sub { font-size: .85em; color: var(--au-muted, #6b7280); font-weight: 500; }
.hm-sec__more { margin-left: auto; font-size: .88em; color: var(--au-muted, #6b7280); display: inline-flex; align-items: center; gap: .2em; }
.hm-sec__more + .hm-sec__more { margin-left: .2em; }
.hm-sec__more:hover { color: var(--au-primary, #fb7299); }
.hm-sec__more .hm-ic { width: 1em; height: 1em; }

/* 卡片 */
.hm-card {
  background: var(--au-card, #ffffff);
  border: 1px solid var(--au-border, #e4e8ef);
  border-radius: var(--au-r-lg, 16px);
  box-shadow: var(--au-shadow-sm, 0 1px 3px rgba(16,24,40,.05));
  padding: 1.15em; height: 100%; min-width: 0;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.hm-card:hover { transform: translateY(-2px); box-shadow: var(--au-shadow, 0 4px 16px rgba(16,24,40,.07)); }

/* 栅格 */
.hm-grid-a { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 1.2em; align-items: stretch; margin-bottom: 1.3em; }
.hm-grid-b { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2em; align-items: stretch; margin-bottom: 1.3em; }
.hm-grid-c { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em; align-items: stretch; margin-bottom: 1.3em; }
.hm-grid-a > .hm-sec:only-child, .hm-grid-b > .hm-sec:only-child { grid-column: 1 / -1; }

/* ① 最近消息 · 公告流 */
.hm-news-item { border-bottom: 1px solid var(--au-border, #e4e8ef); padding: .75em 0; }
.hm-news-item:first-child { padding-top: 0; }
.hm-news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.hm-news-item__head { display: flex; align-items: center; gap: .6em; cursor: pointer; }
.hm-news-item__head:hover .hm-news-item__title { color: var(--au-primary, #fb7299); }
.hm-tag {
  display: inline-flex; align-items: center; padding: .12em .6em;
  border-radius: var(--au-r-pill, 999px);
  background: var(--au-primary-tint, rgba(251,114,153,.12));
  color: var(--au-primary, #fb7299); font-size: .78em; font-weight: 700; white-space: nowrap;
}
.hm-tag--blue { background: var(--au-accent-tint, rgba(0,161,214,.13)); color: var(--au-accent, #00a1d6); }
.hm-news-item__date { font-family: var(--au-mono, monospace); font-size: .83em; color: var(--au-muted, #6b7280); white-space: nowrap; }
.hm-news-item__title { font-weight: 700; font-size: 1em; color: var(--au-fg, #1b2430); }
.hm-news-item__chev { margin-left: auto; color: var(--au-muted, #6b7280); transition: transform .2s; }
.hm-news-item.is-open .hm-news-item__chev { transform: rotate(180deg); }
.hm-news-item__body {
  display: none; margin-top: .7em; padding: .9em 1em;
  background: var(--au-sub, #eef1f6);
  border-radius: var(--au-r, 10px);
  font-size: .92em; color: var(--au-fg, #1b2430); line-height: 1.8;
  overflow-wrap: anywhere;
}
.hm-news-item.is-open .hm-news-item__body { display: block; }
.hm-news-item__body img { max-width: 100%; height: auto; }

/* ② 趣味盒 · 视频卡片 */
.hm-fun-cover {
  position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--au-r, 10px); background: var(--au-sub, #eef1f6);
  border: 1px solid var(--au-border, #e4e8ef);
}
.hm-fun-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
.hm-fun-meta { font-size: .86em; color: var(--au-muted, #6b7280); margin: .8em 0 .5em; }
.hm-fun-vote { display: flex; align-items: center; gap: .6em; margin-top: .8em; flex-wrap: wrap; }
.hm-fun-vote__num { font-size: .92em; }
.hm-fun-vote__num b { color: var(--au-primary, #fb7299); font-size: 1.15em; }

/* 进度条 */
.hm-progress { height: .55em; border-radius: var(--au-r-pill, 999px); background: var(--au-sub, #eef1f6); overflow: hidden; }
.hm-progress > i { display: block; height: 100%; border-radius: var(--au-r-pill, 999px); background: var(--au-primary, #fb7299); }

/* 按钮（button 与 input[type=submit/reset] 共用） */
.hm-btn, input.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35em;
  border: 1px solid transparent; border-radius: var(--au-r-pill, 999px);
  padding: .45em 1.1em; font-size: .9em; font-weight: 700; font-family: inherit;
  background: var(--au-primary, #fb7299); color: var(--au-on-primary, #ffffff);
  cursor: pointer; transition: filter .18s, transform .18s, background .18s, color .18s;
}
.hm-btn:hover, input.hm-btn:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--au-on-primary, #ffffff); }
.hm-btn--ghost, input.hm-btn--ghost { background: var(--au-sub, #eef1f6); border-color: var(--au-border, #e4e8ef); color: var(--au-fg, #1b2430); }
.hm-btn--ghost:hover, input.hm-btn--ghost:hover { color: var(--au-primary, #fb7299); background: var(--au-primary-tint, rgba(251,114,153,.12)); }
.hm-btn--sm, input.hm-btn--sm { padding: .3em .8em; font-size: .82em; }

/* Tab */
.hm-tabs { display: inline-flex; padding: .22em; background: var(--au-sub, #eef1f6); border-radius: var(--au-r-pill, 999px); margin-bottom: .8em; align-self: flex-start; }
.hm-tab {
  border: 0; background: transparent; color: var(--au-muted, #6b7280);
  border-radius: var(--au-r-pill, 999px); padding: .35em 1.1em; font-size: .88em; font-weight: 700; font-family: inherit; cursor: pointer;
}
.hm-tab.is-active { background: var(--au-primary, #fb7299); color: var(--au-on-primary, #ffffff); box-shadow: 0 2px 8px var(--au-primary-tint, rgba(251,114,153,.12)); }

/* ③ 发种排行榜 */
.hm-rank-wrap { flex: 1; min-height: 20em; max-height: 25em; overflow: auto; border-radius: var(--au-r, 10px); border: 1px solid var(--au-border, #e4e8ef); }
.hm-rank { width: 100%; border-collapse: collapse; font-size: .92em; }
.hm-rank thead th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-weight: 700; color: var(--au-muted, #6b7280);
  background: var(--au-sub, #eef1f6); padding: .6em .8em; border-bottom: 1px solid var(--au-border, #e4e8ef); white-space: nowrap;
}
.hm-rank td { padding: .5em .8em; border-bottom: 1px solid var(--au-border, #e4e8ef); white-space: nowrap; }
.hm-rank tbody tr:last-child td { border-bottom: 0; }
.hm-rank tbody tr:hover td { background: var(--au-primary-tint, rgba(251,114,153,.12)); }
.hm-rank .hm-num { font-family: var(--au-mono, monospace); text-align: right; color: var(--au-fg, #1b2430); }
.hm-rank .hm-num--strong { color: var(--au-primary, #fb7299); font-weight: 800; }
.hm-rank__no { display: inline-flex; align-items: center; justify-content: center; width: 1.7em; height: 1.7em; border-radius: var(--au-r-sm, 6px); background: var(--au-sub, #eef1f6); color: var(--au-muted, #6b7280); font-family: var(--au-mono, monospace); font-weight: 800; font-size: .9em; }
.hm-rank__no--1 { background: var(--au-warn-tint, rgba(233,162,59,.15)); color: var(--au-warn, #e9a23b); }
.hm-rank__no--2 { background: var(--au-sub, #eef1f6); color: var(--au-muted, #6b7280); }
.hm-rank__no--3 { background: var(--au-warn-tint, rgba(233,162,59,.15)); color: var(--au-warn, #e9a23b); opacity: .8; }
.hm-user { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; }
.hm-user img { vertical-align: middle; }

/* ④ 群聊区 */
.hm-live { display: inline-flex; align-items: center; gap: .4em; padding: .12em .6em; border-radius: var(--au-r-pill, 999px); background: var(--au-primary-tint, rgba(251,114,153,.12)); color: var(--au-primary, #fb7299); font-size: .76em; font-weight: 800; letter-spacing: .5px; }
.hm-live i { width: .5em; height: .5em; border-radius: 50%; background: var(--au-primary, #fb7299); animation: hm-pulse 1.4s infinite; }
@keyframes hm-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.hm-countdown { font-family: var(--au-mono, monospace); font-size: .8em; color: var(--au-muted, #6b7280); }
.hm-shout-frame { display: block; width: 100%; height: 20em; border: 1px solid var(--au-border, #e4e8ef); border-radius: var(--au-r, 10px); background: transparent; }
.hm-chat-form { display: flex; align-items: center; gap: .5em; margin-top: .8em; flex-wrap: wrap; }
.hm-chat-form label { font-size: .9em; color: var(--au-muted, #6b7280); white-space: nowrap; }
.hm-input {
  flex: 1 1 12em; min-width: 0; padding: .55em .9em; font-size: .92em;
  color: var(--au-fg, #1b2430); background: var(--au-card, #ffffff);
  border: 1px solid var(--au-border, #e4e8ef); border-radius: var(--au-r-pill, 999px);
  outline: none; font-family: inherit; transition: border-color .18s, box-shadow .18s;
}
.hm-input:focus { border-color: var(--au-primary, #fb7299); box-shadow: 0 0 0 3px var(--au-primary-tint, rgba(251,114,153,.12)); }
.hm-emoji-row { margin-top: .6em; display: flex; flex-wrap: wrap; gap: .3em; }
.hm-emoji-row img { max-height: 1.6em; width: auto; }
.hm-emoji-row a { display: inline-flex; padding: .2em; border-radius: var(--au-r-sm, 6px); }
.hm-emoji-row a:hover { background: var(--au-primary-tint, rgba(251,114,153,.12)); }

/* ⑤ 可选模块小卡 */
.hm-mini__title { font-size: .95em; font-weight: 800; margin-bottom: .6em; display: flex; align-items: center; gap: .4em; color: var(--au-fg, #1b2430); }
.hm-mini__title .hm-ic { color: var(--au-primary, #fb7299); }
.hm-mini__list { list-style: none; margin: 0; padding: 0; font-size: .88em; }
.hm-mini__list li { padding: .45em 0; border-bottom: 1px solid var(--au-border, #e4e8ef); display: flex; gap: .5em; align-items: baseline; min-width: 0; }
.hm-mini__list li:last-child { border-bottom: 0; }
.hm-mini__list a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hm-mini__meta { margin-left: auto; color: var(--au-muted, #6b7280); font-size: .9em; white-space: nowrap; font-family: var(--au-mono, monospace); }
.hm-mini__stat { display: flex; align-items: center; gap: .5em; font-size: .85em; color: var(--au-muted, #6b7280); }
.hm-mini__stat i { width: .55em; height: .55em; border-radius: 50%; background: var(--au-ok, #2e9e6b); }
.hm-poll__q { font-size: .9em; font-weight: 700; margin-bottom: .7em; color: var(--au-fg, #1b2430); }
.hm-poll__opt { margin-bottom: .55em; font-size: .86em; }
.hm-poll__opt > span { display: flex; justify-content: space-between; margin-bottom: .2em; }
.hm-poll__opt b { font-family: var(--au-mono, monospace); color: var(--au-primary, #fb7299); }
.hm-poll-form { display: flex; flex-direction: column; gap: .35em; align-items: flex-start; font-size: .86em; }
.hm-poll__radio { display: inline-flex; align-items: center; gap: .3em; cursor: pointer; }
.hm-poll-form .hm-btn { margin-top: .4em; }
.hm-uptime { font-family: var(--au-mono, monospace); font-size: .8em; color: var(--au-muted, #6b7280); line-height: 1.8; word-break: break-all; }
.hm-extra { margin-bottom: 1.3em; }

/* ⑥ 底部信息条 */
.hm-footer-bar { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4em; margin-top: 2em; padding: 1.1em 1.2em; border: 1px solid var(--au-border, #e4e8ef); border-radius: var(--au-r-lg, 16px); background: var(--au-sub, #eef1f6); }
.hm-footer-bar h4 { margin: 0 0 .4em; font-size: .9em; font-weight: 800; color: var(--au-muted, #6b7280); }
.hm-footer-bar p { margin: 0; font-size: .82em; color: var(--au-muted, #6b7280); line-height: 1.75; }
.hm-footer-bar__apply { color: var(--au-accent, #00a1d6); font-size: .8em; font-weight: 500; }
.hm-links { display: flex; gap: .5em; flex-wrap: wrap; }
.hm-links a { display: inline-flex; align-items: center; gap: .3em; padding: .3em .8em; border-radius: var(--au-r-pill, 999px); background: var(--au-card, #ffffff); border: 1px solid var(--au-border, #e4e8ef); font-size: .84em; color: var(--au-fg, #1b2430); }
.hm-links a .hm-ic { width: 1em; height: 1em; }
.hm-links a:hover { border-color: var(--au-primary, #fb7299); color: var(--au-primary, #fb7299); }

/* 新版首页响应式 */
@media (max-width: 1200px) {
  .hm-grid-c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hm-grid-a, .hm-grid-b { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .hm-main { padding: 1em; }
  .hm-grid-c { grid-template-columns: minmax(0, 1fr); }
  .hm-footer-bar { grid-template-columns: minmax(0, 1fr); }
  .hm-rank-wrap { min-height: 16em; }
  .hm-shout-frame { height: 17em; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-card, .hm-btn, .hm-tab, .hm-news-item__chev { transition: none !important; }
  .hm-live i { animation: none !important; }
}
