/* JMComic网页版 · 文件19 · 客户站单页：数字出版 / 阅读器官网风格（全新骨架） */
:root{
  color-scheme: light;
  --bg:#f6f3ee;
  --paper:#ffffff;
  --ink:#0f1220;
  --muted:#2f3444;
  --muted2:#66708a;
  --line: rgba(15,18,32,.16);
  --line2: rgba(15,18,32,.10);
  --shadow: 0 22px 64px rgba(10,12,18,.10);
  --r1: 22px;
  --r2: 16px;
  --wrap: 1180px;

  --night:#0b1020;
  --gold:#d1a23a;
  --teal:#2fb8a6;
}
*{ 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.85;
  /* 统一纸感底色，避免出现“分区色块” */
  background: #ffffff;
}
body:before{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events:none;
  opacity: .05;
  background-image: radial-gradient(rgba(15,18,32,.55) 1px, transparent 1px);
  background-size: 9px 9px;
  mix-blend-mode: multiply;
}
a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{ width:min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.skip{
  position:absolute;
  left:-999px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  z-index: 50;
}
.skip:focus{ left: 12px; }

/* 顶栏：冷静出版质感 */
.top{
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line2);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
}
.topbar{
  display:grid;
  grid-template-columns: 1.15fr 1.2fr 1fr;
  gap: 14px;
  align-items:center;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
}
.mark{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 1100;
  letter-spacing:.3px;
  background:
    radial-gradient(24px 24px at 30% 30%, rgba(209,162,58,.42), transparent 64%),
    linear-gradient(135deg, var(--night), #0f1733);
  box-shadow: 0 14px 40px rgba(11,16,32,.18);
}
.word{ display:flex; flex-direction:column; min-width:0; }
.word strong{
  font-size: 15px;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.word small{ font-size: 12px; color: var(--muted2); margin-top: 2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.nav{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a{
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  color: rgba(15,18,32,.80);
  border: 1px solid transparent;
}
.nav a:hover{ border-color: rgba(15,18,32,.12); background: rgba(255,255,255,.65); }
.nav a.on{
  border-color: rgba(209,162,58,.35);
  background: rgba(209,162,58,.10);
  color: rgba(11,16,32,.94);
}

.search{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  align-items:center;
}
.search input{
  width: min(360px, 100%);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.86);
  outline: none;
  font-size: 13px;
}
.search input:focus{
  border-color: rgba(47,184,166,.45);
  box-shadow: 0 0 0 4px rgba(47,184,166,.14);
}
.search button{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,18,32,.14);
  background: rgba(255,255,255,.90);
  font-weight: 900;
  cursor:pointer;
}
.search button:hover{ border-color: rgba(15,18,32,.22); }

/* 主视觉：左文案 + 右封面墙 */
main{ padding: 18px 0 28px; }
.hero{
  display:grid;
  grid-template-columns: 1.15fr .95fr;
  gap: 16px;
  align-items: start;
  /* 明确让这一行按内容高度计算，避免等高拉伸 */
  grid-template-rows: min-content;
}
.hero-left{
  align-self: start;
  height: fit-content;
  min-height: 0;
  border-radius: var(--r1);
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
  overflow:hidden;
}
.hero-left:before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events:none;
  /* 只保留很轻的气氛光，不形成可见色块 */
  background:
    radial-gradient(520px 260px at 14% 8%, rgba(47,184,166,.10), transparent 66%),
    radial-gradient(620px 300px at 92% 10%, rgba(209,162,58,.09), transparent 66%);
  opacity: .55;
}
.hero-left > *{ position: relative; }
.kicker{
  display:flex;
  gap: 10px;
  align-items:center;
  color: rgba(15,18,32,.78);
  font-size: 12px;
}
.dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(47,184,166,.95), rgba(209,162,58,.85));
}
h1{
  margin: 10px 0 8px;
  font-size: clamp(20px, 2.8vw, 34px);
  letter-spacing:.2px;
  line-height: 1.25;
}
.lede{
  margin: 0;
  color: rgba(15,18,32,.78);
  font-size: 14px;
}
.cta{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,18,32,.14);
  background: rgba(255,255,255,.88);
  font-weight: 1000;
  font-size: 13px;
}
.btn.primary{
  border-color: rgba(209,162,58,.40);
  background: linear-gradient(180deg, rgba(209,162,58,.22), rgba(209,162,58,.08));
}
.btn.ghost{
  background: transparent;
  border-color: rgba(15,18,32,.10);
  color: rgba(15,18,32,.84);
}
.btn:hover{ border-color: rgba(15,18,32,.22); }

.pillrow{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.pill{
  border-radius: 14px;
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.72);
  padding: 10px 10px 9px;
}
.pill b{ display:block; font-size: 12px; }
.pill span{ display:block; margin-top: 4px; color: var(--muted2); font-size: 12px; }

.hero-right{
  align-self: start;
  height: fit-content;
  min-height: 0;
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.panel{
  border-radius: var(--r1);
  border: 1px solid var(--line2);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-h{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px 10px;
}
.panel-h b{ font-size: 13px; }
.panel-h span{ font-size: 12px; color: var(--muted2); }

.covers{
  display:grid;
  /* 改成“自适应封面墙”，避免出现大面积留洞 */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}
.cover{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(15,18,32,.10);
  background: rgba(255,255,255,.70);
  box-shadow: 0 10px 26px rgba(10,12,18,.08);
}
.cover img{ width:100%; height: 148px; object-fit: cover; filter: saturate(1.04) contrast(1.02); }
.cap{
  position:absolute;
  inset: auto 10px 10px 10px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(11,16,32,.62);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
}
.cap b{ display:block; font-size: 12px; }
.cap i{ display:block; margin-top: 2px; font-style: normal; font-size: 12px; color: rgba(255,255,255,.74); }
/* 取消手工跨度，交给栅格自动排布，保证“填满” */
.c1,.c2,.c3,.c4,.c5{ grid-column: auto; }
.c1 img,.c2 img{ height: 148px; }

.rank .rlist{
  list-style:none;
  padding: 0 14px 14px;
  margin: 0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.rlist li a{
  display:grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items:center;
  border-radius: 16px;
  border: 1px solid rgba(15,18,32,.10);
  background: rgba(255,255,255,.70);
  padding: 10px;
}
.rlist b{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: linear-gradient(180deg, rgba(209,162,58,.18), rgba(47,184,166,.08));
  border: 1px solid rgba(15,18,32,.10);
  font-weight: 1100;
}
.rlist span{ display:block; font-size: 13px; font-weight: 1000; }
.rlist i{ display:block; font-style: normal; margin-top: 2px; font-size: 12px; color: var(--muted2); }
.rlist li a:hover{ border-color: rgba(15,18,32,.18); }

/* 下半区：主列 + 侧栏（更符合阅读路径） */
.grid2{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
  align-items:start;
}
.side{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.feat{ padding: 14px; }
.feat h2{ margin:0; font-size: 16px; letter-spacing:.2px; }
.bullets{
  margin: 10px 0 0;
  padding: 0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.bullets li{
  border-radius: 16px;
  border: 1px solid rgba(15,18,32,.10);
  background: rgba(255,255,255,.70);
  padding: 10px 10px 9px;
}
.bullets b{ display:block; font-size: 13px; }
.bullets span{ display:block; margin-top: 3px; color: var(--muted2); font-size: 12px; }
.chips{
  margin-top: 10px;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,18,32,.12);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 900;
  color: rgba(15,18,32,.80);
}
.chip:hover{ border-color: rgba(15,18,32,.20); }

.cats{ padding: 14px; }
.cats h2{ margin:0; font-size: 16px; letter-spacing:.2px; }
.catgrid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cat{
  border-radius: 16px;
  border: 1px solid rgba(15,18,32,.10);
  /* 分类卡避免彩色底纹块，保持出版级简洁 */
  background: rgba(255,255,255,.72);
  padding: 12px 12px 11px;
}
.cat b{ display:block; font-size: 13px; }
.cat span{ display:block; margin-top: 4px; font-size: 12px; color: var(--muted2); }
.cat:hover{ border-color: rgba(15,18,32,.18); }

.upd{ padding: 14px; }
.upd h2{ margin:0; font-size: 16px; letter-spacing:.2px; }
.cal{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.day{
  border-radius: 16px;
  border: 1px solid rgba(15,18,32,.10);
  background: rgba(255,255,255,.70);
  padding: 10px 10px 9px;
}
.day b{ display:block; font-size: 13px; }
.day span{ display:block; margin-top: 3px; color: var(--muted2); font-size: 12px; }
.day i{ display:block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 1000; color: rgba(11,16,32,.78); }
.mini{
  display:inline-flex;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,18,32,.12);
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 1000;
}
.mini:hover{ border-color: rgba(15,18,32,.20); }

/* 视频导读：用于收录缩略图（封面 + 时长角标） */
.vsec{ margin-top: 14px; padding: 14px; }
.vh{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vsec h2{ margin:0; font-size: 16px; letter-spacing:.2px; }
.vsec p{ margin:8px 0 0; font-size: 12px; color: var(--muted2); }
.vgrid{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.vcard{
  border-radius: 18px;
  border: 1px solid rgba(15,18,32,.10);
  background: rgba(255,255,255,.72);
  overflow:hidden;
  box-shadow: 0 14px 46px rgba(10,12,18,.10);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.vcard:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 70px rgba(10,12,18,.14);
}
.vthumb{
  position: relative;
  aspect-ratio: 16/9;
  overflow:hidden;
  border-bottom: 1px solid rgba(15,18,32,.10);
  background: rgba(255,255,255,.70);
}
.vthumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}
.video-duration{
  position:absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.35);
  background: rgba(11,16,32,.66);
  color: rgba(255,255,255,.92);
  font-weight: 1000;
  font-size: 12px;
  letter-spacing:.2px;
  backdrop-filter: blur(8px);
}
.vmeta{ padding: 12px; }
.vmeta b{ display:block; font-size: 14px; letter-spacing:.1px; }
.vmeta span{ display:block; margin-top: 6px; font-size: 12px; color: var(--muted2); }

/* 移动端底部导航 */
.bottom{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display:none;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255,255,255,.86);
  border-top: 1px solid var(--line2);
  backdrop-filter: blur(12px);
}
.bottom a{
  flex:1;
  text-align:center;
  padding: 10px 10px;
  border-radius: 999px;
  border:1px solid rgba(15,18,32,.12);
  background: rgba(255,255,255,.72);
  font-weight: 1000;
  font-size: 13px;
  color: rgba(15,18,32,.76);
}
.bottom a.on{
  border-color: rgba(209,162,58,.38);
  background: rgba(209,162,58,.10);
  color: rgba(11,16,32,.92);
}

/* 页脚 */
.foot{
  margin-top: 16px;
  border-top: 1px solid var(--line2);
  background: transparent;
}
.footrow{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 0 18px;
  color: rgba(15,18,32,.70);
  font-size: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1060px){
  .topbar{ grid-template-columns: 1fr; }
  .nav{ justify-content:flex-start; }
  .search{ justify-content:flex-start; }
  .hero{ grid-template-columns: 1fr; }
  .pillrow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .covers{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vgrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px){
  main{ padding-bottom: 92px; }
  .bottom{ display:flex; }
  .grid2{ grid-template-columns: 1fr; }
  .covers{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vgrid{ grid-template-columns: 1fr; }
}

