
:root {
  --blue: #1a66d8;
  --blue-2: #0d4fb8;
  --blue-deep: #0a3d96;
  --blue-soft: #e8f1ff;
  --blue-mist: #f3f7ff;
  --navy: #1a66d8;
  --navy-2: #0a3d96;
  --accent: #e24a3b;
  --ink: #1f2937;
  --mute: #6b7280;
  --line: #e5eaf2;
  --bg: #f5f7fb;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(13, 79, 184, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }
.page-home { background: #f3f6fb; }
body.modal-open { overflow: hidden; }
.serif { font-family: inherit; font-weight: 650; }
.muted { color: var(--mute); font-size: 13px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 36, 68, 0.04);
}
.site-header.header-over {
  position: absolute;
  left: 0; right: 0;
  background: transparent;
  border-bottom: 0;
  backdrop-filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  margin-left: 112px;
}
.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(180px, 38vw);
}
.nav { display: flex; gap: 2px; align-items: center; }
.nav a {
  font-size: 14px;
  padding: 8px 14px;
  color: var(--ink);
  border-radius: 999px;
}
.nav-dropdown {
  position: relative;
}
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
}
.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 10px 8px 8px;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: none;
  z-index: 60;
}
.nav-drop-menu::before {
  content: "";
  position: absolute;
  inset: 10px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: -1;
}
.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  display: grid;
  gap: 2px;
}
.nav-drop-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink);
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.nav-drop-menu a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.nav-dropdown.active > .nav-drop-trigger {
  color: var(--blue);
  background: var(--blue-soft);
}
.header-over .nav a { color: rgba(255,255,255,.92); }
.nav a.active, .nav a:hover {
  color: var(--blue);
  background: var(--blue-soft);
}
.header-over .nav a.active,
.header-over .nav a:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
}
.nav-cta {
  margin-left: 6px;
  background: var(--blue) !important;
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(26, 102, 216, 0.28);
}
.nav-cta:hover {
  background: var(--blue-2) !important;
  color: #fff !important;
}
.header-over .nav-cta {
  background: #fff !important;
  color: var(--blue) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.header-over .nav-cta:hover {
  background: #f4f8ff !important;
  color: var(--blue) !important;
}
.site-header:not(.header-over) .nav-cta:hover {
  background: var(--blue-2) !important;
  color: #fff !important;
}
.menu-btn {
  display: none;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: inherit;
  width: 40px;
  height: 36px;
  border-radius: 8px;
}
.site-header:not(.header-over) .menu-btn {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 70% at 70% 40%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(115deg, #0a3d96 0%, #1a66d8 48%, #4d9cff 100%);
  padding: 108px 0 86px;
  min-height: 420px;
}
.hero-carousel {
  padding: 0;
  min-height: 0;
  background: #0a3d96;
}
.hero-carousel-main.carousel {
  aspect-ratio: 1920 / 945;
  min-height: 300px;
  max-height: 620px;
}
.hero-carousel-main .carousel-slide img {
  object-fit: cover;
  object-position: center top;
}
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 8;
  min-height: 320px;
  max-height: 560px;
  background: #0a3d96;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.carousel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.carousel-caption h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 750;
}
.carousel-caption p {
  margin: 0 0 18px;
  font-size: 16px;
  color: rgba(255,255,255,.92);
  max-width: 28em;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: rgba(255,255,255,.36); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.carousel-dots .dot.is-active { background: #fff; width: 22px; border-radius: 999px; }
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  right: -8%;
  top: -20%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(255,255,255,.22), transparent 65%);
}
.hero-art {
  position: absolute;
  right: max(2%, calc(50% - 520px));
  top: 48px;
  width: min(520px, 52vw);
  height: auto;
  opacity: .95;
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 520px; }
.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.hero-copy p {
  margin: 0 0 26px;
  font-size: 16px;
  color: rgba(255,255,255,.88);
  max-width: 28em;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover { color: #fff; background: var(--blue-2); }
.btn-solid { background: #0d4fb8; box-shadow: 0 8px 20px rgba(10, 61, 150, .28); }
.btn-soft {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.45);
  color: #fff;
}
.btn-soft:hover { background: rgba(255,255,255,.28); color: #fff; }
.btn-line {
  background: #fff;
  color: var(--blue);
  border: 1px solid #c9daf5;
}
.btn-line:hover { background: var(--blue-mist); color: var(--blue); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  min-height: 34px;
  padding: 0 16px;
  font-size: 13px;
}
.btn-accent:hover { background: #c93d30; color: #fff; }
.btn-wide { width: 100%; }
.btn-card {
  width: 100%;
  margin-top: 14px;
  border-radius: 8px;
  min-height: 40px;
}
.btn-ghost, .link-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #c9daf5;
  border-radius: 999px;
  color: var(--blue);
  font-size: 13px;
  background: #fff;
}
.link-ghost:hover { background: var(--blue-soft); color: var(--blue); }

/* Tools */
.tools-wrap { margin-top: -34px; position: relative; z-index: 3; }
.tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.tools a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 36, 68, 0.04);
}
.tool-drop {
  position: relative;
}
.tool-drop > a {
  height: 100%;
}
.tool-drop-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 0 0;
  z-index: 20;
}
.tool-drop-menu::before {
  content: "";
  position: absolute;
  inset: 10px 0 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: -1;
}
.tool-drop:hover .tool-drop-menu,
.tool-drop:focus-within .tool-drop-menu,
.tool-drop.open .tool-drop-menu {
  display: grid;
  gap: 2px;
  padding: 18px 8px 8px;
}
.tool-drop-menu a {
  display: block;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.tool-drop-menu a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.tools a:last-child { border-right: 1px solid var(--line); }
.tools a:hover {
  background: var(--blue-mist);
  color: var(--blue);
  border-color: #c9daf5;
}
.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}
.tool-icon svg { width: 22px; height: 22px; }
.tools b { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }

.tools-categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 36, 68, 0.04);
}
.tools-categories-label {
  color: var(--mute);
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}
.tools-categories .chip {
  font-size: 13px;
  padding: 6px 14px;
}

.contact-box { width: min(440px, 100%); }
.contact-list { display: grid; gap: 12px; margin: 14px 0 18px; }
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  text-align: left;
}
.contact-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.contact-item:not(:has(img)) {
  grid-template-columns: 1fr;
}
.contact-item b { display: block; color: var(--blue-deep); margin-bottom: 4px; }
.contact-item p { margin: 0; font-size: 14px; }

.section { padding: 36px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 20px;
  color: var(--blue-deep);
  font-weight: 700;
}
.section-title {
  text-align: center;
  margin: 0 0 28px;
  font-size: 26px;
  color: var(--blue-deep);
  font-weight: 750;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #6eb0ff);
}
.center-more { text-align: center; margin-top: 28px; }

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
}
.intro-news {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(250px, 0.38fr);
  gap: 18px;
  align-items: stretch;
}
.board {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(15, 36, 68, 0.04);
}
.intro-board {
  display: flex;
  flex-direction: column;
  padding: 14px;
}
.intro-board .section-head { margin-bottom: 12px; }
.intro-board p { margin: 0 0 12px; color: #4b5563; }
.intro-carousel {
  flex: 1;
  margin-top: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  background: linear-gradient(180deg, #8ec8ff 0%, #c8e4ff 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35);
}
.intro-carousel .carousel {
  position: relative;
  aspect-ratio: 842 / 429;
  min-height: 0;
  max-height: none;
  width: 100%;
  background: transparent;
}
.intro-carousel .carousel-slide {
  cursor: pointer;
}
.intro-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.intro-carousel .carousel-btn {
  width: 34px;
  height: 34px;
  font-size: 22px;
  background: rgba(255,255,255,.78);
  color: #1a66d8;
}
.intro-carousel .carousel-btn:hover { background: rgba(255,255,255,.92); }
.intro-carousel .carousel-btn.prev { left: 10px; }
.intro-carousel .carousel-btn.next { right: 10px; }
.intro-carousel .carousel-dots { bottom: 12px; }
.intro-carousel .carousel-dots .dot {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,.55);
}
.intro-carousel .carousel-dots .dot.is-active {
  width: 18px;
  background: #fff;
}

.news-board {
  padding: 20px 18px;
}
.news-board .news-item {
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 12px 0;
}
.news-board .date-badge {
  padding: 8px 4px;
}
.news-board .date-badge b { font-size: 14px; }
.news-board .news-item > div > b { font-size: 14px; line-height: 1.35; }
.news-board .news-item .muted {
  font-size: 12px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-list { display: grid; }
.news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover b { color: var(--blue); }
.date-badge {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  text-align: center;
  padding: 10px 6px;
  line-height: 1.2;
}
.date-badge b { display: block; font-size: 16px; color: #fff; }
.date-badge span { font-size: 11px; opacity: .85; }
.news-item > div > b { display: block; margin-bottom: 4px; }
.news-item .muted { margin: 0; }

/* Filter */
.section-filter { padding-top: 4px; }
.section-hot { padding-top: 8px; }
.filter-panel {
  background:
    linear-gradient(180deg, rgba(232,241,255,.65), rgba(255,255,255,.95)),
    #fff;
  border: 1px solid #d7e4f8;
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.search-row {
  display: flex;
  border: 1px solid #c9daf5;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.search-lg { min-height: 48px; }
.search-row input {
  flex: 1;
  border: 0;
  padding: 12px 18px;
  outline: none;
  background: #fff;
  font-size: 15px;
}
.search-row button {
  border: 0;
  background: var(--blue);
  color: #fff;
  padding: 0 28px;
  cursor: pointer;
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.chips .label {
  color: var(--mute);
  font-size: 13px;
  width: 3em;
  flex: none;
}
.chip {
  border: 1px solid #d7e4f8;
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #374151;
}
.chip.active, a.chip:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.filter-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #d7e4f8;
  color: var(--mute);
  font-size: 13px;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-foot b { color: var(--blue-deep); }

/* Event grid cards */
.event-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.event-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 36, 68, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(13, 79, 184, 0.12);
}
.event-card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a66d8, #6eb0ff);
  overflow: hidden;
}
.event-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}
.cover-ribbon {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(10, 61, 150, .88);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
}
.event-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card-body h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--blue-deep);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.event-card-body h3 a:hover { color: var(--blue); }
.event-card-body > p {
  margin: 0;
  color: var(--mute);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f7;
  color: #4b5563;
}
.tag-blue { background: #e8f1ff; color: #1a66d8; }
.tag-green { background: #e8f7ee; color: #1f7a3f; }
.tag-orange { background: #fff1e6; color: #c2410c; }

/* Legacy list fallback if used elsewhere */
.event-list { display: contents; }
.event-row {
  display: none;
}

.page-hero {
  background: linear-gradient(115deg, #0a3d96, #1a66d8 60%, #4d9cff);
  color: #fff;
  padding: 36px 0 28px;
}
.page-hero h1 {
  margin: 6px 0 8px;
  font-size: 28px;
  font-weight: 750;
  color: #fff;
}
.page-hero .muted { color: rgba(255,255,255,.82); }
.breadcrumb { color: rgba(255,255,255,.7); font-size: 13px; }

.query-hero .wrap { max-width: 560px; margin-left: auto; margin-right: auto; text-align: center; }
.query-hero .breadcrumb { text-align: left; }
.query-panel {
  margin: 22px auto 8px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 20px;
  display: grid;
  gap: 12px;
  text-align: left;
  box-shadow: 0 12px 36px rgba(8, 40, 96, 0.18);
}
.query-panel input {
  width: 100%;
  border: 1px solid #d7e0ee;
  border-radius: 10px;
  padding: 14px 14px;
  font-size: 15px;
  outline: none;
  background: #f8fafc;
  color: #0f172a;
}
.query-panel input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.query-panel input:focus {
  border-color: #84a9e0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,102,216,.12);
}
.query-panel .btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 650;
  background: linear-gradient(115deg, #0a3d96, #1a66d8);
  color: #fff;
  cursor: pointer;
}
.query-panel .btn:hover { filter: brightness(1.05); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  padding: 22px 0 56px;
}
.article, .side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(15, 36, 68, 0.04);
}
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--mute); font-size: 13px; margin: 10px 0 16px; }
.article-content p { margin: 0 0 14px; }
.article-content img,
.content-cover img,
.detail-cover img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.article-content .content-img { margin: 16px 0; }
.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 4px;
  color: var(--ink);
  font-size: 14px;
}
.result-card { padding-bottom: 8px; }
.detail-cover {
  margin: 0 0 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.detail-cover img { aspect-ratio: 16 / 9; object-fit: cover; margin: 0; border: 0; }
.side-col {
  display: grid;
  gap: 14px;
  align-content: start;
  position: sticky;
  top: 80px;
}
.side-card { position: static; }
.side-card h3 { margin: 0 0 8px; font-size: 16px; color: var(--blue-deep); }
.qr-box { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; margin-top: 10px; }
.qr-box-one { grid-template-columns: 1fr; max-width: 180px; margin-left: auto; margin-right: auto; }
.site-qr-panel {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 20px;
  box-shadow: 0 4px 16px rgba(15, 36, 68, 0.04);
}
.site-qr {
  margin: 0 auto 16px;
  max-width: 360px;
}
.site-qr img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.site-qr figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--mute);
  word-break: break-all;
}
.site-qr-panel .btn { margin: 4px 6px; }
.qr-box figure { margin: 0; }
.qr-box figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--mute);
}
.qr-box img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.qr-empty {
  aspect-ratio: 1;
  max-width: 180px;
  margin: 10px auto 0;
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fafbfc;
}
.form { display: grid; gap: 8px; }
.form input, .form select, .form textarea, .admin input, .admin select, .admin textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
}
.form input:focus, .form textarea:focus { border-color: #84a9e0; box-shadow: 0 0 0 3px rgba(26,102,216,.12); }
.flash { padding: 8px 10px; font-size: 14px; border-radius: 8px; }
.flash.ok { background: #e8f5e9; color: #215c21; }
.flash.error { background: #fdecea; color: #a61b1b; }
.notice {
  background: #fff7ed;
  color: var(--ink);
  padding: 12px;
  font-size: 13px;
  margin: 12px 0;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.status {
  display: inline-block;
  background: #e8f5e9;
  color: #2f6b32;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.status.closed { background: #f2f4f7; color: var(--mute); }
.status.upcoming { background: #fff6e8; color: #9a6700; }

.site-footer {
  background: #0a3d96;
  color: rgba(255,255,255,.82);
  padding: 0;
  margin-top: 12px;
}
.copy {
  border-top: 0;
  margin-top: 0;
  padding: 16px 0 18px;
  text-align: center;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
}
.copy .beian {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.35);
}
.copy .beian:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 47, 116, 0.45);
  z-index: 50;
  place-items: center;
  padding: 20px;
}
.modal.open { display: grid; }
.modal .box {
  background: #fff;
  padding: 22px;
  width: min(400px, 100%);
  border-radius: 14px;
}

.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table a { color: var(--blue); }

@media (max-width: 980px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { opacity: .35; width: 70vw; right: -8%; }
}

@media (max-width: 860px) {
  .wrap { width: calc(100% - 20px); }

  .site-header {
    padding-top: env(safe-area-inset-top, 0);
  }
  .header-inner {
    position: relative;
    height: 52px;
  }
  .brand { margin-left: 2px; }
  .brand-logo {
    height: 28px;
    max-width: min(140px, 44vw);
  }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f3f6fb;
    border: 1px solid var(--line);
    font-size: 18px;
    color: var(--ink);
  }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 36, 68, 0.14);
    z-index: 50;
    max-height: min(70vh, 520px);
    overflow-y: auto;
  }
  .header-over .nav {
    background: #fff;
    border-color: var(--line);
  }
  .nav.open { display: flex; }
  .nav a {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    color: var(--ink) !important;
    background: transparent;
    border-radius: 10px;
    font-size: 15px;
  }
  .nav-dropdown { width: 100%; }
  .nav-drop-trigger {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-drop-menu {
    position: static;
    display: none;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 4px 8px;
    background: transparent;
  }
  .nav-drop-menu::before { display: none; }
  .nav-dropdown.open .nav-drop-menu,
  .nav-dropdown:focus-within .nav-drop-menu {
    display: grid;
    gap: 2px;
  }
  .nav-drop-menu a {
    text-align: left;
    background: var(--blue-mist);
    font-size: 14px;
    padding: 10px 12px;
  }
  .nav a.active,
  .nav a:hover {
    color: var(--blue) !important;
    background: var(--blue-soft);
  }
  .nav-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    box-shadow: none;
    margin-top: 4px;
  }
  .header-over .nav-cta,
  .header-over .nav-cta:hover {
    background: var(--blue) !important;
    color: #fff !important;
  }

  .hero { padding: 0; min-height: 0; }
  .hero-carousel { padding: 0; }
  .hero-carousel-main.carousel {
    aspect-ratio: 1920 / 945;
    min-height: 0;
    max-height: none;
  }
  .hero-carousel-main .carousel-slide img {
    object-fit: cover;
    object-position: center center;
  }
  .carousel {
    aspect-ratio: 1920 / 945;
    min-height: 0;
    max-height: none;
  }
  .carousel-caption {
    bottom: 14%;
    padding: 0 16px;
  }
  .carousel-caption h1 {
    font-size: clamp(17px, 4.6vw, 22px);
    margin-bottom: 6px;
  }
  .carousel-caption p { display: none; }
  .carousel-caption .hero-actions { gap: 8px; }
  .carousel-caption .btn {
    min-height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
  /* 手机端靠滑动切换，隐藏挡图的左右箭头 */
  .carousel-btn { display: none; }
  .carousel-dots {
    bottom: 8px;
    gap: 6px;
  }
  .carousel-dots .dot {
    width: 6px;
    height: 6px;
  }
  .carousel-dots .dot.is-active { width: 16px; }

  .tools-wrap {
    margin-top: -22px;
    padding-bottom: 2px;
  }
  .tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tools a {
    padding: 14px 8px 12px;
    border-radius: 12px;
    gap: 8px;
    min-height: 92px;
    justify-content: center;
  }
  .tools a:last-child { border-right: 1px solid var(--line); }
  .tool-drop { z-index: 5; }
  .tool-drop-menu {
    left: 0;
    right: 0;
    min-width: 0;
    width: 100%;
  }
  .tool-drop:hover .tool-drop-menu,
  .tool-drop:focus-within .tool-drop-menu,
  .tool-drop.open .tool-drop-menu {
    padding: 14px 6px 6px;
  }
  .tool-drop-menu a {
    text-align: center;
    font-size: 13px;
    padding: 10px 8px;
  }
  .tools-categories { display: none; }
  .tools b {
    font-size: 14px;
    font-weight: 650;
  }
  .tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .tool-icon svg { width: 20px; height: 20px; }

  .split,
  .intro-news,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .intro-news { gap: 12px; }
  .page-home .section:first-of-type {
    padding-top: 16px;
  }
  .intro-board {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .intro-carousel {
    border-radius: 12px;
    border: 0;
    box-shadow: 0 4px 16px rgba(15, 36, 68, 0.06);
    background: #e8f1ff;
  }
  .intro-carousel .carousel {
    aspect-ratio: 842 / 429;
    max-height: none;
    min-height: 0;
  }
  .intro-carousel .carousel-slide img {
    object-fit: cover;
    object-position: center;
  }
  .intro-carousel .carousel-dots {
    bottom: 8px;
  }
  .intro-carousel .carousel-dots .dot {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }
  .intro-carousel .carousel-dots .dot.is-active {
    background: #fff;
  }
  .news-board {
    padding: 14px 12px;
    border-radius: 12px;
  }
  .news-board .section-head h2 { font-size: 17px; }
  .news-board .news-item {
    grid-template-columns: 52px 1fr;
    gap: 10px;
    padding: 10px 0;
  }
  .news-board .date-badge b { font-size: 12px; }
  .news-board .news-item > div > b { font-size: 14px; }

  .section { padding: 20px 0; }
  .section-title { font-size: 20px; margin-bottom: 16px; }
  .section-head { margin-bottom: 12px; }
  .filter-panel { padding: 14px; border-radius: 12px; }
  .search-lg { min-height: 44px; }
  .search-row input { padding: 10px 14px; font-size: 14px; }
  .search-row button { padding: 0 16px; }
  .chips { gap: 6px; margin-top: 10px; }
  .chips .label {
    width: 100%;
    margin-bottom: 2px;
  }
  .chip { font-size: 12px; padding: 6px 12px; }
  .filter-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .filter-foot .btn-accent { width: 100%; text-align: center; }

  .event-grid { grid-template-columns: 1fr; gap: 12px; }
  .event-card {
    border-radius: 12px;
  }
  .event-card:hover { transform: none; }
  .side-card { position: static; }
  .side-col { position: static; }

  .page-hero { padding: 20px 0 14px; }
  .page-hero h1 { font-size: 22px; }
  .query-hero .wrap { max-width: none; }
  .query-panel { padding: 16px 14px; }
  .query-panel input { padding: 12px; font-size: 16px; }
  .query-panel .btn { padding: 12px; font-size: 15px; }

  .detail-grid { gap: 12px; padding: 14px 0 40px; }
  .article, .side-card, .board { padding: 14px; border-radius: 12px; }
  .meta { gap: 6px 10px; font-size: 12px; }
  .article-content img { border-radius: 8px; }
  .qr-box-one { max-width: 200px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal .box {
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0));
  }
  .contact-item {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .contact-item img { margin: 0 auto; }

  .site-footer .copy {
    font-size: 12px;
    line-height: 1.5;
    padding: 14px 10px calc(16px + env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .tools b { font-size: 13px; }
  .tools a {
    min-height: 86px;
    padding: 12px 6px 10px;
  }
  .tool-icon {
    width: 34px;
    height: 34px;
  }
}


.admin {
  background: #eef1f5;
  min-height: 100vh;
  color: var(--ink);
}
.admin-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--navy-2);
  color: #c5d3e6;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-logo {
  display: block;
  height: 36px;
  width: auto;
}
.sidebar-brand span {
  display: block;
  font-size: 12px;
  color: #8fa3bf;
}
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.nav-group { margin-bottom: 18px; }
.nav-label {
  display: block;
  padding: 0 10px 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d84a3;
}
.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 2px;
  border-radius: 6px;
  color: #c5d3e6;
  font-size: 14px;
}
.sidebar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.sidebar-nav a.active {
  color: #fff;
  background: #1b365d;
  box-shadow: inset 3px 0 0 var(--accent);
}
.sidebar-foot {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-foot a {
  color: #9eb4d4;
  font-size: 13px;
}
.sidebar-foot a:hover { color: #fff; }

.admin-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.topbar-main { flex: 1; min-width: 0; }
.topbar-title {
  margin: 0;
  font-size: 20px;
  color: var(--navy);
  font-weight: 650;
  letter-spacing: 0.02em;
}
.topbar-lead {
  margin: 4px 0 0;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.5;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.topbar-user {
  font-size: 13px;
  color: var(--mute);
  padding: 6px 10px;
  background: #f4f6f8;
  border-radius: 999px;
}
.topbar-link {
  font-size: 13px;
  color: var(--navy);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.topbar-link:hover {
  background: #f7f9fc;
  color: var(--navy);
}
.topbar-logout { color: #a61b1b; border-color: #f0d4d4; }
.topbar-logout:hover { background: #fff5f5; color: #a61b1b; }

.admin-content {
  padding: 22px 24px 40px;
  flex: 1;
}
.admin-flash { margin-bottom: 16px; }

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.admin-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(15, 36, 68, 0.04);
  border-left: 4px solid var(--navy);
}
.admin-stat.accent-green { border-left-color: #2f6b32; }
.admin-stat.accent-blue { border-left-color: #2563eb; }
.admin-stat.accent-red { border-left-color: var(--accent); }
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 6px;
}
.admin-stat b {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
  font-weight: 700;
}
.stat-note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #98a2b3;
}
.stat-note a { color: var(--navy); }

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: 0 1px 2px rgba(15, 36, 68, 0.04);
  margin-bottom: 18px;
}
.admin-panel.flush { padding: 0; overflow: hidden; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.admin-panel.flush .panel-head {
  padding: 16px 20px 0;
  margin-bottom: 0;
}
.panel-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--navy);
  font-weight: 650;
}
.panel-head a { font-size: 13px; color: var(--navy); }
.panel-head .btn {
  font-size: 13px;
  padding: 8px 14px;
  white-space: nowrap;
}
.import-steps {
  margin: 0 0 16px;
  padding: 12px 12px 12px 32px;
  background: #f3f7fd;
  border: 1px solid #d9e6f7;
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.7;
}
.import-steps li { margin: 2px 0; }
.import-steps b { color: var(--navy); }

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.text-accent { color: var(--accent); }

.admin-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quick-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 36, 68, 0.04);
}
.quick-card:hover {
  border-color: #c9d4e3;
  background: #f7f9fc;
  color: var(--ink);
}
.quick-card b {
  display: block;
  color: var(--navy);
  margin-bottom: 4px;
}
.quick-card span {
  font-size: 13px;
  color: var(--mute);
}

.table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table thead th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  color: #667085;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f4;
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: #fafbfc; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.col-actions { white-space: nowrap; text-align: right; }
.empty-cell {
  text-align: center;
  color: var(--mute);
  padding: 28px 16px !important;
}
.nowrap { white-space: nowrap; }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #eef3f9;
  color: var(--navy);
}
.pill-ok { background: #e8f5e9; color: #215c21; }
.pill-warn { background: #fff6e8; color: #9a6700; }
.pill-danger { background: #fdecea; color: #a61b1b; }
.status-open { background: #e8f5e9; color: #215c21; }
.status-upcoming { background: #fff6e8; color: #9a6700; }
.status-closed { background: #f2f4f7; color: var(--mute); }
.status-draft { background: #eef3f9; color: #475467; }

.table-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  margin-left: 10px;
}
.table-link:first-child { margin-left: 0; }
.table-link.danger { color: #a61b1b; }
.inline-form { display: inline; }

.admin-grid-2 {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #344054;
  font-weight: 500;
  margin-bottom: 12px;
}
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 10px 12px;
  outline: none;
  background: #fff;
  font-size: 14px;
  font-weight: 400;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: #84a2c8;
  box-shadow: 0 0 0 3px rgba(20, 49, 90, 0.08);
}
.form-section {
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid #eef1f4;
}
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; }
.form-section h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--navy);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.field-full { grid-column: 1 / -1; }
.field-label {
  display: block;
  font-size: 13px;
  color: #344054;
  font-weight: 500;
  margin: 8px 0 8px;
}
.field-hint {
  display: block;
  margin: 4px 0 8px;
  color: var(--mute);
  font-size: 12px;
  font-weight: 400;
}
.content-img-saved-head {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--blue-deep);
}
.content-img-name {
  margin-top: 6px;
  font-size: 11px;
  color: var(--mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-img-field .content-img-file {
  width: 100%;
  max-width: 420px;
}
.content-img-field .field-label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.content-img-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.content-img-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 6px;
}
.content-img-item.is-removed {
  display: none !important;
}
.content-img-preview img,
.content-img-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f8fafc;
  display: block;
}
.content-img-index {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(15, 36, 68, 0.72);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
}
.content-img-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.content-img-del {
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--mute);
}
.content-img-del input { width: auto; margin: 0; }
.img-btn {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 6px;
  min-height: 30px;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink);
  padding: 0 2px;
}
.img-btn:hover { background: var(--blue-soft); color: var(--blue); }
.img-btn-danger:hover {
  background: #fdecea;
  color: #a61b1b;
  border-color: #f3c6c2;
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 500;
}
.check-row input { width: auto; }
.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.sticky-actions {
  padding-top: 16px;
  border-top: 1px solid #eef1f4;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 36, 68, 0.04);
}
.auth-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.auth-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
  color: var(--navy);
}
.auth-meta {
  font-size: 14px;
  color: var(--mute);
  font-weight: 400;
}
.auth-sub {
  margin: 0;
  font-size: 13px;
  color: var(--mute);
}
.auth-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.auth-time { font-size: 12px; color: #98a2b3; }
.auth-perms {
  padding: 10px 12px;
  background: #f7f9fc;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-form input[type="text"],
.auth-form input:not([type]) {
  width: 100%;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.perm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfc;
  font-size: 13px;
  cursor: pointer;
}
.perm-item:has(input:checked) {
  border-color: #9bb3d3;
  background: #eef3f9;
}
.perm-item input { width: auto; margin: 0; }

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 68, 0.45);
  z-index: 25;
}
.admin-overlay.open { display: block; }

.admin .board { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.stat b { font-size: 26px; color: var(--navy); }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table a { color: var(--navy); }

.admin-login {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    linear-gradient(180deg, #0f2444 0 3px, transparent 3px),
    linear-gradient(165deg, #eef3f9 0%, #f4f6f8 42%, #e8eef6 100%);
  color: var(--ink);
}
.login-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
}
.login-card {
  width: min(380px, 100%);
  background: #fff;
  padding: 28px 24px 22px;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(15, 36, 68, 0.08);
  display: grid;
  gap: 10px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}
.login-logo {
  display: block;
  height: 40px;
  width: auto;
}
.login-brand span {
  display: block;
  color: var(--mute);
  font-size: 12px;
}
.login-card h1 {
  margin: 4px 0 0;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.04em;
  font-weight: 650;
}
.login-lead {
  margin: 0 0 4px;
  color: var(--mute);
  font-size: 13px;
  line-height: 1.5;
}
.login-label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  margin-top: 4px;
}
.login-card input[type="password"] {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  outline: none;
  background: #fff;
  font-size: 16px; /* iOS 避免自动放大 */
}
.login-card input[type="password"]:focus {
  border-color: #9bb3d3;
  box-shadow: 0 0 0 3px rgba(20, 49, 90, 0.08);
}
.login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
  font-size: 16px;
  border-radius: 6px;
}
.login-back {
  display: block;
  text-align: center;
  margin-top: 6px;
  padding: 8px;
  color: var(--mute);
  font-size: 13px;
}
.login-back:hover { color: var(--navy); }

@media (max-width: 860px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(280px, 86vw);
    transform: translateX(-100%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 24px rgba(15, 36, 68, 0.12);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .sidebar-toggle { display: grid; place-items: center; }
  .admin-topbar { padding: 12px 16px; }
  .admin-content { padding: 16px; }
  .admin-stats,
  .admin-quick,
  .admin-grid-2,
  .form-grid { grid-template-columns: 1fr; }
  .topbar-user { display: none; }
  .topbar-actions .topbar-link:first-of-type { display: none; }
  .auth-card-head { flex-direction: column; }
  .auth-badges { align-items: flex-start; }
  .login-card { padding: 24px 18px 18px; }
}
