/* 51吃瓜网 · 文件10 · 全新风格：Neo-Brutal 编辑便签 + Story 分镜 + 节点图谱 */
:root{
  color-scheme: light;
  --bg:#f6f3ff;
  --paper:#ffffff;
  --ink:#0b1020;
  --muted: rgba(11,16,32,.72);
  --muted2: rgba(11,16,32,.56);
  --line:#0b1020;
  --line2: rgba(11,16,32,.18);
  --shadow: 10px 10px 0 rgba(11,16,32,.92);
  --shadow2: 6px 6px 0 rgba(11,16,32,.88);
  --r1: 18px;
  --r2: 14px;
  --wrap: 1180px;

  --p:#7c3aed;
  --c:#06b6d4;
  --y:#f59e0b;
  --g:#22c55e;
  --r:#ef4444;
}
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC","Noto Sans SC",sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(124,58,237,.14), transparent 60%),
    radial-gradient(900px 520px at 92% 10%, rgba(6,182,212,.10), transparent 55%),
    radial-gradient(860px 520px at 55% 120%, rgba(245,158,11,.10), transparent 58%),
    linear-gradient(180deg, #fff, var(--bg));
}

/* 防止任何宽度出现“竖排挤压/超长词断裂异常” */
body, input, button{
  word-break: break-word;
  overflow-wrap: anywhere;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ width:100%; max-width: var(--wrap); margin:0 auto; padding:0 18px; }
.sr-only{
  position:absolute!important; width:1px;height:1px;
  overflow:hidden; clip: rect(1px,1px,1px,1px); white-space:nowrap;
}
.skip{
  position:absolute; left:-999px; top:10px;
  padding:10px 12px; border-radius: 12px;
  background: var(--paper); border:2px solid var(--line); box-shadow: var(--shadow2);
}
.skip:focus{ left:12px; z-index: 99; }

/* 顶部：便签式栏 + 频道 Tab */
.mast{
  position: sticky;
  top:0;
  z-index: 60;
  background: rgba(246,243,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(11,16,32,.10);
}
.top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0 10px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 260px;
}
.mark{
  width: 44px; height:44px;
  border-radius: 14px;
  display:grid; place-items:center;
  border:2px solid var(--line);
  background: linear-gradient(135deg, rgba(124,58,237,.18), rgba(6,182,212,.12));
  box-shadow: var(--shadow2);
  font-weight: 1000;
}
.brand small{ display:block; margin-top:2px; font-size:12px; color: var(--muted2); }

.search{
  display:flex; align-items:center; gap: 10px;
  min-width: 320px;
}
.search input{
  width:100%;
  padding: 10px 12px;
  border-radius: 14px;
  border:2px solid var(--line);
  background: #fff;
  outline:none;
}
.search input:focus{
  box-shadow: 0 0 0 4px rgba(124,58,237,.14);
}
.search button{
  padding: 10px 12px;
  border-radius: 14px;
  border:2px solid var(--line);
  background: #fff;
  cursor:pointer;
  box-shadow: var(--shadow2);
  font-weight: 900;
}
.search button:hover{ transform: translateY(-1px); }

.tabs{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  padding: 0 0 12px;
}
.tabs a{
  padding: 8px 12px;
  border-radius: 999px;
  border:2px solid var(--line);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(11,16,32,.88);
  color: rgba(11,16,32,.90);
  font-size: 13px;
}
.tabs a.on{
  background: linear-gradient(135deg, rgba(239,68,68,.12), rgba(245,158,11,.12));
}
.tabs a:hover{ transform: translateY(-1px); }

main{ padding: 16px 0 48px; }

/* 首页：主卡堆叠（左） + Story（右） */
.hero{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 12px;
  align-items: start;
  margin: 12px 0 14px;
}
.leadcard{ min-width: 0; }
.story{ min-width: 0; }
.card{
  border-radius: var(--r1);
  border:2px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.leadcard{
  padding: 16px;
  position: relative;
  overflow:hidden;
}
.leadcard:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(700px 340px at 18% 0%, rgba(124,58,237,.16), transparent 60%),
    radial-gradient(680px 360px at 92% 10%, rgba(6,182,212,.12), transparent 58%),
    radial-gradient(680px 360px at 55% 120%, rgba(245,158,11,.12), transparent 60%);
  pointer-events:none;
}
.leadcard > *{ position: relative; }
.leadcard h1{
  margin:0 0 10px;
  font-size: 34px;
  line-height: 1.12;
}
.lead{
  margin:0;
  color: var(--muted);
  max-width: 74ch;
}
.actions{
  display:flex; flex-wrap:wrap; gap: 10px;
  margin-top: 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border:2px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  font-weight: 1000;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(6,182,212,.12));
}
.btn.warn{
  background: linear-gradient(135deg, rgba(239,68,68,.14), rgba(245,158,11,.12));
}
.btn:hover{ transform: translateY(-1px); }

.peek{
  margin-top: 14px;
  border-radius: 16px;
  border:2px solid var(--line);
  overflow:hidden;
  background: rgba(11,16,32,.02);
}
.peek img{ width:100%; height: 240px; object-fit: cover; }

/* Story 分镜：横滑 */
.story{
  padding: 14px;
}
.story-head{
  display:flex; align-items:center; justify-content:space-between; gap: 10px;
  margin-bottom: 10px;
}
.story-head strong{ font-size: 14px; }
.hint{ font-size: 12px; color: var(--muted2); }
.rail{
  display:flex;
  gap: 10px;
  overflow:auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
}
.rail::-webkit-scrollbar{ height: 10px; }
.rail::-webkit-scrollbar-thumb{ background: rgba(11,16,32,.16); border-radius: 999px; }
.shot{
  flex: 0 0 240px;
  scroll-snap-align: start;
  border-radius: 16px;
  border:2px solid var(--line);
  background:#fff;
  box-shadow: 6px 6px 0 rgba(11,16,32,.86);
  overflow:hidden;
}
.shot img{ width:100%; height: 130px; object-fit: cover; }
.shot .cap{ padding: 10px; }
.shot b{ display:block; font-size: 13px; }
.shot span{ display:block; margin-top: 4px; font-size: 12px; color: var(--muted2); }

/* 中段：事件图谱（节点网格） */
.map{
  margin-top: 14px;
  padding: 14px;
}
.map h2{ margin:0 0 10px; font-size: 16px; }
.grid{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap: 10px;
}
.node{
  grid-column: span 4;
  border-radius: 16px;
  border:2px solid var(--line);
  background:#fff;
  box-shadow: 6px 6px 0 rgba(11,16,32,.86);
  padding: 12px;
}
.node strong{ display:block; font-size: 13px; }
.node p{ margin: 6px 0 0; font-size: 12px; color: var(--muted2); }
.node .k{
  display:inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border:2px solid var(--line);
  font-size: 12px;
  font-weight: 900;
}
.k.p{ background: rgba(124,58,237,.12); }
.k.c{ background: rgba(6,182,212,.10); }
.k.y{ background: rgba(245,158,11,.12); }
.k.r{ background: rgba(239,68,68,.10); }

/* 列表页：层叠目录 + 作品卡片墙（非表格） */
.stack{
  display:grid;
  grid-template-columns: 360px 1fr;
  gap: 12px;
  align-items:start;
}
.menu{
  padding: 14px;
}
.menu h2{ margin:0 0 10px; font-size: 14px; }
.menu a{
  display:block;
  padding: 10px 10px;
  border-radius: 14px;
  border:2px solid var(--line);
  background:#fff;
  box-shadow: 4px 4px 0 rgba(11,16,32,.86);
  margin-top: 10px;
  font-weight: 900;
}
.menu a:first-of-type{ margin-top: 0; }
.menu a.on{ background: rgba(124,58,237,.10); }
.menu p{ margin: 12px 0 0; color: var(--muted2); font-size: 12px; }

.wall{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.tile{
  border-radius: 18px;
  border:2px solid var(--line);
  background:#fff;
  box-shadow: var(--shadow2);
  overflow:hidden;
  transition: .15s ease;
}
.tile:hover{ transform: translateY(-2px); }
.tile img{ width:100%; height: 160px; object-fit: cover; }
.tile .tmeta{ padding: 12px; }
.tile h3{ margin:0 0 6px; font-size: 14px; line-height:1.25; }
.tile p{ margin:0; font-size: 12px; color: var(--muted2); }

/* 内容页：便签正文 + 右侧“核验卡” */
.doc{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap: 12px;
  align-items:start;
}
.paper{
  padding: 16px;
}
.crumb{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 10px;
}
.paper h1{ margin:0 0 10px; font-size: 22px; line-height: 1.25; }
.paper h2{ margin: 16px 0 8px; font-size: 16px; }
.paper p{ margin: 10px 0; color: var(--muted); }
.paper ul{ margin: 10px 0 10px 18px; color: var(--muted); }
.timeline{
  margin-top: 12px;
  border-radius: 16px;
  border:2px solid var(--line);
  background: rgba(11,16,32,.02);
  padding: 12px;
}
.trow{
  display:grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 10px 10px;
  border-top: 2px dashed rgba(11,16,32,.20);
}
.trow:first-child{ border-top:none; }
.t{ font-weight: 1000; font-size: 12px; }
.trow b{ display:block; font-size: 13px; }
.trow span{ display:block; margin-top: 4px; font-size: 12px; color: var(--muted2); }

.aside{
  padding: 14px;
}
.aside h3{ margin:0 0 10px; font-size: 14px; }
.kv{
  display:grid;
  gap: 10px;
}
.kv div{
  padding: 10px 10px;
  border-radius: 14px;
  border:2px solid var(--line);
  background:#fff;
  box-shadow: 4px 4px 0 rgba(11,16,32,.86);
  font-size: 12px;
  color: rgba(11,16,32,.78);
}
.kv b{ color: rgba(11,16,32,.92); }
.aside .img{
  margin-top: 10px;
  border-radius: 16px;
  overflow:hidden;
  border:2px solid var(--line);
  background: rgba(11,16,32,.02);
}

.footer{
  margin-top: 22px;
  border-top: 2px solid rgba(11,16,32,.10);
  background: rgba(255,255,255,.70);
}
.footrow{
  padding: 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(11,16,32,.72);
}

/* 移动端底部导航（更像 App） */
.bottom{
  display:none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 80;
  border-radius: 18px;
  border:2px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 10px;
}
.bottom a{
  flex:1 1 0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 10px 10px;
  border-radius: 14px;
  border:2px solid transparent;
  color: rgba(11,16,32,.76);
  font-size: 12px;
  font-weight: 900;
}
.bottom a.on{
  border-color: rgba(11,16,32,.90);
  background: rgba(124,58,237,.10);
}

@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .stack{ grid-template-columns: 1fr; }
  .wall{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .doc{ grid-template-columns: 1fr; }
  .node{ grid-column: span 6; }
}

/* 中等屏幕提前切单栏，避免正文被挤成窄条 */
@media (max-width: 1120px){
  .hero{ grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .search{ display:none; }
  main{ padding-bottom: 92px; }
  .bottom{ display:flex; gap: 10px; }
  .node{ grid-column: span 12; }
}
@media (max-width: 420px){
  .wall{ grid-template-columns: 1fr; }
}

