/* 周公解梦：暖纸底 + 深红点缀，哑光低饱和；间距 4px 步进，字号六档，数字等宽 */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f7f2e9; color: #2b2620; font: 16px/1.7 "PingFang SC", "Microsoft YaHei", sans-serif; font-variant-numeric: tabular-nums; }
a { color: #9c2b2b; text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #9c2b2b; outline-offset: 2px; }
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }
.top { background: #fffdf8; border-bottom: 1px solid #e5dcc8; }
.top-in { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { font-size: 20px; font-weight: 600; color: #9c2b2b; }
.topnav { display: flex; gap: 16px; font-size: 14px; }
.topnav a { color: #5a5348; padding: 4px 0; }
main { padding: 20px 0 32px; }
h1 { font-size: 24px; font-weight: 600; margin: 8px 0 16px; }
h2 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.disclaimer { color: #756a58; font-size: 14px; margin: 12px 0; }

/* 搜索 */
.search { background: #fffdf8; border: 1px solid #e5dcc8; border-radius: 12px; padding: 16px; }
.search label { display: block; font-size: 14px; color: #5a5348; margin-bottom: 8px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border: 1px solid #c9bda6; border-radius: 8px; background: #fff; color: #2b2620; transition: border-color .15s cubic-bezier(.22,1,.36,1); }
.search input:focus { border-color: #9c2b2b; outline: none; }
.search input::placeholder { color: #756a58; }
.try { margin: 8px 0 0; font-size: 14px; color: #756a58; }
.try button { font: inherit; font-size: 14px; margin: 0 4px 4px 0; padding: 8px 12px; border: 1px solid #c9bda6; border-radius: 8px; background: #fffdf8; color: #5a5348; cursor: pointer; transition: border-color .15s cubic-bezier(.22,1,.36,1), color .15s cubic-bezier(.22,1,.36,1); }
.try button:hover { border-color: #9c2b2b; color: #9c2b2b; }
.try button:active { transform: scale(.99); }
.res-count { color: #756a58; font-size: 14px; margin: 4px 0 0; }
.empty { color: #756a58; padding: 12px 0; }

/* 分类 chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chips a { display: inline-block; padding: 8px 16px; border: 1px solid #c9bda6; border-radius: 8px; background: #fffdf8; color: #5a5348; font-size: 14px; transition: border-color .15s cubic-bezier(.22,1,.36,1), color .15s cubic-bezier(.22,1,.36,1), background-color .15s cubic-bezier(.22,1,.36,1); }
.chips a:hover { border-color: #9c2b2b; color: #9c2b2b; text-decoration: none; }
.chips a.on { background: #f3e9d8; border-color: #9c2b2b; color: #9c2b2b; }

/* 结果卡片 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.card { display: block; background: #fffdf8; border: 1px solid #e5dcc8; border-radius: 12px; padding: 12px 16px; transition: border-color .15s cubic-bezier(.22,1,.36,1); }
.card:hover { border-color: #9c2b2b; text-decoration: none; }
.card-d { display: block; font-size: 16px; font-weight: 600; color: #2b2620; }
.card-r { display: block; font-size: 14px; color: #5a5348; margin-top: 4px; }
.card-c { display: block; font-size: 12px; color: #756a58; margin-top: 8px; }

/* 分类列表 */
.cat-count { color: #756a58; font-size: 14px; margin: 0 0 8px; }
.catlist { margin-top: 16px; border-top: 1px solid #e5dcc8; }
.row { display: grid; grid-template-columns: 150px 1fr 150px; gap: 12px; align-items: baseline; padding: 12px 4px; border-bottom: 1px solid #e5dcc8; transition: background-color .15s cubic-bezier(.22,1,.36,1); }
.row:hover { background: #fffdf8; text-decoration: none; }
.row-d { font-weight: 600; color: #2b2620; }
.row-r { color: #5a5348; }
.row-t { color: #756a58; font-size: 14px; text-align: right; }

/* 迷你搜索（分类页/详情页） */
.mini-search { position: relative; margin: 16px 0; }
.mini-search label { display: block; font-size: 14px; color: #5a5348; margin-bottom: 8px; }
.mini-search input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid #c9bda6; border-radius: 8px; background: #fff; color: #2b2620; transition: border-color .15s cubic-bezier(.22,1,.36,1); }
.mini-search input:focus { border-color: #9c2b2b; outline: none; }
.mini-search input::placeholder { color: #756a58; }
.mini-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fffdf8; border: 1px solid #c9bda6; border-radius: 8px; box-shadow: 0 6px 18px rgba(43, 38, 32, .12); z-index: 20; overflow: hidden; }
.mini-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #e5dcc8; font-size: 14px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row:hover { background: #f7f2e9; text-decoration: none; }
.mini-row b { color: #2b2620; flex: none; }
.mini-row span { color: #5a5348; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-more { display: block; padding: 8px 12px; font-size: 14px; text-align: center; background: #f7f2e9; }
.mini-more:hover { text-decoration: none; }
.mini-empty { margin: 0; padding: 12px; font-size: 14px; color: #756a58; }

/* 出处背景 / 分类位置 / 首页信息区 */
.origin { background: #fffdf8; border: 1px solid #e5dcc8; border-radius: 12px; padding: 16px; margin-top: 24px; }
.origin h2 { margin: 0 0 8px; }
.origin p { margin: 8px 0; font-size: 14px; color: #5a5348; }
.cat-pos { color: #756a58; font-size: 14px; margin: 8px 0; }
.cat-pos a { color: #9c2b2b; }
.infobox { background: #fffdf8; border: 1px solid #e5dcc8; border-radius: 12px; padding: 16px; margin-top: 24px; }
.infobox h2 { margin: 0 0 8px; }
.infobox p { margin: 8px 0; font-size: 14px; color: #5a5348; }

/* 详情页 */
.crumb { color: #756a58; font-size: 14px; margin: 0 0 12px; }
.crumb a { padding: 4px 0; }
.dreamcard { background: #fffdf8; border: 1px solid #e5dcc8; border-top: 3px solid #9c2b2b; border-radius: 12px; padding: 20px; }
.dc-r { font-size: 20px; color: #5a5348; margin: 0; }
.dc-orig { margin-top: 16px; border-top: 1px dashed #e5dcc8; padding-top: 12px; }
.dc-orig p { margin: 8px 0; font-size: 16px; }
.dc-orig span { display: inline-block; width: 76px; color: #756a58; font-size: 14px; }
.pagenav { display: flex; justify-content: space-between; gap: 8px; margin: 24px 0 8px; flex-wrap: wrap; }
.pagenav a { display: inline-block; background: #fffdf8; border: 1px solid #c9bda6; border-radius: 8px; padding: 8px 16px; color: #9c2b2b; transition: border-color .15s cubic-bezier(.22,1,.36,1); }
.pagenav a:hover { border-color: #9c2b2b; text-decoration: none; }

.foot { border-top: 1px solid #e5dcc8; padding: 20px 0 32px; color: #756a58; font-size: 14px; }
.foot p { margin: 8px 0; }

@media (max-width: 640px) {
  body { font-size: 14px; }
  h1 { font-size: 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .row { grid-template-columns: 110px 1fr; }
  .row-t { display: none; }
  .dreamcard { padding: 16px; }
  .dc-orig span { width: 64px; }
  .topnav { gap: 12px; }
  .pagenav { flex-direction: column; }
  .pagenav a { text-align: center; }
  .adrow { flex-direction: column; }
  .adtag { align-self: flex-start; }
}
/* 广告横幅（360/307 分支，中转地址 base64，源码无明文） */
.adrow { display: flex; gap: 8px; align-items: stretch; margin: 8px 0 24px; min-height: 46px; }
.adtag { flex: none; align-self: center; font-size: 12px; color: #756a58; }
.adbanner { flex: 1; padding: 12px; border: 1px solid #c9bda6; border-radius: 8px; background: #fffdf8; color: #9c2b2b; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .15s cubic-bezier(.22,1,.36,1); }
.adbanner:hover { border-color: #9c2b2b; }
.adbanner:active { transform: scale(.99); }

@media (max-width: 640px) { .adrow { min-height: 128px; } }
