/*
Theme Name: 壹加壹爱心会复刻主题
Description: 广州壹加壹爱心会测试站主题。
Version: 1.0.0
Text Domain: aixinhui-clone
*/

:root { --red: #c40000; --orange: #ff7a18; --ink: #27364a; --muted: #8e98a5; --line: #e5e5e5; --canvas: #ededed; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: #555; font: 16px/1.7 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header { background: #faeadb url('assets/header-bg.png') center/cover no-repeat; }
.head-inner { height: 300px; max-width: 1200px; margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 20px; margin-left: -52px; color: #160b07; font: 34px/1.2 STKaiti, KaiTi, serif; }
.brand img { width: 126px; height: 126px; object-fit: contain; }
.header-slogan { display: grid; gap: 5px; margin-left: 42px; color: #cc3300; text-align: center; font: 42px/1 STKaiti, KaiTi, serif; }
.wechat { width: 145px; text-align: center; color: #22130a; line-height: 1.4; }
.wechat img { display: block; width: 145px; height: 145px; margin-bottom: 6px; object-fit: cover; background: white; padding: 4px; }
.primary-nav { background: linear-gradient(#f20404, #ff7c1d); box-shadow: inset 0 -2px rgba(255,255,255,.25); }
.primary-nav ul { width: min(980px, 100%); min-height: 48px; display: flex; margin: auto; padding: 0; list-style: none; }
.primary-nav a { min-width: 115px; padding: 11px 30px; display: block; color: white; font-weight: 700; text-align: center; }
.primary-nav a:hover, .primary-nav .current a { background: white; color: #5d5d5d; }
.container { width: min(1200px, calc(100% - 32px)); margin: 30px auto; }
.headline { display: flex; align-items: center; gap: 24px; min-height: 100px; padding: 18px 0; background: white; }
.headline strong { align-self: stretch; display: grid; place-items: center; padding: 0 18px; background: #f10a0a; color: white; font-size: 28px; }
.headline h2 { margin: 0; font-size: 24px; font-weight: 400; color: var(--ink); }
.headline p { margin: 2px 0 0; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); margin-top: 30px; background: white; }
.hero-image { min-height: 360px; background: #ad0505 center/cover no-repeat; }
.tab-panel { padding: 0 26px; }
.tabs { display: flex; margin: 0 -26px 18px; border-top: 2px solid #999; border-bottom: 1px solid var(--line); }
.tabs a { flex: 1; padding: 12px; text-align: center; border-right: 1px solid var(--line); color: #7b4b42; }
.tabs a:first-child { background: white; border-top: 2px solid #333; margin-top: -2px; }
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px dotted #ccc; }
.news-list li::before { content: '▪'; color: #7f7f7f; }
.news-list a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list time { color: #adb5bf; font-size: 13px; }
.slogan { margin: 30px 0; padding: 36px 20px; color: #c30000; text-align: center; font: 700 30px/1.4 KaiTi, STKaiti, serif; background: #ffe3c3 url('assets/slogan-bg.png') center/cover; }
.column-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.column { background: white; }
.column h2 { min-height: 40px; margin: 0; padding: 8px 18px; color: white; font-size: 17px; background: linear-gradient(#f20404,#ff7c1d); }
.column h2 > span { display: inline-block; margin: -8px 6px -8px -18px; padding: 8px 18px; color: #333; background: white; }
.column h2 > span + span { margin-left: 0; border-left: 1px solid #eee; }
.column h2 a { float: right; color: white; font-size: 11px; font-weight: 400; }
.column .news-list { padding: 8px 14px 18px; }
.home-pager { display: flex; justify-content: center; gap: 8px; min-height: 56px; padding: 6px 14px 16px; }
.home-pager span { min-width: 28px; padding: 3px 8px; color: #aaa; text-align: center; border: 1px solid #e6e6e6; border-radius: 2px; font-size: 13px; line-height: 1.6; }
.home-pager span:first-child, .home-pager span:last-child { min-width: 58px; }
.home-pager .current { color: #777; background: #f1f1f1; border-color: #d8d8d8; }
.bottom-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; width: calc((100% - 16px) * .67); }
.page-card, .article-card { background: white; padding: 38px 52px; }
.page-card h1, .article-card h1 { margin: 0 0 18px; color: #303030; font-size: 30px; text-align: center; }
.breadcrumb { margin-bottom: 20px; padding: 12px 18px; border-left: 3px solid #999; background: white; color: #777; font-size: 13px; }
.section-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 24px; align-items: stretch; }
.section-sidebar { background: transparent; }
.section-menu { background: white; text-align: center; }
.section-menu strong, .section-menu span { display: block; padding: 9px 16px; }
.section-menu strong { background: #c9c9c9; color: #444; font-weight: 400; }
.section-menu span { color: #6a3228; }
.sidebar-contact { min-height: 265px; margin-top: 18px; padding: 15px 20px; color: white; background: linear-gradient(#f10a0a, #ff9e00); }
.sidebar-contact h2 { margin: 0 0 14px; font-size: 18px; }
.sidebar-contact p { margin: 8px 0; font-size: 13px; line-height: 1.45; }
.section-page { min-height: 650px; padding: 16px; border-top: 3px solid #999; }
.section-page h1 { margin: 0 0 14px; text-align: left; font-size: 20px; }
.section-page .news-list { margin-bottom: 22px; }
.section-page .news-list li { padding: 7px 0; }
.section-page .page-numbers { display: inline-block; margin: 5px; padding: 3px 10px; border: 1px solid #ddd; color: #777; }
.section-page .page-numbers.current { background: #eee; }
.article-meta { margin-bottom: 28px; color: #aaa; font-size: 13px; text-align: center; }
.article-content { color: #454545; font-size: 17px; }
.article-content img { max-width: 100%; height: auto; }
.article-content p { margin: 0 0 1.15em; }
.breadcrumb span { float: right; color: #999; }
.source-article { min-height: 900px; padding: 28px 12px; }
.source-article h1 { padding-bottom: 14px; border-bottom: 1px solid #eee; font-size: 18px; }
.source-article .article-content { max-width: 677px; margin: 0 auto; line-height: 1.85; }
.site-footer { margin-top: 42px; background: #f8f8f8; color: white; font-size: 13px; }
.footer-main { display: flex; justify-content: space-between; align-items: center; min-height: 164px; padding: 22px max(20px, calc((100% - 1200px) / 2)); background: linear-gradient(110deg, #f00, #ffb300); }
.footer-contact p { margin: 5px 0; }
.footer-qr { display: grid; justify-items: center; gap: 4px; }
.footer-qr img { width: 92px; height: 92px; padding: 3px; background: white; object-fit: cover; }
.footer-bottom { padding: 74px 20px 22px; color: #aaa; text-align: center; background: white; }
@media (max-width: 780px) { body { overflow-x: hidden; } .container { width: calc(100% - 20px); margin: 16px auto; } .head-inner { height: auto; min-height: 170px; padding: 18px; } .brand { font-size: 22px; gap: 10px; margin-left: 0; } .brand img { width: 76px; height: 76px; } .header-slogan, .wechat { display: none; } .primary-nav ul { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 100%; overflow: visible; } .primary-nav li { grid-column: span 2; min-width: 0; } .primary-nav li:nth-child(4) { grid-column: 2 / span 2; } .primary-nav a { min-width: 0; padding: 8px 2px; white-space: nowrap; } .headline { gap: 12px; } .headline strong { font-size: 20px; padding: 12px; } .headline h2 { font-size: 18px; } .home-grid, .column-grid, .bottom-grid, .section-layout { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; } .home-grid > *, .column-grid > *, .bottom-grid > *, .section-layout > * { min-width: 0; } .tab-panel { padding-inline: 12px; } .tabs { margin-inline: -12px; } .hero-image { min-height: 240px; } .page-card, .article-card { padding: 28px 20px; } .section-page { min-height: auto; padding: 20px; } .section-sidebar { display: none; } .source-article { min-height: auto; padding: 22px 0; } .source-article .article-content { font-size: 16px; } .footer-main { display: block; padding: 22px 20px; } .footer-contact { overflow-wrap: anywhere; } .footer-qr { margin-top: 20px; } .footer-bottom { padding: 38px 20px 22px; line-height: 1.8; } }
