/* =========================
   Global / Theme
========================= */
:root{
  --bg:#0b1020;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.09);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.68);
  --border:rgba(255,255,255,.12);
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:18px;
  --max:1100px;
  --primary:#6ee7ff;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,"PingFang SC","Microsoft YaHei",Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 900px at 15% 10%, rgba(110,231,255,.14), transparent 60%),
    radial-gradient(900px 700px at 85% 15%, rgba(167,198,255,.12), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{ color:rgba(167,198,255,.95); text-decoration:none; }
/* 默认 hover 不强制下划线（更干净） */
a:hover{ text-decoration:none; }
/* 只对正文“文字链接”显示下划线 */
.breadcrumb a:hover,
.meta a:hover,
.section p a:hover,
.section li a:hover{
  text-decoration:underline;
}

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.main{ padding:18px 0 50px; }

.muted{ color:var(--muted); }
.nowrap{ white-space:nowrap; }

/* =========================
   Topbar / Nav
========================= */
/* Topbar：用 fixed 彻底规避 sticky/backdrop-filter 偶发位移 */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(11,16,32,.72);
  border-bottom: 1px solid var(--border);
}

/* 给页面内容让位（高度由 JS 写入 --topbar-h） */
body{
  padding-top: var(--topbar-h, 72px);
}


.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{ display:flex; align-items:center; gap:10px; }
.brand img{ height:34px; width:auto; }

.nav{ display:flex; gap:10px; flex-wrap:wrap; }
.nav a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.nav a:hover{ background:rgba(255,255,255,.06); }
.nav a.active{
  background:rgba(255,255,255,.10);
  border-color:rgba(110,231,255,.22);
}
/* =========================
   Home (new layout)
========================= */

.home-hero{
  align-items: center; /* 让 logo 和文字更协调 */
}

.home-logo{
  object-fit: contain;
  padding: 10px;
  background: rgba(0,0,0,.12);
}

/* 左右两栏：桌面两栏，移动端单栏 */
.home-layout{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
}

@media (max-width: 980px){
  .home-layout{ grid-template-columns: 1fr; }
}

/* 首页入口卡片 hover：和建筑/英雄/专家同款（无扫光） */
.link-card{
  display:block;
  text-decoration:none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

.link-card:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

.link-card:focus-visible{
  outline:2px solid rgba(110,231,255,.38);
  outline-offset:2px;
}

/* 首页 grid 想更“首页感”：桌面 3 列更舒服 */
.home-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .home-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .home-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Page Shell
========================= */
.breadcrumb{
  color:rgba(255,255,255,.55);
  font-size:13px;
  margin:6px 0 14px;
}

.panel{
  border:1px solid var(--border);
  background:var(--panel);
  border-radius:22px;
  box-shadow:var(--shadow);
  overflow:hidden;
}

.header{
  display:flex;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
  padding:18px;
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.03);
}

.section{ padding:18px; }

.h1{
  margin:0 0 6px;
  font-size:24px;
  letter-spacing:.2px;
  font-weight:900;
}

.meta{
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

/* =========================
   Avatars (detail vs list)
========================= */
.avatar{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  object-fit:cover;
  flex:0 0 auto;
}

/* 详情页头部头像：88 */
.header .avatar{
  width:88px;
  height:88px;
  border-radius:18px;
}

/* 列表卡片头像：64 */
.hero-card .avatar,
.expert-card .avatar,
.pet-card .avatar{
  width:64px;
  height:64px;
  border-radius:16px;
}

/* =========================
   Pills / Tags
========================= */
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.85);
  font-size:12px;
  margin-right:8px;
  margin-top:6px;
}
.pill b{ color:var(--primary); }

.tags{
  margin-top:6px;
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.tag{
  display:inline-flex;
  gap:6px;
  align-items:center;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.04);
  padding:3px 8px;
  font-size:12px;
  margin:2px 6px 2px 0;
  color:rgba(255,255,255,.86);
  white-space:nowrap;
}
.tag b{ color:var(--primary); font-weight:900; }
.tag img.icon{
  width:16px;
  height:16px;
  object-fit:contain;
  border-radius:4px;
}

/* =========================
   Cards / Grids
========================= */
.card{
  border:1px solid rgba(255,255,255,.10);
  background:var(--panel2);
  border-radius:var(--radius);
  padding:14px;
}
.card h2{ margin:0 0 10px; font-size:16px; }

.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
@media (max-width:820px){
  .grid2{ grid-template-columns:1fr; }
}

/* list 网格：3列 */
.grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
@media (max-width:980px){
  .grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:560px){
  .grid{ grid-template-columns:1fr; }
}

.gen-title,
.group-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px;
  font-size:16px;
  font-weight:900;
}

/* list 卡片内容 */
.hero-card,
.expert-card,
.pet-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
}
.name{
  font-weight:900;
  font-size:15px;
  margin:0 0 4px;
}
.sub{
  color:rgba(255,255,255,.72);
  font-size:12px;
  line-height:1.5;
}

/* =========================
   Toolbar / Search (list)
========================= */
.toolbar{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}

.search{
  flex:1;
  min-width:240px;
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.12);
}

.search input{
  width:100%;
  border:0;
  outline:none;
  background:transparent;
  color:rgba(255,255,255,.92);
  font-size:14px;
}

.search .hint{
  color:rgba(255,255,255,.55);
  font-size:12px;
  white-space:nowrap;
}

/* =========================
   Stat Rows (detail)
========================= */
.statrow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:8px 0;
  border-top:1px solid rgba(255,255,255,.08);
}
.statrow:first-of-type{ border-top:0; }
.statrow span{ color:var(--muted); }
.statrow b{ font-weight:800; }

/* =========================
   Tabs
========================= */
.tabs{
  display:flex;
  gap:8px;
  background:rgba(0,0,0,.12);
  padding:6px;
  border-radius:14px;
  margin-bottom:12px;
  flex-wrap:wrap;
}

.tab{
  flex:1;
  min-width:84px;
  text-align:center;
  border:1px solid transparent;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  background:transparent;
  color:var(--text);
  font-weight:800;
}
.tab:hover{ text-decoration:none; }
.tab.active{
  background:rgba(255,255,255,.10);
  border-color:rgba(110,231,255,.22);
}

/* =========================
   Skills
========================= */
.skill{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  margin-bottom:10px;
}
.skill .icon{
  width:56px;
  height:56px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  object-fit:cover;
  flex:0 0 auto;
}
.skill h3{ margin:0 0 6px; font-size:15px; }
.skill p{
  margin:0;
  color:rgba(255,255,255,.78);
  line-height:1.6;
  font-size:13px;
}
.inc{
  margin-top:6px;
  color:rgba(110,231,255,.9);
  font-weight:700;
  font-size:12px;
}

/* =========================
   Tables (base)
========================= */
table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
th, td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  vertical-align:top;
}
thead th{
  color:rgba(255,255,255,.85);
  font-weight:900;
  background:rgba(255,255,255,.04);
}
.tfoot td{
  background:rgba(255,255,255,.06);
  font-weight:900;
}

/* =========================
   Tablewrap (sticky header/col) - 用于“好感度/材料”这种大表
========================= */
.tablewrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.10);
}

/* 避免列挤压：仅 tablewrap 内的表给 min-width */
.tablewrap table{
  border-collapse:separate;
  border-spacing:0;
  min-width:980px;
}

.tablewrap thead th{
  position:sticky;
  top:0;
  z-index:5;
  background:rgba(18,24,44,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(255,255,255,.10);
}

.stickycol{
  position:sticky;
  left:0;
  z-index:6;
  background:rgba(18,24,44,.92);
  backdrop-filter:blur(8px);
  border-right:1px solid rgba(255,255,255,.08);
  width:70px;
  min-width:70px;
  font-weight:900;
}

.tablewrap tbody .stickycol{
  background:rgba(18,24,44,.55);
}

.tablewrap tbody tr:nth-child(odd) td{ background:rgba(255,255,255,.02); }
.tablewrap tbody tr:hover td{ background:rgba(255,255,255,.04); }

.tablewrap .tfoot .stickycol{
  background:rgba(18,24,44,.92);
}

/* 单元格盒子（材料/加成更易读） */
.cell{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  border-radius:12px;
  padding:10px;
}
.cell + .cell{ margin-top:8px; }

.cell-title{
  font-size:12px;
  font-weight:900;
  opacity:.8;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:8px;
}
.cell-title:after{
  content:"";
  height:1px;
  flex:1;
  background:rgba(255,255,255,.08);
}

.mrow{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:4px 0;
  border-top:1px dashed rgba(255,255,255,.08);
}
.mrow:first-child{ border-top:0; }

.mleft{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.micon{
  width:18px;
  height:18px;
  border-radius:6px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.25);
  object-fit:cover;
  flex:0 0 auto;
}
.mname{
  color:rgba(255,255,255,.82);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mval{
  font-weight:900;
  color:rgba(255,255,255,.92);
}

.bonuses{
  margin:0;
  padding-left:16px;
  color:rgba(255,255,255,.85);
  line-height:1.6;
}
.bonuses li{ margin:2px 0; }
/* =========================
   Building List
========================= */
.building-item{
  display:flex;
  gap:12px;
  align-items:center;
  text-decoration:none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.building-item:hover{
  transform: translateY(-1px);
  border-color: rgba(110,231,255,.22);
  background: rgba(255,255,255,.11);
}

.building-item:focus-visible{
  outline: 2px solid rgba(110,231,255,.35);
  outline-offset: 2px;
}

.building-icon{
  width:56px;
  height:56px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  object-fit: cover;
  flex: 0 0 auto;
}

.building-body{
  min-width:0;
}

.building-body .name{
  margin:0 0 4px;
}

.building-body .sub{
  margin:0;
  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
/* =========================
   Building List (polished)
========================= */

/* 分类块：比“外层 card 套内层 card”干净 */
.category-block{
  margin-bottom:16px;
  padding:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
}

.category-title{
  font-size:16px;
  font-weight:900;
  margin:0 0 12px;
  letter-spacing:.2px;
  display:flex;
  align-items:center;
  gap:10px;
}
.category-title::after{
  content:"";
  height:1px;
  flex:1;
  background: rgba(255,255,255,.10);
  opacity:.8;
}

/* 建筑卡片（不再用 .card，避免嵌套脏） */
.building-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;

  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.09);
  text-decoration:none;

  min-height:86px;

  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

/* hover：上浮 + 微横移 + 发光边框 */
.building-card:hover{
  transform: translateY(-3px) translateX(1px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}



.building-card:hover::before{ opacity:1; }

/* 图标“容器”= 统一视觉框架 */
.building-thumb{
  width:56px;
  height:56px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(110,231,255,.14), transparent 60%),
    rgba(0,0,0,.18);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
}

/* 关键：统一“限制” —— 不裁切，用 contain + 留白 */
.building-thumb img{
  width:100%;
  height:100%;
  object-fit: contain;     /* 不会把奇形怪状图标裁掉 */
  padding:8px;             /* 统一留白，看起来就规整 */
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
}

/* 文本 */
.building-body{
  min-width:0;
  flex:1;
}

.building-name{
  font-weight:900;
  font-size:15px;
  margin:0 0 4px;
}

.building-desc{
  color: rgba(255,255,255,.72);
  font-size:12px;
  line-height:1.5;

  display:-webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

/* 右侧 CTA：比一个大箭头更“像按钮”，也更统一 */
.building-cta{
  flex:0 0 auto;
  font-size:12px;
  font-weight:900;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(110,231,255,.22);
  background: rgba(110,231,255,.10);
  color: rgba(255,255,255,.90);
  opacity:.85;
  transition: transform .18s ease, opacity .18s ease;
}
.building-card:hover .building-cta{
  opacity:1;
  transform: translateX(2px);
}

/* 键盘可访问性 */
.building-card:focus-visible{
  outline:2px solid rgba(110,231,255,.38);
  outline-offset:2px;
}
/* 建筑详情页 header 微调：更协调、更干净 */
.building-header{
  align-items:center;        /* 头像和文字垂直居中 */
}

.building-head-body{
  min-width:0;
}

.building-header .meta{
  margin-top:6px;
  max-width: 72ch;           /* 简介别一行拉太长 */
}

/* 建筑图标别裁切：用 contain + 留白，统一更好看 */
.building-avatar{
  object-fit: contain;
  padding:10px;
  background: rgba(0,0,0,.12);
}
/* 让 a.card.expert-item 像 building-card 一样工作 */
a.card.expert-item{
  display:block;            /* 保证整张卡可点，布局稳定 */
  text-decoration:none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

a.card.expert-item:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

a.card.expert-item:focus-visible{
  outline:2px solid rgba(110,231,255,.38);
  outline-offset:2px;
}

/* 头像统一：不裁切，用 contain + 留白，看起来更“图标化”一致 */
a.card.expert-item .avatar{
  object-fit: contain;      /* 原来是 cover，容易裁掉脸/边缘 */
  padding:10px;             /* 统一留白 */
  background: rgba(0,0,0,.12);
}

/* 可选：hover 时让头像更亮一点（很克制） */
a.card.expert-item:hover .avatar{
  filter: brightness(1.06);
}
/* =========================
   Hero List (match Building)
========================= */

a.card.hero-item{
  display:block;
  text-decoration:none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}

a.card.hero-item:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

a.card.hero-item:focus-visible{
  outline:2px solid rgba(110,231,255,.38);
  outline-offset:2px;
}

/* 头像统一：不裁切，用 contain + 留白（和建筑图标一致的“规整感”） */
a.card.hero-item .avatar{
  object-fit: contain;
  padding:10px;
  background: rgba(0,0,0,.12);
}

/* 可选：hover 时头像微亮一点（很克制） */
a.card.hero-item:hover .avatar{
  filter: brightness(1.06);
}
/* =========================
   Fix: nested container (base 已包 container，页面又包一层时避免变窄)
========================= */
.main .container .container{
  width: 100%;
  margin: 0;
}

/* =========================
   Home: components missing in site.css
========================= */

/* 顶部 Hero：提高选择器权重，避免被 .header 覆盖 */
.header.home-hero{
  align-items: center;
}

/* 首页 logo：提高权重，避免被 .avatar 的 object-fit:cover 覆盖 */
.header .avatar.home-logo{
  object-fit: contain;
  padding: 10px;
  background: rgba(0,0,0,.12);
}

/* 两栏布局 */
.home-layout{
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
}
@media (max-width: 980px){
  .home-layout{ grid-template-columns: 1fr; }
}

/* 侧栏：卡片垂直间距 */
.home-side{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 首页入口卡片 hover：与你的 building/hero/expert 同款（无扫光） */
.card.link-card{
  display: block;
  text-decoration: none;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease,
    box-shadow .18s ease;
}
.card.link-card:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}
.card.link-card:focus-visible{
  outline: 2px solid rgba(110,231,255,.38);
  outline-offset: 2px;
}

/* 首页 grid：提高权重，避免被 .grid 覆盖 */
.grid.home-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .grid.home-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px){
  .grid.home-grid{ grid-template-columns: 1fr; }
}

/* 首页卡片内的小字体系（你旧内联 CSS 里有，但 site.css 没有） */
.kicker{
  color: rgba(255,255,255,.65);
  font-size: 12px;
  margin-bottom: 6px;
}
.title{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}
.desc{
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

/* 首页按钮（你旧内联 CSS 里有，但 site.css 没有） */
.cta{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  font-weight: 800;
  cursor: pointer;
}
.btn:hover{
  background: rgba(255,255,255,.10);
}

/* 侧栏/说明用列表（你旧内联 CSS 里有，但 site.css 没有） */
.list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}
.list li{ margin: 6px 0; }

/* =========================
   Home - Report Board (mobile screenshots)
========================= */

.report-board{
  padding: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: 18px;
  margin-bottom: 14px;
}

/* 横向滑动条：移动端很友好 */
.report-strip{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;      /* 每张卡的宽度 */
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.report-strip::-webkit-scrollbar{ height: 10px; }
.report-strip::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.12);
  border-radius: 999px;
}

/* 战报卡片：像“手机屏幕”一样展示，不裁切 */
.report-card{
  display: block;
  scroll-snap-align: start;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.report-card:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}
.report-card:focus-visible{
  outline: 2px solid rgba(110,231,255,.38);
  outline-offset: 2px;
}

/* 手机截图容器：固定 9:16 比例，更像“手机” */
.report-shot{
  aspect-ratio: 9 / 16;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(110,231,255,.10), transparent 60%),
    rgba(0,0,0,.20);
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-shot img{
  width: 100%;
  height: 100%;
  object-fit: contain;     /* 关键：不裁切，完整展示手机截图 */
  padding: 10px;           /* 留白更像“屏幕” */
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.28));
}

.report-cap{
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.report-title{
  font-weight: 900;
  font-size: 13px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.report-badge{
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(110,231,255,.22);
  background: rgba(110,231,255,.10);
  color: rgba(255,255,255,.90);
}


/* =========================
   Articles (list + detail)
========================= */

/* 列表卡片 hover：统一“建筑同款” */
a.card.article-item{
  display:block;
  text-decoration:none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
a.card.article-item:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}
a.card.article-item:focus-visible{
  outline:2px solid rgba(110,231,255,.38);
  outline-offset:2px;
}

.article-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

/* 封面：手机截图/长图也不裁切 */
.article-cover{
  width:72px;
  height:72px;
  border-radius:16px;
  object-fit: contain;
  padding:8px;
  background: rgba(0,0,0,.12);
  flex:0 0 auto;
}
.article-cover-ph{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color: rgba(255,255,255,.70);
}

/* 详情页正文：让 TinyMCE 输出更“资料站风格” */
.article-content{
  color: rgba(255,255,255,.86);
  line-height: 1.85;
  font-size: 14px;
}
.article-content h2,
.article-content h3{
  margin: 16px 0 8px;
}
.article-content p{ margin: 10px 0; }
.article-content ul,
.article-content ol{ padding-left: 18px; }

/* 关键：手机截图/长图不裁切 + 限高更好读 */
.article-content img{
  max-width: 100%;
  height: auto;
  display: block;
  /*margin: 12px auto;*/
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.10);
  padding: 10px;
  object-fit: contain;
  max-height: 75vh;
}

/* 引用/代码 */
.article-content blockquote{
  margin: 12px 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(110,231,255,.35);
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  color: rgba(255,255,255,.80);
}
.article-content pre{
  overflow:auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}
.article-content code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}








/* 详情页“截图库”卡片：手机比例容器 */
a.card.shot-item{
  text-decoration:none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
a.card.shot-item:hover{
  transform: translateY(-3px);
  border-color: rgba(110,231,255,.30);
  background: rgba(255,255,255,.12);
  box-shadow: 0 16px 40px rgba(0,0,0,.30);
}

.shot-box{
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.shot-box img{
  width:100%;
  height:100%;
  object-fit: contain;
  padding: 10px;
}

/* 分页 */
.pagination{
  margin-top: 14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
/* ===== buttons small ===== */
.btn.btn-mini{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

/* ===== Gift Codes table ===== */
table.codes .codecell .code{
  font-weight: 900;
  letter-spacing: .3px;
}
table.codes tr.is-expired{
  opacity: .6;
}
.pill.pill-ok{
  border-color: rgba(110,231,255,.22);
  background: rgba(110,231,255,.10);
}
.pill.pill-bad{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}

/* ===== Lightbox ===== */
.lb{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
.lb.open{ display:block; }

.lb-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
}

.lb-dialog{
  position:absolute;
  inset: 24px;
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#lbImg{
  max-width: min(980px, 92vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding: 10px;
}

.lb-cap{
  max-width: min(980px, 92vw);
  color: rgba(255,255,255,.78);
  font-size: 13px;
  text-align: center;
}

.lb-close{
  position:absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size: 22px;
  cursor: pointer;
}

/* 让图库按钮看起来像卡片（button 去默认样式） */
button.card.shot-item{
  width: 100%;
  text-align: left;
  cursor: zoom-in;
}
button.card.shot-item{
  border:1px solid rgba(255,255,255,.10);
  background: var(--panel2);
}
button.card.shot-item:focus-visible{
  outline:2px solid rgba(110,231,255,.38);
  outline-offset:2px;
}
/* 让 report-card 用 button 时不丑 */
button.report-card{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
}

/* 首页礼包码表格更紧凑一点 */
table.codes.codes-mini th,
table.codes.codes-mini td{
  padding: 10px 12px;
}
table.codes .codecell .code{
  font-weight: 900;
  letter-spacing: .3px;
}
.btn.btn-mini{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
}

/* Lightbox（如果你已在其它页面加过，可以复用） */
.lb{ position:fixed; inset:0; z-index:999; display:none; }
.lb.open{ display:block; }
.lb-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.65); backdrop-filter: blur(6px); }
.lb-dialog{ position:absolute; inset:24px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; }
#lbImg{
  max-width:min(980px, 92vw);
  max-height:82vh;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding:10px;
}
.lb-cap{ max-width:min(980px, 92vw); color:rgba(255,255,255,.78); font-size:13px; text-align:center; }
.lb-close{
  position:absolute; top:14px; right:14px;
  width:40px; height:40px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.9);
  font-size:22px;
  cursor:pointer;
}

.article-mini{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.article-mini__thumb{
  width: 92px;
  flex: 0 0 92px;
}

.article-mini__thumb img,
.article-mini__ph{
  width:92px;
  height:92px;
  border-radius: 16px;
  object-fit: cover;
  display:block;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}

.article-mini__ph{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  opacity:.7;
}

.article-mini__body{
  min-width: 0;
  flex:1;
}

.article-mini__title{
  margin-top: 4px;
  line-height: 1.25;
}

.article-mini__desc{
  margin-top: 6px;
}
/* 首页顶栏（更简洁） */
.home-top{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom: 8px;
}
.home-brand{
  display:flex;
  gap:12px;
  align-items:center;
}
.home-logo{
  width:56px;height:56px;border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.home-title{ min-width:0; }
.home-search input{
  width:100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: inherit;
}
.home-badges{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }

/* 入口网格：移动端 2 列，桌面 3 列 */
.home-entry-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 920px){
  .home-entry-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 推荐文章：手机信息流卡片（大图 + 渐变遮罩） */
.home-feed{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.feed-card{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  text-decoration:none;
}

.feed-media{
  position:relative;
  height: 170px;
}
@media (min-width: 920px){
  .feed-media{ height: 210px; }
}

.feed-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: saturate(1.05);
}

.feed-grad{
  position:absolute;
  inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.62), rgba(0,0,0,.06));
}

.feed-body{
  position:absolute;
  left:0; right:0; bottom:0;
  padding: 14px 14px 12px;
  color: rgba(255,255,255,.92);
}

.feed-topline{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 8px;
}

.feed-title{
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.feed-desc{
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}

.feed-meta{
  margin-top: 10px;
  display:flex;
  gap:12px;
  font-size:12px;
  color: rgba(255,255,255,.70);
}

/* 礼包码：移动端列表 */
.codes-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.code-item{
  display:flex;
  gap:12px;
  align-items:flex-start;
  justify-content:space-between;
  padding: 12px 12px;
}
.code-left{ min-width:0; flex:1; }
.code-right{ white-space:nowrap; font-size:12px; padding-top:2px; }
.code-main{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.code-text{
  font-weight: 950;
  letter-spacing: .4px;
  font-size: 15px;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn.btn-mini{
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
}
/* 推荐文章：默认一行4个 */
.home-article-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

/* 手机屏幕更窄时自动降列，避免太挤 */
@media (max-width: 480px){
  .home-article-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 481px) and (max-width: 820px){
  .home-article-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


.card.a3{
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
}

.a3-thumb{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; /* 方形缩略图，更像手机资讯/小红书那种 */
  background: rgba(255,255,255,.04);
}

.a3-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.a3-badges{
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.a3-badges .pill{
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.38);
  color: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
}
.a3-body{
  padding: 10px 10px 12px;
}

.a3-title{
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 标题最多两行 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;            /* 保持卡片高度更整齐 */
}

.a3-meta{
  margin-top: 6px;
  font-size: 12px;
  opacity: .72;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
/* 首页礼包码：更协调的移动端卡片 */
.codes-box{
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.code-row{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}

.code-left{
  min-width: 0;
  flex: 1;
}

.code-topline{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.code-chip{
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 950;
  letter-spacing: .6px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.code-pill{
  font-size: 12px;
  opacity: .85;
}

.code-reward{
  margin-top: 6px;
  font-size: 12px;
  opacity: .74;
  line-height: 1.35;

  /* 奖励文案过长时更舒服 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.code-actions{
  flex: 0 0 auto;
}

.btn.btn-mini{
  padding: 8px 10px;
  border-radius: 14px;
  font-size: 12px;
}

/* 空态更好看 */
.codes-empty{
  padding: 14px 10px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}


/* footer 自动顶到最底 */
.site-footer{ margin-top: auto; }
/* ===== Footer UI ===== */
.site-footer{
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(11,16,32,.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.footer-grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: end;
}

.footer-title{
  font-weight: 950;
  margin-bottom: 10px;
  opacity: .92;
}

.footer-text{
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  font-size: 13px;
  max-width: 72ch;
}

.footer-right{
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.footer-badges{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-badge img{
  height: 44px;
  width: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
}

.footer-links{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  font-size: 13px;
}

.footer-links a{
  color: rgba(255,255,255,.78);
}
.footer-links a:hover{
  color: rgba(110,231,255,.95);
  text-decoration: none;
}
.footer-links .dot{
  opacity: .35;
}

.footer-bottom{
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,.70);
}

/* 小屏：变成上下排列 */
@media (max-width: 820px){
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-right{ align-items: flex-start; }
  .footer-badges, .footer-links{ justify-content: flex-start; }
}
/* =========================
   Mobile Nav: logo一行 + nav下一行横滑
========================= */
@media (max-width: 820px){
  .topbar-inner{
    flex-wrap: wrap;          /* 允许换行：nav 下到第二行 */
    gap: 10px;
    padding: 10px 0;
    justify-content: flex-start;
  }

  .brand img{ height: 30px; }

  .nav{
    flex: 0 0 100%;           /* nav 占满一整行 */
    order: 3;
    justify-content: flex-start;

    flex-wrap: nowrap;        /* 不换行 */
    overflow-x: auto;         /* 横向滚动 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;

    padding-top: 8px;
  }
  .nav::-webkit-scrollbar{ display:none; }

  .nav a{
    white-space: nowrap;
    flex: 0 0 auto;
    padding: 7px 9px;
    font-size: 13px;
  }

  /* 可选：左右渐隐提示“可横滑”（不喜欢就删掉这段） */
  .nav{
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  }
}


