/* honeycomb-cells · 蜂巢格 —— 六边形蜂巢格贯穿全站：卡片带分类色六边形，分类页缩略图裁成六边形 */
:root {
    --hy-comb: #f4f2ed;
    --hy-cellbg: #ffffff;
    --hy-ink: #211b16;
    --hy-soft: #57504a;
    --hy-hive: #2b2420;
    --hy-honey: #f0a500;
    --hy-wax: #e3dccd;
    --hy-display: "Dela Gothic One", Impact, system-ui, sans-serif;
    --hy-body: "Kumbh Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --hy-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    --hy-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100' fill='none' stroke='%23e3dccd' stroke-width='1.5'/%3E%3Cpath d='M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34' fill='none' stroke='%23e3dccd' stroke-width='1.5'/%3E%3C/svg%3E");
    --pagination-accent: #9a5a00;
}

.hy-c0 { --hy-c: #9a5a00; }
.hy-c1 { --hy-c: #0d6d6e; }
.hy-c2 { --hy-c: #9b2552; }
.hy-c3 { --hy-c: #3b6e1f; }
.hy-c4 { --hy-c: #3a3f9e; }

body.theme-hive { margin: 0; color: var(--hy-ink); font-family: var(--hy-body); font-size: 17px; line-height: 1.55; background: var(--hy-comb) var(--hy-pattern); }
:where(.theme-hive) a { color: inherit; text-decoration: none; }
.theme-hive :focus-visible { outline: 3px solid var(--hy-hive); outline-offset: 3px; }
.hy-skip { position: absolute; left: -9999px; }
.hy-skip:focus { left: 12px; top: 12px; z-index: 50; padding: 10px 14px; background: #fff; font-weight: 700; }
.hy-comb { display: block; min-height: 60vh; padding-bottom: 40px; }
.hy-comb:focus { outline: none; }

/* ---------- 母题：六边形蜂巢格 ---------- */
.hy-cell { flex: none; display: inline-block; width: 22px; height: 25px; clip-path: var(--hy-hex); background: var(--hy-c, var(--hy-honey)); vertical-align: middle; }
.hy-cell-xs { width: 12px; height: 14px; }
.hy-cell-dot { width: 9px; height: 10px; background: var(--hy-honey); }
.hy-cell-lg { width: 44px; height: 51px; background: var(--hy-honey); }
.hy-card-topic { display: inline-block; max-width: 100%; min-width: 0; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hy-c, #9a5a00); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.hy-when { font-size: .86rem; color: var(--hy-soft); white-space: nowrap; }
.hy-band { display: flex; align-items: center; gap: 12px; margin: 44px 0 18px; font-family: var(--hy-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; }
.hy-band span:last-child { min-width: 0; }

/* ---------- 顶栏：深色巢脾 ---------- */
.hy-header { background: var(--hy-hive); color: #fff; border-bottom: 4px solid var(--hy-honey); }
.hy-header-in { display: flex; align-items: center; gap: 24px; max-width: 1320px; min-height: 60px; margin: 0 auto; padding: 6px 24px; }
.hy-mark { display: inline-flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.hy-mark-cell { flex: none; width: 30px; height: 34px; clip-path: var(--hy-hex); background: var(--hy-honey); box-shadow: inset 0 0 0 6px #ffc94d; }
.hy-mark-name { min-width: 0; font-family: var(--hy-display); font-size: 1.5rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hy-ways { display: flex; gap: 18px; }
.hy-ways a { padding: 6px 2px; font-weight: 700; color: #e6dccd; }
.hy-ways a:hover { color: #fff; }
.hy-ways a.is-here { color: var(--hy-honey); box-shadow: inset 0 -3px 0 var(--hy-honey); }
.hy-menu-toggle { display: none; }

/* ---------- 版心 ---------- */
.hy-wrap { max-width: 1320px; margin: 0 auto; padding: 24px 24px 0; }
.hy-wrap-cat { max-width: 1000px; }
.hy-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; font-size: .92rem; color: var(--hy-soft); }
.hy-crumbs a { color: #0d5c5d; font-weight: 700; }
.hy-title { margin: 4px 0 24px; font-family: var(--hy-display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.12; }
.hy-blank { margin: 32px 0; padding: 24px; background: #fff; text-align: center; list-style: none; }
.hy-pager { margin-top: 32px; }

/* ---------- 卡片：图片上压一枚分类色六边形 ---------- */
.hy-cards { display: grid; gap: 28px 24px; }
.hy-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.hy-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hy-card { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hy-card-link { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 0 0 16px; background: var(--hy-cellbg); border-bottom: 4px solid var(--hy-c); box-shadow: 0 1px 3px rgba(33, 27, 22, .14); }
.hy-card-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--hy-wax); }
.hy-card-tag { display: flex; align-items: center; gap: 8px; min-width: 0; margin: -14px 16px 0; }
.hy-card-tag .hy-cell { width: 26px; height: 30px; box-shadow: none; }
.hy-card-tag .hy-card-topic { padding-top: 12px; }
.hy-card-title { margin: 0 16px; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.hy-card-link:hover .hy-card-title { text-decoration: underline; text-decoration-color: var(--hy-c); text-decoration-thickness: 2px; }
.hy-card-link > .hy-when { margin: 0 16px; }

/* ---------- 首页头条：旁边一簇三格 ---------- */
.hy-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); background: var(--hy-cellbg); border-bottom: 5px solid var(--hy-c); box-shadow: 0 2px 5px rgba(33, 27, 22, .16); }
.hy-top img { display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; background: var(--hy-wax); }
.hy-top-text { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 12px; padding: 30px 30px 26px; }
.hy-cluster { display: grid; grid-template-columns: repeat(2, 30px); grid-template-rows: 26px 26px; column-gap: 2px; }
.hy-cluster i { width: 30px; height: 34px; clip-path: var(--hy-hex); background: var(--hy-honey); }
.hy-cluster i:nth-child(2) { background: var(--hy-c); }
.hy-cluster i:nth-child(3) { grid-column: 1 / span 2; justify-self: center; background: var(--hy-hive); }
.hy-top-title { font-family: var(--hy-display); font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.15; }
.hy-top:hover .hy-top-title { text-decoration: underline; text-decoration-color: var(--hy-c); }
.hy-top-sum { color: var(--hy-soft); line-height: 1.6; }

/* ---------- 分类页：缩略图裁成六边形格 ---------- */
.hy-cat-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.hy-row { min-width: 0; }
.hy-row-link { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 22px; padding: 12px 20px 12px 16px; background: var(--hy-cellbg); border-left: 4px solid var(--hy-c); box-shadow: 0 1px 3px rgba(33, 27, 22, .14); }
.hy-row-cell { display: block; padding: 4px; clip-path: var(--hy-hex); background: var(--hy-c); }
.hy-row-cell img { display: block; width: 100%; height: auto; aspect-ratio: 200 / 231; object-fit: cover; clip-path: var(--hy-hex); background: var(--hy-wax); }
.hy-row-text { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hy-row-title { font-weight: 700; font-size: 1.35rem; line-height: 1.25; }
.hy-row-link:hover .hy-row-title { text-decoration: underline; text-decoration-color: var(--hy-c); text-decoration-thickness: 2px; }
.hy-row-sum { color: var(--hy-soft); line-height: 1.55; }
.hy-cat-list > .hy-ad { list-style: none; }
.hy-cat-list > .hy-ad:not(:has(.ad)) { display: none; }

/* ---------- 分类索引：六边形瓦片 ---------- */
.hy-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 20px; margin: 0; padding: 0; list-style: none; }
.hy-tile { min-width: 0; }
.hy-tile-link { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; text-align: center; }
.hy-tile-hex { display: grid; place-items: center; width: 190px; max-width: 100%; aspect-ratio: 190 / 219; padding: 0 18px; box-sizing: border-box; clip-path: var(--hy-hex); background: var(--hy-c); color: #fff; }
.hy-tile-name { min-width: 0; font-family: var(--hy-display); font-size: 1rem; line-height: 1.2; overflow-wrap: break-word; }
.hy-tile-link:hover .hy-tile-hex { background: var(--hy-hive); }
.hy-tile-desc { font-size: .9rem; line-height: 1.45; color: var(--hy-soft); }

/* ---------- 广告壳：无广告时塌陷 ---------- */
.hy-ad:has(.ad) { margin: 24px 0; }
.hy-ad:has(.ad) .ad { min-height: 250px; margin: 0 !important; }

/* ---------- 页脚：巢脾边缘 ---------- */
.hy-footer { margin-top: 56px; background: var(--hy-hive); color: #e6dccd; }
.hy-edge { height: 26px; background: var(--hy-comb); clip-path: polygon(0 0, 100% 0, 100% 40%, 97% 100%, 94% 40%, 91% 100%, 88% 40%, 85% 100%, 82% 40%, 79% 100%, 76% 40%, 73% 100%, 70% 40%, 67% 100%, 64% 40%, 61% 100%, 58% 40%, 55% 100%, 52% 40%, 49% 100%, 46% 40%, 43% 100%, 40% 40%, 37% 100%, 34% 40%, 31% 100%, 28% 40%, 25% 100%, 22% 40%, 19% 100%, 16% 40%, 13% 100%, 10% 40%, 7% 100%, 4% 40%, 1% 100%, 0 40%); }
.hy-footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; max-width: 1320px; margin: 0 auto; padding: 22px 24px 96px; }
.hy-footer-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.hy-footer-brand strong { min-width: 0; font-family: var(--hy-display); font-weight: 400; font-size: 1.5rem; color: #fff; overflow-wrap: anywhere; }
.hy-footer-cells { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.hy-footer-cells li { display: flex; align-items: center; gap: 8px; }
.hy-footer-cells .hy-cell { background: var(--hy-honey); }
.hy-footer-cells a { font-weight: 700; color: #fff; white-space: nowrap; }
.hy-footer-cells a:hover { color: var(--hy-honey); }
.hy-footer-note { grid-column: 1 / -1; margin: 0; font-size: .9rem; overflow-wrap: anywhere; }

/* ---------- 共享页面 ---------- */
.theme-hive .site-menu, .theme-hive .site-search, .theme-hive .static-page, .theme-hive .theme-error { --menu-accent: #9a5a00; background: #fff; }

/* ---------- 断点 ---------- */
@media (min-width: 1600px) {
    .hy-wrap, .hy-header-in, .hy-footer-in { max-width: 1540px; }
    .hy-wrap-cat { max-width: 1100px; }
}

@media (max-width: 1023px) {
    .hy-ways { gap: 12px; }
    .hy-top { grid-template-columns: minmax(0, 1fr); }
    .hy-top img { min-height: 0; height: auto; aspect-ratio: 24 / 9; }
    .hy-top-text { padding-top: 20px; }
    .hy-cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hy-row-link { grid-template-columns: 120px minmax(0, 1fr); }
    .hy-footer-in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .hy-header-in { min-height: 56px; padding: 0 12px; gap: 10px; }
    .hy-mark { gap: 10px; }
    .hy-mark-cell { width: 24px; height: 28px; box-shadow: inset 0 0 0 5px #ffc94d; }
    .hy-mark-name { font-size: 1.2rem; }
    .hy-menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; color: #fff; }
    .hy-wrap { padding: 12px 12px 0; }
    .hy-top img { aspect-ratio: 16 / 9; }
    .hy-top-text { gap: 8px; padding: 12px 14px 14px; }
    .hy-cluster { display: none; }
    .hy-top-title { font-size: 1.45rem; }
    .hy-top-sum { display: none; }
    .hy-cards { gap: 12px; }
    .hy-cards-3, .hy-cards-4 { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
    .hy-card-link { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 4px 12px; padding: 10px 12px 10px 10px; }
    .hy-card-link img { grid-row: 1 / span 3; height: 100%; min-height: 84px; aspect-ratio: auto; }
    .hy-card-tag { grid-column: 2; margin: 0; }
    .hy-card-tag .hy-cell { width: 12px; height: 14px; }
    .hy-card-tag .hy-card-topic { padding-top: 0; font-size: .72rem; }
    .hy-card-title { grid-column: 2; margin: 0; font-size: 1.02rem; }
    .hy-card-link > .hy-when { grid-column: 2; margin: 0; font-size: .8rem; }
    .hy-band { margin-top: 28px; font-size: 1.2rem; }
    .hy-row-link { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 8px 10px; }
    .hy-row-cell { padding: 3px; }
    .hy-row-text { gap: 4px; }
    .hy-row-title { font-size: 1.02rem; }
    .hy-row-sum { display: none; }
    .hy-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
    .hy-tile-hex { width: 140px; padding: 0 14px; }
    .hy-tile-name { font-size: .82rem; }
    .hy-tile-desc { font-size: .82rem; }
}

/* 移动端：分类导航只在 /menu 出现，隐藏规则放在全局规则之后 */
@media (max-width: 767px) {
    .hy-ways { display: none; }
}
