/* ============================================================
   工作经验分享 - 公共样式
   ============================================================ */

:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --ink: #0b2033;
  --ink-soft: #2c4159;
  --muted: #64748b;
  --line: #e2e9f1;
  --brand: #0d9488;
  --brand-dark: #0b7c72;
  --brand-soft: #e6f6f4;
  --accent: #2563eb;
  --accent-soft: #eaf1ff;
  --warn: #d97706;
  --warn-soft: #fff4e5;
  --danger: #dc2626;
  --danger-soft: #feecec;
  --shadow-sm: 0 1px 2px rgba(11, 32, 51, .05);
  --shadow-md: 0 10px 28px rgba(11, 32, 51, .08);
  --shadow-lg: 0 22px 48px rgba(11, 32, 51, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.section { padding: 48px 0 72px; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #14b8a6, #0d9488 55%, #0b7c72);
  box-shadow: 0 6px 16px rgba(13, 148, 136, .3);
}
.brand-mark .icon { width: 22px; height: 22px; }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; }
.brand-mark.small .icon { width: 18px; height: 18px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 17px; letter-spacing: .02em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .18em; text-transform: uppercase; }

.nav-panel { display: flex; align-items: center; gap: 20px; margin-left: auto; flex: 1; justify-content: flex-end; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-soft); color: var(--brand-dark); }
.nav-links a.active { background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }
.nav-links a.nav-admin { color: var(--muted); }

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  width: 250px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.nav-search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(13, 148, 136, .12); }
.nav-search .icon { width: 17px; height: 17px; color: var(--muted); }
.nav-search input {
  border: 0; outline: 0; background: transparent;
  height: 40px; width: 100%; font-size: 14px; color: var(--ink);
}
.nav-search input::placeholder { color: #9aa8b8; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 11px;
  padding: 10px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink-soft); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle span { transition: transform .2s, opacity .2s; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 500px at 78% 12%, rgba(20, 184, 166, .38), transparent 60%),
    radial-gradient(700px 420px at 12% 92%, rgba(37, 99, 235, .28), transparent 62%),
    linear-gradient(135deg, #071827 0%, #0b2438 48%, #0a3235 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.75), transparent 88%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 40px;
  align-items: center;
  padding-top: clamp(48px, 7vw, 84px);
  padding-bottom: clamp(48px, 7vw, 84px);
}

.hero-copy { max-width: 660px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  color: #a7f3ea;
  background: rgba(45, 212, 191, .12);
  border: 1px solid rgba(94, 234, 212, .28);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-badge .icon { width: 15px; height: 15px; }

.hero h1 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.18;
  letter-spacing: -.01em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(92deg, #5eead4, #7dd3fc 60%, #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  margin-top: 18px;
  color: #b9c9d6;
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 560px;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: rgba(255, 255, 255, .97);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 18px 40px rgba(3, 15, 26, .35);
  max-width: 560px;
}
.hero-search .icon { width: 20px; height: 20px; color: var(--muted); }
.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0; outline: 0; background: transparent;
  height: 46px;
  font-size: 15px;
  color: var(--ink);
}
.hero-search button {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(140deg, #14b8a6, #0d9488);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 0 26px;
  height: 46px;
  transition: filter .2s, transform .2s;
}
.hero-search button:hover { filter: brightness(1.08); transform: translateY(-1px); }

.hero-stats { display: flex; gap: 38px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 13px; color: #93a8b8; margin-top: 4px; letter-spacing: .04em; }

.hero-art { position: relative; height: 380px; display: flex; align-items: center; justify-content: center; }
.art-ring {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 1px dashed rgba(148, 233, 222, .35);
  animation: spin 26s linear infinite;
}
.art-ring::after {
  content: "";
  position: absolute;
  inset: 46px;
  border-radius: 50%;
  border: 1px solid rgba(148, 233, 222, .16);
}
@keyframes spin { to { transform: rotate(360deg); } }

.art-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 18px 12px 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  animation: float 7s ease-in-out infinite;
}
.art-card .art-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: #062c2b;
  background: linear-gradient(150deg, #99f6e4, #5eead4);
}
.art-card .art-icon .icon { width: 22px; height: 22px; }
.art-card strong { display: block; font-size: 14px; }
.art-card small { display: block; font-size: 11.5px; color: #a9c3cf; margin-top: 2px; }
.art-card-a { top: 40px; right: 26px; animation-delay: 0s; }
.art-card-b { bottom: 56px; left: 0; animation-delay: 1.4s; }
.art-card-c { top: 150px; left: 34px; animation-delay: 2.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------------- 分类筛选 ---------------- */
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.chip b { font-weight: 700; color: var(--muted); font-size: 12.5px; }
.chip:hover { border-color: #bfe3df; color: var(--brand-dark); }
.chip.active {
  background: linear-gradient(140deg, #0f9c90, #0d9488);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, .3);
}
.chip.active b { color: rgba(255, 255, 255, .82); }

/* ---------------- 列表头部 ---------------- */
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 22px;
}
.list-head h2 { font-size: clamp(21px, 2.4vw, 27px); letter-spacing: -.01em; }
.list-head .muted { font-size: 14px; margin-top: 4px; }

.sort-form { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.sort-form select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border-radius: 10px;
  padding: 8px 34px 8px 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.sort-form select:focus { outline: 2px solid rgba(13, 148, 136, .3); outline-offset: 1px; }

/* ---------------- 仪器卡片 ---------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 22px;
}

.instrument-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.instrument-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbe6e2;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #dfe9ef;
  overflow: hidden;
}
.card-media img,
.detail-media img,
.related-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  z-index: 2;
}
.card-media:hover img { transform: scale(1.05); }

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
}
.media-placeholder .placeholder-icon { width: 56%; max-width: 130px; height: auto; opacity: .92; }
.cat-analysis { background: radial-gradient(120% 120% at 20% 15%, #14b8a6 0%, #0f766e 62%, #115e59 100%); }
.cat-heating  { background: radial-gradient(120% 120% at 20% 15%, #fb923c 0%, #ea580c 62%, #9a3412 100%); }
.cat-optics   { background: radial-gradient(120% 120% at 20% 15%, #818cf8 0%, #4f46e5 62%, #3730a3 100%); }
.cat-culture  { background: radial-gradient(120% 120% at 20% 15%, #34d399 0%, #059669 62%, #065f46 100%); }
.cat-general  { background: radial-gradient(120% 120% at 20% 15%, #94a3b8 0%, #64748b 62%, #334155 100%); }
.cat-electricity { background: radial-gradient(120% 120% at 20% 15%, #60a5fa 0%, #2563eb 62%, #1e3a8a 100%); }
.cat-mechanics   { background: radial-gradient(120% 120% at 20% 15%, #cbd5e1 0%, #475569 62%, #1e293b 100%); }
.cat-thermal     { background: radial-gradient(120% 120% at 20% 15%, #f87171 0%, #dc2626 62%, #991b1b 100%); }
.cat-biology     { background: radial-gradient(120% 120% at 20% 15%, #a3e635 0%, #65a30d 62%, #3f6212 100%); }
.cat-astronomy   { background: radial-gradient(120% 120% at 20% 15%, #a78bfa 0%, #7c3aed 62%, #4c1d95 100%); }
.cat-chemistry   { background: radial-gradient(120% 120% at 20% 15%, #22d3ee 0%, #0891b2 62%, #164e63 100%); }
.cat-acoustics   { background: radial-gradient(120% 120% at 20% 15%, #f472b6 0%, #db2777 62%, #831843 100%); }
.cat-meteorology { background: radial-gradient(120% 120% at 20% 15%, #38bdf8 0%, #0284c7 62%, #075985 100%); }
.cat-tools       { background: radial-gradient(120% 120% at 20% 15%, #fbbf24 0%, #d97706 62%, #92400e 100%); }

.status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}
.status-pill.large { font-size: 13.5px; padding: 6px 16px; top: 16px; right: 16px; }
.status-pill.ok   { background: rgba(16, 185, 129, .95); color: #fff; }
.status-pill.warn { background: rgba(245, 158, 11, .96); color: #fff; }
.status-pill.idle { background: rgba(100, 116, 139, .92); color: #fff; }
.status-pill.off  { background: rgba(220, 38, 38, .92); color: #fff; }

.cat-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(7, 24, 39, .62);
  color: #e7f4f2;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18);
}
.cat-pill.light {
  position: static;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #c9ece8;
  font-size: 12.5px;
  padding: 3px 10px;
}

.card-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.card-code {
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--brand-dark);
  background: var(--brand-soft);
  padding: 2px 9px;
  border-radius: 6px;
  align-self: flex-start;
}
.card-body h3 { font-size: 18px; margin: 10px 0 6px; letter-spacing: -.01em; line-height: 1.35; }
.card-body h3 a:hover { color: var(--brand-dark); }
.card-summary { font-size: 13.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.meta-model {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: var(--surface-soft);
  border-radius: 6px;
  padding: 2px 8px;
}
.meta-views { flex: none; }

/* ---------------- 分页 ---------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn, .page-num {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  transition: all .2s;
}
.page-num { padding: 0; }
.page-btn:hover, .page-num:hover { border-color: var(--brand); color: var(--brand-dark); }
.page-num.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.page-btn.disabled { opacity: .45; cursor: default; }

/* ---------------- 空状态 ---------------- */
.empty-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  margin-bottom: 14px;
}
.empty-icon .icon { width: 28px; height: 28px; }
.empty-state h3 { font-size: 19px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; color: var(--muted); }
.empty-state a { color: var(--brand-dark); text-decoration: underline; }

/* ---------------- 页面 Hero（分类/经验） ---------------- */
.page-hero {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(20, 184, 166, .1), transparent 65%),
    linear-gradient(180deg, #fff, #f3f7fb);
  border-bottom: 1px solid var(--line);
  padding: 34px 0 40px;
}
.page-hero h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em; margin-top: 14px; }
.page-hero > .container > p { color: var(--muted); margin-top: 8px; max-width: 680px; font-size: 15px; }
.page-hero .chip-row { margin-top: 22px; }

/* ---------------- 面包屑 ---------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb .icon { width: 15px; height: 15px; }
.breadcrumb b { color: var(--ink); font-weight: 600; }

/* ---------------- 分类页 ---------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cbe6e2; }
.category-head { display: flex; align-items: center; gap: 14px; }
.category-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: #fff;
  flex: none;
}
.category-icon .icon { width: 26px; height: 26px; }
.category-head h2 { font-size: 19px; line-height: 1.3; }
.category-head h2 a:hover { color: var(--brand-dark); }
.category-count { font-size: 12.5px; color: var(--muted); }
.category-desc { font-size: 13.8px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.category-preview {
  display: flex;
  flex-direction: column;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  padding: 6px;
  gap: 2px;
}
.preview-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
}
.preview-item:hover { background: #fff; color: var(--brand-dark); }
.preview-item strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-item small { color: var(--muted); font-size: 11.5px; flex: none; letter-spacing: .04em; }
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-dark);
}
.category-link .icon { width: 16px; height: 16px; transition: transform .2s; }
.category-link:hover .icon { transform: translateX(3px); }

/* ---------------- 详情页 ---------------- */
.detail-hero {
  background:
    radial-gradient(800px 400px at 88% 10%, rgba(20, 184, 166, .1), transparent 60%),
    linear-gradient(180deg, #ffffff, #f3f7fb);
  border-bottom: 1px solid var(--line);
  padding: 24px 0 42px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin-top: 22px;
}
.detail-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  background: #dfe9ef;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, .8);
}
.detail-media .placeholder-icon { max-width: 150px; }
.detail-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view-pill {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
}
.detail-info h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; letter-spacing: -.02em; margin: 12px 0 12px; }
.detail-summary { color: var(--ink-soft); font-size: 15.5px; max-width: 640px; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.fact span { display: block; font-size: 12px; color: var(--muted); }
.fact strong { display: block; font-size: 14.5px; margin-top: 4px; word-break: break-word; }

.detail-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(140deg, #0f9c90, #0d9488);
  color: #fff;
  box-shadow: 0 10px 24px rgba(13, 148, 136, .26);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}
.detail-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.panel-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  flex: none;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.panel-icon .icon { width: 21px; height: 21px; }
.panel-icon.warn { background: var(--warn-soft); color: var(--warn); }
.panel-icon.tip  { background: #fff8e1; color: #b45309; }
.panel-head h2 { font-size: 19.5px; display: flex; align-items: center; gap: 10px; }
.panel-head p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
}

.steps { display: flex; flex-direction: column; gap: 12px; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 2px;
}

.points { display: flex; flex-direction: column; gap: 10px; }
.points li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.points li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .72em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, .14);
}

.empty-tip { font-size: 14px; color: var(--muted); background: var(--surface-soft); border-radius: 10px; padding: 14px 16px; }

.exp-list { display: flex; flex-direction: column; gap: 16px; }
.exp-card {
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  background: var(--surface-soft);
}
.exp-card.is-lesson { border-left-color: var(--warn); background: #fffaf2; }
.exp-card.is-tip { border-left-color: #16a34a; background: #f6fcf8; }
.exp-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.exp-type {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  flex: none;
}
.exp-card.is-lesson .exp-type { background: #ffedd5; color: #b45309; }
.exp-head h3 { font-size: 16px; line-height: 1.45; }
.exp-card > p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; margin-top: 8px; }
.exp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(11, 32, 51, .1);
  font-size: 12.5px;
  color: var(--muted);
}
.exp-instrument { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-weight: 500; }
.exp-instrument:hover { color: var(--brand-dark); }
.exp-instrument .icon { width: 15px; height: 15px; }

.detail-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 88px; }
.side-panel h3 { font-size: 15.5px; margin-bottom: 14px; }
.side-facts { display: flex; flex-direction: column; gap: 2px; }
.side-facts dt { font-size: 12px; color: var(--muted); margin-top: 8px; }
.side-facts dd { font-size: 14px; color: var(--ink); font-weight: 500; }
.status-text { font-weight: 700; }
.status-text.ok { color: #15803d; }
.status-text.warn { color: var(--warn); }
.status-text.idle { color: var(--muted); }
.status-text.off { color: var(--danger); }

.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-item { display: flex; align-items: center; gap: 10px; padding: 7px; border-radius: 10px; transition: background .2s; }
.related-item:hover { background: var(--surface-soft); }
.related-thumb {
  position: relative;
  width: 52px; height: 44px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .92);
}
.related-thumb .placeholder-icon { width: 26px; height: auto; }
.related-text { min-width: 0; }
.related-text strong { display: block; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-text small { color: var(--muted); font-size: 11px; letter-spacing: .05em; }

/* 经验墙 */
.exp-list.wide { gap: 18px; max-width: 920px; margin: 0 auto; }
.exp-list.wide .exp-card { padding: 22px 24px; }

/* 搜索关键词高亮 */
mark.kw {
  background: #fef3c7;
  color: #92400e;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* 经验墙筛选条 */
.exp-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
.exp-filter form.search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}
.exp-filter input[type="search"] {
  flex: 1;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.exp-filter input[type="search"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  background: #071827;
  color: #c3d2de;
  margin-top: 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 40px;
  padding-bottom: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { display: block; color: #fff; font-size: 15.5px; }
.footer-brand p { font-size: 12.5px; color: #8fa4b5; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13.5px; }
.footer-links a:hover { color: #5eead4; }
.footer-copy { width: 100%; font-size: 12.5px; color: #71889a; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }
.footer-beian { width: 100%; font-size: 12.5px; color: #71889a; }
.footer-beian a { color: #8fa4b5; word-break: break-all; }
.footer-beian a:hover { color: #5eead4; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .hero-art { height: 330px; }
  .art-ring { width: 250px; height: 250px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { display: none; }
  .hero-copy { max-width: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { max-width: 520px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .detail-aside .panel { flex: 1 1 300px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px 20px;
    display: none;
    margin-left: 0;
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 11px 12px; border-radius: 9px; }
  .nav-search { width: 100%; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 34px 0 56px; }
  .hero-copy p { font-size: 14.5px; }
  .hero-search { padding-left: 12px; }
  .hero-search button { padding: 0 16px; }
  .hero-stats { gap: 24px; margin-top: 26px; }
  .hero-stats strong { font-size: 24px; }
  .chip-row { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  .chip { flex: none; }
  .list-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sort-form { width: 100%; }
  .sort-form select { margin-left: auto; }
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-media { aspect-ratio: 16 / 10; }
  .panel { padding: 20px 16px; }
  .panel-head { gap: 12px; }
  .panel-icon { width: 38px; height: 38px; }
  .panel-icon .icon { width: 18px; height: 18px; }
  .detail-media { border-radius: 16px; }
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-aside { flex-direction: column; }
  .detail-aside .panel { flex: 1 1 auto; }
  .exp-list.wide .exp-card { padding: 18px; }
  .exp-filter { flex-direction: column; align-items: stretch; gap: 10px; }
  .exp-filter form.search { flex-wrap: wrap; }
  .exp-filter input[type="search"] { min-width: 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .page-hero { padding: 26px 0 30px; }
}

@media (max-width: 400px) {
  .hero-search .icon { display: none; }
  .fact-grid { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
}

/* ============================================================
   实验活动模块
   ============================================================ */

/* 首页活动搜索入口 */
.hero-search-block { margin-top: 22px; max-width: 560px; }
.hero-search-caption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: #7dd3fc;
  margin-bottom: 8px;
}
.hero-search-block .hero-search { margin-top: 0; }
.hero-search-activity { border: 1px solid rgba(125, 211, 252, .5); }
.hero-search-activity button {
  background: linear-gradient(140deg, #3b82f6, #1d4ed8);
}

/* 列表页搜索与筛选 */
.activity-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  max-width: 760px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow-sm);
}
.activity-search .icon { color: var(--muted); flex: none; }
.activity-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
}
.activity-filters { display: flex; flex-direction: column; gap: 12px; }
.activity-filters .chip-row { align-items: center; }
.chip-label {
  flex: none;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .06em;
  padding-right: 2px;
}

/* 活动卡片 */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.activity-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbe6e2;
}
.activity-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.activity-page { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.activity-card h3 { font-size: 17.5px; line-height: 1.45; letter-spacing: -.01em; }
.activity-card h3 a:hover { color: var(--brand-dark); }
.activity-path {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.activity-path span { color: #b3c0cd; }
.activity-purpose { font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.activity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.activity-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.activity-foot .icon { width: 15px; height: 15px; }
.activity-foot a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--brand-dark); }
.activity-foot a:hover .icon { transform: translateX(3px); }
.activity-foot a .icon { transition: transform .2s; }

/* 活动类型徽标 */
.activity-type {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  flex: none;
}
.activity-type.type-inquiry { background: var(--accent-soft); color: var(--accent); }
.activity-type.type-practice { background: var(--warn-soft); color: #b45309; }
.activity-type.type-engineering { background: #f3e8ff; color: #7c3aed; }
.activity-type.type-general { background: #eef2f7; color: var(--muted); }

/* 详情页 */
.activity-kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.page-hero.activity-hero > .container > .activity-lead { color: var(--ink-soft); font-size: 15px; max-width: 860px; margin-top: 10px; }
.activity-hero h1 { margin-bottom: 4px; }
.activity-hero .fact-grid { max-width: 820px; }
.activity-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.8; }
.activity-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-soft);
  font-size: 13.5px;
  color: var(--muted);
}
.btn-block { width: 100%; justify-content: center; }
.related-thumb.activity-thumb { background: linear-gradient(140deg, #14b8a6, #0f766e); }
.related-thumb.activity-thumb.type-inquiry { background: linear-gradient(140deg, #60a5fa, #2563eb); }
.related-thumb.activity-thumb.type-practice { background: linear-gradient(140deg, #fbbf24, #d97706); }
.related-thumb.activity-thumb.type-engineering { background: linear-gradient(140deg, #a78bfa, #7c3aed); }
.related-thumb.activity-thumb.type-general { background: linear-gradient(140deg, #94a3b8, #475569); }
.related-thumb.activity-thumb .placeholder-icon { width: 22px; }

/* 器材清单表格 */
.table-wrap { overflow-x: auto; }
.equip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.equip-table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--muted);
  background: #f7fafc;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.equip-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #eef3f8;
  color: var(--ink-soft);
  vertical-align: top;
}
.equip-table tr:last-child td { border-bottom: 0; }
.equip-table .col-name { min-width: 150px; font-weight: 500; }
.equip-table .col-qty { width: 88px; white-space: nowrap; }
.equip-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand-dark);
  font-weight: 600;
}
.equip-link .icon { width: 14px; height: 14px; }
.equip-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .hero-search-block { margin-top: 16px; }
  .activity-search { flex-wrap: wrap; padding: 10px; }
  .activity-search input { flex: 1 1 100%; }
  .activity-search .btn { flex: 1 1 auto; height: 40px; justify-content: center; padding: 0 14px; }
  .activity-grid { grid-template-columns: 1fr; gap: 16px; }
  .activity-card { padding: 16px; }
  .activity-hero .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equip-table thead { display: none; }
  .equip-table, .equip-table tbody, .equip-table tr, .equip-table td { display: block; width: 100%; }
  .equip-table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .equip-table tr:last-child { margin-bottom: 0; }
  .equip-table td {
    border-bottom: 0;
    padding: 4px 0;
    display: flex;
    gap: 10px;
  }
  .equip-table td::before {
    content: attr(data-label);
    flex: none;
    width: 72px;
    color: var(--muted);
    font-size: 12px;
  }
  .equip-table .col-qty { width: 100%; }
}
