/* ========================================
   Cocode 酷码工作室 - Clean Professional Theme
   ======================================== */

/* ====== CSS 变量 ====== */
:root {
  --ink: #0f172a;
  --ink-mid: #334155;
  --ink-light: #64748b;
  --ink-faint: #94a3b8;
  --line: #e2e8f0;
  --line-light: #f1f5f9;
  --surface: #f8fafc;
  --white: #fff;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-hover: #2563eb;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
}

/* ====== 深色模式 ====== */
.dark {
  --ink: #f4f4f5;
  --ink-mid: #a1a1aa;
  --ink-light: #64748b;
  --ink-faint: #52525b;
  --line: rgba(255,255,255,0.08);
  --line-light: rgba(255,255,255,0.04);
  --surface: #18181b;
  --white: #09090b;
  --accent: #60a5fa;
  --accent-soft: rgba(59,130,246,0.12);
  --accent-hover: #3b82f6;
}

/* ====== 基础重置 ====== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif, "PingFang SC", "Microsoft YaHei";
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--white);
  background-image: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(29,78,216,.05) 0%, transparent 70%);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  position: relative;
}

body::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 6s linear infinite;
}

@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: -40px -40px; }
}

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

::selection { color: var(--white); background: var(--accent); }

/* ====== 容器 ====== */
.container-wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 860px) {
  .container-wide { padding: 0 24px; }
}

.section-padding { padding: 120px 0; }

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

/* ====== 渐变文字 ====== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ====== 导航栏 ====== */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  height: 64px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}

.navbar.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255,255,255,.92);
}

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

.nav-links { display: none; align-items: center; gap: 36px; }

@media (min-width: 861px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  position: relative;
  transition: color .15s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 50%;
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s, left .25s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; left: 0; }

/* ====== Logo ====== */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
}

.logo img {
  width: 64px; height: 64px;
  border-radius: 16px;
  object-fit: cover;
}



/* ====== 按钮 ====== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 600;
  transition: background .2s, transform .2s, box-shadow .2s;
  letter-spacing: .01em;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0px) scale(0.97); }

.nav-actions .btn { padding: 9px 22px; font-size: 13px; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 16px rgba(29,78,216,.25); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline:hover { border-color: var(--ink); background: rgba(0,0,0,.015); }

.btn svg { width: 16px; height: 16px; }

/* ====== Hero 区域 ====== */
.hero {
  padding: 180px 0 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,78,216,.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,78,216,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
  background: var(--accent-soft);
}

.hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.06;
}

.hero-desc {
  margin-top: 28px;
  font-size: 17px;
  color: var(--ink-mid);
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.72;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}



/* Hero 3D 粒子星座 */
.hero-sphere-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-sphere-wrap canvas {
  width: 100%;
  height: 100%;
  transform: translateY(15%);
}

/* ====== 贡献图 ====== */
.snake-section { padding: 0 0 40px 0; }
.snake-section img { border-radius: 12px; }

/* ====== 统计数据 ====== */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

.stat-card {
  padding: 56px 20px;
  border-right: 1px solid var(--line-light);
}

.stat-card:last-child { border-right: none; }

@media (max-width: 860px) {
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--line-light);
  }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }
}

.stat-value {
  font-size: 52px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.04em;
  line-height: 1;
}

.stat-label { margin-top: 8px; font-size: 13.5px; color: var(--ink-light); font-weight: 500; }

/* ====== 标头上划线 ====== */
.overline {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 6px;
}

/* ====== 区域头部 ====== */
.section-header { margin-bottom: 56px; }

.section-header h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.14;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--ink-mid);
  font-size: 16.5px;
  max-width: 580px;
  line-height: 1.72;
}

/* ====== 页眉 ====== */
.page-header { padding: 140px 0 80px; text-align: center; }
@media (max-width: 860px) {
  .page-header { padding: 80px 0 40px; }
  .hero { padding: 90px 0 60px; }
}
.page-header h1 { font-size: clamp(42px, 7vw, 76px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.page-header p { margin-top: 20px; font-size: 17px; color: var(--ink-mid); max-width: 560px; margin-inline: auto; line-height: 1.72; }

/* ====== 项目卡片 ====== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

@media (min-width: 861px) and (max-width: 1100px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

.project-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--ink-faint);
  box-shadow: 0 12px 48px rgba(0,0,0,.04), 0 0 0 1px rgba(29,78,216,.06);
  transform: translateY(-2px);
}

.project-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover .project-card-image img { transform: scale(1.03); }

.project-card-status {
  position: absolute;
  top: 12px;
  right: 12px;
}

.status-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 5px;
}

.status-released { background: var(--accent-soft); color: var(--accent); }
.status-developing { background: var(--amber-bg); color: var(--amber); }

.project-card-body {
  padding: 30px 32px 34px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}

.project-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-bottom: 6px;
}

.project-card-desc {
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card-date {
  font-size: 13px;
  color: var(--ink-light);
  font-weight: 500;
}

.project-card-arrow {
  width: 16px;
  height: 16px;
  color: var(--ink);
  transition: transform .2s;
}

.project-card:hover .project-card-arrow { transform: translateX(4px); }

.project-card-version { font-size: 10px; font-weight: 500; color: var(--ink-light); margin-left: auto; align-self: center; }

/* ====== 服务卡片 ====== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .services-grid { grid-template-columns: 1fr; } }
@media (min-width: 861px) and (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card { padding: 36px 28px; border-radius: 16px; border: 1px solid var(--line-light); background: var(--white); transition: border-color .35s ease, box-shadow .35s ease; }
.service-card:hover { border-color: var(--ink-faint); box-shadow: 0 12px 48px rgba(0,0,0,.04); }
.service-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--accent); }
.service-icon svg { width: 20px; height: 20px; }
.service-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.service-desc { color: var(--ink-mid); font-size: 13.8px; line-height: 1.72; }
.service-features { margin-top: 16px; }
.service-feature { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-mid); margin-bottom: 8px; }
.service-feature svg { width: 16px; height: 16px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.service-tech { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.tech-tag { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; padding: 3px 10px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); }

/* ====== 流程时间线 ====== */
.process-timeline { max-width: 56rem; margin: 0 auto; }
.process-item { display: flex; gap: 24px; padding-bottom: 32px; position: relative; }
.process-phase { flex-shrink: 0; width: 80px; font-size: 12px; font-weight: 600; color: var(--accent); padding-top: 4px; }
.process-line { position: relative; flex-shrink: 0; width: 2px; background: var(--line); }
.process-dot { position: absolute; top: 8px; left: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.process-content { padding: 20px; flex: 1; border-radius: 12px; border: 1px solid var(--line-light); background: var(--white); }
.process-content h4 { font-weight: 700; letter-spacing: -.01em; }
.process-content p { font-size: 13.8px; color: var(--ink-mid); line-height: 1.55; margin-top: 4px; }

/* ====== 关于 - 使命 ====== */
.mission-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .mission-grid { grid-template-columns: 1fr; } }
.mission-content h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; margin-bottom: 24px; }
.mission-content p { color: var(--ink-mid); font-size: 15px; line-height: 1.8; margin-bottom: 18px; }
.mission-features { padding: 32px; }
.mission-feature { display: flex; gap: 16px; margin-bottom: 24px; }
.mission-feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.mission-feature h4 { font-weight: 700; letter-spacing: -.01em; }
.mission-feature p { font-size: 13.8px; color: var(--ink-mid); line-height: 1.55; }

/* ====== 团队 ====== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { padding: 32px; text-align: center; border-radius: 16px; border: 1px solid var(--line-light); background: var(--white); transition: border-color .35s ease, box-shadow .35s ease; }
.team-card:hover { border-color: var(--ink-faint); box-shadow: 0 12px 48px rgba(0,0,0,.04); }
.team-avatar { width: 80px; height: 80px; border-radius: 16px; margin: 0 auto 20px; object-fit: cover; border: 2px solid var(--line); }
.team-name { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.team-role { font-size: 13px; color: var(--accent); margin-top: 4px; font-weight: 600; }
.team-bio { font-size: 13.8px; color: var(--ink-mid); margin-top: 12px; line-height: 1.55; }
.team-skills { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

/* ====== 联系卡片 ====== */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { padding: 32px; text-align: center; border-radius: 16px; border: 1px solid var(--line-light); background: var(--white); transition: border-color .35s ease, box-shadow .35s ease; }
.contact-card:hover { border-color: var(--ink-faint); box-shadow: 0 12px 48px rgba(0,0,0,.04), 0 0 0 1px rgba(29,78,216,.06); }
.contact-icon { width: 56px; height: 56px; border-radius: 8px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.contact-icon-qq { background: rgba(0,153,255,.12); color: #09f; font-size: 28px; font-weight: 800; line-height: 1; }
.contact-icon-wechat { background: rgba(7,193,96,.12); color: #07c160; }
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.contact-card p { font-size: 13.8px; color: var(--ink-mid); margin-bottom: 16px; line-height: 1.55; }
.contact-qr { padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.contact-qr img { width: 100%; height: auto; border-radius: 8px; display: block; }
.contact-value { padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.contact-value p { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 0; user-select: all; }
.contact-info-card { max-width: 48rem; margin: 0 auto; padding: 32px; }
.contact-info-card .code-comment { font-size: 12px; color: var(--ink-faint); margin-bottom: 12px; font-weight: 500; }
.contact-info-card p { color: var(--ink-mid); font-size: 15px; line-height: 1.8; }
.contact-info-card span { color: var(--accent); font-weight: 600; }

/* ====== 项目详情 ====== */
.project-detail-header { padding: 140px 0 64px; text-align: center; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-light); margin-bottom: 32px; transition: color .15s; }
.back-link:hover { color: var(--ink); }
.back-link svg { width: 16px; height: 16px; }
.project-detail-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.project-detail-tags .tag { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; padding: 3px 10px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.project-detail-title { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.14; }
.project-detail-meta { margin-top: 16px; display: flex; justify-content: center; gap: 16px; font-size: 14px; color: var(--ink-light); }
.project-detail-thumbnail { margin-top: 40px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.project-detail-thumbnail img { width: 100%; object-fit: cover; }
.project-detail-content { margin-top: 48px; max-width: 48rem; }
.project-detail-content h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; }
.project-detail-content p { color: var(--ink-mid); font-size: 15px; line-height: 1.8; }
.project-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 639px) { .project-features-grid { grid-template-columns: 1fr; } }
.feature-item { padding: 16px; display: flex; align-items: flex-start; gap: 12px; border-radius: 16px; border: 1px solid var(--line-light); background: var(--white); }
.feature-item svg { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.feature-item span { font-size: 14px; color: var(--ink-mid); }
.project-action-card { padding: 24px; display: flex; align-items: center; justify-content: center; gap: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.project-action-card .url { font-size: 14px; color: var(--ink-light); max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-video { border-radius: 16px; overflow: hidden; }
.project-video iframe { width: 100%; aspect-ratio: 16 / 9; border: none; }
.project-video-placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--surface); border-radius: 16px; }
.project-video-placeholder svg { width: 48px; height: 48px; color: var(--ink-faint); }
.project-404 { text-align: center; padding: 80px 24px; }
.project-404 .code { font-size: 48px; color: var(--ink-faint); margin-bottom: 16px; }
.project-404 p { color: var(--ink-mid); font-size: 17px; }
.project-404 .btn { margin-top: 24px; }

/* ====== CTA ====== */
.cta-section { text-align: center; padding: 120px 0; }

.cta-card h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.14;
}

.cta-card p { margin-top: 16px; color: var(--ink-mid); font-size: 16.5px; }
.cta-card .btn { margin-top: 32px; }
.cta-code { margin-bottom: 16px; font-size: 12px; color: var(--ink-faint); font-weight: 500; letter-spacing: .02em; }

/* ====== 页脚 ====== */
.footer {
  background: var(--surface);
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent) 1;
  padding: 72px 0 36px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

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

.footer-brand p {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink-light);
  line-height: 1.8;
}

.footer-brand .code-tag {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}

.footer-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 20px;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.footer-section a, .footer-section span {
  font-size: 13.5px;
  color: var(--ink-light);
  line-height: 2.6;
  transition: color .15s;
}

.footer-section a:hover { color: var(--ink); }

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-light);
  line-height: 2.6;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 12.5px;
}

@media (max-width: 860px) {
  .footer-bottom { flex-direction: column; gap: 8px; }
}

.footer-copyright, .footer-code { font-size: 12.5px; color: var(--ink-faint); }

/* ====== 移动端菜单 ====== */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
}

@media (min-width: 861px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn svg { width: 18px; height: 18px; color: var(--ink); }

.mobile-menu {
  display: none;
  padding: 8px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.98);
}

.mobile-menu.active { display: block; }

@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-light);
  transition: all .15s;
}

.mobile-menu-link:hover, .mobile-menu-link.active {
  color: var(--ink);
  background: var(--surface);
}

/* ====== 滚动展现动画 ====== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94);
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ====== 深色模式覆盖 ====== */
.dark .navbar { background: rgba(9,9,11,.82); }
.dark .navbar.scrolled { border-bottom-color: var(--line); background: rgba(9,9,11,.92); }
.dark .mobile-menu { background: rgba(9,9,11,.98); border-bottom-color: var(--line); }
.dark .mobile-menu-link:hover, .dark .mobile-menu-link.active { background: var(--surface); color: var(--ink); }
.dark .project-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.3); }
.dark .service-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.3); }
.dark .team-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.3); }
.dark .contact-card:hover { box-shadow: 0 12px 48px rgba(0,0,0,.3); }

/* ====== 悬停效果 ====== */
.hover-lift {
  transition: transform .35s ease, box-shadow .35s ease;
}

.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.02);
}

/* ====== 自定义光标 ====== */
.global-cursor, .global-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
.global-cursor {
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.03) 60%, transparent 100%);
}
.global-cursor-ring {
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border: 1px solid rgba(0,0,0,0.12);
  transition: opacity 0.3s ease;
  opacity: 0;
}
.global-cursor.visible, .global-cursor-ring.visible {
  opacity: 1;
}

/* ====== 工具类 ====== */
.code-comment { font-size: 13.5px; color: var(--ink-faint); font-family: 'JetBrains Mono', 'Cascadia Code', monospace; margin-bottom: 20px; letter-spacing: .02em; }
.text-center { text-align: center; }
.text-brand { color: var(--accent); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.hidden { display: none; }
.w-full { width: 100%; }
.hidden-sm { display: inline-flex; }
@media (max-width: 860px) { .hidden-sm { display: none; } }
