/* ==========================================================================
   约克咖啡厅门户 —— 简洁公务风样式
   主色：取自 logo 的暖栗色；辅色：暖白 / 米色；点缀：logo 金色
   ========================================================================== */

:root {
  --brand: #b06a5a;
  --brand-dark: #7d3a2e;
  --brand-light: #c98c7b;
  --brand-soft: #fdf3ee;
  --brand-softer: #fffbf9;
  --accent: #c26250;
  --gold: #e0b78d;
  --bg: #fdf9f7;
  --surface: #ffffff;
  --line: #f2e5df;
  --line-strong: #e6d3ca;
  --text: #46342d;
  --muted: #8a766c;
  --ok: #1f7a4d;
  --ok-soft: #e8f5ee;
  --warn: #8a5a00;
  --warn-soft: #fdf3e2;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --info: #b06a5a;
  --info-soft: #fdf3ee;
  --radius: 4px;
  --shadow: 0 1px 3px rgba(125, 58, 46, .07);
  --shadow-hover: 0 8px 24px rgba(125, 58, 46, .12);
  --container: 1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC",
               system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; color: var(--text); }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
button { font-family: inherit; }
code { background: #f7efeb; padding: 1px 5px; border-radius: 3px; font-size: .92em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 32px 24px 56px; }
.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: absolute; left: 8px; top: -48px; z-index: 999; background: var(--brand);
  color: #fff; padding: 8px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; color: #fff; }

/* ------------------------------------------------------------------ 顶部 */
.topbar {
  background: #faf2ee;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar-links { display: flex; gap: 20px; align-items: center; }
.topbar-links a { color: var(--muted); }
.topbar-links a:hover { color: var(--brand); }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 96px; padding-top: 14px; padding-bottom: 14px; gap: 24px;
}
.brand { display: flex; align-items: center; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-lockup { gap: 14px; }
.brand-emblem { width: 64px; height: 64px; flex: none; display: block; }
.brand-wordmark { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-wordmark strong {
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: 27px; font-weight: 600; letter-spacing: .12em; color: var(--brand-dark);
}
.brand-wordmark small { margin-top: 4px; font-size: 11.5px; letter-spacing: .02em; color: var(--muted); }
.brand-logo-wide { height: 70px; width: auto; display: block; }
.masthead-contact {
  display: flex; flex-direction: column; align-items: flex-end;
  border-left: 1px solid var(--line); padding-left: 28px; line-height: 1.5;
}
.masthead-label { font-size: 12.5px; color: var(--muted); letter-spacing: 1px; }
.masthead-contact strong { font-size: 22px; color: var(--brand); letter-spacing: .5px; }
.masthead-time { font-size: 12px; color: var(--muted); }

.mainnav {
  background: var(--brand);
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 2px 8px rgba(125, 58, 46, .14);
}
.nav-inner { display: flex; align-items: center; min-height: 52px; }
.nav-list { display: flex; flex: 1; }
.nav-list a {
  display: flex; align-items: center; height: 52px; padding: 0 30px;
  color: rgba(255, 255, 255, .88); font-size: 16px; letter-spacing: 1px;
  border-bottom: 3px solid transparent;
}
.nav-list a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-list a.active {
  color: #fff; font-weight: 600; background: var(--brand-dark);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none; background: none; border: 0; padding: 12px 4px; cursor: pointer;
  flex-direction: column; gap: 5px; margin-right: auto;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: #fff; }

/* ------------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: 3px;
  font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-light); color: #fff; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-softer); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-danger { background: #fff; color: var(--danger); border-color: #f0c4bf; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-xs { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 3px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.link-arrow { font-size: 14.5px; color: var(--brand); font-weight: 500; }
.link-arrow:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ 通用组件 */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 19px; position: relative; padding-left: 12px; }
.panel-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; background: var(--brand); border-radius: 1px;
}
.panel-more { font-size: 14px; color: var(--muted); }
.panel-more:hover { color: var(--brand); }
.panel-note { font-size: 13px; color: var(--muted); }
.panel-muted { background: var(--brand-softer); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel-muted h2 { font-size: 17px; margin-bottom: 8px; }
.panel-muted p { font-size: 14px; color: #5c4a42; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 3px; font-size: 12.5px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); border-color: #c4e5d3; }
.badge-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d9ae; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: #f6e6df; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: #f2c7c2; }
.badge-muted { background: #f7efeb; color: var(--muted); border-color: var(--line); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 2px; font-size: 12.5px; white-space: nowrap;
}
.tag-cat { background: var(--brand-soft); color: var(--brand); border: 1px solid #f7e9e2; }
.tag-pin { background: var(--accent); color: #fff; margin-right: 8px; font-size: 12px; }
.tag-draft { background: var(--warn-soft); color: var(--warn); margin-left: 8px; }

.empty {
  padding: 40px 24px; text-align: center; color: var(--muted); font-size: 14.5px;
}
.empty.small { padding: 28px 20px; }
.empty.large { padding: 64px 24px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty p { margin-bottom: 14px; }

.flash-wrap { padding-top: 16px; }
.flash {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; margin-bottom: 10px; border: 1px solid; border-left-width: 4px;
  border-radius: 3px; font-size: 14.5px; background: #fff;
}
.flash-success { border-color: #bfe3ce; border-left-color: var(--ok); color: #175c3a; background: #f3fbf6; }
.flash-error { border-color: #f0c4bf; border-left-color: var(--danger); color: #8a1c13; background: #fdf5f4; }
.flash-close {
  background: none; border: 0; font-size: 20px; line-height: 1; color: inherit;
  opacity: .55; cursor: pointer; padding: 0 4px;
}
.flash-close:hover { opacity: 1; }

.alert {
  padding: 12px 16px; border-radius: 3px; font-size: 14.5px; margin-bottom: 18px;
  border: 1px solid; line-height: 1.7;
}
.alert-error { background: #fdf5f4; border-color: #f0c4bf; color: #8a1c13; }
.alert-warn { background: #fffaf0; border-color: #f2dcb3; color: #7a5100; }
.alert strong { font-weight: 600; }

/* ------------------------------------------------------------------ 首页 */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
  color: #fff;
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(224, 183, 141, .36), transparent 45%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px;
  padding-top: 64px; padding-bottom: 76px; align-items: center;
}
.hero-text { min-width: 0; }
.hero-kicker {
  font-size: 13.5px; letter-spacing: 3px; color: rgba(255, 255, 255, .68);
  margin-bottom: 14px; white-space: normal; overflow-wrap: anywhere;
}
.hero h1 { font-size: 44px; letter-spacing: 4px; color: #fff; margin-bottom: 12px; }
.hero-slogan { font-size: 19px; color: #fbefe9; letter-spacing: 1px; margin-bottom: 16px; }
.hero-desc {
  font-size: 15px; color: rgba(255, 255, 255, .78); max-width: 560px; line-height: 1.9;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); overflow: hidden;
}
.hero-stat {
  background: rgba(125, 58, 46, .42); padding: 22px 24px; display: flex; flex-direction: column;
}
.hero-stat strong { font-size: 32px; font-weight: 600; color: #fff; line-height: 1.2; }
.hero-stat span { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 4px; }

.quick-services {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: -40px; position: relative; z-index: 2;
}
.quick-card {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px;
  box-shadow: var(--shadow); color: var(--text); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.quick-card:hover {
  box-shadow: var(--shadow-hover); transform: translateY(-2px);
  border-color: #f3e4dc; color: var(--text);
}
.quick-icon {
  flex: none; width: 44px; height: 44px; border-radius: 3px; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
}
.quick-icon svg { width: 24px; height: 24px; }
.quick-body { display: flex; flex-direction: column; line-height: 1.45; }
.quick-body strong { font-size: 15.5px; }
.quick-body small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.home-message-entry {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 40px; padding: 26px 36px;
  background: linear-gradient(135deg, #fff8f4, #fdf0e9);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-message-entry:hover {
  border-color: var(--brand-light); transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(125, 58, 46, .08); text-decoration: none;
}
.home-message-entry-text .eyebrow {
  margin: 0 0 6px; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand); font-weight: 600;
}
.home-message-entry-text h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: .04em; }
.home-message-entry-text p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 13.5px; max-width: 720px; }
.home-message-entry-action {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; padding: 11px 20px;
  border-radius: 2px; font-size: 13.5px; letter-spacing: .05em; white-space: nowrap;
}
.home-message-entry:hover .home-message-entry-action { background: var(--brand-dark); }

@media (max-width: 640px) {
  .home-message-entry { flex-direction: column; align-items: flex-start; padding: 22px; gap: 16px; }
}

.home-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; align-items: start; }
.home-grid > *, .article-layout > *, .detail-layout > *, .complaint-layout > *,
.track-layout > *, .about-intro > *, .admin-grid > * { min-width: 0; }

.news-list li {
  display: flex; align-items: flex-start; gap: 18px; padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.news-list li:last-child { border-bottom: 0; }
.news-date {
  flex: none; width: 58px; text-align: center; background: var(--brand-softer);
  border: 1px solid var(--line); border-radius: 3px; padding: 6px 0 5px; line-height: 1.2;
}
.news-date b { display: block; font-size: 21px; color: var(--brand); font-weight: 600; }
.news-date span { font-size: 11px; color: var(--muted); }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 16px; font-weight: 500; color: var(--text); display: block; }
.news-title:hover { color: var(--brand); }
.news-summary {
  font-size: 13.5px; color: var(--muted); margin: 5px 0 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
}
.news-cat { flex: none; font-size: 12.5px; color: var(--muted); padding-top: 2px; }

.mini-act-list li { border-bottom: 1px solid var(--line); }
.mini-act-list li:last-child { border-bottom: 0; }
.mini-act-list a {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: var(--text);
}
.mini-act-list a:hover { background: var(--brand-softer); color: var(--text); }
.mini-act-date {
  flex: none; width: 50px; text-align: center; border-right: 1px solid var(--line);
  line-height: 1.2; padding-right: 10px;
}
.mini-act-date b { display: block; font-size: 20px; color: var(--brand); }
.mini-act-date span { font-size: 11px; color: var(--muted); }
.mini-act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mini-act-body strong {
  font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-act-meta {
  font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.panel-cta {
  display: block; text-align: center; padding: 13px; background: var(--brand-softer);
  border-top: 1px solid var(--line); font-size: 14px; color: var(--brand);
}
.panel-cta:hover { background: var(--brand-soft); }

.process { margin-top: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px 34px; }
.process-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.process-head h2 { font-size: 21px; position: relative; padding-left: 12px; }
.process-head h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; background: var(--brand);
}
.process-head p { font-size: 13.5px; color: var(--muted); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-steps li { padding: 0 24px; border-left: 1px solid var(--line); }
.process-steps li:first-child { border-left: 0; padding-left: 0; }
.step-no { font-size: 13px; color: var(--gold); font-weight: 600; letter-spacing: 1px; }
.process-steps strong { display: block; font-size: 16px; margin: 4px 0 6px; }
.process-steps p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.7; }

.home-cta {
  margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(105deg, var(--brand) 0%, var(--brand-light) 100%);
  border-radius: var(--radius); padding: 28px 36px; color: #fff;
}
.home-cta h2 { font-size: 21px; color: #fff; margin-bottom: 4px; }
.home-cta p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* ------------------------------------------------------------------ 页头 / 面包屑 */
.page-head {
  background: linear-gradient(100deg, #fdf5f1 0%, #fffdfc 60%, #fdf6f2 100%);
  border-bottom: 1px solid var(--line); padding: 26px 0 30px;
}
.page-head-lite { padding: 18px 0; background: #fff; }
.page-head h1 { font-size: 30px; letter-spacing: 1.5px; margin: 8px 0 6px; color: var(--brand-dark); }
.page-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.breadcrumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb em { font-style: normal; color: var(--brand); }

/* ------------------------------------------------------------------ 列表 / 工具栏 */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  border-bottom: 2px solid var(--brand); padding-bottom: 0; margin-bottom: 6px; flex-wrap: wrap;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.filter-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px 9px;
  font-size: 15px; color: #5c4a42; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.filter-tab:hover { color: var(--brand); background: var(--brand-softer); }
.filter-tab.active { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.filter-tab b { font-size: 12px; color: var(--muted); font-weight: 500; }
.search-form { display: flex; gap: 8px; padding-bottom: 6px; }
.search-form input {
  width: 220px; height: 36px; padding: 0 12px; border: 1px solid var(--line-strong);
  border-radius: 3px; font-size: 14px; background: #fff;
}
.search-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(176, 106, 90, .16); }
.result-hint { font-size: 13.5px; color: var(--muted); margin: 12px 0 16px; }
.result-hint b { color: var(--brand); }

.ann-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ann-item {
  display: flex; align-items: flex-start; gap: 22px; padding: 22px 26px;
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.ann-item:last-child { border-bottom: 0; }
.ann-item:hover { background: var(--brand-softer); }
.ann-date {
  flex: none; width: 64px; text-align: center; border: 1px solid var(--line); border-top: 3px solid var(--brand);
  background: #fff; padding: 8px 0 6px; line-height: 1.2;
}
.ann-date b { display: block; font-size: 24px; color: var(--brand); font-weight: 600; }
.ann-date span { font-size: 11.5px; color: var(--muted); }
.ann-main { flex: 1; min-width: 0; }
.ann-title { font-size: 17.5px; font-weight: 500; line-height: 1.5; }
.ann-title a { color: var(--text); }
.ann-title a:hover { color: var(--brand); }
.ann-summary {
  font-size: 13.5px; color: var(--muted); margin: 6px 0 8px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ann-meta { display: flex; gap: 16px; align-items: center; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ann-go { flex: none; color: var(--line-strong); font-size: 20px; line-height: 1; padding-top: 14px; }
.ann-item:hover .ann-go { color: var(--brand); }
.ann-go:hover { color: var(--brand); }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.pager-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 3px; background: #fff;
  font-size: 14px; color: var(--text);
}
.pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-btn.disabled { color: #b9a8a0; background: #faf5f1; cursor: default; }
.pager-info { font-size: 13.5px; color: var(--muted); }

/* ------------------------------------------------------------------ 文章 */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 48px 36px; box-shadow: var(--shadow);
}
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 26px; }
.article-head h1 { font-size: 28px; line-height: 1.5; margin: 12px 0 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: var(--muted); }
.article-summary {
  background: var(--brand-softer); border-left: 3px solid var(--brand); padding: 14px 18px;
  font-size: 14.5px; color: #5a463d; margin-bottom: 26px; border-radius: 0 3px 3px 0;
}
.article-body, .rich-text {
  font-size: 16px; line-height: 2.05; color: #3a2d27;
  white-space: pre-wrap; word-break: break-word;
}
.article-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; flex-wrap: wrap;
}
.article-nav { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.article-nav a { color: #5c4a42; display: flex; gap: 10px; }
.article-nav a span { color: var(--muted); flex: none; }
.article-nav a:hover { color: var(--brand); }
.article-nav-empty { color: #b9a8a0; }
.article-side { display: flex; flex-direction: column; gap: 20px; }
.side-list li { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { font-size: 14px; color: var(--text); display: block; line-height: 1.6; }
.side-list a:hover { color: var(--brand); }
.side-list span { font-size: 12px; color: var(--muted); }
.side-callout { padding: 22px; }
.side-callout h2 { font-size: 17px; margin-bottom: 8px; }
.side-callout p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }

/* ------------------------------------------------------------------ 活动 */
.section-bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.section-bar h2 { font-size: 22px; position: relative; padding-left: 12px; }
.section-bar h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 19px; background: var(--brand);
}
.section-bar-note { font-size: 13.5px; color: var(--muted); }
.act-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.act-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand);
  border-radius: var(--radius); padding: 20px 22px 0; display: flex; flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.act-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.act-card.is-past { border-top-color: #b9a8a0; }
.act-card.is-past .act-date b { color: var(--muted); }
.act-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.act-date {
  display: flex; flex-direction: column; line-height: 1.15; padding-right: 4px;
}
.act-date b { font-size: 30px; font-weight: 600; color: var(--brand); }
.act-date span { font-size: 11.5px; color: var(--muted); letter-spacing: .5px; }
.act-cat { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.act-title { font-size: 18px; line-height: 1.5; margin: 4px 0 12px; min-height: 48px; }
.act-title a { color: var(--text); }
.act-title a:hover { color: var(--brand); }
.act-meta { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: #5c4a42; margin-bottom: 16px; }
.act-meta li { display: flex; gap: 10px; }
.meta-label { flex: none; color: var(--muted); width: 30px; }
.act-progress { height: 6px; background: #faf2ee; border-radius: 3px; overflow: hidden; }
.act-progress span { display: block; height: 100%; background: var(--brand); border-radius: 3px; }
.act-progress.large { height: 8px; }
.act-card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.act-count b { color: var(--brand); }
.act-link { color: var(--brand); font-size: 14px; font-weight: 500; }
.act-link:hover { text-decoration: underline; }

.notice-strip {
  margin-top: 30px; background: var(--brand-softer); border: 1px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 0 3px 3px 0; padding: 18px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.notice-strip strong { font-size: 14.5px; color: var(--brand-dark); flex: none; }
.notice-strip p { margin: 0; font-size: 13.5px; color: #5c4a42; flex: 1; min-width: 240px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.detail-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.detail-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.detail-head h1 { font-size: 28px; line-height: 1.5; margin-bottom: 10px; }
.detail-sub { font-size: 13px; color: var(--muted); margin: 0; }
.info-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 24px 0 30px; }
.info-table > div { background: var(--brand-softer); padding: 14px 18px; }
.info-table dt { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.info-table dd { margin: 0; font-size: 15px; font-weight: 500; }
.detail-section { margin-top: 30px; }
.detail-section h2 { font-size: 19px; margin-bottom: 14px; padding-left: 12px; position: relative; }
.detail-section h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; background: var(--brand);
}
.signup-list { border: 1px solid var(--line); border-radius: 3px; }
.signup-list li {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.signup-list li:last-child { border-bottom: 0; }
.signup-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft);
  color: var(--brand); display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex: none;
}
.signup-name { width: 52px; flex: none; }
.signup-college { flex: 1; color: var(--muted); font-size: 13px; }
.signup-time { color: var(--muted); font-size: 12.5px; }
.signup-box {
  position: sticky; top: 76px; background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.signup-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.signup-head h2 { font-size: 20px; }
.signup-left { font-size: 13px; color: var(--muted); }
.signup-left b { color: var(--accent); font-size: 17px; }
.signup-box .hint { font-size: 13px; color: var(--muted); }
.signup-box .form { margin-top: 16px; }
.signup-closed { padding: 20px 0 4px; }
.signup-done { text-align: center; padding: 8px 0; }
.signup-done-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 26px; margin-bottom: 12px;
}
.signup-done h2 { font-size: 20px; margin-bottom: 8px; }
.signup-done p { font-size: 14px; color: #5c4a42; }
.signup-done .btn { margin-top: 12px; }

/* ------------------------------------------------------------------ 表单 */
.form-panel { padding: 26px 30px 30px; }
.form-panel .panel-head { padding: 0 0 16px; margin-bottom: 20px; }
.form .field, .field { margin-bottom: 18px; }
.field label, .form label {
  display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: #4a3a32;
}
.req { color: var(--accent); font-style: normal; }
.field input[type="text"], .field input[type="password"], .field input[type="tel"],
.field input[type="number"], .field input[type="search"], .field input[type="datetime-local"],
.field select, .field textarea, .form input[type="text"], .form input[type="password"],
.form input[type="tel"], .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong);
  border-radius: 3px; font-size: 15px; font-family: inherit; color: var(--text);
  background: #fff; line-height: 1.5; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .form textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus,
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(176, 106, 90, .16);
}
.field-extra { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.form-tip { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; line-height: 1.7; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: #4a3a32; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--brand); flex: none; }
.check-row { display: flex; gap: 28px; flex-wrap: wrap; margin: 4px 0 20px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hint { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ 投诉 */
.complaint-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.join-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) 330px; gap: 24px; align-items: start; }
.join-layout > * { min-width: 0; }
.dept-list { padding: 8px 22px 14px; }
.dept-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 0;
  border-bottom: 1px dashed var(--line); font-size: 13.8px;
}
.dept-list li:last-child { border-bottom: 0; }
.dept-list b { font-weight: 500; flex: none; }
.dept-list span { color: var(--muted); text-align: right; line-height: 1.6; }
.about-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.complaint-side { display: flex; flex-direction: column; gap: 18px; }
.dot-list { padding: 8px 24px 16px; }
.dot-list li {
  position: relative; padding: 7px 0 7px 16px; font-size: 14px; color: #5a463d; line-height: 1.7;
}
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px;
  background: var(--brand); border-radius: 50%;
}
.step-list { counter-reset: step; padding: 14px 24px 18px; }
.step-list li {
  counter-increment: step; position: relative; padding: 6px 0 6px 26px;
  font-size: 13.8px; color: #5a463d;
}
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 6px; width: 18px; height: 18px;
  background: var(--brand-soft); color: var(--brand); border-radius: 50%;
  font-size: 11px; line-height: 18px; text-align: center;
}

.success-card {
  max-width: 720px; margin: 20px auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 48px; text-align: center;
}
.success-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
  border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 32px; margin-bottom: 14px;
}
.success-card h1 { font-size: 26px; margin-bottom: 10px; }
.success-lead { color: #5c4a42; font-size: 14.5px; max-width: 520px; margin: 0 auto 24px; }
.code-box {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; text-align: left;
}
.code-box.single { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
.code-item {
  background: var(--brand-softer); border: 1px dashed var(--line-strong); border-radius: 3px;
  padding: 14px 18px;
}
.code-label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.code-item strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 21px; letter-spacing: 2px; color: var(--brand-dark); }
.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.back-link { display: inline-block; margin-top: 20px; font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--brand); }

.track-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; align-items: start; }
.track-side { padding-bottom: 18px; }
.track-side .link-arrow { margin: 4px 24px 0; display: inline-block; }
.record-panel { margin-top: 26px; padding: 30px 36px; }
.record-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.record-code { font-size: 12.5px; color: var(--muted); letter-spacing: .5px; }
.record-head h2 { font-size: 22px; margin-top: 4px; }
.timeline {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 26px 0 24px; padding: 0;
}
.timeline li {
  position: relative; padding: 22px 16px 0 0; border-top: 2px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted);
}
.timeline li::before {
  content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 2px solid var(--line-strong);
}
.timeline li.done { border-top-color: var(--brand); color: var(--text); }
.timeline li.done::before { border-color: var(--brand); background: var(--brand); }
.timeline strong { font-size: 14.5px; font-weight: 500; }
.timeline small { font-size: 12px; color: var(--muted); }
.record-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); margin-bottom: 24px;
}
.record-grid > div { background: var(--brand-softer); padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.record-grid span { font-size: 12px; color: var(--muted); }
.record-grid b { font-size: 14px; font-weight: 500; }
.record-section { margin-top: 24px; }
.record-section h3 { font-size: 16px; margin-bottom: 10px; }
.reply-box {
  background: var(--brand-softer); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: 0 3px 3px 0; padding: 16px 20px; font-size: 15px; line-height: 1.9;
  white-space: pre-wrap; color: #3a2d27;
}

/* ------------------------------------------------------------------ 关于 */
.about-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.about-text h2 { font-size: 22px; margin-bottom: 14px; }
.about-text p { font-size: 15px; color: #5a463d; line-height: 2; }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.about-stats > div { background: #fff; padding: 16px 18px; display: flex; flex-direction: column; }
.about-stats strong { font-size: 26px; color: var(--brand); font-weight: 600; line-height: 1.2; }
.about-stats span { font-size: 12.5px; color: var(--muted); }
.about-side { display: flex; flex-direction: column; gap: 18px; }
.contact-list { padding: 8px 22px 16px; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.8px; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--muted); flex: none; }
.contact-list b { font-weight: 500; text-align: right; }
.qq-group-box {
  display: flex; align-items: center; gap: 14px; margin: 0 22px 20px;
  padding-top: 16px; border-top: 1px dashed var(--line);
}
.qq-group-box img {
  width: 120px; height: 120px; flex: none; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: 3px;
}
.qq-group-box strong { display: block; font-size: 14px; }
.qq-group-box span { font-size: 12.5px; color: var(--muted); }
.qq-join { padding: 18px 22px 20px; text-align: center; }
.qq-join img {
  width: 170px; height: 170px; margin: 0 auto 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: 4px;
}
.qq-join p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.about-depts { margin-top: 36px; }
.dept-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.dept-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.dept-no { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.dept-card h3 { font-size: 16px; margin: 4px 0 6px; }
.dept-card p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }

/* ------------------------------------------------------------------ 页脚 */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .72); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px; padding-top: 40px; padding-bottom: 34px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand img { width: 42px; height: 42px; background: #fff; border-radius: 50%; padding: 2px; }
.footer-brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: 1.5px; }
.footer-brand small { display: block; font-size: 10px; letter-spacing: 2px; color: rgba(255, 255, 255, .5); }
.footer-brand small { font-size: 10.5px; letter-spacing: .02em; line-height: 1.55; max-width: 300px; }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 12px; font-weight: 500; }
.footer-col p { font-size: 13.5px; line-height: 1.9; margin: 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-col a { color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact { font-size: 13.5px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 14px; padding-bottom: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .5);
}

/* ------------------------------------------------------------------ 错误页 */
.error-page { max-width: 620px; margin: 40px auto; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 56px 40px; }
.error-code { font-size: 64px; font-weight: 700; color: var(--brand); letter-spacing: 4px; line-height: 1; }
.error-page h1 { font-size: 22px; margin: 14px 0 8px; }
.error-page p { color: var(--muted); font-size: 14.5px; }
.error-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ 登录 */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-light) 100%);
  padding: 24px;
}
.login-wrap { width: 100%; max-width: 400px; }
.login-card { background: #fff; border-radius: 4px; padding: 38px 36px 30px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); }
.login-brand { text-align: center; margin-bottom: 26px; }
.login-brand .login-emblem { width: 92px; height: 92px; margin: 0 auto 10px; display: block; }
.login-brand .login-name { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-size: 23px; letter-spacing: 3px; color: var(--brand); }
.login-brand .login-logo { width: 240px; height: auto; margin: 0 auto 12px; }
.login-brand h1 { font-size: 23px; letter-spacing: 2px; color: var(--brand); }
.login-brand p { font-size: 13px; letter-spacing: 4px; color: var(--muted); margin: 4px 0 0; }
.login-card .back-link { display: block; text-align: center; }
.login-hint { font-size: 12.5px; margin-top: 20px; margin-bottom: 0; }
.login-card .form .btn { margin-top: 6px; }

/* ------------------------------------------------------------------ 后台 */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 232px; flex: none; background: var(--brand-dark); color: #fff;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.admin-brand {
  display: flex; align-items: center; gap: 11px; padding: 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff;
}
.admin-brand:hover { color: #fff; }
.admin-brand img { width: 38px; height: 38px; background: #fff; border-radius: 50%; padding: 2px; }
.admin-brand strong { display: block; font-size: 16px; letter-spacing: 1px; }
.admin-brand small { display: block; font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: 1px; }
.admin-nav { display: flex; flex-direction: column; padding: 12px 0; flex: 1; }
.admin-nav a {
  padding: 11px 20px; color: rgba(255, 255, 255, .75); font-size: 14.5px;
  border-left: 3px solid transparent;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.admin-nav a.active {
  background: rgba(255, 255, 255, .1); color: #fff; border-left-color: var(--gold); font-weight: 500;
}
.admin-nav-sep { height: 1px; background: rgba(255, 255, 255, .1); margin: 10px 20px; }
.admin-sidebar-foot { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.admin-logout {
  width: 100%; background: transparent; color: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; padding: 8px;
  font-size: 13.5px; cursor: pointer;
}
.admin-logout:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: #fff; border-bottom: 1px solid var(--line); padding: 18px 32px;
}
.admin-topbar h1 { font-size: 21px; }
.admin-topbar p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.admin-user { font-size: 13px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 4px 14px; }
.admin-role {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(135deg, #fff8f4, #fdf0e9);
}
.admin-role-img { width: 220px; height: auto; display: block; }
.nav-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px;
  height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 500;
}
.admin-content { padding: 24px 32px 56px; }
.admin-flash { padding-top: 0; margin-top: 16px; }
.admin-flash .flash { margin-bottom: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card {
  display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--brand); border-radius: var(--radius); padding: 16px 20px; color: var(--text);
}
a.stat-card:hover { color: var(--text); box-shadow: var(--shadow-hover); }
.stat-warn { border-top-color: #d97706; }
.stat-info { border-top-color: var(--brand-light); }
.stat-ok { border-top-color: var(--ok); }
.stat-label { font-size: 13px; color: var(--muted); }
.stat-card strong { font-size: 30px; font-weight: 600; line-height: 1.3; }
.stat-foot { font-size: 12px; color: var(--muted); }
.stat-warn .stat-foot { color: #a35a00; }

.admin-quick { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid-detail { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
.admin-tabs { margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-form { padding: 26px 30px 28px; }
.admin-form .field textarea { min-height: 120px; }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; font-size: 14px; }
.table th {
  text-align: left; font-size: 12.5px; font-weight: 500; color: var(--muted);
  background: #faf4f1; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fffdfc; }
.table a { color: var(--brand); }
.table-title { font-weight: 500; color: var(--text); }
.table-title:hover { color: var(--brand); }
.table-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inline-form { display: inline-block; margin-left: 4px; }
.table .btn-xs { vertical-align: middle; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0 24px; }
.info-grid > div { background: var(--brand-softer); padding: 12px 16px; }
.info-grid dt { font-size: 12px; color: var(--muted); }
.info-grid dd { margin: 2px 0 0; font-size: 14px; }
.record-panel .info-grid { margin: 0; }
.admin-grid > .panel > .record-section { padding: 0 24px 24px; }
.admin-grid > .panel > .form { padding: 20px 24px 24px; }
.admin-grid > .panel > .panel-head { padding: 18px 24px; }
.reply-tip { margin: 20px 24px 24px; padding: 16px 18px; }
.reply-tip strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.reply-tip .dot-list { padding: 0; }
.reg-summary {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line);
  border-bottom: 1px solid var(--line);
}
.reg-summary > div { background: var(--brand-softer); padding: 14px 20px; display: flex; flex-direction: column; gap: 2px; }
.reg-summary span { font-size: 12px; color: var(--muted); }
.reg-summary b { font-size: 15px; font-weight: 500; }

/* ------------------------------------------------------------------ 文件公告 / 附件 */
.doc-list { display: flex; flex-direction: column; gap: 16px; }
.doc-item {
  display: flex; gap: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow);
}
.doc-item .ann-date { flex: none; }
.doc-body { flex: 1; min-width: 0; }
.doc-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doc-title-row h2 { font-size: 18px; margin: 0; line-height: 1.5; }
.doc-title-row h2 a { color: var(--text); }
.doc-title-row h2 a:hover { color: var(--brand); }
.doc-summary { font-size: 13.5px; color: var(--muted); margin: 8px 0 12px; }
.doc-files { display: flex; flex-direction: column; gap: 8px; }
.doc-files li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  background: var(--brand-softer); border: 1px solid var(--line); border-radius: 3px;
}
.file-badge {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 24px; padding: 0 6px; background: var(--brand); color: #fff;
  font-size: 10.5px; border-radius: 2px; letter-spacing: .5px;
}
.file-name {
  flex: 1; min-width: 0; font-size: 13.5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
a.file-name:hover { color: var(--brand); text-decoration: underline; }
.file-size { flex: none; font-size: 12px; color: var(--muted); }
.file-dl { flex: none; font-size: 13px; color: var(--brand); }
.file-dl:hover { text-decoration: underline; }
.file-count { color: var(--brand); font-size: 12.5px; }

.attachment-box { margin-top: 30px; border-top: 1px dashed var(--line-strong); padding-top: 22px; }
.attachment-box h2 { font-size: 18px; margin-bottom: 12px; padding-left: 12px; position: relative; }
.attachment-box h2::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; background: var(--brand);
}
.attachment-list { display: flex; flex-direction: column; gap: 8px; }
.attachment-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 3px; background: #fdf9f7;
}

.admin-file-list { margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.admin-file-list li {
  display: flex; align-items: center; gap: 10px; padding: 7px 12px;
  background: var(--brand-softer); border: 1px solid var(--line); border-radius: 3px;
}
.admin-file-list .checkbox { font-size: 12.5px; margin: 0; flex: none; }
input[type="file"] {
  display: block; width: 100%; padding: 10px 12px; border: 1px dashed var(--line-strong);
  border-radius: 3px; background: #fffdfc; font-size: 13.5px; color: var(--muted);
}
input[type="file"]::file-selector-button {
  margin-right: 12px; padding: 6px 14px; border: 1px solid var(--line-strong);
  border-radius: 3px; background: #fff; color: var(--brand); font-family: inherit;
  font-size: 13px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--brand); background: var(--brand-softer); }

/* ------------------------------------------------------------------ 部门设置 */
.dept-grid-six { grid-template-columns: repeat(3, 1fr); }
.dept-lead { color: var(--brand); font-size: 12.5px; margin: 2px 0 6px; }

/* ------------------------------------------------------------------ 店内职务 */
.role-section { margin-top: 36px; }
.role-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.role-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: #3a231e; border: 1px solid #4c3028; border-radius: 4px;
  padding: 18px 14px 16px; text-align: center;
}
.role-card img { width: 100%; height: 48px; object-fit: contain; display: block; }
.role-card p { margin: 0; color: rgba(255, 255, 255, .72); font-size: 12.5px; line-height: 1.7; }

@media (max-width: 1080px) {
  .role-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
  .role-card:last-child { grid-column: 1 / -1; max-width: 260px; width: 100%; margin: 0 auto; }
}

/* ------------------------------------------------------------------ 女仆名册 */
.maid-summary {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 20px; overflow: hidden;
}
.maid-summary-item {
  flex: 1 1 130px; padding: 18px 24px; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.maid-summary-item strong { font-size: 26px; color: var(--brand-dark); font-weight: 600; line-height: 1.2; }
.maid-summary-item span { font-size: 12.5px; color: var(--muted); }
.maid-summary-note {
  flex: 1 1 100%; margin: 0; padding: 10px 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); background: var(--brand-softer);
}
.maid-panel { padding: 0; overflow: hidden; }
.maid-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line);
}
.maid-toolbar .filter-tab { cursor: pointer; background: none; border: 0; font: inherit; }
.maid-search input {
  width: 220px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line-strong);
  border-radius: 2px; background: #fff; color: var(--text); font-size: 13px;
}
.maid-search input:focus { outline: none; border-color: var(--brand-light); box-shadow: 0 0 0 2px var(--brand-soft); }
.maid-table th, .maid-table td { padding-left: 22px; padding-right: 22px; }
.maid-col-no { width: 90px; }
.maid-id { font-weight: 600; color: var(--text); }
.maid-badge { margin-right: 6px; font-weight: 500; }
.maid-en { background: #f4e6df; color: #8a4a3c; border: 1px solid #ead3c8; }
.maid-jp { background: #fbe9ef; color: #a34a68; border: 1px solid #f1d3dd; }
.maid-other { background: #eef0f4; color: #5a6270; border: 1px solid #dfe3ea; }
.maid-count { margin: 0; padding: 12px 22px; text-align: right; font-size: 12.5px; color: var(--muted); }
.maid-footnote { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .maid-summary-item { flex-basis: 50%; border-bottom: 1px solid var(--line); }
  .maid-summary-item:nth-child(2n) { border-right: 0; }
  .maid-toolbar { padding: 14px 16px; }
  .maid-search { width: 100%; }
  .maid-search input { width: 100%; }
  .maid-table { min-width: 420px; }
  .maid-table th, .maid-table td { padding-left: 16px; padding-right: 16px; }
}

/* ------------------------------------------------------------------ 打印 */
@media print {
  .topbar, .masthead, .mainnav, .site-footer, .flash-wrap, .success-actions,
  .back-link, .breadcrumb { display: none !important; }
  body { background: #fff; }
  .success-card { border: 0; box-shadow: none; margin: 0; }
}

/* ------------------------------------------------------------------ 响应式 */
@media (max-width: 1080px) {
  .hero h1 { font-size: 38px; }
  .quick-services { grid-template-columns: 1fr 1fr; }
  .act-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 28px; }
  .nav-list a { padding: 0 22px; }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 48px; padding-bottom: 70px; }
  .hero-text, .hero-desc { max-width: 100%; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stat { padding: 16px; }
  .hero-stat strong { font-size: 26px; }
  .quick-services { grid-template-columns: 1fr 1fr; }
  .home-grid { grid-template-columns: minmax(0, 1fr); }
  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .process-steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .article-layout, .detail-layout, .complaint-layout, .track-layout, .about-intro { grid-template-columns: 1fr; }
  .join-layout { grid-template-columns: 1fr; }
  .article, .detail-main { padding: 28px 26px; }
  .signup-box { position: static; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .dept-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
  .nav-list {
    display: none; position: absolute; top: 52px; left: 0; right: 0;
    flex-direction: column; background: var(--brand-dark); box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    z-index: 70;
  }
  .nav-list.open { display: flex; }
  .nav-list a { height: 46px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-left: 3px solid transparent; }
  .nav-list a.active { border-left-color: var(--gold); border-bottom-color: rgba(255, 255, 255, .08); }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .admin-brand { padding: 14px 20px; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 0; gap: 0; }
  .admin-nav a { padding: 12px 16px; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .admin-nav a.active { border-bottom-color: var(--gold); border-left: 0; }
  .admin-nav-sep, .admin-sidebar-foot { display: none; }
  .admin-topbar, .admin-content { padding-left: 20px; padding-right: 20px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid, .admin-grid-detail { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: 1fr 1fr; }
  .table { min-width: 640px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .section { padding: 22px 16px 40px; }
  .topbar-welcome { display: none; }
  .topbar-inner { justify-content: space-between; }
  .masthead-contact { display: none; }
  .masthead-inner { min-height: 76px; }
  .brand-logo-wide { height: 46px; }
  .brand-emblem { width: 46px; height: 46px; }
  .brand-wordmark strong { font-size: 20px; }
  .brand-wordmark small { font-size: 10px; max-width: 230px; line-height: 1.45; }
  .admin-role { padding: 5px 9px; }
  .admin-role-img { width: 140px; }
  .hero h1 { font-size: 32px; letter-spacing: 2px; }
  .hero-kicker { font-size: 11px; letter-spacing: .5px; line-height: 1.8; }
  .hero-slogan { font-size: 16px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .quick-services { grid-template-columns: 1fr; margin-top: -30px; }
  .page-head h1 { font-size: 24px; }
  .ann-item { padding: 16px; gap: 14px; }
  .ann-date { width: 52px; }
  .news-cat { display: none; }
  .ann-summary { -webkit-line-clamp: 2; }
  .doc-item { flex-direction: column; gap: 14px; padding: 18px 16px; }
  .doc-item .ann-date { width: 52px; }
  .doc-files li, .attachment-list li { flex-wrap: nowrap; }
  .doc-files .file-size, .attachment-list .file-size { display: none; }
  .attachment-list .file-name { flex-basis: auto; }
  .toolbar { gap: 10px; }
  .search-form { width: 100%; }
  .search-form input { flex: 1; width: auto; }
  .filter-tabs { overflow-x: auto; flex-wrap: nowrap; width: 100%; }
  .filter-tab { white-space: nowrap; padding: 9px 12px; }
  .article, .detail-main { padding: 22px 18px; }
  .article-head h1, .detail-head h1 { font-size: 22px; }
  .info-table { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: 1fr; }
  .act-title { min-height: 0; }
  .process { padding: 22px 18px; }
  .process-head { flex-direction: column; gap: 4px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { border-left: 0; padding: 0 0 16px; }
  .home-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
  .code-box { grid-template-columns: 1fr; }
  .success-card { padding: 30px 20px; }
  .record-panel { padding: 22px 18px; }
  .record-head { flex-direction: column; }
  .timeline { grid-template-columns: 1fr; gap: 0; margin: 18px 0; }
  .timeline li { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 16px 18px; }
  .timeline li::before { top: 4px; left: -7px; }
  .timeline li.done { border-left-color: var(--brand); }
  .record-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .dept-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-form { padding: 18px 16px; }
  .login-card { padding: 30px 22px; }
  .notice-strip { padding: 16px 18px; gap: 10px; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .qq-join img { width: 150px; height: 150px; }
  .qq-group-box { gap: 10px; }
  .qq-group-box img { width: 100px; height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   浅色主题：导航 / 首页大图 / 页脚改为浅色底，整体更轻盈
   ========================================================================== */
.mainnav {
  background: #f7e9e3;
  box-shadow: 0 2px 8px rgba(125, 58, 46, .08);
}
.nav-list a { color: #5f352c; }
.nav-list a:hover { background: rgba(176, 106, 90, .12); color: #4a241d; }
.nav-list a.active {
  background: var(--brand); color: #fff; border-bottom-color: var(--gold);
}
.nav-toggle-bar { background: var(--brand-dark); }

.hero {
  background: linear-gradient(120deg, #fdf6f2 0%, #f7e5dd 55%, #efd3c7 100%);
  color: var(--text);
}
.hero-pattern {
  opacity: .7;
  background-image:
    linear-gradient(rgba(125, 58, 46, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 58, 46, .06) 1px, transparent 1px),
    radial-gradient(circle at 82% 22%, rgba(224, 183, 141, .35), transparent 45%);
}
.hero-kicker { color: #8a4a3c; }
.hero h1 { color: #4a2f27; }
.hero-slogan { color: #6b453a; }
.hero-desc { color: #6b4a40; }
.hero-stats { background: rgba(125, 58, 46, .14); border-color: rgba(125, 58, 46, .14); }
.hero-stat { background: #fff; }
.hero-stat strong { color: var(--brand-dark); }
.hero-stat span { color: var(--muted); }

.site-footer { background: #f7e9e3; color: #6b4a40; }
.footer-brand strong { color: #4a2f27; }
.footer-brand small { color: #8a766c; }
.footer-col h3 { color: #4a2f27; }
.footer-col a { color: #7d4a3e; }
.footer-col a:hover { color: #4a2f27; }
.footer-bottom { border-top-color: rgba(125, 58, 46, .16); }
.footer-bottom-inner { color: #8a766c; }

.login-body { background: linear-gradient(135deg, #fdf6f2 0%, #f2d9cf 55%, #e8c4b7 100%); }
.login-card { box-shadow: 0 18px 50px rgba(125, 58, 46, .18); }

@media (max-width: 920px) {
  .nav-list { background: #f7e9e3; box-shadow: 0 12px 24px rgba(125, 58, 46, .16); }
  .nav-list a { color: #5f352c; border-bottom-color: rgba(125, 58, 46, .12); }
  .nav-list a.active {
    background: var(--brand); color: #fff;
    border-left-color: var(--gold); border-bottom-color: rgba(255, 255, 255, .18);
  }
}

/* ==========================================================================
   首页实景大图：VRChat 世界「约克咖啡厅」截图
   ========================================================================== */
.hero {
  background:
    linear-gradient(90deg, rgba(36, 19, 14, .92) 0%, rgba(36, 19, 14, .72) 45%,
                    rgba(36, 19, 14, .28) 100%),
    url("../img/hero-york.jpg") center 55% / cover no-repeat;
  color: #fff;
}
.hero-pattern { display: none; }
.hero h1 { color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); }
.hero-kicker { color: #e8c3a4; }
.hero-slogan { color: #f4e3d8; }
.hero-desc { color: rgba(255, 255, 255, .84); }
.hero-stats {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}
.hero-stat { background: rgba(30, 16, 12, .55); backdrop-filter: blur(2px); }
.hero-stat strong { color: #fff; }
.hero-stat span { color: rgba(255, 255, 255, .75); }
.hero .btn-outline {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, .14);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 640px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(36, 19, 14, .9) 0%, rgba(36, 19, 14, .72) 100%),
      url("../img/hero-york.jpg") center / cover no-repeat;
  }
}

/* ==========================================================================
   咖啡厅规定
   ========================================================================== */
.rules-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.rules-panel { padding: 26px 30px 30px; }
.rules-panel .panel-head { padding: 0 0 16px; margin-bottom: 18px; }
.rules-intro {
  background: var(--brand-softer); border-left: 3px solid var(--brand);
  padding: 14px 18px; color: #5a463d; border-radius: 0 3px 3px 0; margin: 0 0 20px;
}
.rules-list { display: flex; flex-direction: column; gap: 12px; }
.rules-list li {
  display: flex; gap: 16px; padding: 16px 18px; background: #fff;
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.rule-no { flex: none; width: 34px; font-size: 20px; font-weight: 600; color: var(--gold); line-height: 1.3; }
.rules-list strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.rules-list p { margin: 0; font-size: 14px; color: var(--muted); }
.rules-help {
  margin-top: 20px; padding: 16px 18px; background: #fff8f4;
  border: 1px solid var(--line); border-radius: 4px; font-size: 14px; color: #5a463d;
}
.rules-hours { padding: 18px 22px 20px; }
.rules-hours span { display: block; font-size: 13px; color: var(--muted); }
.rules-hours b { display: block; font-size: 22px; color: var(--brand-dark); margin: 4px 0 2px; letter-spacing: 1px; }
.rules-hours em { font-style: normal; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1240px) {
  .nav-list a { padding: 0 24px; }
}

@media (max-width: 1080px) {
  .nav-list a { padding: 0 20px; }
}

@media (max-width: 920px) {
  .rules-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .rules-panel { padding: 20px 16px 22px; }
  .rules-list li { padding: 14px; gap: 12px; }
  .rule-no { width: 28px; font-size: 18px; }
}

/* 表格内的主色按钮，避免被 .table a 的链接颜色覆盖 */
.table a.btn-primary { color: #fff; }
.table a.btn-primary:hover { color: #fff; }
