/* =========================================================
   永久地址发布系统 · 前台样式
   默认明亮白，支持深夜黑；无任何外部字体 / CDN 依赖
   ========================================================= */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #fbfaf7;
  --text: #161513;
  --text-2: #57534c;
  --text-3: #7c776f;
  --line: #e8e5df;
  --line-strong: #dcd8d0;
  --accent: #e9a63c;
  --accent-deep: #a8711a;
  --accent-soft: #fdf3de;
  --accent-ring: rgba(233, 166, 60, .18);
  --btn-text: #251a07;
  --ok: #1f8a5b;
  --shadow-sm: 0 1px 2px rgba(22, 21, 19, .04);
  --shadow: 0 1px 2px rgba(22, 21, 19, .03), 0 24px 56px -34px rgba(22, 21, 19, .38);
  --radius: 22px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

[data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #131315;
  --surface-2: #17171a;
  --text: #f2f0ea;
  --text-2: #a6a29b;
  --text-3: #8b867e;
  --line: #26262a;
  --line-strong: #34343a;
  --accent: #f0b45a;
  --accent-deep: #f0b45a;
  --accent-soft: rgba(240, 180, 90, .1);
  --accent-ring: rgba(240, 180, 90, .16);
  --ok: #4ecf95;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, .02) inset;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 30px 70px -40px #000;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
  transition: background-color .3s ease, color .3s ease;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------- 背景装饰 */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .42;
}
.glow-a {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(233, 166, 60, .26), transparent 66%);
}
.glow-b {
  width: 620px; height: 620px;
  bottom: -260px; right: -200px;
  background: radial-gradient(circle, rgba(233, 166, 60, .14), transparent 68%);
}
[data-theme="dark"] .glow { opacity: .5; }
[data-theme="dark"] .glow-a { background: radial-gradient(circle, rgba(240, 180, 90, .16), transparent 66%); }
[data-theme="dark"] .glow-b { background: radial-gradient(circle, rgba(240, 180, 90, .1), transparent 68%); }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 21, 19, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 21, 19, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 80%);
}
[data-theme="dark"] .grid-lines {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
}

/* ---------------------------------------------------------- 顶栏 */
.site-header {
  position: relative;
  z-index: 2;
  max-width: 810px;
  margin: 0 auto;
  padding: 22px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: linear-gradient(155deg, #f8cb77, #dfa02f);
  color: #241a06;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(223, 160, 47, .9), inset 0 1px 0 rgba(255, 255, 255, .5);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-text em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.theme-toggle {
  width: 38px; height: 38px;
  flex: none;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .2s, border-color .2s, transform .15s, background .2s;
}
.theme-toggle:hover { color: var(--accent-deep); border-color: var(--accent); }
.theme-toggle:active { transform: scale(.95); }
.theme-toggle svg { width: 17px; height: 17px; }
.ico-moon { display: none; }
[data-theme="dark"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: block; }

/* ---------------------------------------------------------- 主容器 */
.page {
  position: relative;
  z-index: 1;
  max-width: 750px;
  margin: 0 auto;
  padding: 14px 24px 40px;
}

/* ---------------------------------------------------------- 公告 */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px 13px 15px;
  margin-bottom: 16px;
  border-radius: 15px;
  border: 1px solid rgba(233, 166, 60, .32);
  background: linear-gradient(180deg, rgba(253, 243, 222, .95), rgba(253, 243, 222, .7));
  color: #6d4a0d;
  font-size: 13px;
  line-height: 1.55;
  animation: fadeUp .45s ease both;
}
[data-theme="dark"] .notice {
  background: linear-gradient(180deg, rgba(240, 180, 90, .09), rgba(240, 180, 90, .04));
  border-color: rgba(240, 180, 90, .22);
  color: #e7c189;
}
.notice-ico { color: var(--accent-deep); padding-top: 1px; }
[data-theme="dark"] .notice-ico { color: var(--accent); }
.notice-ico svg { width: 17px; height: 17px; }
.notice-body { flex: 1; min-width: 0; }
.notice-item { margin: 0; display: none; }
.notice-item.is-active { display: block; animation: fadeIn .35s ease both; }
.notice-close {
  flex: none;
  width: 24px; height: 24px;
  margin: -1px -2px 0 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: currentColor;
  opacity: .55;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity .2s, background .2s;
}
.notice-close:hover { opacity: 1; background: rgba(0, 0, 0, .05); }
.notice-close svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- 主卡片 */
.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px 24px;
  animation: fadeUp .5s ease both;
  transition: background-color .3s ease, border-color .3s ease;
}
.hero-top { text-align: center; }
.hero-logo {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #3a2705;
  background:
    radial-gradient(circle at 32% 26%, #ffe1a8, #eab04a 62%, #d79a2c);
  box-shadow:
    0 0 0 1px rgba(199, 137, 33, .28),
    0 0 0 6px rgba(233, 166, 60, .1),
    0 12px 26px -14px rgba(199, 137, 33, .85);
}
[data-theme="dark"] .hero-logo {
  background: radial-gradient(circle at 32% 26%, #f7d49a, #e0a53f 62%, #c98f27);
  box-shadow: 0 0 0 1px rgba(240, 180, 90, .3), 0 0 0 6px rgba(240, 180, 90, .08), 0 14px 30px -16px #000;
}
.hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
}
.hero-tagline {
  margin: 9px 0 0;
  font-size: 14.5px;
  color: var(--text-2);
  letter-spacing: .01em;
}
.hero-desc {
  margin: 10px auto 0;
  max-width: 44ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 11.5px;
  color: var(--text-3);
  flex-wrap: wrap;
}
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(31, 138, 91, .13);
  flex: none;
  animation: pulse 2.6s ease-in-out infinite;
}
.sep { width: 1px; height: 10px; background: var(--line-strong); }
.updated { font-family: var(--mono); font-size: 10.5px; letter-spacing: .02em; }

/* 主站行 */
.primary {
  margin-top: 26px;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: border-color .2s, background .3s;
}
.primary-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.primary-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.primary-label .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.primary-host {
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.primary-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------------------------------------------------------- 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 17px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .13s ease, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(168deg, #f6c268 0%, #e8a437 55%, #dd9a28 100%);
  color: var(--btn-text);
  border-color: rgba(190, 128, 24, .35);
  box-shadow: 0 10px 22px -12px rgba(221, 154, 40, .95), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-primary:hover { box-shadow: 0 14px 26px -12px rgba(221, 154, 40, 1), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.btn.sm { padding: 9px 15px; font-size: 13px; }

.icon-btn {
  width: 38px; height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-3);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .13s;
}
.icon-btn:hover { color: var(--accent-deep); border-color: var(--accent); background: var(--accent-soft); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.sm { width: 36px; height: 36px; }

.empty-state { text-align: center; padding: 26px 0 8px; color: var(--text-3); font-size: 13.5px; }
.empty-state p { margin: 0 0 14px; }

/* ---------------------------------------------------------- 线路列表 */
.panel {
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px 8px;
  animation: fadeUp .55s ease both;
  transition: background-color .3s ease, border-color .3s ease;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.count {
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.link-list { list-style: none; margin: 0; padding: 0; }
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.link-row:last-child { border-bottom: 0; }
.link-main { min-width: 0; }
.link-name {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.tag {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(233, 166, 60, .25);
}
[data-theme="dark"] .tag { border-color: rgba(240, 180, 90, .25); }
.link-host {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-note { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.link-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.panel-foot {
  margin: 0;
  padding: 13px 2px 12px;
  font-size: 11.5px;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  text-align: center;
}

/* ---------------------------------------------------------- 联系方式 */
.contact {
  margin-top: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  text-align: center;
  animation: fadeUp .6s ease both;
}
.contact-label { display: block; font-size: 12px; color: var(--text-3); margin-bottom: 13px; }
.contact-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  font-family: var(--mono);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.chip svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------- 页脚 */
.site-footer {
  margin-top: 26px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.9;
}
.site-footer p { margin: 0; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; }
.site-footer .muted { font-family: var(--mono); font-size: 10.5px; opacity: .8; margin-top: 3px; }

/* ---------------------------------------------------------- 移动端吸底栏 */
.sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -20px rgba(22, 21, 19, .35);
}
.sticky-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.sticky-name { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.sticky-name .dot { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.sticky-host {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-actions { display: flex; align-items: center; gap: 7px; flex: none; }

/* ---------------------------------------------------------- Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  z-index: 60;
  padding: 10px 18px;
  border-radius: 999px;
  background: #1b1a18;
  color: #fdfbf6;
  font-size: 12.5px;
  letter-spacing: .01em;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}
[data-theme="dark"] .toast { background: #f4f1e9; color: #171614; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- 动画 */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .45; }
}

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 760px) {
  .site-header { padding: 10px 14px 0; gap: 10px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
  .brand-text strong { font-size: 12.5px; }
  .brand-text em { font-size: 8.5px; letter-spacing: .12em; }
  .theme-toggle { width: 32px; height: 32px; border-radius: 9px; }
  .theme-toggle svg { width: 15px; height: 15px; }
  .page { padding: 9px 13px 16px; }

  /* 公告：超长时收为两行 */
  .notice {
    gap: 8px;
    padding: 8px 8px 8px 11px;
    margin-bottom: 9px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
    align-items: center;
  }
  .notice-ico { padding-top: 0; }
  .notice-ico svg { width: 15px; height: 15px; }
  .notice-close { width: 22px; height: 22px; margin: 0; }
  .notice-body {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 主卡片：徽标与标题同排 */
  .hero { padding: 16px 14px 14px; border-radius: 18px; }
  .hero-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 10px;
    text-align: left;
  }
  .hero-logo {
    grid-column: 1;
    grid-row: 1;
    width: 40px; height: 40px;
    margin: 0;
    font-size: 17px;
    align-self: center;
    box-shadow: 0 0 0 1px rgba(199, 137, 33, .25), 0 0 0 4px rgba(233, 166, 60, .09), 0 8px 18px -12px rgba(199, 137, 33, .8);
  }
  .hero h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    font-size: 20px;
    line-height: 1.3;
  }
  .hero-tagline {
    grid-column: 2;
    grid-row: 2;
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.45;
  }
  .hero-desc {
    grid-column: 1 / -1;
    margin: 9px 0 0;
    font-size: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-meta {
    grid-column: 1 / -1;
    margin-top: 7px;
    font-size: 10.5px;
    gap: 8px;
  }
  .updated { font-size: 10px; }

  /* 主站行：横向排列，省一整行高度 */
  .primary {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-top: 11px;
    padding: 10px 11px;
    border-radius: 12px;
  }
  .primary-info { text-align: left; align-items: flex-start; gap: 1px; }
  .primary-label { font-size: 11px; }
  .primary-host { font-size: 12.5px; }
  .primary-actions { gap: 6px; }
  .primary-actions .btn { padding: 8px 11px; font-size: 12.5px; }
  .primary-actions .icon-btn { width: 34px; height: 34px; }

  /* 备用线路：紧凑列表 */
  .panel { margin-top: 9px; padding: 12px 13px 0; border-radius: 18px; }
  .panel-head { padding-bottom: 7px; }
  .panel-head h2 { font-size: 12.5px; }
  .count { font-size: 10px; padding: 1px 7px; }
  .link-row { padding: 9px 0; gap: 8px; }
  .link-name { font-size: 13.5px; gap: 5px; }
  .tag { font-size: 9px; padding: 1px 5px; }
  .link-host { font-size: 11.5px; margin-top: 1px; }
  .link-note { font-size: 10px; margin-top: 2px; }
  .link-actions { gap: 6px; }
  .link-actions .icon-btn { width: 30px; height: 30px; border-radius: 8px; }
  .link-actions .icon-btn svg { width: 14px; height: 14px; }
  .link-actions .btn { padding: 7px 10px; font-size: 12px; border-radius: 9px; }
  .link-actions .btn svg { width: 12px; height: 12px; }
  .panel-foot { display: none; }

  /* 联系方式并入页脚区 */
  .contact { margin-top: 9px; padding: 10px 12px; border-radius: 16px; }
  .contact-label { display: none; }
  .contact-actions { gap: 7px; }
  .chip { padding: 6px 12px; font-size: 11.5px; }
  .chip svg { width: 13px; height: 13px; }

  .site-footer { margin-top: 12px; font-size: 10.5px; line-height: 1.6; }
  .site-footer .muted { display: none; }

  /* 吸底栏：仅在页面滚动后出现，不占首屏 */
  .sticky-bar {
    display: flex;
    padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform .24s ease;
  }
  body.scrolled .sticky-bar { transform: translateY(0); }
  body { padding-bottom: 0; }
  body.scrolled { padding-bottom: 64px; }
  .toast { bottom: 22px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 18.5px; }
  .brand-text em { display: none; }
  .primary-actions .btn { padding: 7px 9px; font-size: 12px; }
  .primary-host { font-size: 12px; }
  .link-actions .btn { padding: 6px 8px; font-size: 11.5px; }
}

/* 屏幕很矮时进一步收敛（如 iPhone SE / 小屏安卓） */
@media (max-width: 760px) and (max-height: 700px) {
  .hero-desc { display: none; }
  .hero { padding: 12px 12px 11px; }
  .link-row { padding: 7px 0; }
}

/* 弱动效 / 省电模式 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
