:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --line: rgba(0, 0, 0, 0.1);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.16);
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro SC', 'SF Pro Text', 'PingFang SC',
    'MiSans', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }

/* ---------------- 导航 ---------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.transparent {
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
}

.nav.scrolled { border-bottom-color: var(--line); }

.nav-brand {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  background: linear-gradient(135deg, #5b7fa6, #a9c4dd);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav-logo-img {
  object-fit: contain;
  background: transparent;
  padding: 1px;
}

.edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.edit-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
  font-size: 14px;
}
.edit-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13.5px;
  opacity: 0.92;
}

.nav-links a { position: relative; padding: 4px 0; white-space: nowrap; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { font-weight: 600; }

.nav-spacer { flex: 1; }

.nav-admin {
  font-size: 12.5px;
  opacity: 0.55;
  padding: 5px 12px;
  border-radius: 980px;
  border: 1px solid currentColor;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.nav-admin:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }

/* ---------------- 首页 hero ---------------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease;
}
.hero-bg img.active { opacity: 1; transform: scale(1); }

.hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 900px;
  animation: rise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-slogan {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 300;
  opacity: 0.9;
  margin: 0 0 44px;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}
.btn-glass .ico { font-size: 18px; line-height: 1; }

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12.5px;
  opacity: 0.7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2.4s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ---------------- 通用区块 ---------------- */

.section { padding: 96px 24px; }
.section.alt { background: var(--bg-alt); }
.wrap { max-width: 1080px; margin: 0 auto; }
.wrap.narrow { max-width: 760px; }

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}

.section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  font-weight: 300;
  margin: 0;
}

.js-on .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.js-on .reveal.in { opacity: 1; transform: none; }

/* 首页下方区块 */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 48px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 600; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.7; font-weight: 300; }
.feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px;
  background: var(--bg-alt); margin-bottom: 18px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: 14px; color: var(--text-2); }

/* ---------------- 团队页 ---------------- */

.page-head {
  padding: calc(var(--nav-h) + 88px) 24px 56px;
  background: var(--bg-alt);
  text-align: center;
}
.page-head h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.page-head p { margin: 0 auto; max-width: 620px; color: var(--text-2); font-size: 18px; font-weight: 300; line-height: 1.7; }

.group { padding: 72px 24px 24px; }
.group-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.group-head h2 { font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.group-head span { font-size: 14px; color: var(--text-3); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.member-grid.leaders {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.member-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  text-align: center;
  padding-bottom: 22px;
}
.member-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member-card .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--bg-alt);
}
.member-grid.leaders .member-card .photo { aspect-ratio: 4 / 3.2; }
.member-card h3 { margin: 20px 0 6px; font-size: 19px; font-weight: 600; }
.member-card .role { font-size: 14px; color: var(--text-2); margin: 0; padding: 0 16px; }
.member-card .dept {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-3);
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--bg-alt);
}

/* 详情抽屉 */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 80;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(460px, 100%);
  background: #fff;
  z-index: 90;
  transform: translateX(102%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
}
.drawer.open { transform: none; }

.drawer-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2;
}
.drawer-close button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  display: grid; place-items: center;
  transition: background 0.2s ease;
}
.drawer-close button:hover { background: rgba(0, 0, 0, 0.12); }

.drawer-body { padding: 0 32px 48px; }
.drawer-photo {
  width: 148px; height: 148px;
  border-radius: 50%;
  object-fit: cover;
  margin: 4px auto 22px;
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.drawer-body h2 { margin: 0 0 8px; font-size: 28px; font-weight: 600; letter-spacing: -0.015em; text-align: center; }
.drawer-role { text-align: center; color: var(--text-2); font-size: 16px; margin: 0 0 6px; }
.drawer-dept { text-align: center; color: var(--text-3); font-size: 13.5px; margin: 0 0 26px; }

.meta-list { border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 24px; }
.meta-item { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; }
.meta-item span { color: var(--text-3); }
.meta-item b { font-weight: 500; }

.bio { font-size: 15.5px; line-height: 1.8; color: #3a3a3c; font-weight: 300; margin: 0 0 24px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tag {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg-alt);
  color: #3a3a3c;
}

.contact-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-btns a {
  flex: 1;
  min-width: 130px;
  text-align: center;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 14.5px;
  transition: background 0.2s ease;
}
.contact-btns a:hover { background: #e8e8ed; }

/* ---------------- 风采页 ---------------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-alt); }
.gallery-item .cap { padding: 18px 20px 22px; }
.gallery-item h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.gallery-item p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.6; font-weight: 300; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  display: grid;
  place-items: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 76vh; border-radius: 12px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: 18px; font-size: 15px; font-weight: 300; opacity: 0.85; }
.lightbox .lb-close {
  position: absolute; top: 24px; right: 28px;
  background: rgba(255, 255, 255, 0.16);
  border: none; color: #fff; width: 40px; height: 40px;
  border-radius: 50%; cursor: pointer; font-size: 18px;
}

/* ---------------- 关于页 / 联系 ---------------- */

.about-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-block p { font-size: 17px; line-height: 1.85; color: #3a3a3c; font-weight: 300; margin: 0 0 18px; }

.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 20px; font-size: 20px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 13px; color: var(--text-3); margin-bottom: 6px; }
.contact-card dd { margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; }

/* ---------------- 页脚 ---------------- */

.footer {
  background: var(--bg-alt);
  padding: 48px 24px 40px;
  font-size: 13px;
  color: var(--text-3);
  border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
}
.footer a { opacity: 0.6; }
.footer a:hover { opacity: 1; }

/* ---------------- 公示列表 ---------------- */

.news-list { display: grid; gap: 12px; }

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.news-date {
  flex: none;
  width: 96px;
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.news-body { flex: 1; min-width: 0; }
.news-body h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.news-body p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.65; font-weight: 300; }
.news-content {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #3a3a3c;
  font-weight: 300;
  white-space: pre-wrap;
}

.pin {
  display: inline-block;
  font-size: 11.5px;
  padding: 2px 8px;
  border-radius: 980px;
  background: #d70015;
  color: #fff;
  margin-right: 8px;
  vertical-align: 2px;
  font-weight: 500;
}

.news-file { flex: none; font-size: 13px; color: var(--text-3); }

/* ---------------- 文件下载 ---------------- */

.file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

.file-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.file-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.file-ico { font-size: 22px; flex: none; }
.file-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.file-body b { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-body span { font-size: 13px; color: var(--text-3); }
.file-size { flex: none; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------------- 自定义页面正文 ---------------- */

.article-body { font-size: 16.5px; line-height: 1.9; color: #3a3a3c; font-weight: 300; }
.article-body h3 { margin: 28px 0 12px; font-size: 21px; font-weight: 600; color: var(--text); }
.article-body p { margin: 0 0 16px; white-space: pre-wrap; }
.article-body ul { margin: 0 0 16px; padding-left: 22px; }
.article-body li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .news-item { flex-direction: column; gap: 8px; padding: 16px 18px; }
  .news-date { width: auto; }
}

/* ---------------- 产品展示 3D 轮播 ---------------- */

.carousel-wrap {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 56px;
}

.carousel-stage {
  position: relative;
  height: 440px;
  perspective: 1400px;
  /* 关键：不使用 preserve-3d，否则子元素的 z-index 会被 3D 排序覆盖，
     导致「后面的图盖到前面」。改用 translateZ 手动控制前后层级。 */
  transform-style: flat;
}

.cs-slide {
  position: absolute;
  left: 50%;
  top: 0;
  width: 460px;
  height: 100%;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transform-origin: center center;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s ease,
              box-shadow 0.5s ease;
  will-change: transform;
}

/* 正面主图强调阴影，两侧压暗，强化层次 */
.cs-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.cs-slide.side::after { opacity: 0.28; }
.cs-slide.far::after { opacity: 0.45; }

.cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-alt);
  pointer-events: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 26px;
  line-height: 1;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.cs-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: all 0.25s ease;
}
.cs-dot.active { background: var(--text); width: 22px; border-radius: 980px; }

.carousel-caption {
  text-align: center;
  margin-top: 22px;
  min-height: 60px;
}
.carousel-caption h3 { margin: 0 0 6px; font-size: 21px; font-weight: 600; }
.carousel-caption p {
  margin: 0 auto 12px;
  max-width: 560px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  font-weight: 300;
}

/* 首页内嵌的紧凑版轮播 */
.carousel-stage.compact { height: 360px; }
.carousel-stage.compact .cs-slide { width: 380px; }

@media (max-width: 900px) {
  .carousel-stage { height: 340px; }
  .cs-slide { width: 300px; }
  .carousel-stage.compact { height: 300px; }
  .carousel-stage.compact .cs-slide { width: 260px; }
}
@media (max-width: 640px) {
  .carousel-wrap { padding: 0 40px; }
  .carousel-stage { height: 260px; }
  .cs-slide { width: 220px; }
  .carousel-stage.compact { height: 240px; }
  .carousel-stage.compact .cs-slide { width: 190px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 20px; }
}

/* ---------------- 后台 ---------------- */

.admin-body { background: var(--bg-alt); }

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 22px;
  padding: 42px 36px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 600; }
.login-card .sub { color: var(--text-2); font-size: 14px; margin: 0 0 28px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 980px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background: var(--blue-hover); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-alt); }
.btn.danger { background: #d70015; }
.btn.danger:hover { background: #e5001a; }
.btn.sm { padding: 7px 14px; font-size: 13.5px; }

.error-tip { color: #d70015; font-size: 13.5px; margin-top: 12px; min-height: 18px; }

.admin-shell { display: none; }
.admin-shell.ready { display: block; }

.admin-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-top h1 { font-size: 18px; margin: 0; font-weight: 600; }
.admin-top .who { font-size: 13px; color: var(--text-2); }

.admin-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 80px;
  display: grid;
  gap: 24px;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}
.panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.panel h2 { margin: 0; font-size: 19px; font-weight: 600; }
.panel .desc { color: var(--text-2); font-size: 13.5px; margin: 4px 0 0; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 7px 16px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}
.tab.active { background: var(--text); color: #fff; border-color: var(--text); }

.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.wall-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.wall-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wall-item .bar { padding: 12px; }
.wall-item .name { font-size: 13.5px; margin-bottom: 10px; color: var(--text-2); }
.wall-item .ops { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 980px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 8px;
}
.badge.off { background: var(--text-3); }

.list-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.list-table th, .list-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.list-table th { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.list-table td.ops { white-space: nowrap; text-align: right; }
.list-table .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-alt); }
.list-table .muted { color: var(--text-3); }

.modal-mask {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(0, 0, 0, 0.4);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-mask.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(620px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.99);
  transition: transform 0.25s ease;
}
.modal-mask.open .modal { transform: none; }
.modal h3 { margin: 0 0 18px; font-size: 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.switch-row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 0; }
.switch-row input { width: 16px; height: 16px; }

.btn-edit {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  background: #fbfbfd;
}
.btn-edit .line {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-edit .line + .line { margin-top: 10px; }
.btn-edit input[type='text'], .btn-edit input:not([type]), .btn-edit select {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  outline: none;
  font-size: 14px;
}
.btn-edit input:focus, .btn-edit select:focus { border-color: var(--blue); }
.btn-edit .b-label { flex: 1; min-width: 120px; }
.btn-edit .b-href { flex: 2; min-width: 160px; }
.btn-edit .mini { font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.tag-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  font-size: 12.5px;
  white-space: nowrap;
}

/* 分组标题锚点 */
.group[data-group] { scroll-margin-top: 90px; }

.nav-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fbfbfd;
  font-size: 14px;
}
.nav-order-row .ops { display: flex; gap: 6px; }

.upload-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.upload-box .preview {
  width: 84px; height: 84px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px);
  background: rgba(29, 29, 31, 0.94);
  color: #fff;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-3);
  font-size: 14.5px;
}

/* ---------------- 404 ---------------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound h1 { font-size: 64px; margin: 0 0 12px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 860px) {
  .about-block { grid-template-columns: 1fr; gap: 32px; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .nav-links { gap: 16px; font-size: 12.5px; }
}

@media (max-width: 640px) {
  .nav { padding: 0 16px; gap: 14px; }
  .nav-links { display: none; }
  .nav-links.mobile-show { display: flex; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .btn-glass { justify-content: center; }
  .drawer { width: 100%; }
  .list-table th:nth-child(n + 4), .list-table td:nth-child(n + 4) { display: none; }
  .member-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .member-grid.leaders { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
