/* ============================================================
   升达网络技术工作室 · 视觉模板（参照 RHS Coding Club 设计系统）
   设计令牌：暖橙主色 / 青色辅助 / 大圆角 / 浅色亮 + 深色暗
   原则：内容默认可见，动画为渐进增强（JS 失败也不白屏）
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --background: #ffffff;
  --foreground: #111827;
  --card: #ffffff;
  --card-foreground: #111827;
  --primary: #d87943;
  --primary-foreground: #ffffff;
  --primary-soft: rgba(216, 121, 67, 0.10);
  --secondary: #527575;
  --secondary-foreground: #ffffff;
  --muted: #f3f4f6;
  --muted-foreground: #6b7280;
  --accent: #eeeeee;
  --border: #e5e7eb;
  --ring: #d87943;
  --radius: 0.9rem;
  --font-sans: 'Inter', 'Noto Sans SC', ui-sans-serif, system-ui, sans-serif;

  --header-h: 76px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 6px 20px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12);
}

[data-theme="dark"] {
  --background: #121113;
  --foreground: #c1c1c1;
  --card: #1a191b;
  --card-foreground: #c1c1c1;
  --primary: #e78a53;
  --primary-foreground: #121113;
  --primary-soft: rgba(231, 138, 83, 0.14);
  --secondary: #5f8787;
  --secondary-foreground: #121113;
  --muted: #1c1b1e;
  --muted-foreground: #8a8a8a;
  --accent: #26252a;
  --border: #2a292e;
  --ring: #e78a53;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

::selection { background: var(--primary); color: var(--primary-foreground); }

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1000;
  transition: width .1s linear;
}

/* ---------- 顶部悬浮药丸导航 ---------- */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 900;
  padding: 0.9rem 0;
  transition: padding .3s ease;
}
.header.scrolled { padding: 0.45rem 0; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.55rem 0.7rem 0.55rem 1.2rem;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: box-shadow .3s ease, background .3s ease, padding .3s ease;
}
.header.scrolled .navbar { box-shadow: var(--shadow-lg); }

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.navbar-logo { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; }
.navbar-name {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .2s ease;
}
.navbar-brand:hover .navbar-name { color: var(--primary); }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted-foreground);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover { color: var(--foreground); background: var(--accent); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-size: 1.05rem;
  border: 1px solid var(--border);
  background: var(--muted);
  transition: transform .2s ease, background .2s ease;
}
.theme-toggle:hover { transform: rotate(15deg); background: var(--accent); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: inline; }

.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--muted);
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 850;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.7rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { transition: transform .2s ease; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px var(--primary-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px var(--primary-soft); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
}
.btn-outline:hover { background: var(--accent); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  top: 18%; left: 50%;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 62%);
  filter: blur(20px);
}
[data-theme="dark"] .hero-grid { opacity: 0.18; }

.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  max-width: 680px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--muted-foreground);
  margin-bottom: 1.8rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.stat-item { display: flex; flex-direction: column; align-items: center; }
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}
.stat-label { font-size: 0.9rem; color: var(--muted-foreground); margin-top: 0.4rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- 跑马灯 ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted-foreground);
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 通用区块 ---------- */
.section { padding: 4rem 0; scroll-margin-top: var(--header-h); }
.section-alt { background: var(--muted); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 2.2rem; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}
.section-desc { color: var(--muted-foreground); font-size: 1.02rem; }

/* ---------- 关于我们 ---------- */
.about-intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 1.05rem;
  color: var(--muted-foreground);
  text-align: center;
}
.about-intro strong { color: var(--foreground); white-space: nowrap; }
.about-break { display: none; }   /* 桌面端自然排版，不强制换行 */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.service-card,
.group-card,
.culture-card,
.repair-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover,
.group-card:hover,
.culture-card:hover,
.repair-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.service-icon-wrap {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  margin-bottom: 1.1rem;
}
.service-icon { font-size: 1.6rem; }
.service-card h3,
.group-title,
.repair-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card p { color: var(--muted-foreground); margin-bottom: 1rem; }
.service-slogan {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border);
}

/* ---------- 兴趣小组 ---------- */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.group-card { position: relative; overflow: hidden; }
.group-bg-icon {
  position: absolute;
  top: -20px; right: -10px;
  font-size: 7rem;
  opacity: 0.05;
  pointer-events: none;
}
.group-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }
.group-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 1.4rem;
}
.group-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  background: color-mix(in srgb, var(--secondary) 14%, transparent);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.group-title { position: relative; }
.group-desc { color: var(--muted-foreground); margin-bottom: 1.1rem; }
.group-features { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.2rem; }
.group-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}
.group-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--primary);
}
.group-target {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--muted);
  border-radius: 0.6rem;
  padding: 0.8rem 1rem;
}
.group-card-featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* 兴趣小组一屏紧凑（保证整块在常规笔记本视口内可见） */
#groups { padding-top: 3rem; padding-bottom: 3rem; }
#groups .group-card { padding: 1.5rem; }
#groups .group-bg-icon { font-size: 5.5rem; top: -16px; right: -8px; }
#groups .group-header { margin-bottom: 0.7rem; }
#groups .group-desc { margin-bottom: 0.8rem; line-height: 1.55; font-size: 0.92rem; }
#groups .group-features { gap: 0.4rem; margin-bottom: 0.85rem; }
#groups .group-features li { font-size: 0.88rem; line-height: 1.5; }
#groups .group-target { padding: 0.55rem 0.85rem; font-size: 0.84rem; line-height: 1.5; }

/* ---------- 荣誉成就（时间线） ---------- */
.htimeline { display: none; } /* 已弃用：荣誉区改用竖向 .vhonors */
.htl-line {
  position: absolute;
  top: 64px; left: 0; right: 0;
  height: 2px;
  background: var(--border);
}
.htl-grid {
  display: flex;
  gap: 1rem;
  min-width: max-content;
  padding: 0 0.5rem;
}
.htl-col { flex: 1 0 200px; min-width: 200px; position: relative; }
.htl-year {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.6rem;
  color: var(--foreground);
}
.htl-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--border);
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 2;
}
.htl-dot-hl { background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.htl-cards { display: flex; flex-direction: column; gap: 0.8rem; }
.stl-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 1rem 1.1rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.stl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.stl-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-foreground);
  background: var(--muted);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.stl-tag-gold { color: #92400e; background: #fde68a; }
[data-theme="dark"] .stl-tag-gold { color: #fde68a; background: rgba(253,230,138,.15); }
.stl-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.35rem; }
.stl-card p { font-size: 0.86rem; color: var(--muted-foreground); }
.stl-link { display: inline-block; margin-top: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--primary); }
.stl-card-hl { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); background: var(--primary-soft); }

/* ---------- 竖向时间线（桌面/手机通用） ---------- */
.vhonors { max-width: 920px; margin: 0 auto; }
.vh-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  position: relative;
  padding-bottom: 2.2rem;
}
.vh-row:last-child { padding-bottom: 0; }
.vh-year {
  text-align: right;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--foreground);
  padding-top: 0.15rem;
  position: relative;
  z-index: 2;
}
.vh-year--hl { color: var(--primary); }
.vh-body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.8rem;
  position: relative;
}
.vh-body .stl-card { flex: 1 1 220px; min-width: 0; }
.vh-row::before {
  content: "";
  position: absolute;
  left: 130px;
  top: 0.65rem;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.vh-row:last-child::before { bottom: auto; height: 0.65rem; }
.vh-dot {
  position: absolute;
  left: 120px;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--background);
  box-sizing: content-box;
  z-index: 3;
}
.vh-dot--hl { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.vh-empty { font-size: 0.9rem; color: var(--muted-foreground); font-style: italic; padding: 0.4rem 0; }
.stl-tag-prov { color: var(--primary); background: var(--primary-soft); }

/* 折叠：2021 及以前（原生 details，无 JS 依赖） */
.vh-folder { display: block; }
.vh-folder-summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.2rem 0 2.2rem 162px;
  padding: 0.55rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  transition: background .2s, transform .2s, box-shadow .2s;
  user-select: none;
}
.vh-folder-summary::-webkit-details-marker { display: none; }
.vh-folder-summary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.vh-folder-summary:active { transform: translateY(0); }
.vh-folder-summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vh-folder-icon {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform .25s ease;
}
.vh-folder[open] .vh-folder-icon { transform: rotate(180deg); }
.vh-folder[open] .vh-folder-text::after { content: "（收起）"; }
.vh-folder:not([open]) .vh-folder-text::after { content: "（展开）"; }
/* 折叠闭合时，其前的 2022 行竖线不拖尾 */
.vhonors > .vh-row:has(+ .vh-folder:not([open]))::before { bottom: auto; height: 0.65rem; }
/* 折叠内最后一行（2018）竖线不拖尾 */
.vh-folder .vh-row:last-child::before { bottom: auto; height: 0.65rem; }

@media (max-width: 768px) {
  .vh-row { grid-template-columns: 1fr; gap: 0.55rem; padding-left: 1.6rem; padding-bottom: 1.8rem; }
  .vh-year { text-align: left; padding-top: 0; }
  .vh-row::before { left: 0; top: 0.5rem; bottom: 0; }
  .vh-row:last-child::before { height: 0.5rem; }
  .vh-dot { left: -10px; top: 0.3rem; }
  .vh-body { flex-direction: column; }
  .vh-folder-summary { margin-left: 1.6rem; margin-bottom: 1.8rem; width: auto; }
}

/* ---------- 团队文化 ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.culture-emoji { font-size: 2.4rem; display: block; margin-bottom: 0.5rem; }
.culture-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.culture-card p { font-size: 0.92rem; color: var(--muted-foreground); }

/* ---------- 招新信息 ---------- */
.recruit-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.recruit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.recruit-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 1.3rem;
}
.recruit-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.recruit-item p { font-size: 0.95rem; color: var(--muted-foreground); }

.cta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow-md);
}
.cta-expect h4,
.cta-platforms h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.9rem; }
.expect-list { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.6rem; }
.expect-list li { font-size: 0.95rem; color: var(--muted-foreground); }
.platform-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.platform-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: var(--muted);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.platform-link:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--card); }
.platform-icon { font-size: 1.2rem; }

/* ---------- 故障报修 ---------- */
.repair-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.repair-card { text-align: center; }
.repair-icon-wrap {
  width: 50px; height: 50px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
}
.repair-icon { font-size: 1.5rem; }
.repair-value { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.35rem; }
.repair-note { font-size: 0.85rem; color: var(--muted-foreground); }
.repair-card-featured {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: var(--primary-soft);
}
.repair-scope { margin-top: 2.5rem; text-align: center; }
.repair-scope h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.1rem; }
.scope-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.scope-tag {
  font-size: 0.88rem;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}

/* ---------- 页脚（四栏） ---------- */
.footer {
  background: var(--muted);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
}
.footer-brand-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand-logo img { width: 40px; height: 40px; border-radius: 10px; }
.footer-brand-logo span { font-weight: 800; font-size: 1.1rem; }
.footer-tagline { font-size: 0.92rem; color: var(--muted-foreground); max-width: 280px; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.footer-social-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: transform .2s ease, border-color .2s ease;
}
.footer-social-btn:hover { transform: translateY(-3px); border-color: var(--primary); }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a, .footer-contact-item {
  font-size: 0.92rem;
  color: var(--muted-foreground);
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--primary); }
.footer-contact-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.footer-bottom {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted-foreground);
}

/* ---------- 回到顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  z-index: 800;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- 二维码弹窗 ---------- */
.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
}
.qr-modal.open { display: flex; }
.qr-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}
.qr-modal-content {
  position: relative;
  z-index: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(360px, 90vw);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.qr-modal-content h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.qr-modal-content p { font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: 1.2rem; }
.qr-modal-img { width: 200px; height: 200px; margin: 0 auto; border-radius: 0.6rem; }
.qr-modal-close {
  position: absolute;
  top: 0.8rem; right: 0.9rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  background: var(--muted);
  transition: background .2s ease;
}
.qr-modal-close:hover { background: var(--accent); }
.qr-placeholder {
  width: 200px; height: 200px;
  margin: 0 auto;
  display: grid; place-items: center;
  border: 2px dashed var(--border);
  border-radius: 0.6rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

/* ---------- 渐进增强：入场动画 ----------
   仅当 <body> 带 js-reveal 时才隐藏初始态；JS 失败则全部可见 */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.js-reveal .reveal.in-view { opacity: 1; transform: none; }
.js-reveal .reveal.delay-1 { transition-delay: .08s; }
.js-reveal .reveal.delay-2 { transition-delay: .16s; }
.js-reveal .reveal.delay-3 { transition-delay: .24s; }
.js-reveal .reveal.delay-4 { transition-delay: .32s; }
.js-reveal .reveal.delay-5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .services-grid, .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .recruit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.8rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  .navbar-nav.open { display: flex; }
  .nav-link { padding: 0.7rem 0.9rem; }
  .navbar-cta { display: none; }
  .menu-toggle { display: flex; }
  .services-grid, .groups-grid { grid-template-columns: 1fr; }
  .repair-grid { grid-template-columns: repeat(2, 1fr); }  /* 手机端 2×2 */
  .culture-grid { grid-template-columns: repeat(2, 1fr); }  /* 手机端 3 行 2 列 */
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .htimeline { display: none; }
  .vtimeline { display: block; }
  .about-break { display: inline; }   /* 手机端：在"直属于"前换行 */
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero-stats { gap: 1.4rem; }
  .stat-number { font-size: 1.8rem; }
  .platform-links { grid-template-columns: 1fr; }
  .navbar-name { font-size: 0.92rem; }
  /* 团队文化保持 3 行 2 列，故障报修保持 2×2 */
  .culture-grid { grid-template-columns: repeat(2, 1fr); }
  .repair-grid { grid-template-columns: repeat(2, 1fr); }
  .culture-card, .repair-card { padding: 1rem; }
  .culture-emoji { font-size: 1.9rem; }
  .culture-card h4 { font-size: 0.98rem; }
  .culture-card p { font-size: 0.82rem; }
  .repair-icon-wrap { width: 42px; height: 42px; }
  .repair-icon { font-size: 1.25rem; }
  .repair-card h3 { font-size: 1rem; }
  .repair-value { font-size: 0.95rem; }
  .repair-note { font-size: 0.78rem; }
}

/* ---------- SVG 图标（Lucide sprite 引用） ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-marquee { font-size: 1.05em; }
.icon-tag { margin-right: 0.4em; font-size: 1.05em; }
.icon-check { color: var(--primary); margin-right: 0.45em; font-size: 1.05em; }

/* SVG 在原 emoji 容器里的微调 */
.culture-emoji .icon { font-size: 1.05em; } /* culture-emoji 内 emoji 本就大 */
.qr-modal-close .icon { stroke-width: 2.5; } /* 关闭符加粗 */
.theme-toggle .icon { stroke-width: 2; }

/* ---------- 品牌色（社交按钮） ---------- */
.brand-wechat { color: #07C160; }
.brand-douyin { color: #161823; }
.brand-xiaohongshu { color: #FF2442; }
.brand-qq { color: #1296DB; }

/* ---------- 荣誉成就：按赛事分组 ---------- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.award-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.award-card--lg { grid-column: 1 / -1; }
.award-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.award-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.award-title { font-size: 1.25rem; font-weight: 800; }
.award-card--lg .award-title { font-size: 1.5rem; }
.award-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  background: var(--muted);
  white-space: nowrap;
}
.award-tag--gold {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}
[data-theme="dark"] .award-tag--gold {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.18);
}
.award-desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.55;
}
.award-records {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.award-records li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  font-size: 0.9rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
}
.award-records li:last-child { border-bottom: none; padding-bottom: 0; }
.award-records li:first-child { padding-top: 0; }
.rec-year {
  flex-shrink: 0;
  font-weight: 800;
  color: var(--primary);
  font-size: 0.92rem;
  min-width: 3.2rem;
}
.rec-text { color: var(--foreground); line-height: 1.5; }
.award-source {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.award-source:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .awards-grid { grid-template-columns: 1fr; }
  .award-card { padding: 1.2rem; }
  .award-title { font-size: 1.1rem; }
  .award-card--lg .award-title { font-size: 1.3rem; }
  .award-head { flex-wrap: wrap; }
  .award-records li { gap: 0.5rem; flex-wrap: wrap; }
  .rec-year { min-width: 2.6rem; }
}

/* ---------- 荣誉成就：双排对向轮播 ---------- */
.awards-marquee {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}
.awards-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}
.awards-track--forward { animation: marquee-forward 32s linear infinite; }
.awards-track--reverse { animation: marquee-reverse 32s linear infinite; }
.awards-track:hover { animation-play-state: paused; }
@keyframes marquee-forward {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes marquee-reverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.award-slide {
  width: 320px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.award-slide:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}
.award-slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.award-slide-head h4 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
}
.award-slide-desc {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.award-slide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.award-slide-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.88rem;
  color: var(--foreground);
  line-height: 1.45;
}
.award-slide-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

@media (prefers-reduced-motion: reduce) {
  .awards-track--forward,
  .awards-track--reverse { animation: none; }
}
@media (max-width: 768px) {
  .awards-marquee { gap: 0.75rem; }
  .awards-track {
    cursor: grab;
    touch-action: pan-y;        /* 浏览器管竖滑，JS 管横滑 */
    user-select: none;
    -webkit-user-drag: none;
  }
  .awards-track:active { cursor: grabbing; }
  /* 移动端由 JS 驱动自动滚 + 拖拽；桌面端继续 CSS 动画 */
  .awards-track--forward,
  .awards-track--reverse { animation: none !important; }
}
@media (max-width: 480px) {
  .award-slide { width: 260px; padding: 1.1rem; }
  .award-slide-head h4 { font-size: 1.05rem; }
  .award-slide-desc { font-size: 0.8rem; }
  .award-slide-list li { font-size: 0.82rem; }
}
