@charset "UTF-8";
/* =============================================================
   中国奶龙协会 · 全局样式
   设计策略：正经协会外壳（红头文件 / 宋体标题 / 硬朗分隔线）
             + 奶龙抽象内核（奶油黄 / 圆角 / 弹跳 / 表情包）
   ============================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --red:        #8B1A1A;   /* 协会红 */
  --red-deep:   #6B1212;
  --red-soft:   #B33A3A;
  --ink:        #1B2430;   /* 主文字 */
  --ink-2:      #4A5568;
  --ink-3:      #8A94A6;
  --paper:      #F7F4EC;   /* 米白纸感背景 */
  --paper-2:    #FFFDF5;
  --line:       #E2DCCB;
  --line-2:     #EFE9DA;
  --yellow:     #FFD84D;   /* 奶龙黄 */
  --yellow-2:   #F5C542;
  --green:      #4CAF50;
  --orange:     #FF9800;
  --crimson:    #E74C3C;
  --grey:       #CCCCCC;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 2px 4px rgba(27,36,48,.05), 0 12px 28px -12px rgba(27,36,48,.18);
  --shadow-sm:  0 1px 2px rgba(27,36,48,.06), 0 6px 14px -10px rgba(27,36,48,.2);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-sans:  system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

/* ---------- 2. 基础 ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(255,216,77,.20), transparent 42%),
    radial-gradient(circle at 88% 4%, rgba(139,26,26,.07), transparent 38%),
    repeating-linear-gradient(0deg, rgba(139,26,26,.022) 0 1px, transparent 1px 28px);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-soft); text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: 30px; letter-spacing: .5px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }

p { margin: 0 0 1em; }

/* 社区自律提示（替代原敏感词高亮） */
.community-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF9E8; border: 1px dashed #E8C96A; border-left: 4px solid var(--yellow);
  border-radius: 8px; padding: 11px 14px; margin: 0 0 16px;
  font-size: 13.5px; color: #6B5A2E; line-height: 1.7;
}
.community-note .cn-tag {
  flex: 0 0 auto; background: var(--yellow); color: #4A3708;
  font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 1px;
}
.community-note .cn-text { flex: 1 1 auto; }

.muted  { color: var(--ink-3); }
.small  { font-size: 13px; }
.center { text-align: center; }
.mono   { font-family: ui-monospace, Consolas, "Courier New", monospace; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 20px; }

/* ---------- 3. 顶部条 ---------- */
.topbar {
  background: var(--ink); color: #C9D1DC;
  font-size: 12.5px; letter-spacing: .3px;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; gap: 16px;
}
.topbar a { color: #C9D1DC; }
.topbar a:hover { color: var(--yellow); text-decoration: none; }
.topbar .tb-left { display: flex; align-items: center; gap: 14px; overflow: hidden; white-space: nowrap; }
.topbar .tb-right { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.topbar .dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  display: inline-block; margin-right: 5px; animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* ---------- 4. 页头 / 导航 ---------- */
.site-header {
  background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%);
  color: #fff; position: relative; z-index: 50;
  box-shadow: 0 3px 14px -6px rgba(0,0,0,.4);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 44px);
  opacity: .85;
}
.header-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0 16px;
}
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand-logo {
  width: 58px; height: 58px; border-radius: 50%; flex: 0 0 58px;
  background: var(--yellow); border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(255,216,77,.35);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-cn {
  font-family: var(--font-serif); font-size: 25px; font-weight: 700; letter-spacing: 2px;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
}
.brand-en { font-size: 10.5px; letter-spacing: 2.4px; color: rgba(255,255,255,.72); text-transform: uppercase; }

.header-tools { display: flex; align-items: center; gap: 12px; }

/* 搜索框 */
.header-search { position: relative; }
.header-search input {
  width: 190px; height: 38px; border-radius: 20px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.14); color: #fff; padding: 0 40px 0 16px; font-size: 13.5px;
  outline: none; transition: .2s;
}
.header-search input::placeholder { color: rgba(255,255,255,.6); }
.header-search input:focus { background: rgba(255,255,255,.24); width: 230px; }
.header-search button {
  position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border: 0;
  background: var(--yellow); color: var(--red-deep); border-radius: 50%; cursor: pointer;
  font-size: 14px; line-height: 1;
}

/* 通知铃铛 */
.bell { position: relative; }
.bell-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12); color: #fff; font-size: 17px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: .2s;
}
.bell-btn:hover { background: rgba(255,255,255,.26); }
.bell-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--yellow); color: var(--red-deep); border-radius: 9px;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--red-deep);
}
.bell-panel {
  position: absolute; right: 0; top: 50px; width: 340px; max-height: 420px; overflow: auto;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.45); border: 1px solid var(--line);
  display: none; z-index: 200;
}
.bell-panel.open { display: block; animation: dropIn .18s ease-out; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.bell-panel h4 {
  margin: 0; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: center; font-family: var(--font-sans);
}
.bell-panel h4 a { font-size: 12px; font-weight: 400; }
.bell-item { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.bell-item:hover { background: #FFFBEC; text-decoration: none; }
.bell-item.unread { background: #FFFDF2; }
.bell-item.unread::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--crimson); margin-right: 7px; vertical-align: middle;
}
.bell-item .bt { font-weight: 600; font-size: 13.5px; }
.bell-item .bc { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.bell-item .bd { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* 用户区 */
.user-chip {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.24);
  border-radius: 24px; color: #fff;
}
.user-chip:hover { background: rgba(255,255,255,.24); text-decoration: none; color: #fff; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--yellow); color: var(--red-deep);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 84px; height: 84px; flex-basis: 84px; font-size: 34px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.user-chip-text { display: flex; flex-direction: column; line-height: 1.3; }
.user-chip-text b { font-size: 13.5px; font-weight: 600; }
.user-chip-text small { font-size: 11px; color: rgba(255,255,255,.72); }

/* 主导航 */
.main-nav { border-top: 1px solid rgba(255,255,255,.16); }
.main-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; flex-wrap: wrap; }
.main-nav a {
  display: block; padding: 11px 18px; color: rgba(255,255,255,.9);
  font-size: 14.5px; letter-spacing: .6px; position: relative;
}
.main-nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.main-nav a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--yellow); border-radius: 2px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12);
  color: #fff; font-size: 19px;
}

/* ---------- 5. 滚动公告栏 ---------- */
.notice-bar {
  background: #FFF6D6; border-bottom: 1px solid #F0E0A8; color: var(--red-deep);
  font-size: 13.5px; overflow: hidden;
}
.notice-bar .container { display: flex; align-items: center; gap: 12px; height: 40px; }
.notice-tag {
  background: var(--red); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 4px;
  flex: 0 0 auto; letter-spacing: 1px;
}
.notice-scroll { flex: 1; overflow: hidden; position: relative; height: 40px; }
.notice-scroll-inner {
  position: absolute; white-space: nowrap; will-change: transform;
  top: 50%; transform: translateY(-50%); animation: marquee 42s linear infinite;
}
.notice-scroll:hover .notice-scroll-inner { animation-play-state: paused; }
@keyframes marquee { from { left: 100%; } to { left: -140%; } }
.notice-scroll-inner a { margin-right: 46px; color: var(--red-deep); }
.notice-scroll-inner a::before { content: "◆ "; color: var(--orange); }

/* ---------- 6. 布局 ---------- */
.page { padding: 26px 0 60px; }
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 26px; align-items: start; }
.layout > * { min-width: 0; }
.layout-full { grid-template-columns: minmax(0,1fr); }
.panel { min-width: 0; }

.panel {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 24px; margin-bottom: 22px;
}
.panel-tight { padding: 16px 18px; }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin: -4px 0 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line-2);
}
.panel-head h2, .panel-head h3 { margin: 0; position: relative; padding-left: 14px; }
.panel-head h2::before, .panel-head h3::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 20px; border-radius: 3px; background: var(--red);
}
.panel-head .more { font-size: 13px; color: var(--ink-3); }

.section-title {
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px;
}
.section-title h2 { margin: 0; }
.section-title span { font-size: 12.5px; color: var(--ink-3); letter-spacing: 1px; }

.center-panel { max-width: 640px; margin: 40px auto; text-align: center; }
.big-emoji { font-size: 74px; line-height: 1; margin-bottom: 10px; }

/* ---------- 7. 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(115deg, #2B1206 0%, #6B1212 52%, #8B1A1A 100%);
  color: #fff; padding: 40px 40px 44px; margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,216,77,.06) 0 18px, transparent 18px 36px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 30px; align-items: center; }
.hero h1 { font-size: 36px; margin-bottom: 10px; letter-spacing: 1px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.hero .hero-sub { color: var(--yellow); font-size: 14px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px; }
.hero p { color: rgba(255,255,255,.88); max-width: 620px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-figure { position: relative; }
.hero-figure img {
  border-radius: 18px; border: 3px solid rgba(255,216,77,.85);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.6); background: #fff;
  animation: floaty 4.5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.hero-figure .sticker-float {
  position: absolute; width: 74px; height: 74px; object-fit: cover; border-radius: 50%;
  border: 3px solid #fff; bottom: -16px; left: -20px; animation: floaty 3.4s ease-in-out infinite reverse;
}

/* Hero 双形象：原版奶龙 vs 奶蛙 */
.hero-inner:has(.hero-duo) { grid-template-columns: minmax(0, 1fr) 400px; }
.hero-duo { display: flex; flex-direction: column; gap: 12px; }
.hero-duo .duo-slogan {
  font-family: var(--font-serif); font-weight: 700; font-size: 19px; line-height: 1.45;
  color: var(--yellow); text-align: center; letter-spacing: 1px;
  text-shadow: 0 2px 0 rgba(0,0,0,.3);
}
.hero-duo .duo-slogan span { color: #fff; }
.hero-duo .duo-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-duo figure { margin: 0; text-align: center; }
.hero-duo figure img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px;
  border: 3px solid rgba(255,216,77,.85); background: #fff;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  animation: floaty 4.5s ease-in-out infinite;
  transition: transform .25s ease, border-color .25s ease;
  cursor: pointer;
}
.hero-duo figure:last-child img { animation-delay: -2.2s; border-color: rgba(46,204,113,.9); }
.hero-duo figure img.swapped { transform: scale(1.06) rotate(2deg); border-color: #FF6B6B; }
.hero-duo figcaption {
  margin-top: 7px; font-size: 11.5px; letter-spacing: .5px;
  color: rgba(255,255,255,.72);
}

/* 数据条 */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 24px;
}
.stat-strip div { background: var(--paper-2); padding: 16px 12px; text-align: center; }
.stat-strip b { display: block; font-family: var(--font-serif); font-size: 26px; color: var(--red); line-height: 1.2; }
.stat-strip small { color: var(--ink-3); font-size: 12.5px; letter-spacing: 1px; }

/* ---------- 8. 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.news-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #D8CFB6; }
.news-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #EFE9DA; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-cat {
  position: absolute; left: 10px; top: 10px; background: rgba(27,36,48,.82); color: #fff;
  font-size: 12px; padding: 3px 10px; border-radius: 20px; backdrop-filter: blur(3px);
}
.news-top-flag {
  position: absolute; right: 10px; top: 10px; background: var(--red); color: #fff;
  font-size: 11.5px; padding: 3px 9px; border-radius: 4px; letter-spacing: 1px;
}
.news-body { padding: 15px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.news-body h3 { font-size: 17px; margin-bottom: 8px; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--red); text-decoration: none; }
.news-body .summary { color: var(--ink-2); font-size: 13.5px; flex: 1; }
.news-meta {
  display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--ink-3);
  border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px;
  flex-wrap: wrap; row-gap: 6px;
}
.news-meta .author { color: var(--ink-2); }

/* 列表式条目 */
.news-list { display: flex; flex-direction: column; min-width: 0; }
.news-item {
  display: grid; grid-template-columns: 168px minmax(0,1fr); gap: 16px;
  padding: 16px 0; border-bottom: 1px dashed var(--line); min-width: 0;
}
.news-item > div { min-width: 0; }
.news-item:last-child { border-bottom: 0; }
.news-item .thumb { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; background: #EFE9DA; }
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item h3 { font-size: 17.5px; margin-bottom: 6px; }
.news-item h3 a { color: var(--ink); }
.news-item h3 a:hover { color: var(--red); text-decoration: none; }
.news-item .summary { font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }

/* 排名榜 */
.rank-list { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rank-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); align-items: baseline; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list li::before {
  counter-increment: r; content: counter(r);
  flex: 0 0 20px; height: 20px; border-radius: 5px; background: var(--line-2); color: var(--ink-3);
  font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); align-self: center;
}
.rank-list li:nth-child(1)::before { background: var(--red); color: #fff; }
.rank-list li:nth-child(2)::before { background: var(--orange); color: #fff; }
.rank-list li:nth-child(3)::before { background: var(--yellow-2); color: #5A4200; }
.rank-list a { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.rank-list a:hover { color: var(--red); text-decoration: none; }
.rank-list .rv { margin-left: auto; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 9. 标签 / 徽章 ---------- */
.tag {
  display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px;
  background: var(--line-2); color: var(--ink-2); margin: 0 4px 4px 0;
}
.tag-red   { background: #FBE4E4; color: var(--red); }
.tag-green { background: #E4F5E5; color: #2E7D32; }
.tag-yellow{ background: #FFF4CF; color: #8A6A00; }
.tag-grey  { background: #EDEDED; color: #666; }
.tag-orange{ background: #FFEDD6; color: #B25E00; }

.vip-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--badge, #CCC); color: #fff;
  font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 20px;
  border: 1px solid rgba(0,0,0,.12); white-space: nowrap;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}
.vip-badge.lg { font-size: 13.5px; padding: 4px 14px; }

.role-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; background: var(--ink); color: #fff; }
.role-super_admin { background: var(--red); }
.role-admin { background: #B25E00; }
.role-editor { background: #2E7D32; }
.role-member { background: #64748B; }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14.5px; font-family: inherit; text-decoration: none; transition: .18s;
  white-space: nowrap;
}
.btn:hover { border-color: #C9BFA4; background: #FFFDF5; text-decoration: none; color: var(--ink); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); color: #fff; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow-2); color: #5A4200; font-weight: 700; }
.btn-yellow:hover { background: var(--yellow-2); color: #4A3600; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: #fff; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 27px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-danger { background: #fff; border-color: #E7B4B4; color: var(--red); }
.btn-danger:hover { background: #FDECEC; border-color: var(--red); color: var(--red); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 11. 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.form-row .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.form-control {
  width: 100%; height: 42px; padding: 0 14px; font-size: 14.5px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  outline: none; transition: .18s;
}
textarea.form-control { height: auto; min-height: 110px; padding: 12px 14px; line-height: 1.7; resize: vertical; }
select.form-control { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-control:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(139,26,26,.10); }
.form-control::placeholder { color: #B4BCC9; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.check-row input { margin-top: 5px; }

.form-error { color: var(--crimson); font-size: 13px; margin-top: 6px; }

/* 单选卡片（纯度测试 / 验证码） */
.option-grid { display: grid; gap: 10px; }
.option-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.option-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.option {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: .16s;
  font-size: 14px;
}
.option:hover { border-color: #C9BFA4; background: #FFFDF5; }
.option input { accent-color: var(--red); }
.option.selected { border-color: var(--red); background: #FFF6F6; box-shadow: 0 0 0 3px rgba(139,26,26,.07); }
.option-img {
  flex-direction: column; gap: 6px; padding: 8px; text-align: center; font-size: 12.5px;
}
.option-img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #EFE9DA; }
.option-img.selected { border-color: var(--red); background: #FFF6F6; }

/* 步骤条 */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 9px; color: var(--ink-3); font-size: 13.5px; }
.step i {
  width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); color: var(--ink-3);
  display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 13px; font-weight: 700;
}
.step.active { color: var(--red); font-weight: 600; }
.step.active i { background: var(--red); color: #fff; }
.step.done i { background: var(--green); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; }
.step-line.done { background: var(--green); }

/* ---------- 12. 新闻详情 ---------- */
.article-head { border-bottom: 2px solid var(--line-2); padding-bottom: 16px; margin-bottom: 22px; }
.article-head h1 { font-size: 30px; line-height: 1.4; margin-bottom: 12px; }
.article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-3);
}
.article-meta .author { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.article-body { font-size: 16px; line-height: 1.95; color: #26303D; }
.article-body h2 { font-size: 21px; margin: 30px 0 12px; padding-left: 12px; border-left: 5px solid var(--red); }
.article-body h3 { font-size: 17.5px; margin: 24px 0 10px; color: var(--red-deep); }
.article-body blockquote {
  margin: 18px 0; padding: 12px 18px; background: #FFF9E4; border-left: 4px solid var(--yellow-2);
  border-radius: 0 10px 10px 0; color: #6B5A20; font-size: 14.5px;
}
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 6px; }
.article-body img { border-radius: 12px; margin: 16px 0; box-shadow: var(--shadow-sm); max-width: 100%; height: auto; }
.article-body a { border-bottom: 1px dashed var(--red-soft); }
.article-body .table-wrap { margin: 18px 0; }
.article-body .md-table { min-width: 0; }
.article-body code {
  padding: 2px 7px; border-radius: 5px; background: #F3EFE2; color: var(--red-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px;
  word-break: break-all;
}
.article-body .md-broken {
  color: var(--ink-3); border-bottom: 1px dotted var(--line); padding: 0 2px;
}

.action-bar {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 22px 0; margin: 26px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
}
.action-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px;
  border-radius: 22px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14.5px; font-family: inherit; color: var(--ink); transition: .18s;
}
.action-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.action-btn.active { background: var(--red); border-color: var(--red); color: #fff; }
.action-btn.active .ico { filter: grayscale(0); }
.action-btn .ico { font-size: 17px; }
.action-btn.big-like.active { background: var(--orange); border-color: var(--orange); }

/* 评论区 */
.comment-form { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 12px; }
.comment-form .cf-body { min-width: 0; }
.sticker-picker { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.sticker-opt {
  width: 52px; height: 52px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--line); background: #fff; padding: 0; position: relative; transition: .16s;
}
.sticker-opt img { width: 100%; height: 100%; object-fit: cover; }
.sticker-opt:hover { transform: translateY(-3px); }
.sticker-opt.selected { border-color: var(--red); box-shadow: 0 0 0 3px rgba(139,26,26,.12); }
.sticker-opt span {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; background: rgba(0,0,0,.6);
  color: #fff; text-align: center; line-height: 14px;
}

.comment-list { margin-top: 22px; }
.comment {
  display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px;
  padding: 16px 0; border-bottom: 1px dashed var(--line-2);
}
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.comment-head b { font-size: 14px; }
.comment-head .time { font-size: 12px; color: var(--ink-3); margin-left: auto; }
.comment-body { font-size: 14.5px; color: #2C3644; }
.comment-body .sticker-img { width: 108px; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }
.comment-actions { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.comment-actions button {
  border: 0; background: none; cursor: pointer; color: var(--ink-3); font-size: 12.5px;
  font-family: inherit; padding: 0;
}
.comment-actions button:hover { color: var(--red); }
.comment.pending { background: #FFFDF2; border-radius: 10px; padding: 14px; }
.reply-list { margin-top: 10px; padding-left: 14px; border-left: 3px solid var(--line-2); }

/* ---------- 13. VIP 页面 ---------- */
.level-cards { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }
.level-card {
  position: relative; background: var(--paper-2); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 20px 16px 18px; text-align: center; transition: .2s;
  display: flex; flex-direction: column;
}
.level-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.level-card.current { border-color: var(--red); box-shadow: 0 0 0 4px rgba(139,26,26,.08); }
.level-card .lv-emoji { font-size: 42px; line-height: 1; margin-bottom: 8px; }
.level-card h3 { font-size: 18px; margin-bottom: 2px; }
.level-card .lv-slug { font-size: 11.5px; color: var(--ink-3); letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 12px; }
.level-card .lv-price { font-family: var(--font-serif); font-size: 26px; color: var(--red); font-weight: 700; line-height: 1.1; }
.level-card .lv-price small { font-size: 13px; font-weight: 400; color: var(--ink-3); }
.level-card .lv-points { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.level-card ul { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; font-size: 13px; flex: 1; }
.level-card li { padding: 4px 0 4px 20px; position: relative; color: var(--ink-2); }
.level-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.level-card li.no { color: var(--ink-3); }
.level-card li.no::before { content: "✕"; color: #C9C9C9; }
.level-card .lv-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 11.5px; padding: 2px 12px; border-radius: 20px; white-space: nowrap;
}

.matrix-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.matrix-table th, .matrix-table td { border: 1px solid var(--line); padding: 10px 12px; text-align: center; }
.matrix-table th { background: #F3EFE2; font-family: var(--font-serif); font-size: 14px; }
.matrix-table td:first-child, .matrix-table th:first-child { text-align: left; }
.matrix-table tbody tr:nth-child(even) { background: #FCFAF3; }
.matrix-table .yes { color: var(--green); font-weight: 700; }
.matrix-table .no { color: #C4C4C4; }

/* 进度条 */
.progress { height: 12px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 6px; transition: width .6s; }
.progress-info { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-3); margin-top: 7px; }

/* ---------- 14. 个人中心 / 会员证 ---------- */
.profile-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-head .ph-info { flex: 1; min-width: 240px; }
.profile-head h1 { margin: 0 0 6px; font-size: 26px; }
.profile-head .ph-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

.member-card {
  width: 100%; max-width: 420px; aspect-ratio: 1.586 / 1; border-radius: 16px;
  background: linear-gradient(135deg, #2B1206, #6B1212 55%, #8B1A1A);
  color: #fff; padding: 20px 22px; position: relative; overflow: hidden;
  box-shadow: 0 16px 40px -16px rgba(107,18,18,.75);
  display: flex; flex-direction: column; justify-content: space-between;
}
.member-card::before {
  content: ""; position: absolute; right: -50px; bottom: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255,216,77,.14);
}
.member-card::after {
  content: "齁"; position: absolute; right: 16px; top: 4px; font-size: 76px;
  font-family: var(--font-serif); color: rgba(255,255,255,.07);
}
.member-card .mc-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; }
.member-card .mc-org { font-family: var(--font-serif); font-size: 17px; letter-spacing: 2px; }
.member-card .mc-org small { display: block; font-family: var(--font-sans); font-size: 9px; letter-spacing: 2px; color: rgba(255,255,255,.6); }
.member-card .mc-avatar {
  width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--yellow); overflow: hidden;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: var(--yellow);
}
.member-card .mc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card .mc-mid { position: relative; }
.member-card .mc-name { font-family: var(--font-serif); font-size: 22px; letter-spacing: 1px; }
.member-card .mc-no { font-family: ui-monospace, Consolas, monospace; font-size: 15px; color: var(--yellow); letter-spacing: 1.5px; margin-top: 2px; }
.member-card .mc-bottom { display: flex; justify-content: space-between; align-items: flex-end; position: relative; font-size: 11px; color: rgba(255,255,255,.72); }
.member-card .mc-vip { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 20px; background: var(--badge, #CCC); color: #fff; }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line-2); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a, .tabs button {
  padding: 10px 18px; font-size: 14.5px; color: var(--ink-2); border: 0; background: none;
  cursor: pointer; font-family: inherit; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tabs a:hover, .tabs button:hover { color: var(--red); text-decoration: none; }
.tabs a.active, .tabs button.active { color: var(--red); font-weight: 600; border-bottom-color: var(--red); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .t-reason { flex: 1; color: var(--ink-2); }
.timeline .t-pts { font-weight: 700; font-family: ui-monospace, monospace; }
.timeline .t-pts.plus { color: var(--green); }
.timeline .t-pts.minus { color: var(--crimson); }
.timeline .t-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ---------- 15. 表格（后台） ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
table.data th, table.data td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
table.data th { background: #F3EFE2; font-weight: 600; white-space: nowrap; font-size: 13px; }
table.data tbody tr:hover { background: #FFFDF5; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .actions { display: flex; gap: 7px; flex-wrap: wrap; }
table.data .title-cell { max-width: 380px; }
table.data .title-cell a { color: var(--ink); font-weight: 500; }

/* 后台统计卡 */
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.admin-stat {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.admin-stat b { display: block; font-family: var(--font-serif); font-size: 27px; color: var(--red); line-height: 1.2; }
.admin-stat small { color: var(--ink-3); font-size: 12.5px; }

/* 后台侧栏 */
.admin-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; }
.admin-side { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; position: sticky; top: 16px; }
.admin-side h4 { font-size: 13px; color: var(--ink-3); letter-spacing: 1.5px; margin: 4px 0 10px; font-family: var(--font-sans); }
.admin-side a {
  display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: 14px; margin-bottom: 2px;
}
.admin-side a:hover { background: #F3EFE2; color: var(--red); text-decoration: none; }
.admin-side a.active { background: var(--red); color: #fff; font-weight: 600; }

/* ---------- 16. 分页 / 面包屑 ---------- */
.pagination { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 26px 0 6px; }
.pagination a, .pagination span {
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13.5px; color: var(--ink-2);
}
.pagination a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.pagination a.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pagination .page-info { border: 0; background: none; color: var(--ink-3); font-size: 12.5px; min-width: auto; }

.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--red); text-decoration: none; }
.breadcrumb i { font-style: normal; color: #C4C4C4; }

/* ---------- 17. 筛选栏 ---------- */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow-sm);
  min-width: 0;
}
.filter-bar .fb-label { font-size: 13px; color: var(--ink-3); }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 15px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2);
}
.chip:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.filter-bar .spacer { flex: 1 1 0; min-width: 0; }
.filter-bar form {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; min-width: 0; max-width: 100%;
}
.filter-bar input[type=text] {
  height: 36px; border-radius: 18px; padding: 0 16px; border: 1px solid var(--line);
  font-family: inherit; font-size: 13.5px; outline: none;
  flex: 1 1 150px; min-width: 0; max-width: 100%;
}
.filter-bar input[type=text]:focus { border-color: var(--red); }
.filter-bar select {
  height: 36px; border-radius: 18px; padding: 0 12px; border: 1px solid var(--line);
  font-family: inherit; font-size: 13.5px; background: #fff; outline: none;
  flex: 0 1 auto; min-width: 0; max-width: 100%;
}

/* ---------- 18. 提示 / 空状态 ---------- */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; border: 1px solid; }
.alert-info    { background: #EAF3FF; border-color: #C6DDFA; color: #1B4C87; }
.alert-success { background: #E9F7EA; border-color: #C3E6C6; color: #2E7D32; }
.alert-warning { background: #FFF8E1; border-color: #F2E0A8; color: #8A6A00; }
.alert-danger  { background: #FDECEC; border-color: #F0C2C2; color: var(--red); }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }
.empty .big-emoji { font-size: 56px; opacity: .8; }

/* Toast */
.toast-wrap { position: fixed; right: 20px; bottom: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 380px; padding: 13px 18px; border-radius: 12px; color: #fff;
  font-size: 14px; box-shadow: 0 14px 34px -12px rgba(0,0,0,.5); animation: toastIn .28s ease-out;
  background: var(--ink);
}
.toast.success { background: #2E7D32; }
.toast.error   { background: var(--red); }
.toast.warn    { background: #B25E00; }
.toast.info    { background: #1B4C87; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .25s ease-in forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ---------- 19. 页脚 ---------- */
.site-footer {
  background: var(--ink); color: #A9B3C1; margin-top: 40px; padding: 34px 0 22px; font-size: 13.5px;
  border-top: 4px solid var(--red);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 22px; }
.site-footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 12px; font-family: var(--font-sans); letter-spacing: 1px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #A9B3C1; }
.site-footer a:hover { color: var(--yellow); text-decoration: none; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand .brand-logo { width: 46px; height: 46px; flex-basis: 46px; border-width: 2px; }
.footer-brand b { color: #fff; font-family: var(--font-serif); font-size: 17px; letter-spacing: 1.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; font-size: 12.5px; color: #7E8899;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-bottom .disclaimer { max-width: 620px; }
.footer-motto {
  color: var(--yellow); font-size: 13.5px; font-weight: 700;
  margin: 0 0 10px; letter-spacing: .5px;
}

/* ---------- 20. 彩蛋 / 404 ---------- */
.egg-404 { text-align: center; padding: 60px 20px; }
.egg-404 h1 { font-size: 96px; margin: 0; color: var(--red); letter-spacing: 6px; text-shadow: 4px 4px 0 rgba(255,216,77,.6); }
.egg-404 img { max-width: 320px; margin: 0 auto 22px; border-radius: 18px; animation: floaty 3.6s ease-in-out infinite; }

/* Konami 彩蛋：全屏奶蛙狂笑轮播 */
.konami-rave {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(12, 6, 2, .93);
  display: flex; align-items: center; justify-content: center;
  animation: raveIn .28s ease-out;
}
@keyframes raveIn { from { opacity: 0; } to { opacity: 1; } }
.konami-rave.done { animation: raveOut .5s ease-in forwards; }
@keyframes raveOut { to { opacity: 0; } }
.konami-rave .rave-stage {
  position: relative; width: min(72vw, 560px); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.konami-rave .rave-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0; transform: scale(.82) rotate(-4deg);
  transition: opacity .28s ease, transform .28s ease;
  border-radius: 22px; filter: drop-shadow(0 0 42px rgba(46,204,113,.55));
}
.konami-rave .rave-stage img.on { opacity: 1; transform: scale(1) rotate(0); }
.konami-rave .rave-tip {
  position: absolute; bottom: 8vh; left: 0; right: 0; text-align: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 26px; letter-spacing: 4px;
  color: var(--yellow); text-shadow: 0 3px 0 rgba(0,0,0,.5);
  animation: tipPulse 1.1s ease-in-out infinite;
}
@keyframes tipPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* ---------- 21. 响应式 ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0,1fr); }
  .level-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-inner { grid-template-columns: minmax(0,1fr) 240px; }
  .hero-inner:has(.hero-duo) { grid-template-columns: minmax(0,1fr) 300px; }
  .admin-layout { grid-template-columns: minmax(0,1fr); }
  .admin-side { position: static; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
  .admin-side h4 { width: 100%; margin-bottom: 0; }
  .admin-side a { margin-bottom: 0; }
  .topbar .tb-left span:nth-child(2) { display: none; }
  .hero-duo .duo-slogan { font-size: 16px; }
}

@media (max-width: 820px) {
  .header-main { flex-wrap: wrap; }
  .header-search input { width: 150px; }
  .header-search input:focus { width: 170px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav ul { display: none; flex-direction: column; }
  .main-nav.open ul { display: flex; padding-bottom: 10px; }
  .main-nav a { padding: 12px 14px; }
  .main-nav a.active::after { display: none; }
  .hero { padding: 28px 22px 32px; }
  .hero-inner { grid-template-columns: minmax(0,1fr); }
  .hero-inner:has(.hero-duo) { grid-template-columns: minmax(0,1fr); }
  .hero-figure { max-width: 280px; margin: 0 auto; }
  .hero-duo { max-width: 340px; margin: 0 auto; width: 100%; }
  .hero h1 { font-size: 27px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: minmax(0,1fr); }
  .level-cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-item { grid-template-columns: 120px minmax(0,1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .bell-panel { width: 290px; }
  .panel { padding: 18px 16px; }
  .option-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .brand-cn { font-size: 20px; }
  .brand-en { font-size: 9px; letter-spacing: 1.6px; }
}

@media (max-width: 560px) {
  .topbar .tb-left { display: none; }
  .topbar .container { justify-content: center; }
  .header-tools .header-search { display: none; }
  .user-chip-text small { display: none; }
  .news-item { grid-template-columns: minmax(0,1fr); }
  .news-item .thumb { max-width: 100%; }
  .level-cards { grid-template-columns: minmax(0,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .comment-form { grid-template-columns: minmax(0,1fr); }
  .comment-form .avatar { display: none; }
  .hero h1 { font-size: 23px; }
  .panel-head { flex-direction: column; align-items: flex-start; }
}

@media print {
  .site-header, .site-footer, .topbar, .notice-bar, .action-bar, .comment-form, .admin-side { display: none !important; }
  body { background: #fff; }
  .panel { box-shadow: none; border-color: #ccc; }
}
