/* ============================================================
   MiNgHZ · style.css — 科技风 v2
   参考：Apple 排版/留白/动效 + 影视飓风 暗黑电影感 + 何同学 极简黑白
   ============================================================ */
:root {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #0e0e11;
  --surface: #151518;
  --surface-2: #1d1d22;
  --ink: #f5f5f7;
  --muted: #98989f;
  --accent: #ff3b30;
  --accent-deep: #e0281c;
  --accent-soft: rgba(255, 59, 48, 0.12);
  --blue: #3d6bff;
  --blue-soft: rgba(61, 107, 255, 0.10);
  --gold: #ff9f0a;
  --ok: #30d158;
  --danger: #ff453a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
  --radius: 22px;
  --radius-sm: 13px;
  --font-sans: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-tech: "Rajdhani", "Noto Sans SC", -apple-system, sans-serif;
  --font-display: "LXGW WenKai TC", "Noto Sans SC", -apple-system, sans-serif; /* Apple 式手写流线感 */
  --font-latin: "Fira Code", "Consolas", "SF Mono", ui-monospace, monospace; /* 科技等宽 */
  --font-hand: "Long Cang", "Kaiti SC", "KaiTi", "Noto Sans SC", sans-serif; /* 手写体 */
  
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #ececef;
  --surface: #ffffff;
  --surface-2: #f2f2f4;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #f0322a;
  --accent-deep: #c8231a;
  --accent-soft: rgba(240, 50, 42, 0.08);
  --blue: #3366ff;
  --blue-soft: rgba(51, 102, 255, 0.08);
  --gold: #f7941d;
  --ok: #1e8e3e;
  --danger: #e5484d;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- 顶部阅读进度条 ---------- */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 120;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), #ff7a5c 55%, var(--gold));
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.55);
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ---------- 背景：网格 + 双色辉光 ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.dot-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob-a { width: 560px; height: 560px; top: -260px; right: -160px; background: radial-gradient(closest-side, rgba(255, 59, 48, 0.16), transparent); }
.blob-b { width: 500px; height: 500px; bottom: -280px; left: -200px; background: radial-gradient(closest-side, rgba(61, 107, 255, 0.12), transparent); }
.blob-c { width: 420px; height: 420px; top: 42%; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 255, 255, 0.03), transparent); }

/* ---------- 头部：磨砂玻璃 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 58px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background-size: cover; background-position: center;
  border: 1px solid var(--line-strong);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.02rem; font-weight: 700; letter-spacing: 0.04em; }
.brand-text small {
  font-family: var(--font-tech);
  font-weight: 600; font-size: 0.6rem; color: var(--muted);
  letter-spacing: 0.42em; text-transform: uppercase;
}
.main-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700;
  color: var(--muted); font-size: 0.98rem; letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); font-size: 0.95rem; cursor: pointer;
  display: grid; place-items: center;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.menu-toggle { display: none; }
@media (max-width: 840px) {
  .menu-toggle { display: grid; }
  .main-nav {
    display: none; position: fixed; top: 58px; left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    padding: 10px 18px 14px;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 14px; border-radius: 12px; }
  .nav-link.active { background: var(--surface-2); }
}

/* ---------- 同步状态灯 ---------- */
.sync-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-tech); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; white-space: nowrap;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
}
.sync-chip.cloud { color: var(--ok); border-color: rgba(48, 209, 88, 0.3); }
.sync-chip.offline { color: var(--danger); border-color: rgba(255, 69, 58, 0.3); }
.sync-chip.syncing { color: var(--accent); border-color: rgba(255, 59, 48, 0.35); }
.sync-chip.syncing::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: chipPulse 1.1s ease-in-out infinite;
}
@keyframes chipPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.7); } }
@media (max-width: 520px) { .sync-chip { font-size: 0.65rem; padding: 5px 9px; } }

/* ---------- Hero：Apple 式巨标题 ---------- */
.hero { padding: 128px 0 72px; text-align: center; position: relative; }
.hero-kicker {
  font-family: var(--font-tech); font-weight: 600; font-size: 0.8rem;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero-title {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-hand);
  line-height: 1.35; letter-spacing: 0.04em;
  margin-top: -6px;
}
.hero-title span, .hero-title em { display: block; }
.ht-l1, .ht-l3 {
  font-family: var(--font-sans); /* 黑体 */
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem); /* 小于 Fira 字号 */
  color: var(--muted);
  background: linear-gradient(180deg, var(--ink) 60%, color-mix(in srgb, var(--ink) 42%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ht-l1 { align-self: flex-start; text-align: left; margin-left: 27%; transform: rotate(-1.2deg); }
.ht-l3 { align-self: flex-end; text-align: right; margin-right: 27%; transform: rotate(1.2deg); }
.hero-title .ht-mid {
  align-self: center;
  font-family: var(--font-latin); /* Fira Code */
  font-style: normal;
  font-weight: 700;
  font-size: clamp(3.2rem, 8.5vw, 6rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 4px 0;
  background: linear-gradient(95deg, var(--accent), #ff7a5c 60%, var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 26px rgba(255, 59, 48, 0.28));
}
.hero-sub { max-width: 620px; margin: 22px auto 0; color: var(--muted); font-size: 1.02rem; line-height: 1.9; }
.hero-sub .warn-en {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-latin); font-weight: 700;
  font-size: 0.72em; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--accent);
}
.hero-stats { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.stat-chip {
  display: inline-flex; align-items: baseline; gap: 9px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
  transition: border-color 0.2s, transform 0.2s;
}
.stat-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.stat-num {
  font-family: var(--font-tech); font-weight: 700;
  color: var(--accent); font-size: 1.18rem; line-height: 1;
}
.hero-cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 跑马灯（影视飓风味） ---------- */
.ticker {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 3rem;
  padding: 12px 0;
  font-family: var(--font-tech); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--muted);
  animation: marquee 22s linear infinite;
}
.ticker-track .t-dot { color: var(--accent); font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-size: 0.92rem; font-weight: 600; line-height: 1;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 8px 22px rgba(255, 59, 48, 0.32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255, 59, 48, 0.42); }
.btn-ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 59, 48, 0.25); }
.btn-soft:hover { background: var(--accent-soft); transform: translateY(-2px); border-color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(229, 72, 77, 0.4); }
.btn-small { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; }

/* ---------- 区块 ---------- */
.section { padding: 104px 0; scroll-margin-top: 70px; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { margin-bottom: 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-tech); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: "◆"; font-size: 0.55rem; }
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
  background: linear-gradient(180deg, var(--ink) 60%, color-mix(in srgb, var(--ink) 38%, transparent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub { color: var(--muted); margin-top: 12px; font-size: 0.95rem; max-width: 660px; }
.inline-plus { color: var(--accent); font-size: 1.05em; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-title { font-size: 1.06rem; font-weight: 700; }
.card-sub { color: var(--muted); font-size: 0.84rem; margin: 5px 0 18px; }
.empty {
  padding: 48px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  font-size: 0.92rem;
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 16px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 8%, var(--line-strong) 92%, transparent);
}
.moment, .tech-item { position: relative; padding: 0 0 24px 58px; }
.moment-dot, .tech-dot {
  position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-size: 0.95rem;
  z-index: 1;
}
.moment-card, .tech-card { padding: 18px 22px; }
.moment-head, .tech-head { display: flex; align-items: center; gap: 14px; }
.moment-time, .tech-head time {
  font-family: var(--font-tech); font-weight: 600;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.moment-text { margin-top: 8px; font-size: 0.96rem; line-height: 1.85; word-break: break-word; }
.tech-head { flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.72rem; font-weight: 600; padding: 3px 12px; border-radius: 999px;
  letter-spacing: 0.06em;
}
.tech-name { font-size: 1.1rem; font-weight: 700; margin-top: 10px; }
.tech-text { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
.stars { position: relative; display: inline-block; font-size: 0.9rem; letter-spacing: 3px; line-height: 1; margin-top: 7px; color: var(--line-strong); }
.stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }

/* ---------- 条目操作 ---------- */
.item-actions { display: inline-flex; gap: 6px; margin-left: auto; }
.act-btn {
  width: 27px; height: 27px; border-radius: 8px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--muted); cursor: pointer; font-size: 0.72rem;
  display: grid; place-items: center; transition: 0.16s;
}
.act-btn:hover { color: var(--accent); border-color: var(--accent); }
.act-btn.danger:hover { color: var(--danger); border-color: var(--danger); }

/* ---------- 旅行卡片 ---------- */
.travel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.travel-card { overflow: hidden; display: flex; flex-direction: column; }
.t-cover { position: relative; height: 176px; display: grid; place-items: center; }
.t-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.38));
}
.t-cover.g0 { background: linear-gradient(135deg, #e8934a, #d95f2b); }
.t-cover.g1 { background: linear-gradient(135deg, #3e8d71, #245f4c); }
.t-cover.g2 { background: linear-gradient(135deg, #b95e73, #8e3c56); }
.t-cover.g3 { background: linear-gradient(135deg, #4a5ea8, #2c3e78); }
.t-cover.g4 { background: linear-gradient(135deg, #c29a3d, #96701c); }
.t-cover.g5 { background: linear-gradient(135deg, #6f57a8, #4c3a7c); }
.t-cover.g6 { background: linear-gradient(135deg, #2e8b86, #1c5c58); }
.t-cover.g7 { background: linear-gradient(135deg, #a8603e, #7c4228); }
.t-emoji { font-size: 52px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.35)); position: relative; z-index: 1; }
.t-date, .t-loc {
  position: absolute; z-index: 2;
  font-family: var(--font-tech); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.1em;
  padding: 4px 11px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.6); color: #f2f2f4;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
}
.t-date { top: 12px; left: 12px; }
.t-loc { bottom: 12px; left: 12px; }
.t-actions { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; gap: 6px; }
.t-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.t-title { font-size: 1.08rem; font-weight: 700; line-height: 1.45; }
.t-summary { color: var(--muted); font-size: 0.88rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.t-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem; color: var(--muted);
  background: var(--surface-2); padding: 3px 11px; border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---------- 留言 & 友链 ---------- */
.guest-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 26px; align-items: start; }
.guest-gate[hidden], .msg-form[hidden] { display: none; }
.msg-form { padding: 26px 28px; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 15px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--bg-2);
  color: var(--ink); font: inherit; font-size: 0.93rem;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255, 69, 58, 0.14) !important; }
.field-hint { font-size: 0.74rem; color: var(--muted); margin-top: 5px; }
.msg-item { padding: 16px 18px; display: flex; gap: 14px; margin-bottom: 14px; }
.m-avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
}
.m-body { flex: 1; min-width: 0; }
.m-head { display: flex; align-items: center; gap: 10px; }
.m-name { font-weight: 700; font-size: 0.9rem; }
.m-head time { font-family: var(--font-tech); color: var(--muted); font-size: 0.7rem; letter-spacing: 0.08em; margin-right: auto; }
.m-contact { margin-top: 4px; }
.m-mailto {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--blue); font-size: 0.78rem; font-weight: 600;
  word-break: break-all; max-width: 100%;
  transition: color 0.16s;
}
.m-mailto:hover { color: var(--accent); text-decoration: underline; }
.m-text { margin-top: 5px; font-size: 0.91rem; word-break: break-word; white-space: pre-wrap; }
.friends-card { padding: 26px 28px; }
.friends-head { display: flex; align-items: center; justify-content: space-between; }
.friends-count { font-family: var(--font-tech); font-size: 0.72rem; color: var(--muted); background: var(--bg-2); padding: 3px 12px; border-radius: 999px; }
.friend-row { position: relative; display: flex; align-items: center; margin-top: 12px; }
.friend-link { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; flex: 1; transition: background 0.18s; }
.friend-row:hover .friend-link { background: var(--accent-soft); }
.f-avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.3rem;
  background: var(--surface-2); border: 1px solid var(--line);
}
.f-meta { display: flex; flex-direction: column; min-width: 0; }
.f-name { font-weight: 700; font-size: 0.92rem; }
.f-desc { color: var(--muted); font-size: 0.79rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-arrow { margin-left: auto; color: var(--muted); font-size: 1rem; transition: color 0.18s, transform 0.18s; }
.friend-link:hover .f-arrow { color: var(--accent); transform: translate(2px, -2px); }
.friend-row .item-actions { position: absolute; right: 8px; top: -8px; background: var(--surface); padding: 4px; border-radius: 10px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.friend-row:hover { transform: translateX(3px); }

/* ---------- 页脚 ---------- */
.site-footer { padding: 72px 0 44px; text-align: center; border-top: 1px solid var(--line); margin-top: 20px; }
.footer-brand { font-family: var(--font-tech); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.32em; text-transform: uppercase; }
.footer-brand span { color: var(--accent); }
.footer-line { color: var(--muted); font-size: 0.84rem; margin-top: 10px; letter-spacing: 0.06em; }
.footer-hint { color: var(--muted); font-size: 0.78rem; margin-top: 5px; }
.footer-hint a { color: var(--accent); }
.footer-credit { margin-top: 10px; font-family: var(--font-tech); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; }
.credit-copy { position: relative; cursor: help; }
.credit-copy::before {
  content: ""; position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px; background: var(--surface);
  border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong);
  opacity: 0; transition: opacity 0.18s; z-index: 21;
}
.credit-copy::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) scale(0.96);
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink);
  padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-sans); font-size: 0.76rem; line-height: 1.6;
  text-transform: none; letter-spacing: 0; white-space: normal;
  width: max-content; max-width: min(340px, calc(100vw - 40px));
  box-shadow: var(--shadow); z-index: 20;
  opacity: 0; pointer-events: none; transition: opacity 0.18s, transform 0.18s;
}
.credit-copy:hover::after { opacity: 1; transform: translateX(-50%) scale(1); }
.credit-copy:hover::before { opacity: 1; }

/* ---------- 悬浮按钮 ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 18px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: 1.6rem; line-height: 1;
  box-shadow: 0 10px 28px rgba(255, 59, 48, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 36px rgba(255, 59, 48, 0.5); }

/* ---------- FAB 快捷新建菜单 ---------- */
.qa-menu {
  position: fixed; right: 24px; bottom: 92px; z-index: 65;
  display: none; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow);
  min-width: 132px;
}
.qa-menu.open { display: flex; animation: qaIn 0.18s ease; }
.qa-menu button {
  border: none; background: transparent; color: var(--ink);
  text-align: left; padding: 9px 12px; border-radius: 9px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: 0.15s;
}
.qa-menu button:hover { background: var(--accent-soft); color: var(--accent); }
@keyframes qaIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .qa-menu { right: 16px; bottom: 84px; } }

/* ---------- 游客提示 ---------- */
.guest-hint {
  position: fixed; left: 20px; bottom: 20px; z-index: 55;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); cursor: pointer;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--muted); font-size: 0.8rem; font-weight: 600;
  transition: 0.2s; box-shadow: var(--shadow-sm);
}
.guest-hint:hover { color: var(--accent); border-color: var(--accent); }
.guest-hint[hidden] { display: none; }
@media (max-width: 640px) { .guest-hint { left: 12px; bottom: 12px; font-size: 0.72rem; padding: 8px 12px; } }

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 72px; right: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(340px, calc(100vw - 40px)); }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--ok); box-shadow: var(--shadow);
  font-size: 0.88rem; animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent); }
.toast.out { opacity: 0; transform: translateX(18px); }
@keyframes toastIn { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }

/* ---------- 弹窗 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
}
.modal-backdrop[hidden] { display: none; }
.modal { width: 100%; max-width: 540px; max-height: 88vh; overflow-y: auto; padding: 26px 28px; animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.modal.card:hover { transform: none; box-shadow: none; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.confirm-text { color: var(--muted); font-size: 0.94rem; }

/* ---------- 登录/用户 ---------- */
.user-btn { font-size: 1rem; }
.m-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg-2); border-radius: 12px; padding: 4px; }
.m-tab {
  flex: 1; padding: 9px 0; text-align: center; border-radius: 9px;
  border: none; background: transparent; color: var(--muted);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: 0.18s;
}
.m-tab.on { background: var(--surface-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; min-width: 0; }
.mine-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); margin-bottom: 16px; }
.mine-actions { display: flex; flex-direction: column; gap: 10px; }
.panel-user { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-bottom: 1px dashed var(--line); }
.panel-user:last-child { border-bottom: none; }
.pu-avatar { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.pu-meta { flex: 1; min-width: 0; }
.pu-name { font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pu-sub { color: var(--muted); font-size: 0.74rem; word-break: break-all; }
.pu-role { font-size: 0.68rem; padding: 2px 10px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
.pu-role.owner { background: var(--accent-soft); color: var(--accent); border-color: rgba(255, 59, 48, 0.35); }
.pu-role.admin { background: var(--blue-soft); color: var(--blue); border-color: rgba(61, 107, 255, 0.35); }
.pu-role.edit { background: rgba(48, 209, 88, 0.1); color: var(--ok); border-color: rgba(48, 209, 88, 0.3); }
.panel-tip { color: var(--muted); font-size: 0.76rem; margin-top: 10px; }

/* ---------- 管理模式（面板触发） ---------- */
.admin-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.admin-btn:hover { color: var(--accent); border-color: var(--accent); }
body.admin-mode .admin-btn { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.admin-only { display: none !important; }
body.admin-mode .admin-only { display: inline-flex; }
@media (max-width: 480px) { .admin-btn { padding: 6px 10px; font-size: 0.7rem; } }

/* ---------- 图片上传 / 画廊 / 灯箱 ---------- */
.img-picker { display: flex; flex-direction: column; gap: 10px; }
.img-list { display: flex; flex-wrap: wrap; gap: 8px; }
.img-thumb {
  position: relative; width: 86px; height: 86px; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2);
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb .img-rm {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 6px; border: none; cursor: pointer;
  background: rgba(10, 10, 12, 0.72); color: #fff; font-size: 0.6rem;
  display: grid; place-items: center;
}
.img-add {
  display: inline-flex; align-items: center; justify-content: center;
  width: 86px; height: 86px; border-radius: 10px;
  border: 1.5px dashed var(--line-strong); cursor: pointer;
  color: var(--muted); font-size: 0.78rem; font-weight: 600;
  transition: 0.18s;
}
.img-add:hover { border-color: var(--accent); color: var(--accent); }
.tech-gallery { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tg-cover { grid-column: 1 / -1; aspect-ratio: 21 / 9; border: none; padding: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.tg-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.tg-cover:hover img { transform: scale(1.03); }
.tg-thumb { aspect-ratio: 1; border: none; padding: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.tg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.tg-thumb:hover img { transform: scale(1.06); }
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 40px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox-close {
  position: fixed; top: 18px; right: 22px; width: 40px; height: 40px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 12, 0.5); color: #fff; font-size: 1rem; cursor: pointer;
  display: grid; place-items: center; z-index: 111;
}
.lightbox-close:hover { background: rgba(255, 59, 48, 0.35); }

/* ---------- Markdown 编辑 & 阅读 ---------- */
.md-box { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.md-tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.md-tabs .m-tab { flex: 0 1 auto; padding: 6px 14px; font-size: 0.8rem; }
.md-input {
  width: 100%; border: none; outline: none; border-radius: 0; padding: 14px 16px;
  background: transparent; color: var(--ink); font: 0.9rem/1.8 var(--font-latin);
  min-height: 260px; resize: vertical; box-sizing: border-box;
}
.md-preview { padding: 14px 16px; }
.read-more {
  margin-top: 10px; border: none; background: transparent; cursor: pointer;
  color: var(--accent); font-size: 0.84rem; font-weight: 700; text-align: left;
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.read-more:hover { text-decoration: underline; }
.reader {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; justify-content: center; padding: 44px 18px;
}
.reader[hidden] { display: none; }
.reader-panel {
  width: min(760px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; padding: 30px 36px 40px; position: relative;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.reader-meta { font-family: var(--font-tech); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.reader-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.3; margin-bottom: 18px; }
.md-body { font-size: 0.95rem; line-height: 1.95; color: var(--ink); word-break: break-word; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { font-family: var(--font-display); font-weight: 700; margin: 24px 0 10px; line-height: 1.35; }
.md-body h1 { font-size: 1.5rem; } .md-body h2 { font-size: 1.3rem; } .md-body h3 { font-size: 1.15rem; } .md-body h4 { font-size: 1.02rem; }
.md-body p { margin: 12px 0; }
.md-body ul, .md-body ol { padding-left: 24px; margin: 12px 0; }
.md-body ul { list-style: disc; } .md-body ol { list-style: decimal; }
.md-body li { margin: 5px 0; }
.md-body blockquote {
  margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0; color: var(--muted);
}
.md-body pre {
  margin: 14px 0; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  overflow-x: auto; font-family: var(--font-latin); font-size: 0.84rem; line-height: 1.6;
}
.md-body code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-family: var(--font-latin); font-size: 0.84em; }
.md-body pre code { background: transparent; border: none; padding: 0; }
.md-body img { max-width: 100%; border-radius: 12px; border: 1px solid var(--line); margin: 10px 0; }
.md-body a { color: var(--accent); }
.md-body hr { border: none; border-top: 1px solid var(--line-strong); margin: 22px 0; }

/* ---------- 权限管理滑块 & 留言门槛 ---------- */
.guest-gate { padding: 30px 28px; margin-bottom: 22px; text-align: center; color: var(--muted); }
.guest-gate .btn { margin-top: 14px; }
.perm-block { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); }
.perm-block h4 { font-size: 0.94rem; margin-bottom: 10px; }
.perm-group { margin: 10px 0 4px; color: var(--muted); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; font-weight: 600; }
.switch-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; inset: 0; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); transition: 0.2s; }
.slider::before { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; left: 3px; top: 3px; background: var(--muted); transition: 0.2s; }
.switch input:checked + .slider { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); background: var(--accent); }

/* ---------- 进场动画 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--rd, 0ms); }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) { .travel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .guest-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .hero { padding: 96px 0 60px; }
  .travel-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .moment, .tech-item { padding-left: 54px; }
  .toast-root { top: 66px; right: 12px; }
  .fab { right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 16px; }
}

/* ============================================================
   Apple 设计语言覆盖层（DESIGN.md）
   · 单一 Action Blue 强调色
   · 无装饰渐变 / 无卡片阴影
   · 黑白 + 米白分区，系统字体，负字距大标题
   ============================================================ */
:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f0f2;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --accent: #0066cc;
  --accent-deep: #0071e3;
  --accent-soft: rgba(0, 102, 204, 0.08);
  --blue: #0066cc;
  --blue-soft: rgba(0, 102, 204, 0.08);
  --gold: #bf8100;
  --ok: #1e8e3e;
  --danger: #ff3b30;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --shadow-sm: none;
  --shadow: none;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-tech: var(--font-sans);
  --font-latin: "SF Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --font-hand: var(--font-display);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-2: #1d1d1f;
  --surface: #272729;
  --surface-2: #2a2a2c;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --accent: #2997ff;
  --accent-deep: #0071e3;
  --accent-soft: rgba(41, 151, 255, 0.14);
  --blue: #2997ff;
  --blue-soft: rgba(41, 151, 255, 0.14);
  --gold: #d2a106;
  --ok: #30d158;
  --danger: #ff453a;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --shadow-sm: none;
  --shadow: none;
}

body {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
}
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; }

/* 背景装饰与跑马灯：Apple 语言里不需要 */
.bg-decor, .ticker { display: none !important; }

/* 顶部全局导航：44px 纯黑细条 */
.site-header {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: none;
}
.header-inner { height: 44px; }
.brand-text b { color: #f5f5f7; font-size: 0.94rem; font-weight: 600; letter-spacing: 0; }
.brand-text small { color: #86868b; font-family: var(--font-sans); letter-spacing: 0.16em; font-weight: 400; }
.brand-mark { box-shadow: none; border-color: rgba(255, 255, 255, 0.2); border-radius: 6px; }
.nav-link {
  color: #a1a1a6;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  padding: 5px 12px;
}
.nav-link:hover, .nav-link.active { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.icon-btn { color: #f5f5f7; border-color: rgba(255, 255, 255, 0.22); background: transparent; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.32); }
.sync-chip {
  background: rgba(255, 255, 255, 0.1);
  color: #a1a1a6;
  border: none;
  font-size: 0.68rem;
}
.sync-chip.cloud { color: #30d158; background: rgba(48, 209, 88, 0.12); }
.sync-chip.offline { color: #ff6961; background: rgba(255, 69, 58, 0.12); }
.sync-chip.syncing { color: #2997ff; background: rgba(41, 151, 255, 0.12); }
.progress-bar { background: #0066cc; box-shadow: none; }
@media (max-width: 840px) {
  .main-nav {
    top: 44px;
    background: rgba(0, 0, 0, 0.96);
    border-bottom: none;
  }
}

/* Hero：居中、安静、无渐变文字 */
.hero { padding: 108px 0 64px; }
.hero-kicker {
  color: var(--muted);
  letter-spacing: 0.18em;
  font-weight: 600;
  font-size: 0.72rem;
  margin-bottom: 20px;
}
.hero-title { gap: 8px; }
.ht-l1, .ht-l3 {
  align-self: center;
  transform: none;
  text-align: center;
  margin: 0;
  font-family: var(--font-display);
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.ht-mid {
  font-family: var(--font-display) !important;
  font-style: normal;
  font-weight: 600 !important;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  filter: none !important;
  font-size: clamp(3.2rem, 8.5vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 8px 0 0;
}
.hero-sub { color: var(--muted); font-size: 1.02rem; }
.hero-sub .warn-en { color: var(--accent); letter-spacing: 0.22em; }
.stat-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
}
.stat-chip:hover { transform: none; border-color: var(--line-strong); }
.stat-num { color: var(--accent); font-weight: 600; }

/* 区块：颜色分区即分隔线 */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: none; border-bottom: none; }
.section-head { margin-bottom: 44px; }
.eyebrow { color: var(--accent); letter-spacing: 0.18em; font-weight: 600; }
.section-title {
  font-family: var(--font-display);
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-sub { color: var(--muted); font-size: 0.96rem; }

/* 卡片：无阴影，只有细发丝线 */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none !important;
}
.card:hover { transform: none !important; box-shadow: none !important; border-color: var(--line-strong); }
.empty { border-style: solid; border-radius: 18px; color: var(--muted); }
.friend-row:hover { transform: none; }
.msg-item, .friends-card, .msg-form, .guest-gate { border-radius: 18px; }

/* 按钮：蓝色药丸 + 描边药丸，按下缩放 */
.btn { border-radius: 999px; font-weight: 400; }
.btn-primary {
  background: #0066cc;
  color: #ffffff;
  box-shadow: none !important;
}
[data-theme="dark"] .btn-primary { background: #2997ff; }
.btn-primary:hover { transform: none; background: #0071e3; box-shadow: none !important; }
.btn-ghost { border: 1px solid var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.btn-soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn-soft:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); transform: none; }
.btn-danger { background: var(--danger); box-shadow: none !important; }
.btn-danger:hover { transform: none; box-shadow: none !important; }
.btn:active, .btn-primary:active, .btn-ghost:active, .btn-soft:active, .btn-danger:active { transform: scale(0.95) !important; }
.btn-small { padding: 8px 16px; }

/* 时间线 / 列表：去强调，去阴影 */
.moment-card, .tech-card { background: transparent; border: none; border-radius: 0; padding: 12px 16px; }
.moment-dot, .tech-dot {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: none;
}
.moment-text, .tech-text { font-size: 0.97rem; }
.badge { background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-weight: 600; }
.stars { color: var(--line-strong); }
.stars-fill { color: var(--gold); }

/* 旅行卡片封面：无渐变，纯色块承接内容 */
.t-cover { height: 168px; background: var(--surface-2) !important; }
.t-cover.g0, .t-cover.g1, .t-cover.g2, .t-cover.g3,
.t-cover.g4, .t-cover.g5, .t-cover.g6, .t-cover.g7 {
  background: var(--surface-2) !important;
}
.t-cover::after { display: none; }
.t-date, .t-loc {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border-radius: 999px;
  font-weight: 400;
}
.t-title { font-weight: 600; letter-spacing: -0.01em; }
.tag { background: var(--surface-2); border: none; color: var(--muted); border-radius: 999px; }
.t-summary { color: var(--muted); }

/* 表单 / 输入：无重阴影，圆角胶囊/18px */
.field input, .field textarea, .field select {
  border-radius: 11px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  font-size: 0.94rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.m-avatar { background: var(--accent); border-radius: 50%; font-weight: 600; }
.m-mailto { color: var(--accent); }
.f-avatar { background: var(--surface-2); border-radius: 12px; border: none; }
.friend-link { border-radius: 12px; }
.friend-row .item-actions { border-radius: 10px; box-shadow: none; }

/* 弹窗 / 阅读器 / 灯箱 */
.modal { border-radius: 18px; box-shadow: none; }
.modal-backdrop { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
.reader-panel { border-radius: 18px; }
.reader-title { font-weight: 600; letter-spacing: -0.02em; }
.md-body h1, .md-body h2, .md-body h3, .md-body h4 { font-weight: 600; letter-spacing: -0.02em; }
.md-body blockquote { border-left: 2px solid var(--accent); background: var(--accent-soft); }

/* 页脚：米白/黑分区、细字距 */
.site-footer {
  background: var(--bg-2);
  border-top: none;
  padding: 56px 0 48px;
  margin-top: 0;
}
.footer-brand { letter-spacing: 0.2em; }
.footer-brand span { color: var(--accent); }
.footer-hint { color: var(--muted); font-size: 0.76rem; }
.footer-hint a { color: var(--accent); }
.footer-credit { font-family: var(--font-sans); letter-spacing: 0.08em; text-transform: none; font-weight: 400; }

/* FAB：仍是唯一主要动作，圆形胶囊无重阴影 */
.fab {
  background: #0066cc;
  border-radius: 999px;
  box-shadow: none;
  font-weight: 300;
}
[data-theme="dark"] .fab { background: #2997ff; }
.fab:hover { transform: none; box-shadow: none; }
.qa-menu { border-radius: 14px; box-shadow: none; border: 1px solid var(--line); }
.qa-menu button { border-radius: 9px; }

@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 76px 0 48px; }
}
