/* ==========================================================================
   数字群岛 · 岛主个人门户 - 核心组件与板块样式 (components.css)
   ========================================================================== */

/* ── 1. 浮动毛玻璃胶囊导航 (Floating Island Header) ── */
.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 90;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-line);
  border-radius: 9999px;
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease-smooth);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.98rem;
}

.brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 10px var(--brand-glow);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid var(--bg-secondary);
  box-shadow: 0 0 6px #22c55e;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link {
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary);
  background: var(--brand-primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Day/Night Switcher (Rico UI Exact Replica) */
.theme-toggle-btn {
  position: relative;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 3px 10px 3px 5px;
  gap: 6px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-primary);
  transform: scale(1.04);
}

.toggle-icon-sphere {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, #D4883A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(180, 90, 60, 0.35);
  transition: transform 0.4s var(--ease-spring);
}

.theme-toggle-btn:hover .toggle-icon-sphere {
  transform: rotate(18deg);
}

.toggle-icon-sphere svg {
  width: 14px;
  height: 14px;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px -2px var(--brand-glow);
  transition: all 0.25s ease;
}

.nav-cta-btn:hover {
  background: var(--brand-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -2px var(--brand-glow);
}

/* ── 2. Hero 叙事与展示展台 (Hero Grid) ── */
.hero-section {
  padding-top: clamp(110px, 15vh, 160px);
  padding-bottom: clamp(60px, 9vh, 90px);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5.5vw, 68px);
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
  color: var(--text-primary);
}

.hero-role-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--brand-primary);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero-role-tags span {
  padding: 3px 12px;
  border-radius: 9999px;
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
}

.hero-title em {
  font-style: normal;
  color: var(--brand-primary);
  position: relative;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.hero-motto {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-muted);
  border-left: 3px solid var(--brand-primary);
  padding-left: 16px;
  margin-bottom: 2rem;
  background: linear-gradient(90deg, var(--brand-primary-soft) 0%, transparent 80%);
  padding-top: 6px;
  padding-bottom: 6px;
  border-radius: 0 8px 8px 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

/* ── 右侧展台：Rico 风格 Figma 角标 + 视觉画幅与浮动工具件 ── */
.showcase-wrapper {
  position: relative;
  width: 100%;
}

.hero-showcase-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
  border: 2px solid var(--border-line);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  padding: 12px;
}

.hero-poster-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #1f1a17 0%, #0d121c 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hero-poster-canvas img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.8s var(--ease-smooth);
}

.hero-showcase-card:hover .hero-poster-canvas img {
  transform: scale(1.04);
}

.hero-canvas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 23, 0.92) 0%, rgba(10, 14, 23, 0.4) 50%, transparent 100%);
  z-index: 2;
}

/* Rico UI 标志性的浮动磨砂工具组件 (Floating Glass Badges) */
.floating-tool-badge {
  position: absolute;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

html.dark .floating-tool-badge {
  background: rgba(17, 24, 39, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.5);
}

.floating-tool-badge.pos-top-left {
  top: 24px;
  left: -20px;
}

.floating-tool-badge.pos-mid-right {
  top: 48%;
  right: -24px;
}

.floating-tool-badge:hover {
  transform: translateY(-3px) scale(1.02);
}

/* 浮动波形图组件 */
.floating-wave-tool {
  width: 210px;
}

.floating-wave-tool .tool-title {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: var(--brand-primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.floating-wave-tool svg {
  width: 100%;
  height: 28px;
}

/* 展台底部叙事卡 */
.hero-canvas-footer {
  position: relative;
  z-index: 10;
  color: #FFFFFF;
}

.hero-canvas-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-canvas-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-mono);
}

/* ── 3. 群岛生态 Bento Grid (Ecosystem Hub) ── */
.ecosystem-section {
  padding: clamp(65px, 10vh, 100px) 0;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 26px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 26px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease-smooth);
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Bento 跨度 */
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

.bento-media-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.bento-media-wrap.aspect-widescreen {
  aspect-ratio: 16 / 9;
}

.bento-media-wrap.aspect-square {
  aspect-ratio: 1 / 1;
}

.bento-media-wrap.aspect-banner {
  aspect-ratio: 21 / 9;
}

.bento-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth);
}

.bento-card:hover .bento-media-img {
  transform: scale(1.05);
}

/* Rico UI 标志性的居中悬停放大按钮 (Center Hover Play Button) */
.center-hover-action {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 15;
}

.center-hover-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(10px) scale(0.9);
  transition: all 0.35s var(--ease-spring);
}

.bento-card:hover .center-hover-action {
  opacity: 1;
}

.bento-card:hover .center-hover-circle {
  transform: translateY(0) scale(1.08);
}

.center-hover-circle svg {
  width: 20px;
  height: 20px;
}

/* 45° 悬停角标圆标 */
.hover-arrow-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-spring);
  z-index: 20;
}

.bento-card:hover .hover-arrow-badge {
  background: var(--brand-primary);
  color: #FFFFFF;
  transform: rotate(45deg) scale(1.1);
  border-color: var(--brand-primary);
}

.bento-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.bento-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.bento-card:hover .bento-title {
  color: var(--brand-primary);
}

.bento-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 18px;
}

.bento-link-action {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bento-link-action svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.bento-card:hover .bento-link-action svg {
  transform: translateX(4px);
}

/* ── 4. 履历主线与思维模型 (4 Milestones from Master Portfolio) ── */
.milestones-section {
  padding: clamp(65px, 10vh, 100px) 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-tertiary) 50%, transparent 100%);
}

.milestones-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.milestone-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 22px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.milestone-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.milestone-num {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  -webkit-text-stroke: 1.5px var(--brand-primary);
  color: transparent;
}

.milestone-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.milestone-body .milestone-sub {
  font-size: 0.82rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 10px;
}

.milestone-body p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 5. 最近在做什么 (Now / Changelog from v2) ── */
.now-section {
  padding: clamp(60px, 9vh, 90px) 0;
}

.now-container {
  max-width: 900px;
  margin: 0 auto;
}

.now-list {
  list-style: none;
  border-top: 1px solid var(--border-line);
}

.now-item {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--border-line);
  transition: background-color 0.25s ease;
}

.now-item:hover {
  background: var(--brand-primary-soft);
}

.now-date {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-primary);
  flex: 0 0 100px;
}

.now-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.7;
  flex: 1;
}

.now-link {
  color: var(--brand-primary);
  font-weight: 600;
  margin-left: 6px;
  border-bottom: 1px dashed var(--brand-primary);
}

/* ── 6. 代表作战绩池 (Selected Works Grid) ── */
.works-section {
  padding: clamp(65px, 10vh, 100px) 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-smooth);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-card:hover .work-media img {
  transform: scale(1.05);
}

.work-company-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.work-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.work-card:hover .work-title {
  color: var(--brand-primary);
}

.work-role {
  font-size: 0.85rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 12px;
}

.work-metrics-box {
  background: var(--brand-primary-soft);
  border: 1px solid var(--brand-primary-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 14px;
}

.work-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── 6.5 独立街机与游戏群岛 (Arcade Games Section) ── */
.games-section {
  padding: clamp(65px, 10vh, 100px) 0;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.game-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-media img {
  transform: scale(1.08);
}

.game-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.game-subtitle {
  font-size: 0.78rem;
  color: var(--brand-primary);
  font-family: var(--font-mono);
  margin-bottom: 8px;
  font-weight: 600;
}

.game-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.game-link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── 6.8 我是谁与人文小岛 (About & Humanist Island) ── */
.about-section {
  padding: clamp(65px, 10vh, 100px) 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-tertiary) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.about-pill {
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.about-pill:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-2px);
}

.about-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.about-card-box blockquote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-style: italic;
  border-left: 3px solid var(--brand-primary);
  padding-left: 16px;
  margin-bottom: 16px;
}

/* ── 7. 今日日刊与手记 (Writing Grid) ── */
.writing-section {
  padding: clamp(65px, 10vh, 100px) 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-tertiary) 50%, transparent 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-md);
}

.article-media {
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-media img {
  transform: scale(1.05);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-family: var(--font-mono);
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text-primary);
  margin-bottom: 8px;
  transition: color 0.25s ease;
}

.article-card:hover .article-title {
  color: var(--brand-primary);
}

.article-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.article-card:hover .article-link svg {
  transform: translateX(4px);
}

/* ── 8. 喝杯咖啡与联系模态弹窗 (Contact & Modal) ── */
.contact-section {
  padding: clamp(75px, 12vh, 130px) 0;
  text-align: center;
  position: relative;
  background: radial-gradient(100% 70% at 50% 100%, var(--brand-glow) 0%, transparent 70%);
}

.coffee-cup-art {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  position: relative;
}

.contact-card-box {
  max-width: 620px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-line);
  border-radius: 26px;
  padding: 38px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.channel-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.channel-btn:hover {
  border-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--brand-primary);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand-primary-soft);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

/* 模态弹窗 (Modal) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 23, 0.75);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-line);
  border-radius: 26px;
  max-width: 580px;
  width: 100%;
  padding: 38px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-spring);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* ── 9. 页脚 (Footer) ── */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ── 响应式适配 (Responsive) ── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-role-tags {
    justify-content: center;
  }
  .hero-actions, .social-list {
    justify-content: center;
  }
  .hero-motto {
    border-left: none;
    border-top: 3px solid var(--brand-primary);
    padding-left: 0;
    padding-top: 10px;
  }
  .bento-card.col-8, .bento-card.col-4, .bento-card.col-6 {
    grid-column: span 12;
  }
  .milestones-grid, .works-grid, .articles-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .contact-channels {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}
