/* ==========================================================
   王沐天 · 个人网站样式表
   想改颜色：拉到下面「:root」那段，改 --accent 等几个变量即可
   ========================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 主题变量：改这里就能换整套配色 ---------- */
:root {
  --bg: #fbfcfd;
  --bg-soft: #f2f5f8;
  --surface: #ffffff;
  --text: #171a1f;
  --text-soft: #4d5662;
  --text-muted: #7b8593;
  --accent: #0e7490;
  --accent-strong: #0b5c73;
  --accent-soft: #e4f2f7;
  --accent-line: #b9dfe9;
  --border: #e2e7ed;
  --warn-bg: #fef4f3;
  --warn-border: #f6cecb;
  --warn-text: #a52a20;
  --shadow: 0 1px 2px rgba(16, 30, 45, .04), 0 8px 24px -12px rgba(16, 30, 45, .16);
  --shadow-lift: 0 2px 4px rgba(16, 30, 45, .05), 0 18px 36px -18px rgba(16, 30, 45, .28);
  --radius: 16px;
  --maxw: 940px;
  --glow: radial-gradient(760px 340px at 50% -10%, rgba(14, 116, 144, .09), transparent 70%);
}

[data-theme="dark"] {
  --bg: #0c1015;
  --bg-soft: #121820;
  --surface: #131a22;
  --text: #e8edf3;
  --text-soft: #b3bdc9;
  --text-muted: #8b96a4;
  --accent: #4dc0db;
  --accent-strong: #7ad6ec;
  --accent-soft: #10262e;
  --accent-line: #1d4756;
  --border: #232c37;
  --warn-bg: rgba(165, 42, 32, .17);
  --warn-border: rgba(248, 140, 130, .3);
  --warn-text: #ff9f95;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 36px -18px rgba(0, 0, 0, .8);
  --glow: radial-gradient(760px 340px at 50% -10%, rgba(77, 192, 219, .12), transparent 70%);
}

/* ---------- 通用 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; }

h1, h2, h3 {
  line-height: 1.3;
  letter-spacing: -.01em;
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================
   顶部导航
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: .01em;
}
.brand:hover { text-decoration: none; }
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  flex: none;
}

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

.nav-link {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--text-soft);
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.nav-link:hover {
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
}
.nav-link.is-current {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, color .18s ease;
}
.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: rotate(-12deg);
}

/* ==========================================================
   首页 Hero
   ========================================================== */
.hero {
  position: relative;
  padding: 68px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background: var(--glow);
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 34px;
}

.avatar {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), #14a3bd);
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: .04em;
  box-shadow: 0 10px 26px -10px rgba(14, 116, 144, .55);
  overflow: hidden;
  user-select: none;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* 没有头像文件时，别让 img 的 alt 文字露出来（hidden 会被上面的 display:block 覆盖） */
.avatar img[hidden] {
  display: none;
}

.hero-name {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.hero-name .en {
  font-size: .46em;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-left: 12px;
  vertical-align: middle;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 14px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-right: 8px;
}

.hero-tagline {
  color: var(--text-soft);
  font-size: 16.5px;
  margin: 0 0 26px;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
  font-family: inherit;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(14, 116, 144, .8);
}
.btn-primary:hover { background: var(--accent-strong); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-soft);
}
.btn-ghost:hover { border-color: var(--accent-line); color: var(--accent); }

/* ==========================================================
   板块
   ========================================================== */
.section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 17px;
  border-radius: 2px;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: -2px;
}
.section-note {
  font-size: 13.5px;
  color: var(--text-muted);
}

.prose p {
  margin: 0 0 1.1em;
  color: var(--text-soft);
  max-width: 40em;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong {
  color: var(--text);
  font-weight: 650;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-line);
}

.card-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- 标签 ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text-soft);
}
.tag b {
  font-weight: 600;
  color: var(--text);
}
.tag .lvl {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Hero 下方小字 ---------- */
.hero-hint {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.hero-hint:empty { display: none; }

/* ---------- 课程卡片 ---------- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 10px;
}

.course-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.course-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.course-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 5px;
}

.tag-type {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}
.tag-type.is-major {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-strong);
}

.course-note {
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* 课程卡下方的「N 份资料 →」 */
.course-count {
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .01em;
}
.course-count.is-empty {
  color: var(--text-muted);
  font-weight: 400;
  opacity: .75;
}
.course-card.is-linked { cursor: pointer; }
.course-card.is-linked:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 资料库顶部的筛选提示条 */
.filter-note {
  margin: 0 0 16px;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  font-size: 13.5px;
  color: var(--accent-strong);
}
.filter-note:empty { display: none; }
.filter-note a {
  margin-left: 8px;
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- 可折叠的资料栏目 ---------- */
.group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.group + .group { margin-top: 10px; }

.group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background .15s ease;
}
.group-head:hover { background: var(--bg-soft); }
.group-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.group-arrow {
  flex: none;
  width: 12px;
  font-size: 11px;
  color: var(--text-muted);
  transition: transform .18s ease;
}
.group-head[aria-expanded="true"] .group-arrow { transform: rotate(90deg); }

.group-name {
  font-weight: 650;
  letter-spacing: -.01em;
}

.group-cat {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.group-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.group-body {
  display: grid;
  gap: 8px;
  padding: 2px 10px 12px;
}
.group-body[hidden] { display: none; }

/* 栏目内的文件卡片：去掉阴影，靠栏目本身做外框 */
.group-body .file-card {
  background: var(--bg-soft);
  border-color: transparent;
  box-shadow: none;
}
.group-body .file-card:hover {
  background: var(--surface);
  border-color: var(--accent-line);
  box-shadow: none;
}

/* ---------- 杂谈 ---------- */
/* 页头：左边标题说明，右边月份下拉 */
.page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.month-picker { flex: none; }

.month-picker select {
  -webkit-appearance: none;
  appearance: none;
  padding: 9px 40px 9px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%237b8593' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-soft);
  cursor: pointer;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.month-picker select:hover { border-color: var(--accent-line); }
.month-picker select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.musing-list {
  padding: 30px 0 64px;
}

/* 月份分隔条：居中的胶囊，两侧各拉一条细线 */
.musing-month {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 26px 0 16px;
  scroll-margin-top: 84px;   /* 跳转时躲开顶部导航 */
}
.musing-month:first-child { margin-top: 0; }

.musing-month::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.musing-month-label {
  position: relative;
  padding: 4px 18px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.musing {
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 26px;
  box-shadow: var(--shadow);
}

.musing-date {
  display: block;
  margin-bottom: 10px;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.musing-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  color: var(--text);
}

.musing-text {
  font-size: 16.5px;
  line-height: 1.9;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---------- 题库搜索 ---------- */
.quiz-search {
  padding: 26px 0 14px;
}

.quiz-search input {
  width: 100%;
  padding: 15px 20px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quiz-search input::placeholder { color: var(--text-muted); }
.quiz-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.quiz-count {
  padding: 6px 2px 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.quiz-count b {
  color: var(--accent);
  font-weight: 700;
}

.quiz-list {
  display: grid;
  gap: 10px;
  padding-bottom: 60px;
}

.qcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}

.qcard-q {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 9px;
}

.qcard-opts {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 4px;
}

.qcard-opts li {
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft);
}
.qcard-opts li.is-right {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.qcard-ans {
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
  color: var(--text-muted);
}
.qcard-ans b {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-strong);
}

mark {
  padding: 0 2px;
  border-radius: 3px;
  background: rgba(250, 204, 21, .35);
  color: inherit;
}
[data-theme="dark"] mark {
  background: rgba(250, 204, 21, .26);
  color: #ffe07a;
}

.qmore {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 页头下方的声明条 ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 16px 0 18px;
  padding: 13px 18px;
  border-radius: 11px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  font-size: 14px;
  line-height: 1.7;
}

.notice-icon {
  flex: none;
  font-size: 15px;
  line-height: 1.7;
}

.notice-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.notice-body strong {
  font-weight: 700;
  letter-spacing: .01em;
}
.notice-body span {
  opacity: .9;
  font-size: 13.5px;
}

/* ---------- 联系方式 ---------- */
.contact-list {
  display: grid;
  gap: 10px;
  max-width: 460px;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14.5px;
  box-shadow: var(--shadow);
}
.contact-row .label {
  flex: none;
  width: 52px;
  color: var(--text-muted);
  font-size: 13px;
}
.contact-row .value {
  color: var(--text);
  font-weight: 500;
  overflow-wrap: anywhere;
}
.contact-row .value.mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  letter-spacing: .02em;
}
.reveal-phone {
  border: 1px dashed var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.reveal-phone:hover { background: var(--accent-line); }

/* ==========================================================
   资料库页
   ========================================================== */
.page-head {
  padding: 56px 0 30px;
  border-bottom: 1px solid var(--border);
}
.page-title {
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.page-desc {
  color: var(--text-soft);
  margin: 0;
  max-width: 38em;
  font-size: 15.5px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 26px 0 20px;
}

.search-box {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
}
.search-box input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-box .ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all .16s ease;
  white-space: nowrap;
}
.chip:hover { border-color: var(--accent-line); color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.chip .count {
  opacity: .65;
  font-size: 12px;
  margin-left: 3px;
}

.file-list {
  display: grid;
  gap: 10px;
  padding-bottom: 56px;
}

.file-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.file-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.file-ext {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .03em;
  color: #fff;
  text-transform: uppercase;
  user-select: none;
}
.ext-ppt   { background: linear-gradient(145deg, #f26b3a, #d9481f); }
.ext-doc   { background: linear-gradient(145deg, #4a86e0, #2a5fa8); }
.ext-xls   { background: linear-gradient(145deg, #3aa76d, #22774c); }
.ext-pdf   { background: linear-gradient(145deg, #e04848, #b02626); }
.ext-zip   { background: linear-gradient(145deg, #a07ad8, #7452ad); }
.ext-img   { background: linear-gradient(145deg, #38b2b2, #1d8a8a); }
.ext-txt   { background: linear-gradient(145deg, #7a8696, #58616e); }
.ext-audio { background: linear-gradient(145deg, #e0863c, #b8631f); }
.ext-video { background: linear-gradient(145deg, #7c5cd6, #5a3aab); }
.ext-link  { background: linear-gradient(145deg, #16a3bd, #0b5c73); font-size: 9.5px; }
.ext-other { background: linear-gradient(145deg, #8b96a4, #6a7482); }

.file-main { flex: 1; min-width: 0; }

.file-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
  margin-bottom: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.file-meta .cat {
  color: var(--accent);
  font-weight: 600;
}

.file-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.file-dl {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .16s ease, color .16s ease;
}
.file-dl:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* 空状态 */
.empty {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.empty .big {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
  opacity: .7;
}
.empty p { margin: 0 0 6px; font-size: 14.5px; }
.empty code {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--accent-strong);
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  background: var(--bg-soft);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner a { color: var(--text-soft); }

.footer-slogan {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
}

/* ==========================================================
   响应式
   ========================================================== */
@media (max-width: 760px) {
  .grid-3 { grid-template-columns: 1fr; }

  .hero { padding: 40px 0 44px; }
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .avatar { width: 84px; height: 84px; font-size: 25px; }
  .hero-tagline { font-size: 15.5px; }

  .nav { height: 56px; }
  .brand { font-size: 15px; }
  .nav-link { padding: 6px 10px; font-size: 14px; }
  .nav-links .hide-sm { display: none; }

  .section { padding: 38px 0; }
  .page-head { padding: 36px 0 24px; }

  /* 页头横排在小屏改成上下排，下拉框单独一行 */
  .page-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .month-picker select { padding: 8px 36px 8px 15px; font-size: 13.5px; }

  .file-card { padding: 12px 14px; gap: 12px; }
  .file-ext { width: 40px; height: 40px; font-size: 9.5px; }
  .file-dl {
    padding: 7px 13px;
    font-size: 13px;
  }
  .file-dl .txt { display: none; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .contact-row .label { width: 44px; }
}
