/*
Theme Name: 半日闲品牌新闻
Version: 1.0.0
Text Domain: banrixian-news
Requires PHP: 8.4
Description: 半日闲官网品牌新闻列表与文章详情。
*/
@font-face { font-family: MiSans; src: url('/fonts/misans/MiSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: MiSans; src: url('/fonts/misans/MiSans-Semibold.woff2') format('woff2'); font-weight: 600 900; font-display: swap; }
* { box-sizing: border-box; }
body { margin: 0; color: #38302c; background: #fcfaf6; font-family: MiSans, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #796247; text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, summary:focus-visible { outline: 2px solid #543828; outline-offset: 5px; }
img { max-width: 100%; height: auto; }
.news-header { max-width: 1440px; margin: auto; padding: 28px 24px; display: grid; grid-template-columns: 1fr 118px 1fr; align-items: center; gap: 28px; color: #543828; }
.news-header nav { display: flex; gap: 32px; font-size: 15px; }
.news-header .nav-right { justify-content: flex-end; }
.news-logo img { display: block; width: 118px; height: 40px; object-fit: contain; }
.news-header a { white-space: nowrap; }
.news-mobile-nav { display: none; }
.news-width { max-width: 1200px; padding: 0 40px; margin: auto; }
.news-heading { padding: 44px 0 32px; }
.news-breadcrumb { display: flex; gap: 14px; font-size: 13px; color: #796247; margin-bottom: 44px; }
.news-eyebrow { color: #796247; font-size: 15px; margin: 0 0 12px; }
h1 { margin: 0; font-size: 44px; font-weight: 600; line-height: 1.4; color: #543828; overflow-wrap: anywhere; }
.news-categories { display: flex; flex-wrap: wrap; gap: 28px; padding: 0 0 24px; border-bottom: 1px solid #d9d0c2; font-size: 15px; }
[aria-current="page"] { color: #543828; font-weight: 600; text-decoration: underline; text-underline-offset: 7px; }
.news-row { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 44px; padding: 36px 0; border-bottom: 1px solid #e3dbce; }
.news-cover { display: block; aspect-ratio: 3/2; background: #e8e2d5; overflow: hidden; border-radius: 4px; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.news-cover img.news-placeholder { object-fit: contain; padding: 72px; }
.news-cover:hover img { transform: scale(1.025); }
.news-row-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.news-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #796247; font-size: 13px; margin: 0 0 14px; }
.news-row h2 { font-size: 24px; line-height: 1.55; font-weight: 600; margin: 0 0 14px; overflow-wrap: anywhere; }
.news-excerpt { font-size: 15px; color: #746859; line-height: 1.8; margin-bottom: 18px; }
.news-excerpt p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-read { font-size: 14px; color: #543828; }
.pagination { margin: 40px 0 64px; }
.pagination .nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.page-numbers { padding: 8px 12px; min-width: 40px; text-align: center; }
.page-numbers.current { background: #e8e2d5; color: #543828; }
.news-article-heading { max-width: 840px; margin: auto; padding-bottom: 36px; }
.news-article-heading h1 { font-size: 38px; }
.news-article-cover { max-width: 960px; margin: 0 auto 40px; }
.news-article-cover img { display: block; width: 100%; max-height: 560px; object-fit: contain; }
.news-body { max-width: 840px; margin: auto; font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.news-body a { text-decoration: underline; text-underline-offset: 4px; }
.news-body h2 { font-size: 28px; color: #543828; line-height: 1.5; margin-top: 40px; }
.news-body h3 { font-size: 22px; color: #543828; }
.news-body p, .news-body figure { margin: 0 0 24px; }
.news-body blockquote { border-left: 3px solid #a79275; margin: 28px 0; padding: 16px 24px; background: #f0ede5; }
.news-body table { width: 100%; border-collapse: collapse; }
.news-body td, .news-body th { padding: 12px; border: 1px solid #d9d0c2; }
.news-body iframe, .news-body video { max-width: 100%; }
.news-body .wp-block-table { overflow-x: auto; }
.news-body input { max-width: 100%; }
.news-bottom-nav { max-width: 840px; margin: 48px auto 72px; border-top: 1px solid #d9d0c2; padding-top: 24px; font-size: 15px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; margin-top: 28px; overflow-wrap: anywhere; }
.nav-next { text-align: right; }
.news-empty { padding-top: 64px; padding-bottom: 96px; }
.news-empty h1 { margin-bottom: 24px; }
.news-footer { background: #ebe5d7; padding: 52px max(24px, calc((100% - 1120px)/2)); display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; }
.news-footer h2 { font-size: 18px; margin: 0 0 16px; color: #38302c; }
.news-footer h2:not(:first-child) { margin-top: 24px; }
.news-footer p { font-size: 14px; color: #666; line-height: 1.8; margin: 0 0 20px; }
.news-footer a { font-size: 14px; color: #666; }
.news-footer h2 a { font-size: inherit; color: inherit; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 8px; left: 8px; padding: 12px; background: #fff; z-index: 10000; }
@media(max-width: 1000px) {
 .news-header nav { gap: 16px; font-size: 14px; }
 .news-row { grid-template-columns: 280px minmax(0,1fr); gap: 28px; }
 .news-footer { gap: 28px; }
}
@media(max-width: 800px) {
 .news-header { display: flex; justify-content: space-between; padding: 24px; }
 .news-header > nav { display: none; }
 .news-mobile-nav { display: block; }
 .news-mobile-nav summary { cursor: pointer; list-style: none; font-size: 26px; }
 .news-mobile-nav summary::-webkit-details-marker { display: none; }
 .news-mobile-nav nav { position: absolute; top: 88px; left: 0; right: 0; padding: 24px; background: #e8e2d5; z-index: 10; flex-direction: column; }
 .news-width { padding: 0 24px; }
 h1 { font-size: 34px; }
 .news-article-heading h1 { font-size: 30px; }
 .news-row { grid-template-columns: 1fr; gap: 24px; }
 .news-row h2 { font-size: 22px; }
 .news-cover { max-height: 320px; }
 .news-footer { grid-template-columns: 1fr; gap: 32px; }
 .news-heading { padding-top: 24px; }
 .news-breadcrumb { margin-bottom: 28px; }
}
@media(prefers-reduced-motion: reduce) { .news-cover img { transition: none; } }
