/* ===== 基础 ===== */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #14181f;
  --ink-soft: #3d4551;
  --muted: #727a86;
  --line: #e8e3da;
  --accent: #c8502e;
  --accent-soft: #fbeee8;
  --dark: #12151b;
  --dark-ink: #f4f1ec;
  --radius: 14px;
  --max: 1080px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC",
    system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== 顶部导航 ===== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(251, 250, 248, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink-soft);
  transition: background 0.18s, color 0.18s;
}

.nav a:hover { background: #f1ede6; color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-soft);
}

/* ===== 首屏 ===== */
.hero {
  background: var(--dark);
  color: var(--dark-ink);
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 420px;
  background: radial-gradient(circle at 50% 50%, rgba(200, 80, 46, 0.35), transparent 62%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8b0bd;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(30px, 5.2vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p.lead {
  margin: 20px 0 0;
  max-width: 34em;
  color: #b9c0cb;
  font-size: 16.5px;
}

.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.16s, background 0.18s, border-color 0.18s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #b24526; }
.btn-ghost { border-color: #333a45; color: #dfe4ec; }
.btn-ghost:hover { border-color: #4c5563; background: #1a1f27; }

/* ===== 数据条 ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: -34px;
  position: relative;
  z-index: 2;
  background-color: var(--line);
}

.stats > div {
  background: var(--surface);
  padding: 22px 20px;
}

.stats b {
  display: block;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stats span { font-size: 13.5px; color: var(--muted); }

/* ===== 通用区块 ===== */
.section { padding: 68px 0 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(21px, 2.6vw, 27px);
  letter-spacing: -0.01em;
}

.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }

.more-link { color: var(--accent); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.more-link:hover { text-decoration: underline; }

/* ===== 卡片 ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #d9d2c6;
  box-shadow: 0 12px 28px -18px rgba(20, 24, 31, 0.45);
}

.card-cover { aspect-ratio: 16 / 10; background: #efece6; overflow: hidden; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card:hover .card-cover img { transform: scale(1.04); }

.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.card h3 { margin: 0; font-size: 17px; line-height: 1.45; letter-spacing: -0.005em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; padding-top: 6px; }

/* ===== 卡片里的链接 / 二维码 ===== */
.hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.card-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; margin-top: auto; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fdfcf9;
  color: var(--ink-soft);
  transition: border-color 0.16s, color 0.16s, background 0.16s;
}

.link-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.qr {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.qr img {
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
}

.qr-img { flex: 0 0 104px; display: block; }

.qr-cap { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }
.qr-cap span { color: var(--muted); font-size: 12px; }

/* ===== 卡片里的附图 ===== */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.shot { display: block; }

.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.16s;
}

.shot:hover img { border-color: var(--accent); }

.shot span {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}
.tags span {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
}

/* ===== 筛选条 ===== */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.filters button {
  font-family: inherit;
  font-size: 14px;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.16s;
}

.filters button:hover { border-color: #cfc7b9; }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== 相册 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #efece6;
  cursor: zoom-in;
  position: relative;
  aspect-ratio: 1 / 1;
}

.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.gallery figure:hover img { transform: scale(1.06); }

.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  font-size: 12.5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery figure:hover figcaption { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.94);
  display: none;
  place-items: center;
  padding: 32px;
}

.lightbox.open { display: grid; }
.lightbox img { max-height: 82vh; max-width: min(1100px, 92vw); border-radius: 8px; }
.lightbox .cap { color: #cfd5e0; font-size: 14px; margin-top: 14px; text-align: center; }
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: 1px solid #3a414d;
  color: #dfe4ec;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

/* ===== 文档列表 ===== */
.doc-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }

.doc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s;
}

.doc-row:last-child { border-bottom: 0; }
.doc-row:hover { background: #faf8f4; }

.doc-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doc-main { flex: 1; min-width: 0; }
.doc-main h3 { margin: 0 0 3px; font-size: 15.5px; }
.doc-main p { margin: 0; font-size: 13.5px; color: var(--muted); }

.doc-side { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.doc-side a { display: inline-block; margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.doc-side a:hover { text-decoration: underline; }

/* ===== 成员 ===== */
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
}

.avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 17px;
}

.member h3 { margin: 2px 0 2px; font-size: 16px; }
.member .role { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.member p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ===== 提示条 ===== */
.note {
  border: 1px dashed #d8d0c2;
  background: #fdfbf7;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  color: var(--ink-soft);
}

.note b { color: var(--ink); }

/* ===== 页脚 ===== */
.site-foot {
  margin-top: 88px;
  background: var(--dark);
  color: #a8b0bd;
  padding: 46px 0 38px;
  font-size: 14px;
}

.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 26px; justify-content: space-between; }
.site-foot a { color: #d8dee7; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .fname { color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }

.copyright {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #262c35;
  font-size: 12.5px;
  color: #727a86;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
  }
  .nav-toggle { display: block; }
  .hero { padding: 60px 0 56px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .doc-row { flex-wrap: wrap; gap: 12px; }
  .doc-side { text-align: left; width: 100%; }
  .section { padding: 48px 0 0; }
}
