/* ============================================================
   青岛大学知行合创社 · 全站样式
   设计基调：深海夜色 + 青蓝渐变 + 玻璃质感
   ============================================================ */

:root {
  --bg: #060a13;
  --bg-2: #0a1120;
  --ink: #eef3fb;
  --muted: #93a3ba;
  --dim: #67768d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --teal: #2fd6bd;
  --blue: #4f8cff;
  --gold: #f2c879;
  --danger: #ff6b7a;
  --grad: linear-gradient(115deg, #2fd6bd 0%, #4f8cff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85);
  --font-sans: "Inter", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-num: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 50% at 12% 0%, rgba(47, 214, 189, 0.13), transparent 62%),
    radial-gradient(55% 45% at 92% 8%, rgba(79, 140, 255, 0.13), transparent 62%),
    radial-gradient(70% 60% at 50% 108%, rgba(79, 140, 255, 0.07), transparent 60%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 14px;
}

::selection {
  background: rgba(47, 214, 189, 0.32);
  color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ------------------------------ 通用文字 ------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal));
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin: 16px 0 14px;
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 15.5px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow::before {
  display: none;
}

/* ------------------------------ 按钮 ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: rgba(47, 214, 189, 0.55);
  background: rgba(47, 214, 189, 0.1);
  transform: translateY(-1px);
}

.btn-primary {
  border: none;
  background: var(--grad);
  color: #04121a;
  box-shadow: 0 14px 34px -14px rgba(47, 214, 189, 0.75);
}

.btn-primary:hover {
  filter: brightness(1.06);
  background: var(--grad);
  box-shadow: 0 18px 40px -14px rgba(47, 214, 189, 0.85);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-danger {
  border-color: rgba(255, 107, 122, 0.35);
  color: #ffb3bc;
}

.btn-danger:hover {
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.6);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

/* ------------------------------ 页头 ------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(6, 10, 19, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* 品牌徽标：青岛大学校徽 + 知行合创社社标，白底托片保证深色背景上可读 */
.brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 13px;
  background: #f8fbfe;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.brand-logos img {
  display: block;
  height: 25px;
  width: auto;
}

/* 校徽 SVG 内含留白，视觉上偏小，单独放大一档保持与社标等重 */
.brand-logos .logo-qdu {
  height: 34px;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: rgba(6, 16, 32, 0.16);
}

.site-footer .brand-logos {
  padding: 4px 8px;
}

.site-footer .brand-logos img {
  height: 20px;
}

.site-footer .brand-logos .logo-qdu {
  height: 27px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 15.5px;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--dim);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding: 9px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* 用户胶囊 */
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  cursor: pointer;
  transition: 0.2s;
}

.user-chip:hover {
  border-color: rgba(47, 214, 189, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #04121a;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.user-meta strong {
  font-size: 13px;
  font-weight: 600;
}

.user-meta em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--teal);
}

.user-menu {
  position: absolute;
  top: 64px;
  right: 0;
  min-width: 200px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 18, 32, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.user-menu.is-open {
  display: block;
  animation: pop 0.18s ease;
}

.user-menu button,
.user-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  border-radius: 10px;
  text-align: left;
  transition: 0.18s;
}

.user-menu button:hover,
.user-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.user-menu .danger:hover {
  color: #ffb3bc;
  background: rgba(255, 107, 122, 0.12);
}

.has-menu {
  position: relative;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--ink);
  font-size: 18px;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ 首页轮播 ------------------------------ */

.hero {
  position: relative;
  height: min(92vh, 820px);
  min-height: 600px;
  overflow: hidden;
  background: #050912;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 7s linear;
}

.slide.is-active .slide-bg {
  transform: scale(1);
}

.slide-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 16, 0.95) 0%, rgba(4, 8, 16, 0.82) 38%, rgba(4, 8, 16, 0.42) 72%, rgba(4, 8, 16, 0.55) 100%),
    linear-gradient(0deg, rgba(6, 10, 19, 0.96) 2%, rgba(6, 10, 19, 0.1) 45%);
}

.slide-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: 60px;
}

.slide-content {
  max-width: 640px;
  transform: translateY(24px);
  opacity: 0;
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.slide.is-active .slide-content {
  transform: none;
  opacity: 1;
}

.slide-index {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 18px;
}

.slide h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  margin: 18px 0 20px;
  letter-spacing: -0.035em;
}

.slide h1 .thin {
  display: block;
  font-size: 0.44em;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(238, 243, 251, 0.72);
  margin-top: 14px;
}

.slide p {
  color: rgba(238, 243, 251, 0.72);
  font-size: 15.5px;
  line-height: 1.85;
  max-width: 520px;
  margin: 0 0 32px;
}

.slide-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 40px;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.hero-ui > * {
  pointer-events: auto;
}

.dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 34px;
  height: 3px;
  border: none;
  padding: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  transition: 0.3s;
}

.dot.is-active {
  background: var(--grad);
  width: 54px;
}

.hero-arrows {
  display: flex;
  gap: 10px;
  align-items: center;
}

.arrow-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
  transition: 0.22s;
  font-size: 15px;
}

.arrow-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-counter {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-right: 6px;
}

.hero-counter b {
  color: #fff;
  font-weight: 600;
}

/* ------------------------------ 社团简介 ------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: start;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 15px;
}

.about-copy p strong {
  color: var(--ink);
  font-weight: 600;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.keyword {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.keyword::before {
  content: "·";
  margin-right: 6px;
  color: var(--teal);
}

.about-visual {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(79, 140, 255, 0.16), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(47, 214, 189, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}

.about-quote {
  position: relative;
  font-size: 22px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.about-quote span {
  color: var(--teal);
}

.value-list {
  position: relative;
  display: grid;
  gap: 1px;
  background: var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.value-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 18px;
  background: rgba(8, 13, 24, 0.72);
}

.value-row b {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--teal);
  font-weight: 600;
  min-width: 60px;
}

.value-row span {
  font-size: 13.5px;
  color: var(--muted);
}

/* ------------------------------ 我们做什么 ------------------------------ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.3s;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(47, 214, 189, 0.5), transparent 42%, rgba(79, 140, 255, 0.4));
  opacity: 0;
  transition: opacity 0.3s;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--panel-2);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-num {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.12em;
  margin-bottom: 34px;
}

.feature-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
}

/* ------------------------------ 部门 ------------------------------ */

.dept-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dept {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: 0.28s;
}

.dept:hover {
  border-color: rgba(47, 214, 189, 0.35);
  background: rgba(47, 214, 189, 0.05);
}

.dept-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dept-tag {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.dept h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
}

.dept p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------ 成长路径 ------------------------------ */

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.path-step {
  padding: 32px 26px 32px 0;
  position: relative;
}

.path-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 5px rgba(47, 214, 189, 0.12);
}

.path-step b {
  display: block;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.path-step h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.path-step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

/* ------------------------------ CTA ------------------------------ */

.cta {
  position: relative;
  padding: 64px 56px;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 8% 10%, rgba(47, 214, 189, 0.22), transparent 60%),
    radial-gradient(80% 120% at 92% 90%, rgba(79, 140, 255, 0.24), transparent 62%),
    rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 12px;
}

.cta p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

/* ------------------------------ 页脚 ------------------------------ */

.site-footer {
  margin-top: 100px;
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(10, 17, 32, 0.7));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 42px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
  margin: 16px 0 0;
  max-width: 300px;
}

.footer-col h5 {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--font-num);
  letter-spacing: 0.02em;
}

/* ------------------------------ 子页头 ------------------------------ */

.page-hero {
  padding: 150px 0 56px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 214, 189, 0.16), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 16px 0 14px;
}

.page-hero p {
  color: var(--muted);
  max-width: 640px;
  margin: 0;
}

/* ------------------------------ 聚合页 ------------------------------ */

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}

.search-box input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 42px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  outline: none;
  transition: 0.2s;
}

.search-box input:focus {
  border-color: rgba(47, 214, 189, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--dim);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  transition: 0.2s;
}

.chip:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.chip.is-active {
  background: rgba(47, 214, 189, 0.14);
  border-color: rgba(47, 214, 189, 0.5);
  color: var(--teal);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.link-card {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: 0.25s;
  overflow: hidden;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 214, 189, 0.42);
  background: rgba(47, 214, 189, 0.055);
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9);
}

.link-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 700;
  color: #04121a;
  background: var(--grad);
  box-shadow: 0 10px 22px -12px rgba(47, 214, 189, 0.9);
}

.link-icon.alt {
  background: linear-gradient(135deg, #6f8dff, #a78bfa);
  color: #0a0f1c;
}

.link-icon.warm {
  background: linear-gradient(135deg, #f2c879, #f0906b);
  color: #241305;
}

.link-body {
  min-width: 0;
  flex: 1;
}

.link-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
  margin-bottom: 4px;
  line-height: 1.4;
}

.link-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--dim);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.link-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.62;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-arrow {
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--dim);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: 0.25s;
  font-size: 14px;
}

.link-card:hover .link-arrow {
  opacity: 1;
  transform: none;
  color: var(--teal);
}

.link-card.is-hidden-link {
  opacity: 0.5;
}

.link-admin-actions {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: 0.2s;
  z-index: 3;
}

.link-card:hover .link-admin-actions {
  opacity: 1;
}

.icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 10, 19, 0.9);
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: 0.18s;
}

.icon-btn:hover {
  color: var(--ink);
  border-color: rgba(47, 214, 189, 0.6);
}

.icon-btn.danger:hover {
  color: #ffb3bc;
  border-color: rgba(255, 107, 122, 0.6);
}

.add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 104px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--dim);
  font-size: 14px;
  transition: 0.22s;
}

.add-card:hover {
  color: var(--teal);
  border-color: rgba(47, 214, 189, 0.55);
  background: rgba(47, 214, 189, 0.05);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--dim);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.empty-state b {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 6px;
}

/* 演示模式提示 */
.demo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid rgba(242, 200, 121, 0.3);
  background: rgba(242, 200, 121, 0.08);
  color: #f5d9a3;
  font-size: 12.5px;
  margin-bottom: 22px;
  line-height: 1.6;
}

.demo-banner b {
  color: var(--gold);
}

/* ------------------------------ 竞赛时间线 ------------------------------ */

.month-strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin-bottom: 54px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.month-cell {
  padding: 10px 4px;
  border-radius: 9px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid transparent;
  background: transparent;
  transition: 0.2s;
  cursor: pointer;
}

.month-cell span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 7px;
  color: var(--dim);
}

.month-cell:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.06);
}

.month-cell b {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.month-cell .month-bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 auto;
  width: 70%;
}

.month-cell.has-event {
  border-color: rgba(47, 214, 189, 0.28);
  background: rgba(47, 214, 189, 0.07);
}

.month-cell.has-event b {
  color: var(--teal);
}

.month-cell.has-event .month-bar {
  background: var(--grad);
}

.month-cell.is-now {
  border-color: rgba(79, 140, 255, 0.6);
  background: rgba(79, 140, 255, 0.13);
}

.timeline {
  position: relative;
  padding-left: 2px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 111px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(47, 214, 189, 0.45) 6%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(79, 140, 255, 0.45) 94%,
    transparent
  );
}

.tl-group {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 42px;
  padding-bottom: 40px;
  position: relative;
}

.tl-month {
  text-align: right;
  padding-top: 2px;
  position: sticky;
  top: 100px;
  align-self: start;
}

.tl-month b {
  display: block;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.tl-month span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
}

.tl-items {
  display: grid;
  gap: 12px;
  position: relative;
}

.tl-card {
  position: relative;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.25s;
}

.tl-card:hover {
  border-color: rgba(47, 214, 189, 0.4);
  background: rgba(47, 214, 189, 0.05);
  transform: translateX(3px);
}

.tl-dot {
  position: absolute;
  left: -47px;
  top: 24px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(6, 10, 19, 1), 0 0 0 5px rgba(255, 255, 255, 0.16);
  transition: 0.2s;
  display: block;
}

.tl-dot:hover {
  box-shadow: 0 0 0 4px rgba(6, 10, 19, 1), 0 0 0 6px rgba(47, 214, 189, 0.6);
  transform: scale(1.25);
}

.tl-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tl-card-head h3 {
  font-size: 15.5px;
  font-weight: 650;
}

.tl-phase {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid rgba(47, 214, 189, 0.35);
  background: rgba(47, 214, 189, 0.1);
  color: var(--teal);
}

.tl-phase.gold {
  border-color: rgba(242, 200, 121, 0.35);
  background: rgba(242, 200, 121, 0.1);
  color: var(--gold);
}

.tl-date {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--muted);
}

.tl-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--dim);
  line-height: 1.65;
}

.tl-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: 0.2s;
}

.tl-link:hover {
  border-bottom-color: var(--blue);
}

.tag-soft {
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  letter-spacing: 0.03em;
}

.timeline-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 24px;
}

.timeline-legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
  margin-right: 6px;
}

/* ------------------------------ 登录页 ------------------------------ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-aside {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 15% 12%, rgba(47, 214, 189, 0.2), transparent 62%),
    radial-gradient(70% 60% at 88% 88%, rgba(79, 140, 255, 0.22), transparent 62%);
}

.auth-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(70% 60% at 40% 40%, #000, transparent 76%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 40%, #000, transparent 76%);
  pointer-events: none;
}

.auth-aside-inner {
  position: relative;
  z-index: 2;
}

.auth-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.14;
  margin: 28px 0 18px;
  letter-spacing: -0.03em;
}

.auth-title span {
  display: block;
  font-size: 0.46em;
  font-weight: 500;
  color: rgba(238, 243, 251, 0.6);
  letter-spacing: 0.04em;
  margin-top: 14px;
}

.auth-points {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  max-width: 380px;
}

.auth-point {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-point b {
  color: var(--teal);
  font-family: var(--font-num);
  font-size: 12px;
  padding-top: 3px;
}

.auth-aside-foot {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.03em;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  position: relative;
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-tabs {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.auth-tab {
  position: relative;
  background: none;
  border: none;
  padding: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--dim);
  transition: 0.2s;
  letter-spacing: -0.01em;
}

.auth-tab.is-active {
  color: var(--ink);
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}

.auth-hint {
  font-size: 12.5px;
  color: var(--dim);
  margin: -6px 0 24px;
  line-height: 1.6;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  outline: none;
  transition: 0.2s;
}

.field textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.65;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(47, 214, 189, 0.65);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(47, 214, 189, 0.1);
}

.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #93a3ba 50%),
    linear-gradient(135deg, #93a3ba 50%, transparent 50%);
  background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-msg {
  font-size: 12.5px;
  line-height: 1.6;
  padding: 10px 12px;
  border-radius: 9px;
  margin-bottom: 14px;
  display: none;
}

.form-msg.is-error {
  display: block;
  background: rgba(255, 107, 122, 0.1);
  border: 1px solid rgba(255, 107, 122, 0.32);
  color: #ffb3bc;
}

.form-msg.is-ok {
  display: block;
  background: rgba(47, 214, 189, 0.1);
  border: 1px solid rgba(47, 214, 189, 0.32);
  color: #9df0e3;
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
  height: 48px;
}

.auth-switch {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--dim);
  text-align: center;
}

.auth-switch button {
  background: none;
  border: none;
  color: var(--teal);
  font-size: 12.5px;
  padding: 0 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-home {
  position: absolute;
  top: 26px;
  left: 26px;
  font-size: 12.5px;
  color: var(--dim);
  z-index: 5;
  transition: 0.2s;
}

.back-home:hover {
  color: var(--teal);
}

/* ------------------------------ 后台 ------------------------------ */

.admin-page {
  padding-top: 110px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.admin-head h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 8px;
}

.admin-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 26px;
  align-items: start;
}

.admin-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.admin-nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  text-align: left;
  transition: 0.18s;
}

.admin-nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
}

.admin-nav button.is-active {
  background: rgba(47, 214, 189, 0.14);
  color: var(--teal);
  font-weight: 600;
}

.admin-nav .count {
  font-family: var(--font-num);
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--ink);
}

.panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 16px;
  margin: 0 0 3px;
}

.panel-head p {
  margin: 0;
  font-size: 12.5px;
  color: var(--dim);
}

.panel-body {
  padding: 22px;
}

.panel-body.flush {
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 680px;
}

table.data th {
  text-align: left;
  padding: 12px 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
}

table.data td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.cell-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cell-user .user-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.cell-user b {
  display: block;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
}

.cell-user span {
  font-size: 11.5px;
  color: var(--dim);
  font-family: var(--font-num);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge.owner {
  color: var(--gold);
  border-color: rgba(242, 200, 121, 0.42);
  background: rgba(242, 200, 121, 0.1);
}

.badge.admin {
  color: var(--teal);
  border-color: rgba(47, 214, 189, 0.4);
  background: rgba(47, 214, 189, 0.1);
}

.badge.member {
  color: #a9bde0;
  border-color: rgba(120, 160, 230, 0.32);
  background: rgba(79, 140, 255, 0.09);
}

.badge.pending {
  color: var(--gold);
  border-color: rgba(242, 200, 121, 0.42);
  background: rgba(242, 200, 121, 0.1);
}

.badge.done {
  color: #9df0e3;
  border-color: rgba(47, 214, 189, 0.35);
  background: rgba(47, 214, 189, 0.08);
}

.badge.rejected {
  color: #ffb3bc;
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.08);
}

.title-pill {
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-card b {
  display: block;
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
}

.stat-card span {
  font-size: 12px;
  color: var(--dim);
}

.pending-card {
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(242, 200, 121, 0.24);
  background: rgba(242, 200, 121, 0.05);
  margin-bottom: 12px;
}

.pending-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pending-reason {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.65;
}

.mini-list {
  display: grid;
  gap: 10px;
}

.mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.mini-item small {
  color: var(--dim);
  font-size: 11.5px;
}

/* ------------------------------ 弹窗 / 提示 ------------------------------ */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(6px);
}

.modal-mask.is-open {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: #0b1220;
  box-shadow: var(--shadow);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-head h3 {
  font-size: 16px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--dim);
  font-size: 20px;
  line-height: 1;
  padding: 4px;
}

.modal-close:hover {
  color: var(--ink);
}

.modal-body {
  padding: 22px;
}

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 22px;
}

.toast-wrap {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.toast {
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(14, 21, 36, 0.97);
  color: var(--ink);
  font-size: 13px;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
  max-width: 340px;
  line-height: 1.55;
}

.toast.ok {
  border-color: rgba(47, 214, 189, 0.45);
}

.toast.err {
  border-color: rgba(255, 107, 122, 0.45);
  color: #ffc4cb;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ------------------------------ 动效 ------------------------------ */

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

html.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html.js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1024px) {
  .feature-grid,
  .dept-grid,
  .path {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-nav {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .month-strip {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: grid;
    place-items: center;
  }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 74px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 16, 29, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open a {
    padding: 12px 14px;
  }
  .nav-links.is-open a.is-active::after {
    display: none;
  }
  .nav-right {
    margin-left: 0;
  }
  .user-meta {
    display: none;
  }
  .user-chip {
    padding: 0 8px;
  }
  .hero {
    min-height: 560px;
    height: 82vh;
  }
  .section {
    padding: 72px 0;
  }
  .cta {
    padding: 38px 26px;
  }
  .timeline::before {
    left: 6px;
  }
  .tl-group {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 26px;
    padding-bottom: 30px;
  }
  .tl-month {
    text-align: left;
    position: static;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .tl-month b {
    font-size: 20px;
  }
  .tl-dot {
    left: -25px;
    top: 22px;
  }
  .month-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .about-quote {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  /* 窄屏收紧品牌区，给登录按钮和汉堡留出位置 */
  .nav {
    gap: 10px;
  }
  .brand {
    gap: 9px;
  }
  .brand-logos {
    gap: 5px;
    padding: 4px 7px;
    border-radius: 11px;
  }
  .brand-logos img {
    height: 19px;
  }
  .brand-logos .logo-qdu {
    height: 26px;
  }
  .brand-divider {
    height: 15px;
  }
  .brand-text strong {
    font-size: 14px;
  }
  .brand-text span {
    display: none;
  }
  .feature-grid,
  .dept-grid,
  .path {
    grid-template-columns: 1fr;
  }
  .path-step {
    padding: 26px 0 8px;
  }
  .slide h1 {
    font-size: 2rem;
  }
  .slide p {
    font-size: 14px;
  }
  .hero-ui {
    bottom: 26px;
  }
  .hero-counter {
    display: none;
  }
  .page-hero {
    padding: 120px 0 36px;
  }
  .admin-page {
    padding-top: 92px;
  }
  .auth-main {
    padding: 88px 20px 48px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .link-grid {
    grid-template-columns: 1fr;
  }
  .month-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .modal {
    max-width: 100%;
  }
}

/* ------------------------------ 聚合页分组 ------------------------------ */

.link-group {
  display: contents;
}

.link-group-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.link-group:first-child .link-group-head {
  margin-top: 0;
}

.link-group-head h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.link-group-head span {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--dim);
}

.tl-group {
  scroll-margin-top: 96px;
}

/* ------------------------------ 后台表单补充 ------------------------------ */

.phase-row select,
.phase-row input {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 12.5px;
  outline: none;
}

.phase-row select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 8px;
  background-image: linear-gradient(45deg, transparent 50%, #93a3ba 50%),
    linear-gradient(135deg, #93a3ba 50%, transparent 50%);
  background-position: calc(100% - 14px) 17px, calc(100% - 9px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.phase-row select:focus,
.phase-row input:focus {
  border-color: rgba(47, 214, 189, 0.6);
}

.phase-row .icon-btn {
  height: 38px;
  width: 32px;
}

section[id] {
  scroll-margin-top: 86px;
}

@media (max-width: 640px) {
  .phase-row {
    grid-template-columns: 68px 1fr 32px !important;
  }
  .phase-row input[name="date"] {
    grid-column: 1 / 3;
  }
  .phase-row .icon-btn {
    grid-column: 3;
    grid-row: 1;
  }
}
