/* ========================================
   Layout: 导航 / 页面 / Hero / 卡片 / 留言 — Lunati
   ======================================== */

body { padding-top: var(--nav-height); }

/* ═══════════════════════════════════════
   Navigation
   ═══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0 max(var(--space-4), env(safe-area-inset-left)) 0 max(var(--space-4), env(safe-area-inset-right));
  background: var(--bg-overlay);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  overflow: visible;
  transition: background var(--duration-normal) var(--ease-in-out),
    border-color var(--duration-normal) var(--ease-in-out);
}

.nav-logo { display: flex; align-items: center; gap: var(--space-1); flex-shrink: 0; user-select: none; }

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px var(--border-default), 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform var(--duration-fast) var(--spring);
}

.nav-logo:hover img { transform: scale(1.06) rotate(-2deg); }

.nav-logo-text { font-size: var(--text-md); font-weight: 700; color: var(--text-primary); letter-spacing: -0.04em; }

.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent);
  margin-bottom: -8px;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* 分段控件 (Tabs) */
.page-tabs {
  display: flex;
  gap: var(--space-1);
  margin: 0 auto;
  padding: 3px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.page-tab {
  position: relative;
  overflow: hidden;
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--duration-fast) var(--ease-in-out),
    background var(--duration-fast) var(--ease-in-out),
    transform var(--duration-fast) var(--spring);
}

.page-tab:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.page-tab:active { transform: scale(0.96); }

.page-tab.active {
  background: linear-gradient(135deg, var(--amber-300), var(--amber-200));
  color: #111219;
  box-shadow: 0 4px 14px var(--accent-glow);
}

[data-theme="light"] .page-tab.active { color: #fff; }

/* 右侧控件组 */
.nav-controls { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }

.nav-btn {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  padding: var(--space-2) var(--space-4);
  min-height: 36px;
  border-radius: 10px;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.nav-btn:hover { background: var(--bg-cards); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-glow); }
.nav-btn:active { transform: scale(0.95); }

/* 头像按钮 */
.global-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-default);
  background: var(--bg-elevated);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--spring);
}

.global-avatar-btn:hover { border-color: var(--accent); transform: scale(1.08); box-shadow: 0 0 0 4px var(--accent-muted), var(--shadow-glow); }
.global-avatar-btn:active { transform: scale(0.94); }
.global-avatar-btn.logged { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.global-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.global-avatar-inner { font-size: 18px; line-height: 1; display: flex; align-items: center; justify-content: center; }
[data-theme="light"] .global-avatar-inner { background: #f1f1f7; }

/* 语言菜单 */
.lang-wrap { position: relative; z-index: var(--z-dropdown); overflow: visible; }

.lang-ui-menu {
  position: fixed;
  top: calc(var(--nav-height) + 8px);
  right: max(10px, env(safe-area-inset-right));
  z-index: var(--z-max);
  display: none;
  min-width: 132px;
  padding: var(--space-2);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.lang-ui-menu.open { display: block; animation: menuPop 0.15s var(--ease-out) both; }

.lang-ui-menu button {
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 700;
  padding: 10px var(--space-3);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.lang-ui-menu button:hover,
.lang-ui-menu button.active { background: var(--accent-muted); color: var(--accent); }
[data-theme="light"] .lang-ui-menu { background: rgba(255, 255, 255, 0.98); }

/* ═══════════════════════════════════════
   Pages
   ═══════════════════════════════════════ */
.page { display: none; max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.page.active { display: block; }

#page-blog,
#page-ai {
  max-width: none;
  width: 100%;
  height: calc(100dvh - var(--nav-height));
  padding: 0;
  overflow: hidden;
}

.blog-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--bg-base); }

/* ═══════════════════════════════════════
   Hero
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-height));
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  text-align: left;
  gap: var(--space-12) var(--space-16);
  padding: 58px var(--space-8) 34px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 34px var(--space-5);
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, rgba(239, 228, 207, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--shadow-lg);
  pointer-events: none;
}

[data-theme="light"] .hero::before {
  border-color: rgba(126, 91, 35, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(215, 180, 106, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-md);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; grid-column: 1 / -1; overflow: hidden; }

.hero-orb {
  position: absolute;
  border-radius: var(--radius-full);
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  filter: blur(60px);
  will-change: transform, translate;
}

.hero-orb-1 { width: 600px; height: 600px; top: -200px; left: -200px; }
.hero-orb-2 { width: 450px; height: 450px; bottom: -100px; right: -100px; }
.hero-orb-3 { width: 320px; height: 320px; top: 40%; left: 55%; }

.hero-main { position: relative; z-index: var(--z-base); display: flex; flex-direction: column; align-items: flex-start; }
.hero-side { position: relative; z-index: var(--z-base); display: grid; gap: var(--space-4); align-self: center; }

.hero-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.08em;
  background: linear-gradient(120deg, #efe4cf, #b8c5d6 68%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-5);
}

[data-theme="light"] .hero h1 { background: none; -webkit-text-fill-color: currentColor; color: #2f261a; }

.hero-bio { max-width: 620px; color: var(--text-secondary); font-size: var(--text-md); line-height: var(--leading-loose); margin-bottom: var(--space-6); }

.hero-note {
  max-width: 520px;
  color: var(--text-tertiary);
  font-size: var(--text-base);
  line-height: 1.9;
  border-left: 2px solid var(--accent-muted);
  padding-left: var(--space-4);
  margin-bottom: var(--space-6);
}

/* 头像 */
.avatar-wrap {
  position: relative;
  z-index: var(--z-base);
  width: 172px;
  height: 172px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--accent-muted);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: pointer;
  justify-self: end;
  will-change: transform;
  contain: paint;
  transition: border-color var(--duration-normal) var(--ease-in-out), box-shadow var(--duration-normal) var(--ease-in-out);
}

.avatar-wrap:hover { border-color: var(--accent); box-shadow: 0 30px 60px var(--accent-muted), var(--shadow-lg); }
.avatar-wrap:active { transform: scale(0.96); }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; backface-visibility: hidden; }
.avatar-wrap.switching img { animation: avatarSwitch 0.3s var(--ease-in-out) both; }

@keyframes avatarSwitch {
  0% { transform: scale(1); }
  45% { transform: scale(0.92) rotate(-2deg); }
  100% { transform: scale(1); }
}

/* Hero 侧栏卡片 */
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(239, 228, 207, 0.055), rgba(255, 255, 255, 0.018));
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md);
  transition: border-color var(--duration-normal) var(--ease-in-out);
}

.hero-card:hover { border-color: var(--accent-muted); }
.hero-card small { display: block; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-2); }
.hero-card p { color: var(--text-secondary); font-size: var(--text-base); line-height: var(--leading-relaxed); }
[data-theme="light"] .hero-card { background: rgba(255, 255, 255, 0.5); border-color: rgba(0, 0, 0, 0.04); }

/* IP 条 */
.ip-bar {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  padding: 10px var(--space-4);
  border: 1px dashed var(--accent-muted);
  border-radius: var(--radius-lg);
  background: var(--accent-muted);
}

.ip-row { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.ip-val { color: var(--accent); font-weight: 500; }

.ip-retry {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-in-out);
}

.ip-retry:hover { color: var(--accent); border-color: var(--accent); background: var(--bg-surface); }
.ip-retry:active { transform: scale(0.92); }
.ip-retry.loading { opacity: 0.6; cursor: wait; pointer-events: none; }
.ip-retry .spin { display: none; }
.ip-retry.loading .spin { display: inline-block; animation: spin 0.8s linear infinite; }
.ip-retry.loading .icon { display: none; }

/* 按钮 */
.hero-btns { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: flex-start; position: relative; z-index: var(--z-base); }

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px var(--space-6);
  min-height: 36px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  touch-action: manipulation;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn:active { transform: scale(0.96); }

.btn-primary { background: var(--accent); color: #111219; box-shadow: 0 10px 26px var(--accent-muted); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 32px var(--accent-glow); }

.btn-secondary { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-strong); color: var(--text-primary); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
[data-theme="light"] .btn-secondary { background: rgba(0, 0, 0, 0.01); border-color: rgba(0, 0, 0, 0.08); }
[data-theme="light"] .btn-secondary:hover { background: rgba(0, 0, 0, 0.03); border-color: rgba(126, 91, 35, 0.3); color: var(--amber-600); }

/* 点击涟漪 */
.btn .ripple, .page-tab .ripple, .m-btn .ripple, .nav-btn .ripple { position: absolute; pointer-events: none; }

/* ═══════════════════════════════════════
   Sections
   ═══════════════════════════════════════ */
.home-section { padding: var(--space-16) var(--space-6) var(--space-12); max-width: 1060px; margin: 0 auto; }
#contact { padding-bottom: 180px; }
#comments { padding-top: 0; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--text-primary);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.5;
}

/* ═══════════════════════════════════════
   Portfolio
   ═══════════════════════════════════════ */
.portfolio-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-5); }

.portfolio-item {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 172px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: var(--space-8) 22px;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  transition: border-color var(--duration-slow) var(--ease-out), box-shadow var(--duration-slow) var(--ease-out);
}

.portfolio-item:first-child { grid-row: span 2; }

.portfolio-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-muted), transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-in-out);
  pointer-events: none;
}

.portfolio-item:hover { border-color: rgba(215, 180, 106, 0.3); box-shadow: var(--shadow-card-hover), var(--shadow-glow); }
.portfolio-item:hover::before { opacity: 1; }
.portfolio-item:active { transform: scale(0.98); }

.portfolio-icon { font-size: 2.2rem; margin-bottom: var(--space-4); display: block; filter: saturate(0.75); transition: transform var(--duration-normal) var(--spring); }
.portfolio-item:hover .portfolio-icon { transform: scale(1.1) rotate(-3deg); }
.portfolio-item h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); font-weight: 600; letter-spacing: -0.02em; }
.portfolio-item p { color: var(--text-secondary); font-size: var(--text-base); line-height: 1.85; }

[data-theme="light"] .portfolio-item { background: rgba(255, 255, 255, 0.5); border-color: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .portfolio-item:hover { border-color: rgba(126, 91, 35, 0.25); }

/* ═══════════════════════════════════════
   Contact
   ═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
  grid-auto-rows: 80px;
  align-items: start;
}

.contact-item {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.01);
  padding: var(--space-4) 18px;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.contact-item:hover { border-color: rgba(215, 180, 106, 0.25); background: var(--accent-muted); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-item:active { transform: scale(0.97); }
.contact-item h3 { font-size: var(--text-sm); color: var(--accent); margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; letter-spacing: 0.02em; }
.contact-item p { font-size: var(--text-sm); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; margin: 0; }
.contact-item a { color: inherit; text-decoration: none; }
[data-theme="light"] .contact-item { background: rgba(255, 255, 255, 0.4); border-color: rgba(0, 0, 0, 0.03); }

/* 二维码 */
.qr-wrapper { display: flex; gap: var(--space-4); align-items: center; justify-content: center; grid-row: span 2; grid-column: span 2; }
.qr-item { display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; background: transparent; border: none; height: 100%; }
.qr-item img { border-radius: var(--radius-md); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md); object-fit: contain; transition: all var(--duration-normal) var(--ease-out); }
.qr-item:hover img { transform: translateY(-3px) scale(1.03); box-shadow: 0 15px 35px var(--accent-muted); }
.qr-item.wechat-qr { width: 145.25px; height: 198px; flex-shrink: 0; }
.qr-item.wechat-qr img { width: 145.25px; height: 198px; }
.qr-item.alipay-qr { width: 132px; height: 198px; flex-shrink: 0; }
.qr-item.alipay-qr img { width: 132px; height: 198px; }

/* ═══════════════════════════════════════
   留言板
   ═══════════════════════════════════════ */
.cmt-wrap { max-width: 640px; margin: 0 auto; padding: 0 var(--space-6) 60px; }

.cmt-form {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-7);
  box-shadow: var(--shadow-card);
}

.cmt-row { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); }

.cmt-row input,
.cmt-form textarea {
  flex: 1;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: var(--text-base);
  outline: none;
  transition: all var(--duration-fast) var(--ease-in-out);
}

.cmt-row input:focus,
.cmt-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); background: rgba(0, 0, 0, 0.2); }

.cmt-form textarea { width: 100%; height: 80px; resize: vertical; margin-bottom: var(--space-2); }
[data-theme="light"] .cmt-row input, [data-theme="light"] .cmt-form textarea { background: rgba(255, 255, 255, 0.8); border-color: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .cmt-row input:focus, [data-theme="light"] .cmt-form textarea:focus { background: #fff; }

.cmt-submit {
  position: relative;
  overflow: hidden;
  display: block;
  margin-left: auto;
  background: var(--accent);
  color: #111219;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px var(--space-7);
  font-size: var(--text-base);
  font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-muted);
  transition: all var(--duration-normal) var(--ease-out);
}

.cmt-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); filter: brightness(1.08); }
.cmt-submit:active { transform: scale(0.95); }
.cmt-msg { font-size: var(--text-sm); margin-top: var(--space-2); min-height: 18px; }

.cmt-list { display: flex; flex-direction: column; gap: var(--space-3); }

.cmt-item {
  position: relative;
  display: flex;
  gap: var(--space-3);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4) 36px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: border-color var(--duration-normal) var(--ease-in-out), box-shadow var(--duration-normal) var(--ease-in-out);
}

.cmt-item:hover { border-color: rgba(215, 180, 106, 0.2); box-shadow: var(--shadow-glow); }
.cmt-avatar { width: 38px; height: 38px; border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: var(--text-base); flex-shrink: 0; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); overflow: hidden; }
.cmt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmt-body { flex: 1; min-width: 0; }
.cmt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: var(--space-2); }
.cmt-nick { font-weight: 600; font-size: var(--text-base); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmt-time { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-secondary); flex-shrink: 0; }
.cmt-del { position: absolute; bottom: var(--space-2); right: var(--space-3); padding: 10px; border-radius: var(--radius-sm); color: var(--text-secondary); line-height: 0; transition: color var(--duration-fast), background var(--duration-fast); }
.cmt-del:active { color: var(--red-500); }
.cmt-content { font-size: var(--text-base); color: var(--text-secondary); line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
.cmt-content.clamped { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.cmt-expand { color: var(--accent); font-size: var(--text-sm); padding: 10px 0; margin-top: 10px; transition: opacity var(--duration-fast); }
.cmt-expand:hover { opacity: 0.8; }
.cmt-empty { text-align: center; color: var(--text-secondary); padding: var(--space-6); font-size: var(--text-base); }

.cmt-pager { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); }
.cmt-page { background: var(--bg-elevated); border: 1px solid var(--border-default); color: var(--text-primary); width: 32px; height: 32px; border-radius: var(--radius-sm); font-size: var(--text-base); display: flex; align-items: center; justify-content: center; transition: all var(--duration-fast) var(--ease-in-out); }
.cmt-page:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.cmt-page:active:not([disabled]) { background: var(--accent); color: #fff; }
.cmt-page[disabled] { opacity: 0.3; cursor: default; }


/* ═══════════════════════════════════════
   响应式断点
   ═══════════════════════════════════════ */
@media (min-width: 1200px) {
  .page { max-width: 1100px; }
  .home-section { max-width: 1060px; padding: 56px var(--space-6) var(--space-10); }
  .hero { padding: var(--space-12) var(--space-8) var(--space-8); }
  .hero h1 { font-size: 3rem; }
  .hero-bio { font-size: var(--text-md); max-width: 560px; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1400px) {
  .page { max-width: 1200px; }
  .home-section { max-width: 1160px; }
  .hero h1 { font-size: 3.2rem; }
  .contact-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 66px; }
  .contact-item { min-height: 66px; padding: 10px var(--space-3); }
  .qr-wrapper { grid-row: span 2; }
  .contact-item.wechat-qr { width: 130px; height: 180px; }
  .contact-item.wechat-qr img { width: 130px; height: 180px; }
  .contact-item.alipay-qr { width: 120px; height: 180px; }
  .contact-item.alipay-qr img { width: 120px; height: 180px; }
}

@media (max-width: 480px) {
  .contact-grid { grid-auto-rows: 62px; gap: var(--space-2); }
  .contact-item { min-height: 62px; padding: var(--space-2) var(--space-3); }
  .contact-item h3 { font-size: var(--text-sm); }
  .contact-item p { font-size: var(--text-xs); }
  .contact-item.wechat-qr { width: 110px; height: 160px; }
  .contact-item.wechat-qr img { width: 110px; height: 160px; }
  .contact-item.alipay-qr { width: 100px; height: 160px; }
  .contact-item.alipay-qr img { width: 100px; height: 160px; }
}