/* fangpian1 — 红盾警示 */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #1b2430;
  --muted: #5d6b7a;
  --line: #d9e0e7;
  --brand: #b42318;
  --brand-dark: #8f1b13;
  --accent: #0d2137;
  --soft: #fdeceb;
  --grad: linear-gradient(135deg, #0d2137 0%, #1d3a5f 45%, #b42318 100%);
  --pattern: repeating-linear-gradient(-45deg, rgba(180,35,24,.05) 0 12px, transparent 12px 24px);
  --max: 1160px;
  --side: 300px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.tpl-fangpian1 {
  font-family: var(--font);
  color: var(--ink);
  background:
    var(--pattern),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.alert-strip {
  background: var(--brand);
  color: #fff;
  font-size: .9rem;
  animation: stripIn .5s ease both;
}
.alert-strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.alert-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: pulse 1.8s infinite;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 0;
}
.logo-badge, .logo-shield {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  position: relative;
  overflow: hidden;
}
.logo-shield::before {
  content: '';
  width: 20px; height: 24px;
  background: #fff;
  clip-path: polygon(50% 0, 100% 18%, 100% 62%, 50% 100%, 0 62%, 0 18%);
}
.brand-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-name {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-slogan {
  font-size: .82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.channel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  margin-left: auto;
}
.channel-nav a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .92rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.channel-nav a:hover { color: var(--brand); background: var(--soft); transform: translateY(-1px); }
.channel-nav a.active {
  color: #fff;
  background: var(--brand);
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 10px;
}
.menu-toggle span {
  display: block; height: 2px; background: var(--ink); transition: .25s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 16px;
}
.nav-mobile.open { display: grid; gap: 4px; }
.nav-mobile a {
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.page-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 16px 40px;
  flex: 1;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: 24px;
  align-items: start;
}

.featured-block, .board-hero, .lead-story {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.featured-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 280px;
}
.featured-media img, .board-hero img, .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-copy, .board-hero-copy, .lead-story { padding: 22px 24px; }
.tag-alert, .board-hero-label, .eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--brand);
  background: var(--soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  font-weight: 700;
}
.featured-copy h1, .board-hero-copy h1, .lead-story h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.35;
  margin-bottom: 12px;
}
.featured-copy h1 a:hover, .board-hero-copy h1:hover, .lead-story h1 a:hover { color: var(--brand); }
.featured-copy p, .board-hero-copy p, .lead-summary {
  color: var(--muted);
  margin-bottom: 14px;
}
.meta-line {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  color: var(--muted); font-size: .85rem;
}

.board-hero-link { display: grid; grid-template-columns: 1.2fr 1fr; }
.board-hero-label { margin: 16px 16px 0; }

.channel-banner {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--grad);
  color: #fff;
  animation: fadeUp .45s ease both;
}
.channel-banner h2 { font-size: 1.5rem; margin-bottom: 4px; }
.channel-banner p { opacity: .9; font-size: .95rem; }

.section-head { margin-bottom: 14px; }
.section-head h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  position: relative;
  padding-left: 12px;
}
.section-head h2::before {
  content: '';
  position: absolute; left: 0; top: .25em; bottom: .25em; width: 4px;
  background: var(--brand); border-radius: 4px;
}
.section-head p { color: var(--muted); font-size: .9rem; margin-top: 4px; padding-left: 12px; }

.article-list, .tips-list, .board-list { display: grid; gap: 12px; }
.article-item, .tips-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.article-item:hover, .tips-item:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 10px 24px rgba(16, 35, 63, .06);
}
.article-item a, .tips-item a {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 14px;
  padding: 12px;
}
.item-thumb {
  border-radius: 8px; overflow: hidden; background: var(--soft);
  aspect-ratio: 16/10;
}
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-body h3, .tips-body h3 {
  font-size: 1.05rem; line-height: 1.4; margin-bottom: 6px;
}
.item-body p, .tips-body p {
  color: var(--muted); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 8px;
}

.tips-item a { grid-template-columns: 56px 1fr; align-items: start; }
.tips-num {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--brand);
  line-height: 1;
  padding-top: 2px;
}

.side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.side-panel h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand);
}
.checklist { display: grid; gap: 8px; }
.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: .92rem;
}
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand);
  box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px var(--brand);
}
.hot-list { display: grid; gap: 10px; }
.hot-list li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.hot-list em {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: var(--soft); color: var(--muted); font-style: normal; font-size: .8rem;
}
.hot-list li.top em { background: var(--brand); color: #fff; }
.hot-list a:hover, .side-channels a:hover, .side-news-list a:hover { color: var(--brand); }
.side-channels, .side-news-list { display: grid; gap: 8px; }
.side-channels a, .side-news-list a {
  display: block; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted);
}
.side-empty { color: var(--muted); font-size: .9rem; }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 24px;
}
.pagination-btn {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.pagination-btn-primary, .btn-back {
  background: var(--brand); color: #fff; border-color: var(--brand);
  padding: 8px 16px; border-radius: 8px; display: inline-block;
}
.pagination-btn:hover, .btn-back:hover { background: var(--brand-dark); color: #fff; }
.pagination-info { color: var(--muted); font-size: .9rem; }

.article-crumb {
  display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 14px;
}
.article-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.article-h1 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  margin-bottom: 12px;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px;
  color: var(--muted); font-size: .9rem; margin-bottom: 18px;
}
.article-cover {
  border-radius: 10px; overflow: hidden; margin-bottom: 20px; aspect-ratio: 16/9; background: var(--soft);
}
.article-body p { margin-bottom: 1em; font-size: 1.05rem; }
.article-body h2 {
  font-size: 1.25rem; margin: 1.4em 0 .7em; padding-left: 10px;
  border-left: 4px solid var(--brand);
}
.article-body figure { margin: 1.2em 0; }
.article-body figcaption { color: var(--muted); font-size: .85rem; text-align: center; margin-top: 6px; }
.article-end { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.end-tip {
  background: var(--soft); color: var(--brand-dark);
  padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .95rem;
}

.error-page {
  text-align: center; padding: 70px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.error-code {
  font-size: 4rem; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: 8px;
}
.empty-state {
  padding: 40px; text-align: center; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
}

.site-footer {
  margin-top: auto;
  background: var(--accent);
  color: rgba(255,255,255,.88);
}
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 28px 16px 22px;
}
.footer-brand strong {
  display: block; font-size: 1.2rem; color: #fff; margin-bottom: 6px;
}
.footer-brand p { font-size: .9rem; margin-bottom: 14px; opacity: .85; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px;
}
.footer-links a { opacity: .85; }
.footer-links a:hover { opacity: 1; color: #fff; }
.footer-copy { font-size: .82rem; opacity: .7; }

.reveal { animation: fadeUp .55s ease both; }
.article-list .article-item:nth-child(2),
.tips-list .tips-item:nth-child(2),
.board-list .article-item:nth-child(2) { animation-delay: .05s; }
.article-list .article-item:nth-child(3),
.tips-list .tips-item:nth-child(3),
.board-list .article-item:nth-child(3) { animation-delay: .1s; }
.side-col .side-panel:nth-child(2) { animation-delay: .08s; }
.side-col .side-panel:nth-child(3) { animation-delay: .14s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes stripIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

@media (max-width: 960px) {
  .content-grid, .article-grid { grid-template-columns: 1fr; }
  .channel-nav { display: none; }
  .menu-toggle { display: flex; }
  .featured-block, .board-hero-link { grid-template-columns: 1fr; }
  .brand-slogan { max-width: 180px; }
}
@media (max-width: 640px) {
  .article-item a { grid-template-columns: 96px 1fr; gap: 10px; padding: 10px; }
  .item-body p { -webkit-line-clamp: 1; }
  .article-panel { padding: 16px; }
  .brand-name { font-size: 1.35rem; }
}