/* washing-line · 晾衣绳 —— 每行文章挂在一根绳上，卡片用两只木夹夹住，下摆是分类色 */
:root {
    --wl-sky: #e2f1fa;
    --wl-cloth: #ffffff;
    --wl-ink: #18242e;
    --wl-soft: #4a5866;
    --wl-cord: #7a6a58;
    --wl-peg: #c99a62;
    --wl-peg-dark: #8f6537;
    --wl-display: "Paytone One", "Trebuchet MS", sans-serif;
    --wl-body: Cabin, system-ui, -apple-system, "Segoe UI", sans-serif;
    --pagination-accent: #1f58b5;
}

.wl-h0 { --wl-h: #c2412d; }
.wl-h1 { --wl-h: #0b7a75; }
.wl-h2 { --wl-h: #5b45b0; }
.wl-h3 { --wl-h: #4d7323; }
.wl-h4 { --wl-h: #1f58b5; }

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

/* ---------- 母题：绳与木夹 ---------- */
.wl-cord { height: 4px; background: var(--wl-cord); border-radius: 2px; }
.wl-peg { flex: none; display: block; width: 10px; height: 28px; border-radius: 3px; background: linear-gradient(to bottom, var(--wl-peg) 0 45%, var(--wl-peg-dark) 45% 52%, var(--wl-peg) 52%); box-shadow: inset -2px 0 0 rgba(0, 0, 0, .12); }
.wl-pegs { display: flex; justify-content: space-around; height: 0; }
.wl-pegs .wl-peg { position: relative; z-index: 1; margin-top: -16px; }
.wl-topic { display: inline-block; max-width: 100%; min-width: 0; font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wl-h, #1f58b5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.wl-day { font-size: .86rem; color: var(--wl-soft); white-space: nowrap; }
.wl-heading { display: flex; align-items: center; gap: 12px; margin: 44px 0 26px; font-family: var(--wl-display); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.wl-heading span:last-child { min-width: 0; }

/* ---------- 顶栏 ---------- */
.wl-header { background: var(--wl-cloth); }
.wl-header-in { display: flex; align-items: center; gap: 24px; max-width: 1320px; min-height: 58px; margin: 0 auto; padding: 4px 24px; }
.wl-home { display: inline-flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.wl-home-peg { flex: none; width: 12px; height: 34px; border-radius: 3px; background: linear-gradient(to bottom, var(--wl-peg) 0 45%, var(--wl-peg-dark) 45% 52%, var(--wl-peg) 52%); }
.wl-home-name { min-width: 0; font-family: var(--wl-display); font-size: 1.6rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-nav { display: flex; gap: 8px; }
.wl-nav a { padding: 6px 12px; font-weight: 700; color: var(--wl-soft); border-radius: 0 0 10px 10px; }
.wl-nav a:hover { color: var(--wl-ink); }
.wl-nav a.is-hung { color: #fff; background: #1f58b5; }
.wl-menu-toggle { display: none; }
.wl-header .wl-cord { border-radius: 0; }

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

/* ---------- 一根绳上的衣物 ---------- */
.wl-line { display: grid; gap: 40px 24px; overflow-x: clip; }
.wl-line-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.wl-line-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wl-garment { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 0 minmax(0, 1fr); min-width: 0; padding-top: 10px; }
.wl-garment::before { content: ""; position: absolute; top: 2px; left: -14px; right: -14px; height: 3px; background: var(--wl-cord); }
.wl-garment > .wl-pegs { padding: 0 18%; }
.wl-garment-link { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 8px; padding: 0 0 16px; background: var(--wl-cloth); border-bottom: 8px solid var(--wl-h); box-shadow: 0 6px 10px -6px rgba(24, 36, 46, .3); }
.wl-garment-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #c9dbe6; }
.wl-garment-link > .wl-topic { margin: 6px 16px 0; }
.wl-garment-title { margin: 0 16px; font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.wl-garment-link:hover .wl-garment-title { text-decoration: underline; text-decoration-color: var(--wl-h); text-decoration-thickness: 2px; }
.wl-garment-link > .wl-day { margin: 0 16px; }

/* ---------- 首页头条：三只夹子夹住的床单 ---------- */
.wl-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 14px; }
.wl-sheet::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 4px; border-radius: 2px; background: var(--wl-cord); }
.wl-pegs-3 { padding: 0 10%; }
.wl-pegs-3 .wl-peg { width: 12px; height: 34px; margin-top: -18px; }
.wl-sheet-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); background: var(--wl-cloth); border-bottom: 10px solid var(--wl-h); box-shadow: 0 8px 14px -8px rgba(24, 36, 46, .35); }
.wl-sheet-link img { grid-column: 2; grid-row: 1; display: block; width: 100%; height: 100%; min-height: 340px; object-fit: cover; background: #c9dbe6; }
.wl-sheet-text { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; gap: 12px; padding: 32px 30px 26px; }
.wl-sheet-title { font-family: var(--wl-display); font-size: clamp(1.8rem, 2.6vw, 2.5rem); line-height: 1.15; }
.wl-sheet-link:hover .wl-sheet-title { text-decoration: underline; text-decoration-color: var(--wl-h); }
.wl-sheet-sum { color: var(--wl-soft); line-height: 1.6; }

/* ---------- 分类页：每篇挂在自己的一段短绳上 ---------- */
.wl-cat-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; }
.wl-hanging { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; padding-top: 10px; background: linear-gradient(var(--wl-cord), var(--wl-cord)) 0 2px / 100% 3px no-repeat; }
.wl-hanging-peg { display: flex; height: 0; padding-left: 28px; }
.wl-hanging-peg .wl-peg { position: relative; z-index: 1; margin-top: -16px; }
.wl-hanging-link { display: grid; grid-template-columns: 220px minmax(0, 1fr); background: var(--wl-cloth); border-left: 8px solid var(--wl-h); box-shadow: 0 6px 10px -6px rgba(24, 36, 46, .3); }
.wl-hanging-link img { display: block; width: 100%; height: 100%; min-height: 138px; object-fit: cover; background: #c9dbe6; }
.wl-hanging-text { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; padding: 14px 18px; }
.wl-hanging-title { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.wl-hanging-link:hover .wl-hanging-title { text-decoration: underline; text-decoration-color: var(--wl-h); text-decoration-thickness: 2px; }
.wl-hanging-sum { color: var(--wl-soft); line-height: 1.55; }
.wl-cat-list > .wl-ad { list-style: none; }
.wl-cat-list > .wl-ad:not(:has(.ad)) { display: none; }

/* ---------- 分类索引：一排条纹茶巾 ---------- */
.wl-towels { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.wl-towel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-width: 0; padding: 10px 0 20px; background: var(--wl-cloth) linear-gradient(var(--wl-cord), var(--wl-cord)) 0 2px / 100% 3px no-repeat; box-shadow: 0 6px 10px -6px rgba(24, 36, 46, .3); }
.wl-towel::before { content: ""; position: absolute; top: 2px; left: -14px; right: -14px; height: 3px; background: var(--wl-cord); }
.wl-towel > .wl-pegs { padding: 0 22%; }
.wl-towel-stripes { height: 22px; margin-top: 6px; background: repeating-linear-gradient(to bottom, var(--wl-h) 0 5px, var(--wl-cloth) 5px 8px); }
.wl-towel-name { margin: 4px 18px 0; font-family: var(--wl-display); font-size: 1.3rem; line-height: 1.2; }
.wl-towel:hover .wl-towel-name { text-decoration: underline; text-decoration-color: var(--wl-h); }
.wl-towel-desc { margin: 0 18px; font-size: .9rem; line-height: 1.45; color: var(--wl-soft); }

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

/* ---------- 页脚：低处一根绳，链接是夹着的小标签 ---------- */
.wl-footer { margin-top: 64px; }
.wl-footer > .wl-cord { max-width: 1320px; margin: 0 auto; }
.wl-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; max-width: 1320px; margin: 0 auto; padding: 0 24px 26px; list-style: none; }
.wl-tag { display: grid; justify-items: center; min-width: 0; }
.wl-tag .wl-peg { margin-top: -14px; }
.wl-tag a { display: block; margin-top: -8px; padding: 12px 16px 8px; background: var(--wl-cloth); border-bottom: 4px solid #1f58b5; font-weight: 700; color: #1a4c9c; white-space: nowrap; box-shadow: 0 4px 8px -4px rgba(24, 36, 46, .3); }
.wl-tag a:hover { text-decoration: underline; }
.wl-footer-ground { display: grid; gap: 4px; padding: 22px 24px 96px; background: #cfe3d2; text-align: center; font-size: .9rem; color: #2d4030; overflow-wrap: anywhere; }
.wl-footer-ground strong { font-family: var(--wl-display); font-weight: 400; font-size: 1.4rem; color: var(--wl-ink); }

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

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

@media (max-width: 1023px) {
    .wl-nav a { padding: 6px 8px; }
    .wl-sheet-link { grid-template-columns: minmax(0, 1fr); }
    .wl-sheet-link img { grid-column: 1; min-height: 0; height: auto; aspect-ratio: 24 / 9; }
    .wl-sheet-text { grid-row: 2; padding-top: 20px; }
    .wl-line-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wl-hanging-link { grid-template-columns: 170px minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .wl-header-in { min-height: 54px; padding: 0 12px; gap: 10px; }
    .wl-home { gap: 10px; }
    .wl-home-peg { width: 10px; height: 28px; }
    .wl-home-name { font-size: 1.25rem; }
    .wl-menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--wl-sky); }
    .wl-wrap { padding: 12px 12px 0; }
    .wl-sheet-link img { aspect-ratio: 16 / 9; }
    .wl-sheet-text { gap: 8px; padding: 12px 14px 14px; }
    .wl-sheet-title { font-size: 1.45rem; }
    .wl-sheet-sum { display: none; }
    .wl-line { gap: 22px; }
    .wl-line-3, .wl-line-4 { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
    .wl-garment::before { left: 0; right: 0; }
    .wl-garment > .wl-pegs { padding: 0 0 0 28px; justify-content: flex-start; gap: 60px; }
    .wl-garment-link { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 4px 12px; padding: 10px 12px 10px 10px; border-bottom-width: 5px; }
    .wl-garment-link img { grid-row: 1 / span 3; height: 100%; min-height: 84px; aspect-ratio: auto; }
    .wl-garment-link > .wl-topic { grid-column: 2; margin: 0; font-size: .72rem; }
    .wl-garment-title { grid-column: 2; margin: 0; font-size: 1.02rem; }
    .wl-garment-link > .wl-day { grid-column: 2; margin: 0; font-size: .8rem; }
    .wl-heading { margin: 28px 0 18px; font-size: 1.3rem; }
    .wl-cat-list { gap: 18px; }
    .wl-hanging-link { grid-template-columns: 96px minmax(0, 1fr); border-left-width: 5px; }
    .wl-hanging-link img { min-height: 0; height: 100%; max-height: 120px; }
    .wl-hanging-text { gap: 4px; padding: 8px 10px; }
    .wl-hanging-title { font-size: 1.02rem; }
    .wl-hanging-sum { display: none; }
    .wl-towels { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
    .wl-towel::before { left: -6px; right: -6px; }
    .wl-towel-name { margin: 2px 12px 0; font-size: 1.05rem; }
    .wl-towel-desc { margin: 0 12px; font-size: .82rem; }
    .wl-tags { gap: 18px 10px; padding: 0 8px 22px; }
    .wl-tag a { padding: 10px 10px 6px; font-size: .9rem; }
}

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