:root {
  --red: #a80713;
  --red-2: #d7222d;
  --red-3: #7e0610;
  --gold: #d7a942;
  --navy: #112a4e;
  --ink: #15233a;
  --muted: #6c7d95;
  --line: #e6ebf2;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --blue: #1769d2;
  --shadow: 0 16px 48px rgba(25, 43, 72, .09);
  --radius: 18px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--wash);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, #eef5fb 0, #f7f9fc 420px, #f2f5f9 100%); color: var(--ink); min-width: 320px; }
body, input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.panel { background: rgba(255,255,255,.94); border: 1px solid rgba(223,230,239,.9); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(28,49,79,.05); }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(221,229,239,.9); }
.topbar { height: 88px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.brand-mark { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center; box-shadow: 0 5px 15px rgba(167,7,19,.18); }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-family: "STSong", "Songti SC", serif; font-size: 26px; letter-spacing: 3px; color: #142d52; white-space: nowrap; }
.brand-copy small { font-size: 11px; letter-spacing: 4px; color: #8b2130; margin-top: 2px; }
.header-search { margin-left: auto; width: min(430px, 42vw); height: 46px; display: flex; align-items: center; gap: 10px; padding: 0 17px; background: #f0f4f8; border: 1px solid #e5ebf2; border-radius: 99px; }
.header-search svg { width: 21px; fill: none; stroke: #718198; stroke-width: 2; }
.header-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.admin-entry { padding: 10px 17px; color: var(--red); border: 1px solid rgba(168,7,19,.22); border-radius: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; transition: .2s; }
.admin-entry:hover { color: #fff; background: var(--red); }
.main-nav { border-top: 1px solid #f0f2f5; }
.nav-scroll { height: 48px; display: flex; align-items: stretch; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { min-width: 88px; display: grid; place-items: center; padding: 0 16px; font-size: 15px; font-weight: 650; color: #526278; position: relative; white-space: nowrap; }
.nav-scroll a::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: 0; height: 3px; background: var(--red); border-radius: 4px 4px 0 0; transform: scaleX(0); transition: .2s; }
.nav-scroll a:hover, .nav-scroll a.active { color: var(--red); }
.nav-scroll a.active::after { transform: scaleX(1); }

.home-shell { padding-top: 22px; padding-bottom: 60px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, .7fr); gap: 16px; }
.hero-story { min-height: 384px; overflow: hidden; border-radius: 22px; position: relative; display: flex; align-items: flex-end; color: #fff; background: radial-gradient(circle at 72% 12%, rgba(255,212,151,.28), transparent 32%), linear-gradient(125deg, #780711 5%, #ba1020 58%, #e04a28 100%); box-shadow: 0 20px 52px rgba(114,10,18,.22); background-size: cover; background-position: center; }
.hero-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(42,0,3,.45), transparent 55%); pointer-events: none; }
.hero-story::before { content: "清 风 正 气"; position: absolute; right: 35px; top: 24px; writing-mode: vertical-rl; font-family: "STKaiti", "KaiTi", serif; font-size: 15px; letter-spacing: 8px; color: rgba(255,241,196,.72); z-index: 2; }
.hero-copy { padding: 45px 48px; max-width: 720px; position: relative; z-index: 3; }
.eyebrow { display: inline-flex; padding: 7px 12px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); border-radius: 6px; font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.hero-copy h1 { margin: 17px 0 13px; font-family: "STSong", "Songti SC", serif; font-size: clamp(30px, 3vw, 48px); line-height: 1.28; letter-spacing: 2px; text-wrap: balance; }
.hero-copy p { margin: 0; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.8; max-width: 620px; }
.hero-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 17px; border: 1px solid rgba(255,255,255,.68); border-radius: 99px; font-size: 14px; }
.hero-link b { font-size: 18px; }
.hero-emblem { position: absolute; width: 355px; height: 355px; right: 25px; bottom: -76px; object-fit: cover; border-radius: 50%; mix-blend-mode: screen; opacity: .18; filter: saturate(.5) sepia(.2); }
.hero-story.has-cover .hero-emblem { display: none; }
.hero-side { border-radius: 22px; padding: 34px 30px; background: #fff; border: 1px solid #e6ebf1; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.side-kicker { color: var(--red); font-size: 13px; letter-spacing: 2px; font-weight: 800; }
.hero-side h2 { font-family: "STSong", "Songti SC", serif; font-size: 26px; line-height: 1.55; margin: 20px 0 13px; }
.hero-side p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.side-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }
.side-stats div { display: flex; flex-direction: column; }
.side-stats strong { color: var(--red); font: 700 27px Georgia, serif; }
.side-stats span { color: var(--muted); font-size: 13px; margin-top: 2px; }

.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 16px 0; padding: 18px; background: rgba(255,255,255,.85); border: 1px solid #e5ebf2; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(35,53,80,.05); }
.quick-grid a { text-align: center; min-width: 0; border-right: 1px solid #edf0f5; display: grid; grid-template-columns: 46px minmax(0,1fr); grid-template-rows: 24px 20px; align-items: center; column-gap: 10px; padding: 5px 10px; }
.quick-grid a:last-child { border-right: 0; }
.quick-grid a > span { grid-row: 1 / 3; width: 44px; height: 44px; display: grid; place-items: center; background: #fbecee; color: var(--red); border-radius: 13px; font-family: "STSong", serif; font-size: 22px; font-weight: 800; transition: .2s; }
.quick-grid a:nth-child(even) > span { color: var(--blue); background: #eaf3ff; }
.quick-grid strong { font-size: 15px; white-space: nowrap; }
.quick-grid small { font-size: 11px; color: #8b97a8; white-space: nowrap; }
.quick-grid a:hover > span { transform: translateY(-3px); }

.headline-strip { min-height: 92px; padding: 14px 22px; display: grid; grid-template-columns: 180px 1fr 30px; gap: 22px; align-items: center; background: #fff; border: 1px solid #e4eaf1; border-radius: var(--radius); margin-bottom: 16px; }
.headline-label { font: 800 32px "STSong", "Songti SC", serif; color: var(--red); border-right: 1px solid var(--line); }
.headline-label span { color: #135a9e; }
.headline-strip > a { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.headline-strip strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.headline-strip a span { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.headline-strip > b { font-size: 28px; color: #9aa7b7; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, .82fr); gap: 16px; align-items: start; }
.latest-panel, .ranking-panel, .mini-section { padding: 20px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.section-title h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 21px; }
.section-title h2 i { display: block; width: 5px; height: 26px; background: var(--blue); border-radius: 5px; }
.section-title h2 i.red { background: var(--red-2); }
.section-title > a { color: #8996a8; font-size: 14px; }
.news-stack { display: flex; flex-direction: column; }
.news-card { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-card:last-child { border-bottom: 0; }
.news-thumb { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #8d0711, #da2431); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pattern { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; position: relative; background-image: radial-gradient(circle at 70% 20%, rgba(255,214,141,.35), transparent 28%), linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25% 50%, rgba(255,255,255,.06) 50% 75%, transparent 75%); background-size: auto, 34px 34px; }
.thumb-pattern::before { content: ""; position: absolute; inset: 13px; border: 1px solid rgba(255,236,192,.55); border-radius: 8px; }
.thumb-pattern b { font: 700 44px "STKaiti", "KaiTi", serif; color: #fbe6a7; }
.thumb-pattern small { position: absolute; bottom: 16px; letter-spacing: 3px; font-size: 11px; }
.news-body { min-width: 0; display: flex; flex-direction: column; }
.news-body h3 { margin: 1px 0 10px; font-size: 19px; line-height: 1.55; }
.news-body h3 a:hover { color: var(--red); }
.news-body p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.news-meta { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 12px; color: #8492a6; font-size: 12px; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; color: var(--red); background: #fff0f1; border: 1px solid #ffd4d7; border-radius: 5px; white-space: nowrap; font-size: 12px; font-weight: 700; }
.ranking-panel { position: sticky; top: 156px; }
.ranking-list { list-style: none; margin: 0; padding: 0; }
.ranking-list li { display: grid; grid-template-columns: 25px minmax(0,1fr); column-gap: 10px; row-gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ranking-list li > span { grid-row: 1 / 3; width: 23px; height: 23px; border-radius: 6px; display: grid; place-items: center; background: #e9edf3; color: #718198; font: 700 12px Georgia, serif; }
.ranking-list li:nth-child(-n+3) > span { background: var(--red); color: #fff; }
.ranking-list a { font-size: 14px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ranking-list small { color: #9aa6b5; font-size: 11px; }
.quote-card { margin-top: 18px; padding: 22px; border-radius: 14px; color: #fff; background: radial-gradient(circle at 90% 10%, rgba(255,224,168,.25), transparent 36%), linear-gradient(135deg, #79101a, #b31b27); }
.quote-card span { font-size: 12px; color: #f5d58b; letter-spacing: 3px; }
.quote-card blockquote { margin: 12px 0 0; font: 600 17px/1.8 "STSong", serif; }
.section-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 16px; }
.mini-lead { min-height: 78px; display: grid; grid-template-columns: 74px 1fr; gap: 15px; align-items: center; padding: 8px 0 14px; border-bottom: 1px solid var(--line); }
.mini-lead > span { height: 62px; display: grid; place-items: center; background: linear-gradient(135deg, #172f52, #2a70b4); color: #fff; border-radius: 10px; font: 700 26px "STSong", serif; }
.mini-section:nth-child(even) .mini-lead > span { background: linear-gradient(135deg, #8b0814, #d42d37); }
.mini-lead a { font-size: 17px; font-weight: 700; line-height: 1.55; }
.dot-list { margin: 9px 0 0; padding: 0; list-style: none; }
.dot-list li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 8px 0; font-size: 14px; }
.dot-list a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-list a::before { content: "•"; color: var(--red); margin-right: 8px; }
.dot-list time { color: #8e9bae; font-size: 12px; }
.empty-note { text-align: center; color: var(--muted); padding: 40px 0; }
.learning-banner { margin-top: 16px; padding: 29px 35px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 80% 20%, rgba(248,204,109,.24), transparent 30%), linear-gradient(120deg, #87101b, #bd1f2c 70%, #8b0712); box-shadow: 0 15px 35px rgba(135,16,27,.16); }
.learning-banner span { color: #f7d48c; font-size: 12px; letter-spacing: 4px; }
.learning-banner h2 { margin: 5px 0 4px; font: 700 27px "STSong", serif; letter-spacing: 3px; }
.learning-banner p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }
.learning-banner a { padding: 11px 18px; background: #fff; color: var(--red); border-radius: 99px; white-space: nowrap; font-weight: 700; }

.page-shell { padding: 34px 0 64px; }
.page-heading { min-height: 116px; padding: 24px 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; color: #fff; border-radius: 20px; background: radial-gradient(circle at 85% 5%, rgba(255,219,156,.25), transparent 30%), linear-gradient(120deg, #7f0812, #b21926 68%, #d54930); }
.page-heading span { color: #f4d991; font-size: 11px; letter-spacing: 3px; }
.page-heading h1 { margin: 4px 0 0; font: 700 31px "STSong", serif; letter-spacing: 2px; }
.page-heading p { margin: 0; color: rgba(255,255,255,.78); font-size: 14px; }
.category-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 16px 0; padding: 9px; border: 1px solid #e4eaf1; border-radius: 14px; background: #fff; scrollbar-width: none; }
.category-tabs a { padding: 9px 15px; border-radius: 8px; white-space: nowrap; color: #5f6f85; font-size: 14px; }
.category-tabs a.active { color: #fff; background: var(--red); }
.list-panel { padding: 10px 24px; }
.list-panel .news-card { grid-template-columns: 240px minmax(0,1fr); padding-block: 20px; }
.pagination { display: flex; justify-content: center; gap: 7px; padding: 24px 0 12px; }
.pagination a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.pagination a.active { background: var(--red); color: #fff; border-color: var(--red); }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state b { font-size: 20px; }
.empty-state p { color: var(--muted); }
.big-search { margin: 16px 0; display: flex; gap: 10px; }
.big-search input { flex: 1; height: 50px; padding: 0 18px; background: #fff; border: 1px solid #dfe6ee; border-radius: 12px; outline: none; }
.big-search input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(168,7,19,.08); }
.big-search button { width: 110px; color: #fff; background: var(--red); border: 0; border-radius: 12px; font-weight: 700; }

.article-page { padding: 26px 0 70px; }
.article-breadcrumb { display: flex; gap: 9px; align-items: center; padding: 0 4px 15px; color: #8492a4; font-size: 13px; }
.article-breadcrumb em { font-style: normal; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.article-main { padding: clamp(24px, 5vw, 58px); }
.article-tag { display: inline-flex; padding: 5px 10px; border-radius: 5px; color: #fff; background: var(--red); font-size: 13px; }
.article-main > h1 { font: 700 clamp(28px, 4vw, 42px)/1.38 "STSong", "Songti SC", serif; letter-spacing: 1px; margin: 18px 0; text-wrap: balance; }
.article-info { display: flex; flex-wrap: wrap; gap: 18px; color: #77869b; font-size: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-cover { width: 100%; max-height: 520px; object-fit: cover; border-radius: 14px; margin: 28px 0; }
.article-summary { margin: 26px 0; padding: 20px 22px; background: #f5f8fb; border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; color: #53647a; line-height: 1.85; }
.article-summary b { color: var(--red); margin-right: 12px; }
.article-content { font-family: "STSong", "Songti SC", serif; font-size: 18px; line-height: 2; color: #29364a; }
.article-content p { margin: 0 0 1.25em; }
.article-content h2, .article-content h3 { color: #152f55; line-height: 1.5; margin-top: 1.7em; }
.article-content img { max-width: 100%; height: auto; margin: 24px auto; border-radius: 10px; }
.article-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.source-box { margin-top: 40px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fff8f0; border: 1px solid #f2dec4; border-radius: 12px; }
.source-box strong { font-size: 14px; }
.source-box p { margin: 5px 0 0; color: #7b6e61; font-size: 12px; }
.source-box > a { padding: 8px 13px; background: #fff; color: var(--red); border: 1px solid #e7c9c3; border-radius: 8px; white-space: nowrap; font-size: 13px; }
.article-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 160px; }
.article-aside .panel { padding: 20px; }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.related-list li:last-child { border-bottom: 0; }
.related-list a { display: block; font-size: 14px; line-height: 1.55; }
.related-list time { display: block; margin-top: 5px; color: #94a0b0; font-size: 11px; }
.article-slogan { padding: 25px 20px; display: flex; flex-direction: column; align-items: center; color: #fff; border-radius: var(--radius); background: linear-gradient(145deg, #7e0812, #b91827); }
.article-slogan img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,229,177,.65); }
.article-slogan strong { font: 700 23px "STSong", serif; letter-spacing: 5px; margin-top: 12px; }
.article-slogan span { font-size: 11px; color: #f5d28b; letter-spacing: 2px; margin-top: 5px; }

.site-footer { background: #101f34; color: rgba(255,255,255,.72); padding: 38px 0 88px; }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr auto; gap: 35px; align-items: center; }
.footer-grid strong { color: #fff; font: 700 21px "STSong", serif; letter-spacing: 2px; }
.footer-grid p { margin: 4px 0; font-size: 12px; line-height: 1.7; }
.footer-grid > a { padding: 9px 13px; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; font-size: 12px; }
.mobile-nav { display: none; }
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.error-page > span { color: #d9dfe7; font: 800 100px/1 Georgia, serif; }
.error-page h1 { margin: 12px 0 0; }
.error-page p { color: var(--muted); }
.error-page a { padding: 10px 17px; border-radius: 8px; color: #fff; background: var(--red); }

/* Admin */
.admin-body { min-height: 100vh; background: #f3f6fa; color: #1f2937; }
.admin-sidebar { position: fixed; z-index: 60; inset: 0 auto 0 0; width: 245px; display: flex; flex-direction: column; padding: 22px 15px; color: #c7d0dc; background: #111b2b; }
.admin-brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand img { width: 43px; height: 43px; object-fit: cover; border-radius: 50%; }
.admin-brand span { display: flex; flex-direction: column; }
.admin-brand strong { color: #fff; font-family: "STSong", serif; font-size: 18px; letter-spacing: 2px; }
.admin-brand small { color: #75849a; font-size: 9px; letter-spacing: 2px; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 7px; margin-top: 24px; }
.admin-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 13px; border-radius: 9px; font-size: 14px; }
.admin-sidebar nav a span { width: 21px; color: #8291a6; font-size: 17px; text-align: center; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar nav a.active span { color: #ff626e; }
.admin-user { margin-top: auto; padding: 16px 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.admin-user > div { display: flex; align-items: center; gap: 10px; }
.admin-user > div > b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--red); }
.admin-user > div span { display: flex; flex-direction: column; }
.admin-user strong { color: #fff; font-size: 13px; }
.admin-user small { color: #77869b; font-size: 10px; }
.admin-user form { margin-top: 12px; }
.admin-user button { width: 100%; padding: 8px; color: #9ca9ba; background: transparent; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; font-size: 12px; }
.admin-main { min-height: 100vh; margin-left: 245px; }
.admin-topbar { height: 78px; padding: 0 32px; display: flex; align-items: center; gap: 18px; background: #fff; border-bottom: 1px solid #e4e9ef; }
.admin-topbar > div { display: flex; flex-direction: column; }
.admin-topbar small { color: #95a0af; font-size: 10px; letter-spacing: 1px; }
.admin-topbar h1 { margin: 0; font-size: 19px; }
.admin-topbar > a { margin-left: auto; color: #67768a; font-size: 13px; }
.sidebar-toggle { display: none; width: 38px; height: 38px; border: 1px solid #e1e7ee; border-radius: 8px; background: #fff; }
.admin-content { max-width: 1450px; margin: 0 auto; padding: 28px 32px 60px; }
.admin-welcome, .admin-list-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.admin-welcome span, .admin-list-head > div > span { color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 3px; }
.admin-welcome h2, .admin-list-head h2 { margin: 5px 0 3px; font-size: 27px; }
.admin-welcome p, .admin-list-head p { margin: 0; color: #8491a2; font-size: 13px; }
.scrape-button { min-width: 190px; padding: 12px 18px; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; text-align: left; color: #fff; background: var(--red); border: 0; border-radius: 11px; box-shadow: 0 8px 22px rgba(168,7,19,.18); }
.scrape-button > span { grid-row: 1 / 3; align-self: center; font-size: 29px; line-height: 1; }
.scrape-button b { font-size: 14px; }
.scrape-button small { color: rgba(255,255,255,.7); font-size: 10px; }
.scrape-button:disabled { opacity: .6; cursor: wait; }
.scrape-button.loading > span { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-grid article { display: flex; align-items: center; gap: 15px; padding: 20px; background: #fff; border: 1px solid #e4e9f0; border-radius: 13px; }
.stat-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 11px; font-weight: 800; }
.stat-icon.blue { color: #1769d2; background: #e9f2ff; }
.stat-icon.green { color: #149969; background: #e7f7f1; }
.stat-icon.orange { color: #d97706; background: #fff4e2; }
.stat-icon.red { color: var(--red); background: #fdebed; }
.stat-grid article > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; flex: 1; }
.stat-grid small { grid-column: 1/3; color: #8693a5; font-size: 11px; }
.stat-grid strong { font-size: 27px; margin-top: 4px; }
.stat-grid em { font-style: normal; color: #a2adba; font-size: 10px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .7fr); gap: 18px; margin-bottom: 18px; }
.admin-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 13px; box-shadow: 0 7px 22px rgba(34,50,73,.035); }
.admin-card-title { min-height: 67px; padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #edf0f4; }
.admin-card-title h3 { margin: 0; font-size: 15px; }
.admin-card-title p { margin: 3px 0 0; color: #96a1b0; font-size: 10px; }
.admin-card-title > a { color: var(--blue); font-size: 12px; }
.recent-table > a { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid #f0f2f5; }
.recent-table > a:last-child { border-bottom: 0; }
.admin-thumb { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8b0b16, #d52a36); border-radius: 9px; font-family: "STSong", serif; }
.recent-table a > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.recent-table strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-table small { color: #98a3b1; font-size: 10px; }
.status { display: inline-flex; padding: 3px 7px; border-radius: 99px; font-size: 10px; font-style: normal; white-space: nowrap; color: #64748b; background: #edf1f5; }
.status.published, .status.success { color: #087b55; background: #e6f7f0; }
.status.draft, .status.running { color: #a65e00; background: #fff2d9; }
.status.hidden, .status.failed { color: #b21f2d; background: #fde9eb; }
.live-dot { color: #07825a; font-size: 11px; }
.live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #10b981; }
.schedule-card { overflow: hidden; }
.schedule-visual { margin: 19px; padding: 16px; display: flex; align-items: center; gap: 14px; color: #fff; background: linear-gradient(135deg, #101f35, #214a78); border-radius: 10px; }
.schedule-visual > span { width: 47px; height: 47px; display: grid; place-items: center; background: rgba(255,255,255,.1); border-radius: 10px; font: 700 22px Georgia, serif; }
.schedule-visual div { display: flex; flex-direction: column; }
.schedule-visual strong { font-size: 14px; }
.schedule-visual small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: 10px; }
.schedule-card dl { margin: 0 19px; }
.schedule-card dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #edf0f4; font-size: 11px; }
.schedule-card dt { color: #8793a3; }
.schedule-card dd { margin: 0; color: #3d4b5e; }
.schedule-card code { font-size: 10px; }
.schedule-note { margin: 15px 19px 18px; color: #9aa5b2; font-size: 10px; line-height: 1.6; }
.log-card { overflow: hidden; }
.log-table-wrap { width: 100%; overflow-x: auto; }
.log-table, .articles-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 11px; }
.log-table th, .log-table td, .articles-table th, .articles-table td { padding: 12px 16px; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.log-table th, .articles-table th { color: #7f8c9e; background: #fafbfc; font-weight: 600; }
.log-table td:last-child { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.empty-admin { padding: 40px; color: #8c98a8; text-align: center; font-size: 12px; }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 9px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; }
.primary-btn.compact { min-height: 40px; }
.ghost-btn { padding: 9px 13px; border: 1px solid #dfe5ec; border-radius: 8px; color: #5e6e83; font-size: 12px; }
.admin-filters { display: flex; gap: 8px; margin-bottom: 14px; }
.admin-filters input, .admin-filters select { height: 40px; padding: 0 12px; border: 1px solid #dce3ea; border-radius: 8px; background: #fff; outline: none; }
.admin-filters input { flex: 1; max-width: 360px; }
.admin-filters button { padding: 0 18px; border: 0; border-radius: 8px; color: #fff; background: #263a56; }
.admin-filters > a { display: grid; place-items: center; padding: 0 10px; color: #748296; font-size: 12px; }
.articles-table-card { overflow: hidden; }
.articles-table th:first-child { width: 48%; }
.article-cell { min-width: 360px; display: flex; align-items: center; gap: 10px; }
.article-cell > span { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #8a0b16, #d62c38); font-family: "STSong", serif; }
.article-cell > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.article-cell strong { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.article-cell small { max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #929eac; font-size: 10px; }
.featured-badge { margin-left: 5px; color: var(--red); font-size: 9px; }
.row-actions { display: flex; gap: 5px; align-items: center; }
.row-actions a, .row-actions button { padding: 5px 7px; color: #53657b; background: #f6f8fa; border: 1px solid #e4e9ef; border-radius: 6px; font-size: 10px; }
.row-actions form { display: inline; }
.editor-form { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 18px; align-items: start; }
.editor-main { padding: 22px; }
.editor-side { display: flex; flex-direction: column; gap: 14px; }
.editor-side .admin-card { padding: 18px; }
.editor-side h3 { margin: 0 0 16px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field:last-child { margin-bottom: 0; }
.field > span { color: #55657a; font-size: 12px; font-weight: 600; }
.field input, .field textarea, .field select { width: 100%; padding: 10px 11px; color: #28384c; background: #fff; border: 1px solid #dce3eb; border-radius: 8px; outline: none; font-size: 13px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #7599c2; box-shadow: 0 0 0 3px rgba(33,93,158,.08); }
.field textarea { resize: vertical; line-height: 1.7; }
.field .code-area { font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.checkbox-field { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.checkbox-field input { accent-color: var(--red); }
.form-error { margin: 0 0 14px; padding: 11px 13px; color: #b42331; background: #fdecef; border: 1px solid #f7cdd2; border-radius: 8px; font-size: 12px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: min(430px, calc(100vw - 32px)); padding: 13px 16px; color: #fff; background: #18263a; border-radius: 9px; box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #a30d19; }

/* Login */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at 80% 10%, rgba(217,50,61,.12), transparent 30%), #f1f4f8; }
.login-shell { width: min(920px, 100%); min-height: 570px; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(22,37,59,.16); }
.login-intro { padding: 42px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(circle at 80% 15%, rgba(255,219,151,.25), transparent 28%), linear-gradient(145deg, #6e0710, #a80c19 60%, #c62a31); }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,225,177,.6); }
.login-brand span { display: flex; flex-direction: column; }
.login-brand strong { font: 700 20px "STSong", serif; letter-spacing: 3px; }
.login-brand small { color: rgba(255,255,255,.63); font-size: 10px; letter-spacing: 3px; }
.login-intro h1 { margin: 16px 0 10px; font: 700 36px/1.45 "STSong", serif; letter-spacing: 2px; }
.login-intro p { color: rgba(255,255,255,.72); }
.login-intro > small { color: rgba(255,255,255,.48); font-size: 10px; }
.login-card { padding: 70px 52px; align-self: center; }
.login-card h2 { margin: 0; font-size: 26px; }
.login-card > p { margin: 7px 0 28px; color: #8995a5; font-size: 13px; }
.login-card form { display: flex; flex-direction: column; gap: 17px; }
.login-card label { display: flex; flex-direction: column; gap: 8px; color: #526278; font-size: 12px; }
.login-card input { height: 46px; padding: 0 13px; border: 1px solid #dce3eb; border-radius: 8px; outline: none; }
.login-card input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(168,7,19,.08); }
.login-card .primary-btn { width: 100%; margin-top: 3px; }
.back-link { display: block; margin-top: 22px; color: #7b899c; text-align: center; font-size: 11px; }
.login-mobile-brand { display: none; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-grid a:nth-child(3) { border-right: 0; }
  .quick-grid a:nth-child(-n+3) { border-bottom: 1px solid #edf0f5; padding-bottom: 13px; }
  .quick-grid a:nth-child(n+4) { padding-top: 13px; }
  .content-grid { grid-template-columns: 1fr; }
  .ranking-panel { position: static; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; display: grid; grid-template-columns: 1fr 280px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 66px; background: #f2f6fa; }
  .container { width: min(100% - 24px, 1180px); }
  .site-header { position: relative; }
  .topbar { height: 72px; gap: 10px; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-copy strong { font-size: 20px; letter-spacing: 2px; }
  .brand-copy small { font-size: 8px; letter-spacing: 2px; }
  .header-search { margin-left: auto; width: 42px; height: 42px; padding: 0; justify-content: center; border: 0; background: transparent; }
  .header-search input { position: fixed; z-index: 50; left: 12px; right: 12px; top: 76px; width: calc(100% - 24px); height: 46px; padding: 0 15px; background: #fff; border: 1px solid #dce4ec; border-radius: 12px; box-shadow: 0 12px 32px rgba(24,42,67,.16); display: none; }
  .header-search:focus-within input { display: block; }
  .admin-entry { display: none; }
  .main-nav { background: #fff; }
  .nav-scroll { justify-content: flex-start; height: 46px; padding-inline: 6px; }
  .nav-scroll a { min-width: 72px; padding: 0 10px; font-size: 14px; }
  .home-shell { padding-top: 12px; padding-bottom: 28px; }
  .hero-story { min-height: 285px; border-radius: 16px; }
  .hero-copy { padding: 28px 22px; }
  .hero-copy h1 { font-size: 28px; line-height: 1.36; letter-spacing: 1px; }
  .hero-copy p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .hero-link { margin-top: 18px; }
  .hero-emblem { width: 245px; height: 245px; right: -20px; bottom: -35px; }
  .hero-story::before { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); padding: 12px 7px; gap: 0; border-radius: 14px; }
  .quick-grid a { display: flex; flex-direction: column; gap: 6px; padding: 9px 3px !important; border-right: 0; border-bottom: 0 !important; }
  .quick-grid a > span { width: 41px; height: 41px; font-size: 20px; }
  .quick-grid strong { font-size: 13px; }
  .quick-grid small { display: none; }
  .headline-strip { min-height: 78px; grid-template-columns: 85px minmax(0,1fr) 14px; gap: 11px; padding: 12px 14px; border-radius: 14px; }
  .headline-label { font-size: 22px; }
  .headline-strip strong { font-size: 15px; }
  .headline-strip a span { font-size: 12px; }
  .latest-panel, .ranking-panel, .mini-section { padding: 14px; border-radius: 14px; }
  .section-title h2 { font-size: 18px; }
  .section-title h2 i { height: 22px; }
  .news-card, .list-panel .news-card { grid-template-columns: 128px minmax(0,1fr); gap: 13px; padding: 14px 0; }
  .news-body h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .news-body p { display: none; }
  .news-meta { gap: 7px; padding-top: 4px; }
  .news-meta span:nth-child(2) { display: none; }
  .tag { font-size: 10px; padding: 2px 6px; }
  .thumb-pattern b { font-size: 30px; }
  .thumb-pattern small { display: none; }
  .section-cards { grid-template-columns: 1fr; gap: 12px; }
  .learning-banner { padding: 24px 20px; border-radius: 15px; }
  .learning-banner h2 { font-size: 22px; }
  .learning-banner p { display: none; }
  .learning-banner a { padding: 9px 13px; font-size: 12px; }
  .page-shell { padding: 12px 0 30px; }
  .page-heading { min-height: 96px; padding: 19px; border-radius: 15px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { display: none; }
  .category-tabs { margin: 10px 0; }
  .list-panel { padding: 5px 14px; border-radius: 14px; }
  .article-page { width: 100%; padding: 0 0 25px; }
  .article-breadcrumb { padding: 11px 14px; }
  .article-main { padding: 25px 18px; border: 0; border-radius: 0; }
  .article-main > h1 { font-size: 27px; }
  .article-content { font-size: 17px; line-height: 1.9; }
  .source-box { flex-direction: column; align-items: flex-start; }
  .article-aside { padding: 0 12px; grid-template-columns: 1fr; }
  .article-slogan { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .footer-grid > a { display: none; }
  .site-footer { padding: 30px 0; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); border-top: 1px solid #dfe5ec; box-shadow: 0 -8px 24px rgba(25,42,67,.06); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #7c8ca1; font-size: 11px; }
  .mobile-nav a span { font-size: 19px; line-height: 1; }
  .mobile-nav a.active { color: var(--red); font-weight: 700; }

  .admin-body { padding-bottom: 0; }
  .admin-sidebar { transform: translateX(-100%); transition: .25s; }
  .admin-sidebar.open { transform: translateX(0); box-shadow: 20px 0 50px rgba(0,0,0,.28); }
  .admin-main { margin-left: 0; }
  .admin-topbar { height: 68px; padding: 0 14px; }
  .sidebar-toggle { display: block; }
  .admin-topbar > a { display: none; }
  .admin-content { padding: 20px 14px 40px; }
  .admin-welcome, .admin-list-head { align-items: flex-start; }
  .admin-welcome h2, .admin-list-head h2 { font-size: 23px; }
  .scrape-button { min-width: 0; width: 54px; height: 48px; padding: 7px; display: grid; place-items: center; }
  .scrape-button > span { grid-row: auto; font-size: 27px; }
  .scrape-button b, .scrape-button small { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .stat-grid article { padding: 14px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-grid strong { font-size: 22px; }
  .stat-grid em { display: none; }
  .admin-grid { gap: 12px; }
  .recent-table > a { grid-template-columns: 39px minmax(0,1fr); }
  .recent-table .status { display: none; }
  .admin-filters { flex-wrap: wrap; }
  .admin-filters input { max-width: none; flex-basis: 100%; }
  .articles-table th:first-child { width: auto; }
  .editor-form { grid-template-columns: 1fr; }
  .editor-side { order: -1; }
  .login-body { padding: 14px; }
  .login-shell { min-height: auto; display: block; border-radius: 16px; }
  .login-intro { display: none; }
  .login-card { padding: 35px 24px; }
  .login-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: #162d50; font: 700 18px "STSong", serif; }
  .login-mobile-brand img { width: 43px; height: 43px; border-radius: 50%; object-fit: cover; }
}

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