/* ============ 设计变量：浅蓝 + 白 主题 ============ */
:root {
  --bg: #f5f9ff;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #0f1f3d;
  --text-soft: #4b5b78;
  --text-muted: #8092ad;
  --border: #e1ecff;
  --border-strong: #c9dcff;

  --primary: #3b82f6;
  --primary-600: #2563eb;
  --primary-100: #dbeafe;
  --primary-50: #eff6ff;
  --accent: #06b6d4;

  --shadow-sm: 0 1px 2px rgba(15, 31, 61, 0.05);
  --shadow-md: 0 4px 16px rgba(59, 130, 246, 0.08);
  --shadow-lg: 0 12px 40px rgba(59, 130, 246, 0.14);

  /* 作品集大卡：浅蓝描边 + 柔光外晕（避免灰黑投影） */
  --portfolio-card-border: #e8f0fe;
  --portfolio-card-border-hover: #d4e4ff;
  --portfolio-card-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 36px rgba(198, 214, 255, 0.48),
    0 2px 10px rgba(165, 188, 240, 0.2);
  --portfolio-card-shadow-hover:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 14px 44px rgba(185, 205, 255, 0.55),
    0 4px 16px rgba(140, 170, 245, 0.24);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1100px;

  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

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

.hl {
  color: var(--primary-600);
  font-weight: 600;
}

/* ============ 顶部导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 0 4px var(--primary-50);
}

.nav__links {
  display: flex;
  gap: 24px;
}

.nav__links a {
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  transition: color .2s ease;
}

.nav__links a:hover { color: var(--primary-600); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.nav__cta:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.35);
}

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.blob--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #bfdbfe 0%, transparent 70%);
  top: -140px; right: -120px;
}

.blob--2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, #cffafe 0%, transparent 70%);
  bottom: -120px; left: -80px;
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 56px;
}

@media (max-width: 760px) {
  .hero { padding: 64px 0 56px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    justify-items: center;
  }
}

.hero__avatar {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.avatar-ring {
  width: 168px; height: 168px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 180deg, var(--primary), var(--accent), #a5b4fc, var(--primary));
  box-shadow: var(--shadow-lg);
}

/* 保留给其他可能的圆形用法；首屏已改用下方方形头像 */

.avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe, #ffffff 60%, #cffafe);
  display: flex; align-items: center; justify-content: center;
  border: 4px solid #fff;
}

.avatar__text {
  font-size: 64px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

.status-pill {
  position: relative;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-pill);
}

.status-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  animation: pulse 2s ease-in-out infinite;
}
.status-dot--sm { width: 6px; height: 6px; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18); }

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.hero__hello {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero__name {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #0f1f3d 0%, var(--primary-600) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__tagline {
  margin: 0 0 22px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-soft);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

@media (max-width: 760px) {
  .hero__meta { justify-content: center; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

.chip__icon { font-size: 14px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 760px) {
  .hero__actions { justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  border: 1px solid transparent;
}

.btn--lg {
  height: 50px;
  padding: 0 24px;
  font-size: 16px;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.32);
}

.btn--primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.38);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  border-color: var(--primary);
  color: var(--primary-600);
}

.btn--sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary-600);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ============ Section 通用 ============ */
.section {
  padding: 88px 0;
}

.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section__eyebrow {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--primary-600);
  background: var(--primary-50);
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.section__title {
  margin: 14px 0 8px;
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.inline-link {
  color: var(--primary-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.inline-link:hover { color: var(--primary); }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

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

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.card:hover::before { opacity: 1; }

.card__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--primary-50);
  border-radius: 12px;
  margin-bottom: 16px;
}

.card__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.card__text {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ============ 兴趣 ============ */
.interests {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .interests { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .interests { grid-template-columns: repeat(2, 1fr); }
}

.interest {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 12px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.interest:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.interest__emoji { font-size: 30px; margin-bottom: 6px; }

.interest__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ============ 生活篇入口 ============ */
.outtake {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 14px 18px;
  padding: 18px 22px;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.outtake:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.outtake__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.outtake__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text);
  line-height: 1;
}
.outtake__desc {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.outtake__go {
  font-size: 20px;
  color: var(--primary-600);
  transition: transform .2s ease;
}
.outtake:hover .outtake__go { transform: translateX(3px); }

.outtake--side {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  grid-template-columns: auto 1fr auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.outtake--side .outtake__title { font-size: 15px; font-weight: 600; }
.outtake--side .outtake__desc { font-size: 12.5px; }
.outtake--side:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.outtake--side:hover .outtake__title { color: var(--primary-600); }

@media (max-width: 640px) {
  .outtake {
    grid-template-columns: auto 1fr auto;
    gap: 8px 12px;
  }
  .outtake__eyebrow { grid-column: 1 / -1; }
  .outtake__desc { grid-column: 1 / -1; }
}

/* ============ 数字分身：个人简介卡 ============ */
.twin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 24px;
  /* start：左右两栏外卡顶边对齐 */
  align-items: start;
  /* 右侧聊天区高度：桌面由 script 同步为侧栏 offsetHeight；无 JS 时回退为下列值 */
  --twin-h: clamp(420px, min(78vh, calc(100dvh - 200px)), 760px);
}

.twin-layout--single {
  grid-template-columns: 1fr;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
}

@media (max-width: 960px) {
  .twin-layout:not(.twin-layout--single) {
    grid-template-columns: 1fr;
    gap: 12px;
    /* 略减聊天区高度，为上方简介腾出可视空间 */
    --twin-h: clamp(260px, min(36dvh, calc(100dvh - 260px)), 440px);
  }
}

.profile--sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: fit-content;
  position: sticky;
  top: 72px;
}

@media (max-width: 960px) {
  .profile--sidebar { position: static; }
}

/* 双栏布局：侧栏随内容增高；右侧高度见 --twin-h（桌面与侧栏同步） */
.twin-layout .profile--sidebar {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  top: auto;
  align-self: start;
  margin: 0;
}

/* 主页「数字分身」：移动端压缩 */
@media (max-width: 960px) {
  .twin-section.section {
    padding-top: 32px;
    padding-bottom: max(56px, calc(env(safe-area-inset-bottom, 0px) + 40px));
  }

  .twin-section .section__head {
    margin-bottom: 12px;
  }

  .twin-section .profile--sidebar {
    padding: 14px 18px;
    gap: 10px;
  }

  .twin-section .avatar-ring--square {
    width: 68px;
    height: 68px;
    border-radius: 18px;
  }

  .twin-section .profile__head {
    gap: 12px;
  }

  .twin-section .profile__name {
    font-size: 20px;
  }

  .twin-section .profile__tagline {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 6px;
  }

  .twin-section .info-cards {
    gap: 8px;
  }

  .twin-section .info-card {
    padding: 10px 12px;
  }

  .twin-section .info-card__eyebrow {
    margin-bottom: 2px;
  }

  .twin-section .info-card__title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .twin-section .info-card__text {
    font-size: 12px;
    line-height: 1.45;
  }

  .twin-section .interest-tags {
    gap: 5px;
  }

  .twin-section .i-tag {
    font-size: 11px;
    padding: 2px 7px;
  }

  .twin-section .chips {
    gap: 5px;
  }

  .twin-section .chip {
    padding: 4px 9px;
    font-size: 12px;
  }

  .twin-section .chip__icon {
    font-size: 13px;
  }

  .twin-section .chat__header {
    padding: 12px 14px;
  }

  .twin-section .chat__messages {
    padding: 12px 14px;
  }

  .twin-section .chat__suggestions {
    padding: 8px 14px;
    gap: 6px;
  }

  .twin-section .suggestion {
    font-size: 12px;
    padding: 5px 10px;
  }

  .twin-section .chat__input {
    padding: 10px 14px 12px;
  }

  .twin-section .chat__input input {
    height: 42px;
    font-size: 14px;
  }

  .twin-section .send-btn {
    width: 42px;
    height: 42px;
  }

  .twin-section .chat__tip {
    font-size: 11px;
    padding: 8px 14px 10px;
  }
}

@media (max-width: 520px) {
  .twin-section .section__subtitle {
    display: none;
  }

  /* 底部标签与聊天提示在极窄屏省略，缩短总高度 */
  .twin-section .chips {
    display: none;
  }

  .twin-section .chat__tip {
    display: none;
  }

  .twin-section .profile__badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}

.profile__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
}

.profile__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-ring--square {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 22px rgba(59, 130, 246, 0.22);
  flex-shrink: 0;
}

.avatar-ring--square.avatar-ring--hero {
  width: 168px;
  height: 168px;
  border-radius: 24px;
  padding: 4px;
  box-shadow: var(--shadow-lg);
}

.avatar-ring--hero .avatar.avatar--square {
  border-radius: 20px;
}

.avatar--square {
  width: 100%;
  height: 100%;
  border-radius: 19px;
  border-width: 2px;
}

.avatar.avatar--photo {
  padding: 0;
  overflow: hidden;
  background: #f1f5f9;
}

.avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.avatar.avatar--square {
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar__text--sm {
  font-size: 38px;
}

.profile__head-text {
  flex: 1;
  min-width: 0;
}

.profile__name {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #0f1f3d 0%, var(--primary-600) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile__tagline {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}

.profile--sidebar .status-pill {
  margin-top: 0;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-card {
  background: linear-gradient(180deg, #fafcff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.info-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.info-card__eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--primary-600);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-card__title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.info-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-soft);
}

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.i-tag {
  font-size: 12px;
  padding: 3px 9px;
  background: var(--primary-50);
  color: var(--primary-600);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
}

.profile--sidebar .chips {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  row-gap: 8px;
  overflow: visible;
}

.profile--sidebar .chips .chip {
  flex-shrink: 0;
  white-space: nowrap;
}

.twin-chat-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.twin-layout .twin-chat-wrap {
  height: var(--twin-h);
  min-height: var(--twin-h);
  max-height: var(--twin-h);
  align-self: start;
  margin: 0;
}

/* 双栏：聊天卡与左侧简介卡同级阴影；消息区内滚动不变 */
.twin-chat-wrap .chat--twin-col {
  box-shadow: var(--shadow-md);
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

.chat--twin-col .chat__messages {
  /* 1 1 0：占满头部/输入区之外的剩余高度，保证可滚动 */
  flex: 1 1 0;
  min-height: 0;
  height: unset;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ============ 聊天组件（独立页）=========== */
.chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: linear-gradient(135deg, var(--primary-50), #ffffff);
  border-bottom: 1px solid var(--border);
}

.chat__who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
  flex-shrink: 0;
}

.chat__avatar--photo {
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.22);
}

.chat__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.chat__name { font-weight: 600; font-size: 15px; }

.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.chat__clear {
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all .2s ease;
}

.chat__clear:hover {
  color: #ef4444;
  background: #fef2f2;
  border-color: #fecaca;
}

.chat__messages {
  padding: 22px;
  height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(circle at 20% 0%, rgba(59,130,246,0.04), transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(6,182,212,0.04), transparent 40%);
}

.chat__messages::-webkit-scrollbar { width: 6px; }
.chat__messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 6px;
}

.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 85%;
  animation: fadeUp .3s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; flex-direction: row-reverse; }

.msg__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg__avatar.msg__avatar--photo {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--border-strong);
}

.msg__avatar.msg__avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.msg--user .msg__avatar.msg__avatar--user {
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.22);
}

.msg__avatar.msg__avatar--user svg {
  width: 100%;
  height: 100%;
  display: block;
}

.msg--user .msg__avatar.msg__avatar--photo {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.msg__bubble {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg--bot .msg__bubble {
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.msg--user .msg__bubble {
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.msg__card {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

.msg__card-title {
  font-weight: 600;
  color: var(--primary-600);
  margin-bottom: 6px;
}

.msg__card-row {
  color: var(--text-soft, var(--text));
}

.msg__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.msg__card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--primary-600);
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
}

.msg__card-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.msg__card-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.msg__card-btn--primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
}

.typing span {
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: blink 1.4s infinite both;
}
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #fafcff;
  border-top: 1px solid var(--border);
}

.chat__suggestions-label {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-right: 4px;
}

.suggestion {
  padding: 6px 12px;
  font-size: 13px;
  color: var(--primary-600);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  transition: all .2s ease;
}

.suggestion:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.chat__input {
  display: flex;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.chat__input input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.chat__input input::placeholder { color: var(--text-muted); }

.chat__input input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-50);
}

.send-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.32);
  transition: transform .15s ease, background .2s ease;
}

.send-btn:hover { background: var(--primary-600); transform: translateY(-1px); }
.send-btn:active { transform: translateY(0); }

.chat__tip {
  margin: 0;
  padding: 0 22px 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* 独立聊天页：消息区固定高度，卡片随内容收紧，避免底部大块留白 */
.chat--standalone .chat__messages {
  flex: 0 0 auto;
  height: 300px;
  min-height: 200px;
  max-height: min(42vh, 400px);
}

@media (max-width: 640px) {
  /* 双栏聊天由父级固定高度 + 消息区 flex 滚动，避免此处覆盖高度 */
  .chat:not(.chat--standalone):not(.chat--twin-col) .chat__messages {
    height: 380px;
  }
  .chat--standalone .chat__messages {
    height: 240px;
    max-height: 38vh;
  }
  .chat__messages { padding: 16px; }
  .chat__header,
  .chat__suggestions,
  .chat__input,
  .chat__tip { padding-left: 16px; padding-right: 16px; }
}

/* ============ 独立聊天页 ============ */
body.chat-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.chat-page__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.chat-page__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.chat-page__main {
  padding: 24px 0 40px;
}

/* 独立标签页：聊天区高度与主页一致；侧栏随内容增高无内滚条，--twin-h 略扣顶栏 */
.chat-page .chat-page__twin.twin-layout {
  --twin-h: clamp(420px, min(78vh, calc(100dvh - 108px)), 760px);
  align-items: start;
}

@media (max-width: 960px) {
  .chat-page .chat-page__twin.twin-layout {
    --twin-h: clamp(360px, min(82vh, calc(100dvh - 88px)), 680px);
  }

  .chat-page__twin .profile--sidebar {
    padding: 14px 18px;
  }
}

.chat-page__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-600);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, background .2s ease, color .2s ease,
    box-shadow .2s ease, transform .15s ease;
}

.chat-page__back:hover {
  border-color: var(--primary);
  background: var(--primary-50);
  color: var(--primary-600);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  text-decoration: none;
}

.chat-page__back-arrow {
  font-size: 15px;
  line-height: 1;
}

.chat-page__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.chat--standalone {
  min-height: 0;
}

/* ============ 作品集 ============ */
.portfolio-piece {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 32px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: var(--surface);
  border: 1px solid var(--portfolio-card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--portfolio-card-shadow);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-piece:hover {
  border-color: var(--portfolio-card-border-hover);
  box-shadow: var(--portfolio-card-shadow-hover);
}

.portfolio-piece--showcase {
  max-width: 1040px;
  padding: 32px 36px 36px;
  gap: 36px 40px;
  grid-template-columns: 1fr minmax(300px, 42%);
  box-shadow: var(--portfolio-card-shadow);
}

.portfolio-piece--showcase:hover {
  border-color: var(--portfolio-card-border-hover);
  box-shadow: var(--portfolio-card-shadow-hover);
}

.portfolio-piece--showcase .portfolio-piece__main {
  min-width: 0;
}

.portfolio-piece--showcase .portfolio-piece__title {
  font-size: clamp(22px, 2.4vw, 24px);
  margin-bottom: 12px;
}

.portfolio-piece--showcase .portfolio-piece__list {
  margin-bottom: 0;
}

.portfolio-piece--showcase .portfolio-showcase__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  align-self: stretch;
  height: 100%;
}

.portfolio-piece--showcase .portfolio-showcase__col > .portfolio-mock {
  flex: 1 1 auto;
  min-height: 0;
}

.portfolio-piece--showcase .portfolio-mock {
  padding: 18px 16px 16px;
  gap: 16px;
  background: #eef4ff;
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.portfolio-piece--showcase .portfolio-mock:hover {
  transform: translateY(-1px);
  border-color: #c9dcff;
  box-shadow:
    0 8px 28px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.portfolio-piece--showcase .portfolio-mock__chrome {
  padding-bottom: 14px;
  border-bottom-color: rgba(225, 236, 255, 0.95);
}

.portfolio-piece--showcase .portfolio-mock__dots {
  background: #f87171;
  box-shadow: 14px 0 0 #fbbf24, 28px 0 0 #4ade80;
}

.portfolio-piece--showcase .portfolio-mock__kpi {
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(15, 31, 61, 0.06);
}

.portfolio-piece--showcase .portfolio-mock__panel {
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(15, 31, 61, 0.06);
}

.portfolio-piece--showcase .portfolio-showcase__cta {
  margin-top: 22px;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 0 26px;
  font-size: 15px;
}

.portfolio-piece + .portfolio-piece {
  margin-top: 28px;
}

.portfolio-piece.portfolio-piece--lab {
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1040px;
}

.portfolio-piece--lab-pro .portfolio-lab-frame {
  margin: 0;
}

.portfolio-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.88em;
  padding: 0.1em 0.38em;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--primary-600);
  word-break: break-all;
}

.portfolio-lab-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #0a0218;
  min-height: min(52vh, 560px);
}

.portfolio-lab-frame--pro {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 16px 48px rgba(15, 31, 61, 0.12);
  background: linear-gradient(165deg, #0f172a 0%, #020617 40%, #0c1929 100%);
  aspect-ratio: 16 / 10;
  min-height: min(52vh, 560px);
  max-height: min(72vh, 780px);
}

.portfolio-lab-frame__iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(50vh, 480px);
  border: 0;
  background: #000;
  border-radius: inherit;
}

@media (max-width: 900px) {
  .portfolio-lab-frame--pro {
    aspect-ratio: 4 / 3;
    min-height: 42vh;
    max-height: min(68vh, 640px);
  }

  .portfolio-lab-frame__iframe {
    min-height: 42vh;
  }

  .portfolio-piece {
    grid-template-columns: 1fr;
    padding: 22px 20px 24px;
  }
}

.portfolio-piece__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.portfolio-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-600);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.portfolio-piece__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.portfolio-piece__title--with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.portfolio-title-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
}

.portfolio-title-icon svg {
  display: block;
  width: 42px;
  height: 42px;
  overflow: visible;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
}

.portfolio-piece:hover .portfolio-title-icon svg {
  transform: translateY(-1px) scale(1.03);
  transition: transform 0.22s ease, filter 0.22s ease;
  filter: drop-shadow(0 14px 24px rgba(15, 23, 42, 0.16));
}

.portfolio-piece__lead {
  margin: 0 0 16px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.portfolio-piece__list {
  margin: 0 0 22px;
  padding-left: 1.15rem;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.portfolio-piece__list li + li {
  margin-top: 6px;
}

.portfolio-piece__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.portfolio-mock {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--primary-50) 0%, var(--surface) 45%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

a.portfolio-mock:hover {
  color: inherit;
}

.portfolio-mock:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.portfolio-mock__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.portfolio-mock__dots {
  width: 8px;
  height: 8px;
  margin-right: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  box-shadow: 14px 0 0 #e2e8f0, 28px 0 0 #e2e8f0;
  flex-shrink: 0;
}

.portfolio-mock__title {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.portfolio-mock__kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.portfolio-mock__kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow-sm);
}

.portfolio-mock__kpi-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.portfolio-mock__kpi-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.portfolio-mock__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 400px) {
  .portfolio-mock__row {
    grid-template-columns: 1fr;
  }
}

.portfolio-mock__panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 108px;
  box-shadow: var(--shadow-sm);
}

.portfolio-mock__panel-h {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.portfolio-mock__bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 56px;
  padding-top: 4px;
}

.portfolio-mock__bars span {
  flex: 1;
  min-width: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  height: var(--h, 40%);
  opacity: 0.85;
}

.portfolio-mock__agents {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--text-soft);
}

.portfolio-mock__agents > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.portfolio-mock__agents em {
  font-style: normal;
  font-weight: 600;
  color: var(--primary-600);
  white-space: nowrap;
}

.portfolio-mock__agent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.portfolio-mock__st {
  font-weight: 600;
  color: var(--primary-600);
  white-space: nowrap;
}

.portfolio-mock--violet {
  background: #f5f3ff;
}

.portfolio-mock--violet:hover {
  border-color: #ddd6fe;
  box-shadow:
    0 8px 28px rgba(124, 58, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.portfolio-mock--violet .portfolio-mock__chrome {
  border-bottom-color: rgba(221, 214, 254, 0.95);
}

.portfolio-mock--violet .portfolio-mock__agents em {
  color: #7c3aed;
}

.portfolio-mock__bars--violet span {
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%);
}

.portfolio-mock--ocean {
  background: #eef6ff;
}

.portfolio-mock--ocean:hover {
  border-color: #c7deff;
  box-shadow:
    0 8px 28px rgba(0, 113, 227, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.portfolio-mock--ocean .portfolio-mock__chrome {
  border-bottom-color: rgba(199, 222, 255, 0.95);
}

.portfolio-mock--ocean .portfolio-mock__agents em {
  color: #0071e3;
}

.portfolio-mock--growth {
  background: #eefaf7;
}

.portfolio-mock--growth:hover {
  border-color: #bce9df;
  box-shadow:
    0 8px 28px rgba(20, 184, 166, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.portfolio-mock--growth .portfolio-mock__chrome {
  border-bottom-color: rgba(188, 233, 223, 0.95);
}

.portfolio-mock--growth .portfolio-mock__agents em {
  color: #0f766e;
}

.portfolio-mock__bars--growth span {
  background: linear-gradient(180deg, #5eead4 0%, #0f766e 100%);
}

/* ============ 联系方式 ============ */
.contact {
  padding: 60px 0 32px;
  background: var(--bg);
}

.contact__card {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-50) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.contact__head {
  text-align: center;
  margin-bottom: 28px;
}

.contact__title {
  margin: 12px 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.contact__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.contact__items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .contact__items { grid-template-columns: 1fr; }
  .contact__card { padding: 28px 22px; }
}

.contact__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

a.contact__item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.contact__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.28);
}

.contact__body { min-width: 0; }

.contact__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}

/* ============ 页脚 ============ */
.footer {
  padding: 28px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer__links a:hover { color: var(--primary-600); }

@media (max-width: 480px) {
  .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
}
