/* ============================================================
   Dubai 个人网站
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- CSS 变量 ---------- */
:root {
  /* 淡蓝色调 */
  --color-bg: #F0F4FA;
  --color-bg-alt: #E3EBF6;
  --color-surface: #FFFFFF;
  --color-primary: 59, 130, 246;
  --color-primary-hex: #3B82F6;
  --color-accent: 239, 68, 68;
  --color-accent-hex: #EF4444;
  --color-text: #1A1A2E;
  --color-text-secondary: #6B6B7B;
  --color-text-muted: #9C9CAD;
  --color-border: #DDE5F0;
  --color-border-strong: #C5D2E4;
  --color-shadow: rgba(26, 26, 46, 0.08);
  --color-shadow-strong: rgba(26, 26, 46, 0.14);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;

  --font-display: 'DM Serif Display', 'Noto Serif SC', 'SimSun', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --navbar-height: 68px;

  /* 流体排版 - 在不同屏幕自动缩放 */
  --fs-hero: clamp(2rem, 5vw, 4.2rem);
  --fs-section-title: clamp(1.6rem, 3.2vw, 2.4rem);
  --fs-card-title: clamp(1.2rem, 2.5vw, 1.8rem);
  --fs-body: clamp(0.85rem, 1.4vw, 1.08rem);
  --fs-small: clamp(0.75rem, 1.1vw, 0.9rem);
  --fs-xs: clamp(0.7rem, 1vw, 0.8rem);

  /* 容器内边距 */
  --container-padding: clamp(16px, 4vw, 40px);
  --section-gap: clamp(36px, 5vw, 90px);
}

[data-theme="dark"] {
  --color-bg: #0C0C1A;
  --color-bg-alt: #13132A;
  --color-surface: #1A1A35;
  --color-primary: 129, 140, 248;
  --color-primary-hex: #818CF8;
  --color-accent: 248, 113, 113;
  --color-accent-hex: #F87171;
  --color-text: #E8E8F0;
  --color-text-secondary: #A0A0B8;
  --color-text-muted: #6A6A80;
  --color-border: #252545;
  --color-border-strong: #353560;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-shadow-strong: rgba(0, 0, 0, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  overflow: hidden;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- 噪点纹理遮罩 ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 自定义滚动条 ---------- */
.main-scroll::-webkit-scrollbar { width: 6px; }
.main-scroll::-webkit-scrollbar-track { background: transparent; }
.main-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: 3px;
}
.main-scroll::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 36px;
  gap: 36px;
}

.navbar-logo { flex-shrink: 0; display: inline-flex; line-height: 0; }
.logo-img {
  height: 32px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
  color: var(--color-text);
}
.logo-img:hover { opacity: 0.8; }

.navbar-menu { flex: 1; }
.navbar-list { display: flex; align-items: center; gap: 2px; }

.navbar-item { position: relative; }
.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s, background 0.2s;
}
.navbar-link:hover { color: var(--color-text); background: var(--color-bg-alt); }
.dropdown-icon { font-size: 1rem; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.navbar-item.active .dropdown-icon { transform: rotate(180deg); }

/* 下拉菜单 */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 170px;
  padding: 8px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 40px var(--color-shadow-strong), 0 0 0 1px var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.navbar-item.active .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.dropdown-item {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: var(--color-bg-alt); color: var(--color-text); }

.navbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

[data-theme="light"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-light { display: none; }

/* ---------- 按钮组件 ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: var(--color-primary-hex);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 20px rgba(var(--color-primary), 0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-width: 140px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--color-primary), 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: rgba(var(--color-primary), 0.07);
  color: var(--color-primary-hex);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.btn-secondary:hover { background: rgba(var(--color-primary), 0.13); transform: scale(1.03); }
.btn-sm { padding: 5px 14px; font-size: 0.75rem; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  transition: background 0.2s, color 0.2s;
}
.btn-icon:hover { background: var(--color-bg-alt); color: var(--color-text); }

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border-strong);
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--color-text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  width: 90px;
  flex-shrink: 0;
}
.btn-login:hover { border-color: var(--color-text-secondary); color: var(--color-text); background: var(--color-bg-alt); }

.btn-language {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border-radius: 0;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s, opacity 0.2s;
  justify-content: center;
  white-space: nowrap;
  width: 96px;
  flex-shrink: 0;
}
.btn-language:hover { color: var(--color-text); opacity: 0.85; }

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 550;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-expand:hover {
  border-color: var(--color-text-muted);
  box-shadow: 0 4px 16px var(--color-shadow);
  transform: translateY(-1px);
}

/* ---------- 主滚动区域 ---------- */
.main-scroll {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-top: var(--navbar-height);
}

/* ============================================================
   首屏
   ============================================================ */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - var(--navbar-height));
  padding: var(--container-padding);
  position: relative;
  overflow: hidden;
}


.hero-content {
  display: flex;
  align-items: center;
  gap: var(--section-gap);
  max-width: 1240px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-slogan { flex: 1; max-width: 540px; min-height: 320px; }

.slogan-line {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: var(--color-text);
}
.slogan-line-1 { font-style: italic; }
.slogan-line-2 { margin-bottom: 28px; }

.text-underline {
  position: relative;
  text-decoration: none;
}
.text-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 3px;
  background: rgba(var(--color-accent), 0.5);
  border-radius: 2px;
}

.text-emphasis {
  color: var(--color-primary-hex);
  position: relative;
  display: inline-block;
}
.text-emphasis::before {
  content: '';
  position: absolute;
  left: -8px; right: -8px;
  top: 55%; bottom: -2px;
  background: rgba(var(--color-primary), 0.1);
  border-radius: 4px;
  z-index: -1;
}

.slogan-intro {
  font-size: var(--fs-body);
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  letter-spacing: 0.1px;
  min-height: 3.6em; /* 防止语言切换时高度跳动 */
}

/* 多语言元素平滑切换 */
[data-i18n] {
  transition: opacity 0.15s ease;
}
.i18n-fading [data-i18n] {
  opacity: 0;
}
/* 标语区更慢的过渡以适应大幅文字变化 */
.i18n-fading .slogan-line,
.i18n-fading .slogan-intro {
  transition: opacity 0.25s ease;
}
.text-highlight {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-primary-hex);
  font-weight: 400;
  font-size: 1.15em;
}

/* 推荐卡片 */
.hero-card {
  display: flex;
  gap: 28px;
  background: var(--color-surface);
  padding: 32px 28px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 20px var(--color-shadow);
  transition: box-shadow 0.3s, transform 0.3s;
  flex-wrap: wrap;
}
.hero-card:hover {
  box-shadow: 0 8px 36px var(--color-shadow-strong);
  transform: translateY(-2px);
}

.hero-card-thumb { flex-shrink: 0; flex: 1; min-width: 200px; }
.hero-card-img {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s;
}
.hero-card:hover .hero-card-img { transform: scale(1.04); }

.hero-card-info { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 220px; flex: 1.2; }
.hero-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-card-title);
  font-style: italic;
  color: var(--color-primary-hex);
  line-height: 1.3;
  min-height: 1.6em;
}
.hero-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
  min-height: 4.5em; /* 容纳最长语言文本，防止切换时高度跳动 */
}

/* 头像装饰 */
.hero-visual { position: relative; flex-shrink: 0; width: 420px; height: 420px; }

.hero-circle {
  position: absolute;
  top: 8%; left: 8%;
  width: 84%; height: 84%;
  border-radius: 50%;
  border: 2px dashed var(--color-border-strong);
  animation: rotateSlow 40s linear infinite;
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-cover-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.4s;
}
.hero-cover-img:hover { transform: scale(1.02); }
.hero-cover-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  box-shadow: 0 16px 48px var(--color-shadow-strong);
}

/* 项目入口卡 */
.hero-float-card {
  position: absolute;
  bottom: 16px; right: -40px;
  width: 210px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px var(--color-shadow-strong);
  border: 1.5px solid var(--color-border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-float-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--color-shadow-strong); }

.hero-float-dot {
  position: absolute;
  top: 14px; right: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent-hex);
  box-shadow: 0 0 0 4px rgba(var(--color-accent), 0.15);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--color-accent), 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(var(--color-accent), 0.05); }
}

.hero-float-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-right: 20px;
}

/* ============================================================
   作品展示
   ============================================================ */
.projects-section { padding: clamp(56px, 8vw, 100px) var(--container-padding); position: relative; }
.section-container { max-width: 1240px; margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  color: var(--color-text);
  letter-spacing: -0.8px;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 60%; height: 3px;
  background: var(--color-accent-hex);
  border-radius: 2px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.project-card {
  display: block;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
  background: var(--color-surface);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s;
  box-shadow: 0 2px 12px var(--color-shadow);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--color-shadow-strong);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  transition: box-shadow 0.35s;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
}
.project-card:hover .project-card-img img { transform: scale(1.06); filter: brightness(1.05); }

/* 卡片覆盖层 - hover时显示 */
.project-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--color-shadow-strong) 100%);
  opacity: 0;
  transition: opacity 0.35s;
  border-radius: var(--radius-lg);
}
.project-card:hover .project-card-img::after { opacity: 1; }

.projects-toggle { display: flex; justify-content: center; }

/* ============================================================
   页脚
   ============================================================ */
.footer-section {
  padding: clamp(40px, 6vw, 70px) var(--container-padding) clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--color-border);
  position: relative;
  background: var(--color-bg-alt);
}

.footer-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 1px;
  background: var(--color-accent-hex);
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8px;
}

.footer-logo { flex-shrink: 0; display: inline-flex; line-height: 0; }
.footer-nav { display: flex; justify-content: center; padding: 6px 0; }
.footer-nav-list { display: flex; gap: 28px; }
.footer-nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.2s;
  position: relative;
}
.footer-nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--color-primary-hex);
  border-radius: 1px;
  transition: width 0.25s;
}
.footer-nav-link:hover { color: var(--color-primary-hex); }
.footer-nav-link:hover::after { width: 100%; }

.footer-actions { display: flex; align-items: center; gap: 12px; }
.footer-copyright {
  flex-basis: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  padding-top: 24px;
  letter-spacing: 0.3px;
}

/* ============================================================
   动画
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.hero-slogan .slogan-line-1 { animation: fadeInUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.hero-slogan .slogan-line-2 { animation: fadeInUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s both; }
.hero-slogan .slogan-intro { animation: fadeInUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.24s both; }
.hero-slogan .hero-card  { animation: fadeInUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) 0.36s both; }
.hero-visual              { animation: fadeInScale 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s both; }

/* 滚动进入动画 */
.project-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.project-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   菜单按钮
   ============================================================ */
.hamburger-toggle {
  display: none;
  position: relative;
}

[data-theme="light"] .hamburger-icon-close,
[data-theme="dark"] .hamburger-icon-open { display: none; }

.hamburger-toggle .hamburger-icon-close { display: none; }
.hamburger-toggle.menu-open .hamburger-icon-open { display: none; }
.hamburger-toggle.menu-open .hamburger-icon-close { display: inline-block; }

/* ============================================================
   移动端菜单
   ============================================================ */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(320px, 82vw);
  height: 100dvh;
  z-index: 1002;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 32px var(--color-shadow-strong);
}
.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 12px;
}

.mobile-menu-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}

.mobile-menu-item {
  position: relative;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 12px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 550;
  color: var(--color-text);
  transition: background 0.2s;
}
.mobile-menu-link:hover {
  background: var(--color-bg-alt);
}

.dropdown-icon-mobile {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
  color: var(--color-text-muted);
}
.mobile-menu-item.active .dropdown-icon-mobile {
  transform: rotate(180deg);
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding-left: 12px;
}
.mobile-menu-item.active .mobile-submenu {
  max-height: 160px;
}

.mobile-submenu-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: background 0.15s, color 0.15s;
}
.mobile-submenu-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.mobile-menu-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ============================================================
   背景音乐播放器
   ============================================================ */
.audio-player {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 1000;
  width: 80px;
  height: 80px;
  cursor: pointer;
  /* 在导航栏之上但在移动菜单之下 */
}

/* 唱片旋转容器 */
.audio-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a2a3a, #0f0f1a);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.08),
    0 0 0 6px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s;
  animation: discRotate 8s linear infinite;
  animation-play-state: paused;
}

.audio-player.playing .audio-disc {
  animation-play-state: running;
  box-shadow:
    0 6px 32px rgba(var(--color-primary), 0.35),
    0 0 0 3px rgba(var(--color-primary), 0.2),
    0 0 0 6px rgba(0, 0, 0, 0.3);
}

/* 唱片纹理圈 */
.disc-groove {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.disc-groove-1 {
  inset: 12%;
  border-color: rgba(255, 255, 255, 0.1);
}

.disc-groove-2 {
  inset: 24%;
  border-color: rgba(255, 255, 255, 0.07);
}

.disc-groove-3 {
  inset: 38%;
  border-color: rgba(255, 255, 255, 0.08);
}

.disc-groove-4 {
  inset: 52%;
  border-color: rgba(255, 255, 255, 0.05);
}

/* 唱片中心点 */
.disc-center-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, #e8e8f0, #8888a0);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 1;
}

/* 旋转动画 */
@keyframes discRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 唱片点击提示 — 播放状态改变通过旋转动画体现 */

/* ============================================================
   响应式
   ============================================================ */

/* ---------- ≤1200px 小桌面 / 平板横屏 ---------- */
@media (max-width: 1200px) {
  .hero-content { gap: clamp(32px, 5vw, 60px); }
  .hero-visual { width: 340px; height: 340px; }
  .hero-float-card { right: -24px; width: 190px; }
  .navbar-inner { padding: 0 24px; }
}

/* ---------- ≤992px 平板竖屏 ---------- */
@media (max-width: 992px) {
  .navbar-menu { display: none; }
  .hamburger-toggle { display: inline-flex; }
  .navbar-actions .btn-login,
  .navbar-actions .btn-language { display: none; }

  .hero-content {
    flex-direction: column-reverse;
    gap: clamp(28px, 4vw, 48px);
    text-align: center;
  }
  .hero-slogan { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .slogan-line { letter-spacing: -0.8px; }
  .hero-card { text-align: left; }
  .hero-visual { width: 280px; height: 280px; flex-shrink: 0; }
  .hero-float-card { right: -30px; bottom: -6px; width: 200px; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤768px 小平板 / 大手机 ---------- */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 16px; gap: 14px; }
  .navbar-logo .logo-img { height: 26px; }

  .hero-section { min-height: auto; padding-top: 32px; padding-bottom: 32px; }
  .hero-visual { width: 220px; height: 220px; }
  .hero-float-card { right: 0; bottom: -10px; width: 210px; }

  .hero-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 420px;
  }
  .hero-card-info { align-items: center; }
  .hero-card-img { width: 100%; }
  .hero-card-desc { font-size: var(--fs-small); }

  .footer-container { flex-direction: column; text-align: center; gap: 14px; }
  .footer-nav-list { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ---------- ≤576px 手机 ---------- */
@media (max-width: 576px) {
  .navbar { height: 56px; }
  :root { --navbar-height: 56px; }

  .hero-visual { width: 180px; height: 180px; }
  .hero-float-card { display: none; }

  .hero-card { padding: 14px; gap: 12px; border-radius: var(--radius-lg); }
  .hero-card-img { aspect-ratio: 16 / 9; }
  .hero-card-title { font-size: 1.35rem; }

  .projects-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-title { margin-bottom: 28px; }
  .section-title::after { width: 40%; }

  .footer-section { padding: 32px 16px 24px; }
  .footer-nav-list { flex-direction: column; gap: 8px; }

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

/* ---------- ≤768px 音频播放器缩小 ---------- */
@media (max-width: 768px) {
  .audio-player {
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
  }


  .disc-center-dot {
    width: 10px;
    height: 10px;
  }
}

/* ---------- ≤380px 小手机 ---------- */
@media (max-width: 380px) {
  .navbar-inner { padding: 0 10px; gap: 8px; }
  .hero-visual { width: 150px; height: 150px; }
  .hero-card { padding: 10px; }
  .hero-card-title { font-size: 1.2rem; }
  .btn-primary { padding: 10px 20px; font-size: 0.85rem; }
  .mobile-menu { width: 100vw; }

  .audio-player {
    width: 50px;
    height: 50px;
    bottom: 14px;
    left: 14px;
  }
}
