@import "tailwindcss";

:root {
  --red: #b80f16;
  --red-dark: #96070d;
  --red-soft: #d6151c;
  --cream: #f8f3e8;
  --ink: #353535;
  --muted: #737373;
  --line: #e3e3e3;
  --canvas: #f4f4f4;
  --shell: min(1420px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #1d5fa8; outline-offset: 3px; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 8px 14px; color: #fff; background: #222; transform: translateY(-160%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.masthead { height: 190px; background: var(--cream) url("/header-landscape.png") center / cover no-repeat; }
.masthead-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 46px; }
.identity { min-width: 0; display: flex; align-items: center; gap: 20px; }
.identity img { width: 96px; height: 96px; flex: 0 0 auto; object-fit: cover; }
.identity > span { display: flex; min-width: 0; flex-direction: column; }
.identity strong { color: #171717; font-family: "STKaiti", "KaiTi", "FangSong", serif; font-size: clamp(27px, 2.5vw, 43px); line-height: 1.12; font-weight: 800; letter-spacing: .075em; white-space: nowrap; }
.identity small { margin-top: 8px; color: #262626; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.identity em { margin-top: 3px; color: #8e1519; font-size: 11px; font-style: normal; letter-spacing: .12em; }
.site-search { width: min(475px, 38%); display: grid; grid-template-columns: 1fr auto; }
.site-search input { min-width: 0; height: 58px; padding: 0 20px; color: #333; background: rgba(255,255,255,.82); border: 1px solid var(--red); border-right: 0; border-radius: 0; }
.site-search input::placeholder { color: #aaa; }
.site-search button { width: 78px; height: 58px; padding: 0; color: #fff; background: var(--red); border: 1px solid var(--red); border-radius: 0; font-weight: 700; cursor: pointer; transition: background 180ms ease; }
.site-search button:hover { background: var(--red-dark); }

.desktop-nav { color: #fff; background: var(--red); box-shadow: 0 15px 0 rgba(0,0,0,.045); }
.desktop-nav ul { height: 78px; display: grid; grid-template-columns: repeat(8, 1fr); margin: 0; padding: 0; list-style: none; }
.desktop-nav a { height: 100%; display: grid; place-items: center; padding: 0 10px; font-size: 17px; font-weight: 700; letter-spacing: .035em; white-space: nowrap; transition: background 180ms ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { background: var(--red-dark); }
.mobile-nav { display: none; color: #fff; background: var(--red); }

.page-lead { padding: 54px 0 48px; background: #fff; border-bottom: 1px solid #eee; }
.lead-grid { display: grid; grid-template-columns: 1.45fr .7fr; gap: 62px; align-items: stretch; }
.lead-grid > div { padding-left: 30px; border-left: 7px solid var(--red); }
.lead-grid > div > span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.lead-grid h1 { margin: 8px 0 12px; color: #252525; font-family: "STKaiti", "KaiTi", "FangSong", serif; font-size: clamp(37px,4vw,58px); line-height: 1.18; letter-spacing: .06em; }
.lead-grid > div > p { max-width: 760px; margin: 0; color: #666; }
.lead-grid aside { padding: 26px 28px; color: #fff; background: var(--red); }
.lead-grid aside strong { font-size: 19px; letter-spacing: .08em; }
.lead-grid aside p { margin: 12px 0 20px; color: #f8dede; font-size: 13px; }
.lead-grid aside a { display: inline-block; padding: 8px 15px; color: var(--red); background: #fff; font-size: 12px; font-weight: 800; }

.portal { padding: 34px 0 56px; }
.portal-grid { display: grid; grid-template-columns: 340px minmax(0,1fr); gap: 30px; align-items: start; }
.sidebar { background: #fff; }
.side-title { min-height: 66px; display: flex; align-items: center; padding: 0 26px; color: #fff; background: linear-gradient(105deg,var(--red-soft) 0 83%,#fff 83%); border-top: 5px solid var(--red); font-size: 22px; font-weight: 800; letter-spacing: .08em; }
.sidebar nav { padding: 22px 14px 26px; }
.sidebar nav a { min-height: 54px; display: flex; align-items: center; padding: 0 24px; color: #555; border: 1px solid #eee; border-top: 0; font-weight: 700; }
.sidebar nav a:first-child { border-top: 1px solid #eee; }
.sidebar nav a:hover, .sidebar nav a.active { color: var(--red); background: #fffafa; }
.topic-title { min-height: 60px; margin-top: 22px; background: var(--red); border-top: 0; font-size: 20px; }
.sidebar ul { margin: 0; padding: 20px 20px 26px 40px; list-style: square; }
.sidebar li { margin: 0 0 15px; color: var(--red); }
.sidebar li:last-child { margin-bottom: 0; }
.sidebar li a { color: #555; font-size: 14px; line-height: 1.55; }
.sidebar li a:hover { color: var(--red); }

.content-list { min-width: 0; background: #fff; }
.breadcrumb { min-height: 72px; display: flex; align-items: center; gap: 13px; padding: 0 28px; color: #555; border-bottom: 1px solid #ddd; }
.breadcrumb span { color: var(--red); font-size: 18px; }
.list-heading { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 30px; border-bottom: 1px solid #eee; }
.list-heading h2 { margin: 0; color: var(--red); font-size: 24px; }
.list-heading span { color: #888; font-size: 12px; }
.list-heading button { padding: 6px 10px; color: var(--red); background: #fff5f5; border: 1px solid #efc9ca; cursor: pointer; }
.news-list { margin: 0; padding: 22px 30px 34px; list-style: none; }
.news-list li { border-bottom: 1px dashed #e2e2e2; }
.news-list a { min-height: 68px; display: grid; grid-template-columns: 10px minmax(0,1fr) 110px; gap: 14px; align-items: center; transition: color 180ms ease; }
.news-list a:hover { color: var(--red); }
.bullet { width: 7px; height: 7px; background: #d2d2d2; border-radius: 50%; }
.news-list a:hover .bullet { background: var(--red); }
.news-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-title b { margin-right: 13px; color: var(--red); font-size: 12px; font-weight: 700; }
.news-list time { color: #777; font-size: 13px; text-align: right; }
.empty-state { padding: 72px 30px; text-align: center; }
.empty-state strong { color: var(--red); font-size: 20px; }
.empty-state p { margin: 8px 0 0; color: #777; }

.about { padding: 56px 0; background: #fff; }
.section-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 60px; align-items: center; }
.section-copy > span, .section-heading span { color: var(--red); font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.section-copy h2, .section-heading h2 { margin: 5px 0 14px; font-size: 32px; letter-spacing: .07em; }
.section-copy p { max-width: 850px; margin: 0; color: #636363; }
.truth-note { padding: 22px 24px; background: #fff8f2; border-left: 5px solid var(--red); }
.truth-note strong { color: var(--red); }
.truth-note p { margin: 7px 0 0; color: #715d55; font-size: 13px; }

.focus { padding: 58px 0 64px; color: #fff; background: #333; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 50px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 620px; margin: 0 0 5px; color: #bbb; font-size: 13px; }
.focus-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #575757; border-bottom: 1px solid #575757; }
.focus-grid article { min-height: 255px; padding: 27px; border-right: 1px solid #575757; transition: background 180ms ease; }
.focus-grid article:last-child { border-right: 0; }
.focus-grid article:hover { background: #3c3c3c; }
.focus-grid b { color: #e73a41; font-family: Arial Black,Arial,sans-serif; font-size: 34px; }
.focus-grid h3 { margin: 22px 0 12px; font-size: 21px; letter-spacing: .08em; }
.focus-grid p { margin: 0; color: #bbb; font-size: 13px; }

.service-panels { padding: 52px 0; background: #fff; }
.service-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.service-grid article { min-height: 245px; padding: 29px; background: #f5f5f5; border-top: 5px solid var(--red); }
.service-grid article > span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.service-grid h2 { margin: 10px 0 14px; font-size: 22px; }
.service-grid p { color: #666; font-size: 13px; }
.service-grid strong { display: inline-block; margin-top: 28px; padding: 4px 9px; color: var(--red); background: #fff; border: 1px solid #e3c1c2; font-size: 11px; }

.notice-band { color: #fff; background: var(--red); }
.notice-band .shell { min-height: 112px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.notice-band strong { font-size: 19px; }
.notice-band p { margin: 0; color: #f5dada; }
.notice-band a { padding: 8px 14px; color: var(--red); background: #fff; font-size: 12px; font-weight: 800; }

.site-footer { color: #ccc; background: #262626; border-top: 7px solid var(--red); }
.footer-grid { min-height: 210px; display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 60px; align-items: center; padding-block: 32px; }
.footer-grid strong, .footer-grid span { display: block; }
.footer-grid strong { color: #fff; font-size: 19px; letter-spacing: .07em; }
.footer-grid span { margin-top: 6px; color: #e13c43; font-size: 12px; }
.footer-grid p { margin: 3px 0; font-size: 11px; }

@media (max-width: 1080px) {
  :root { --shell: min(100% - 36px,960px); }
  .masthead { height: 165px; }
  .identity img { width: 76px; height: 76px; }
  .identity strong { font-size: 28px; }
  .site-search { width: 34%; }
  .desktop-nav ul { height: auto; grid-template-columns: repeat(4,1fr); }
  .desktop-nav a { min-height: 54px; }
  .portal-grid { grid-template-columns: 275px minmax(0,1fr); }
  .focus-grid { grid-template-columns: repeat(2,1fr); }
  .focus-grid article:nth-child(2) { border-right: 0; }
  .focus-grid article:nth-child(-n+2) { border-bottom: 1px solid #575757; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 28px); }
  .masthead { height: auto; }
  .masthead-inner { align-items: stretch; flex-direction: column; gap: 20px; padding: 24px 0; }
  .identity strong { font-size: 22px; white-space: normal; }
  .identity small { font-size: 9px; }
  .site-search { width: 100%; }
  .site-search input, .site-search button { height: 50px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-weight: 700; cursor: pointer; list-style: none; }
  .mobile-nav summary::after { content: "+"; font-size: 23px; }
  .mobile-nav[open] summary::after { content: "−"; }
  .mobile-nav nav { display: grid; grid-template-columns: repeat(2,1fr); padding: 0 14px 14px; }
  .mobile-nav a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.16); }
  .lead-grid, .portal-grid, .section-grid, .service-grid, .footer-grid { grid-template-columns: 1fr; }
  .lead-grid { gap: 28px; }
  .lead-grid h1 { font-size: 39px; }
  .sidebar { display: none; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .service-grid article { min-height: 210px; }
  .notice-band .shell { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .notice-band a { justify-self: start; }
  .footer-grid { gap: 24px; }
}

@media (max-width: 480px) {
  .identity { align-items: flex-start; gap: 12px; }
  .identity img { width: 60px; height: 60px; }
  .identity strong { font-size: 19px; }
  .identity small { display: none; }
  .lead-grid > div { padding-left: 18px; border-left-width: 5px; }
  .lead-grid h1 { font-size: 33px; }
  .breadcrumb, .list-heading { padding-inline: 16px; }
  .list-heading { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 14px; }
  .news-list { padding-inline: 16px; }
  .news-list a { grid-template-columns: 8px minmax(0,1fr); gap: 11px; padding: 12px 0; }
  .news-title { white-space: normal; }
  .news-list time { grid-column: 2; text-align: left; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-grid article, .focus-grid article:nth-child(2) { border-right: 0; border-bottom: 1px solid #575757; }
  .focus-grid article:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
