/* 皮皮 AI 导航 —— 二级详情页样式（需与 style.css 一起引入） */
.dhero {
  position: relative;
  padding: 12px 20px 30px;
  background:
    radial-gradient(ellipse 55% 60% at 50% 0%, rgba(90, 82, 190, .55), transparent 72%),
    linear-gradient(180deg, #0b1030 0%, #131a44 62%, #232b55 100%);
  overflow: hidden;
}
.dhero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, #fff 99%, transparent),
    radial-gradient(1px 1px at 21% 68%, #cdd8ff 99%, transparent),
    radial-gradient(2px 2px at 33% 18%, #fff 99%, transparent),
    radial-gradient(1px 1px at 47% 62%, #ffe4a3 99%, transparent),
    radial-gradient(1.5px 1.5px at 58% 12%, #fff 99%, transparent),
    radial-gradient(1px 1px at 69% 74%, #cdd8ff 99%, transparent),
    radial-gradient(2px 2px at 79% 26%, #fff 99%, transparent),
    radial-gradient(1px 1px at 91% 56%, #ffd8a8 99%, transparent);
}
.dhero > * { position: relative; z-index: 2; }

/* 面包屑 */
.dcrumb {
  max-width: 1200px; margin: 26px auto 16px; display: flex; align-items: center;
  gap: 9px; color: #b7c0e0; font-size: 12.5px; padding: 0 4px;
}
.dcrumb a { color: #d9def5; }
.dcrumb a:hover { color: #ffd76a; }
.dcrumb span { opacity: .55; }
.dcrumb b { color: #fff; font-weight: 600; }

/* 主信息卡 */
.dhead {
  max-width: 1200px; margin: 0 auto; padding: 22px 24px;
  display: grid; grid-template-columns: 88px minmax(0, 1fr) 210px; gap: 20px; align-items: center;
  background: rgba(255, 255, 255, .97); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 16px; box-shadow: 0 18px 44px rgba(4, 9, 38, .32);
}
.dlogo {
  width: 88px; height: 88px; border-radius: 20px; object-fit: contain;
  background: #f5f7fc; border: 1px solid var(--line); padding: 8px;
}
.dhead-main { min-width: 0; }
.dhead h1 {
  margin: 0 0 7px; font-size: 26px; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dbadge {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #ffdade;
}
.dtagline { margin: 0 0 11px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.dchips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11px; color: var(--ink-2); background: #f4f6fc;
  border: 1px solid #e9edf7; border-radius: 14px; padding: 2px 9px;
}
.chip.cat { color: #4b56c9; background: #eef1ff; border-color: #dfe5ff; font-weight: 600; }
.dactions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.dbtn {
  display: inline-block; text-align: center; padding: 9px 12px; border-radius: 9px;
  font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: transform .18s, background .18s, box-shadow .18s;
}
.dbtn:hover { transform: translateY(-1px); }
.dbtn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 77, 90, .28); }
.dbtn.primary:hover { background: #e83b49; }
.dbtn.ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.dbtn.ghost:hover { border-color: #ffd0d5; color: var(--accent); }
.dback { text-align: center; font-size: 12px; color: var(--muted); margin-top: 2px; }
.dback:hover { color: var(--accent); }
.dmeta {
  max-width: 1200px; margin: 16px auto 0; padding: 0 4px;
  display: flex; flex-wrap: wrap; gap: 20px; color: #b7c0e0; font-size: 12px;
}
.dmeta b { color: #fff; font-weight: 600; }

/* 两栏主体 */
.dwrap {
  max-width: 1200px; margin: 22px auto 40px; padding: 0 20px;
  display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 18px; align-items: start;
}
.dmain, .dside { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dbox {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px 20px;
}
.dbox h2 {
  margin: 0 0 15px; font-size: 16px; font-weight: 700; color: var(--ink);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  border-left: 3px solid var(--accent); padding-left: 10px;
}
.dbox h2 em { font-style: normal; font-size: 11px; color: var(--muted); font-weight: 400; }

/* 正文 */
.dcontent { font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.dsec { padding: 0 0 15px; margin: 0 0 15px; border-bottom: 1px dashed var(--line); }
.dsec:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.dsec h2 {
  margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink);
  border: 0; padding: 0; display: block;
}
.dsec h2::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4b56c9; margin: 0 8px 2px 0; }
.dsec p { margin: 0 0 8px; }
.dsec p:last-child { margin-bottom: 0; }
.dsec .dtip { font-size: 12px; color: var(--muted); background: #f7f9fd; border-radius: 8px; padding: 8px 12px; }

/* 信息表 */
.infotable { width: 100%; border-collapse: collapse; font-size: 13px; }
.infotable th, .infotable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.infotable tr:last-child th, .infotable tr:last-child td { border-bottom: 0; }
.infotable th { width: 88px; color: var(--muted); font-weight: 500; background: #fafbfe; white-space: nowrap; }
.infotable td { color: var(--ink-2); word-break: break-all; }
.infotable td a { color: #4b56c9; }
.infotable td a:hover { color: var(--accent); }
.dtags { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed var(--line); }
.dtags b { font-size: 12px; color: var(--muted); font-weight: 500; margin-right: 3px; }
.dtags span { font-size: 11px; color: var(--ink-2); background: #f4f6fc; border: 1px solid #e9edf7; border-radius: 14px; padding: 3px 10px; }

/* 同类推荐 */
.relgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.relcard {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border: 1px solid #edf0f6; border-radius: 10px; background: #fff;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.relcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: #dfe4f5; }
.relcard > img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; object-fit: contain; background: #f7f9fd; }
.relcard .rc { min-width: 0; }
.relcard b { display: block; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.relcard span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dempty { color: var(--muted); font-size: 13px; }
.dempty a { color: var(--accent); }

/* 右栏 */
.hotlist { display: flex; flex-direction: column; }
.hotlist a {
  display: flex; align-items: center; gap: 9px; padding: 8px 4px;
  border-bottom: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-2);
}
.hotlist a:last-child { border-bottom: 0; }
.hotlist a:hover { color: var(--accent); }
.hotlist .no { width: 17px; flex: 0 0 17px; text-align: center; font-style: italic; font-weight: 700; color: #c2a7ad; }
.hotlist a:nth-child(-n+3) .no { color: var(--accent); }
.hotlist img { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 7px; object-fit: contain; background: #fff; }
.hotlist b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hotlist i { margin-left: auto; font-style: normal; color: #c7ccda; }
.dsearch { display: flex; gap: 6px; margin-bottom: 12px; }
.dsearch input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; outline: none; background: #fafbfe; }
.dsearch input:focus { border-color: #b9c1f5; background: #fff; }
.dsearch button { border: 0; background: #4b56c9; color: #fff; border-radius: 8px; padding: 0 13px; font-size: 12px; cursor: pointer; }
.dlink { display: block; font-size: 12.5px; color: var(--ink-2); padding: 7px 2px; border-bottom: 1px dashed var(--line); }
.dlink:last-of-type { border-bottom: 0; }
.dlink:hover { color: var(--accent); }
.dnote { background: linear-gradient(160deg, #fff7f8, #fff 60%); }
.dnote p { margin: 0 0 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.dnote .dsmall { color: var(--muted); font-size: 11.5px; margin-bottom: 0; }

/* 响应式 */
@media (max-width: 980px) {
  .dwrap { grid-template-columns: 1fr; }
  .dside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dside .dnote { grid-column: 1 / -1; }
  .dhead { grid-template-columns: 76px minmax(0, 1fr); }
  .dlogo { width: 76px; height: 76px; }
  .dactions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .dbtn { flex: 1 1 130px; }
  .dback { width: 100%; }
}
/* 404 页 */
.nfhero { padding-bottom: 46px; }
.nfbox {
  position: relative; z-index: 3; max-width: 560px; margin: -30px auto 60px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(23, 32, 61, .12); padding: 34px 30px 30px; text-align: center;
}
.nfnum { font-size: 64px; font-weight: 800; letter-spacing: 4px; color: #e3e7f5; line-height: 1; }
.nfbox h1 { margin: 8px 0; font-size: 20px; color: var(--ink); }
.nfbox p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.nfsearch { display: flex; gap: 8px; max-width: 380px; margin: 0 auto 16px; }
.nfsearch input {
  flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 9px;
  padding: 10px 12px; font-size: 13px; outline: none; background: #fafbfe;
}
.nfsearch input:focus { border-color: #b9c1f5; background: #fff; }
.nfsearch button { border: 0; background: #4b56c9; color: #fff; border-radius: 9px; padding: 0 18px; cursor: pointer; font-size: 13px; }
.nfacts { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.nfacts .dbtn { min-width: 150px; }

@media (max-width: 620px) {
  .nfbox { margin: -24px 12px 40px; padding: 26px 18px; }
  .nfnum { font-size: 52px; }
  .dhero { padding: 10px 12px 24px; }
  .dcrumb { margin: 22px auto 12px; font-size: 11.5px; gap: 6px; }
  .dhead { padding: 15px; gap: 13px; border-radius: 13px; grid-template-columns: 60px minmax(0, 1fr); }
  .dlogo { width: 60px; height: 60px; border-radius: 14px; padding: 5px; }
  .dhead h1 { font-size: 20px; margin-bottom: 5px; }
  .dtagline { font-size: 12.5px; margin-bottom: 8px; }
  .dmeta { gap: 10px 16px; font-size: 11px; }
  .dwrap { padding: 0 12px; margin-top: 16px; gap: 12px; }
  .dbox { padding: 14px 13px 16px; }
  .dbox h2 { font-size: 15px; }
  .dbox h2 em { display: none; }
  .relgrid { grid-template-columns: 1fr; }
  .dside { grid-template-columns: 1fr; }
  .infotable th { width: 72px; }
  .infotable th, .infotable td { padding: 8px 7px; font-size: 12px; }
}
