/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* Apple Color System */
  --primary:       #0066cc;
  --primary-focus: #0071e3;
  --primary-dark:  #2997ff;
  --ink:           #1d1d1f;
  --ink-80:        #333333;
  --ink-48:        #7a7a7a;
  --muted:         #cccccc;
  --hairline:      #e0e0e0;
  --divider:       #f0f0f0;
  --canvas:        #ffffff;
  --parchment:     #f5f5f7;
  --pearl:         #fafafc;
  --tile-1:        #272729;
  --tile-2:        #2a2a2c;
  --surface-black: #000000;
  --chip-gray:     #d2d2d7;
  --on-dark:       #ffffff;
  --on-primary:    #ffffff;

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-body:    system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;

  --radius-sm:   12px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 9999px;

  --nav-h: 44px;
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* iOS 26 Liquid Glass 材质系统 */
  --glass-strong:  rgba(255,255,255,0.82);
  --glass-mid:     rgba(255,255,255,0.52);
  --glass-subtle:  rgba(255,255,255,0.12);
  --glass-dark:    rgba(255,255,255,0.08);
  --glass-blur-sm: blur(20px) saturate(3) brightness(1.04);
  --glass-blur-md: blur(40px) saturate(4) brightness(1.06);
  --glass-blur-lg: blur(60px) saturate(5) brightness(1.08);
  --glass-border:  0.5px solid rgba(255,255,255,0.28);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.50);
  --glass-shadow-sm: 0 4px 16px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.10);
  --glass-shadow-md: 0 8px 32px rgba(0,0,0,0.24), 0 2px 8px rgba(0,0,0,0.12);
  --glass-shadow-lg: 0 16px 56px rgba(0,0,0,0.32), 0 4px 16px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  overflow-x: hidden;
}

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

/* ── Nav (iOS 26 Liquid Glass 悬浮岛) ── */
#nav {
  position: fixed;
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(20, 20, 24, 0.36);
  backdrop-filter: blur(60px) saturate(4) brightness(0.92);
  -webkit-backdrop-filter: blur(60px) saturate(4) brightness(0.92);
  border: 0.5px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -0.5px 0 rgba(0,0,0,0.15),
    0 8px 40px rgba(0,0,0,0.30),
    0 2px 8px  rgba(0,0,0,0.15);
  transition: box-shadow 0.3s var(--ease);
}
#nav.scrolled {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -0.5px 0 rgba(0,0,0,0.08),
    0 12px 48px rgba(0,0,0,0.38),
    0 2px 8px  rgba(0,0,0,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 22px;
  width: auto;
  display: block;
  filter: invert(1);
}
.nav-logo .logo-cn {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--on-dark);
}

.nav-links {
  display: flex;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.12px;
  color: rgba(255,255,255,0.82);
  /* 弹簧动画 */
  transition:
    transform  0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s ease,
    box-shadow 0.3s ease,
    color      0.2s ease;
  border-radius: 50%;
  white-space: nowrap;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 悬停：轻微玻璃气泡预览 */
.nav-links a:hover:not(.active) {
  color: #fff;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(20px) saturate(3);
  -webkit-backdrop-filter: blur(20px) saturate(3);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.55),
    0 2px 8px rgba(0,0,0,0.18);
}

/* iOS 26 Liquid Glass 选中气泡 */
.nav-links a.active {
  color: rgba(0, 0, 0, 0.80) !important;
  font-weight: 600;
  border-radius: 50% !important;
  transform: scale(1.22);
  z-index: 3;
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(40px) saturate(5) brightness(1.1) !important;
  -webkit-backdrop-filter: blur(40px) saturate(5) brightness(1.1) !important;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.55),
    0 6px 24px   rgba(0,0,0,0.28),
    0 2px 6px    rgba(0,0,0,0.14),
    inset 0  1.5px 0 rgba(255,255,255,1.00),
    inset 0 -1px  0 rgba(0,0,0,0.10),
    inset  0.5px 0  rgba(255,255,255,0.45),
    inset -0.5px 0  rgba(255,255,255,0.45) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.3s, opacity 0.3s;
}

/* 横屏：左侧中间纵向悬浮岛（药丸形，内容自适应） */
@media (orientation: landscape) {
  #nav {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    align-items: center;
    border-radius: 9999px;
    padding: 20px 14px;
    gap: 6px;
    width: auto;
    height: auto;
    right: auto;
  }
  .nav-logo {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
  }
  .nav-logo .logo-cn { display: none; }
  .nav-logo-img { height: 28px; }
  .nav-links {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-top: 26px;
  }
  .nav-links li { display: flex; justify-content: center; }
  .nav-links a {
    padding: 0;
    font-size: 12px;
    width: 52px;
    height: 52px;
  }
}

/* 竖屏：顶部中间横向悬浮岛（药丸形，内容自适应） */
@media (orientation: portrait) {
  #nav {
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    border-radius: 9999px;
    padding: 10px 16px;
    gap: 4px;
    width: auto;
    height: auto;
    max-width: calc(100vw - 32px);
    right: auto;
  }
  .nav-links {
    flex-direction: row;
    gap: 4px;
    align-items: center;
    margin-left: 26px;
  }
  .nav-links a { padding: 0; font-size: 12px; width: 52px; height: 52px; }
  .nav-logo-img { height: 22px; }
  .nav-logo .logo-cn { display: none; }
  .nav-toggle { display: none; }
}

/* ── Section Base ── */
.section { min-height: 100vh; position: relative; }

.section-label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.12px;
  text-transform: uppercase;
  color: var(--ink-48);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  color: var(--ink);
}
.section-header { margin-bottom: 64px; }

/* ── Buttons (iOS 26 Liquid Glass) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.374px;
  border-radius: var(--radius-pill);
  transition: transform 0.4s var(--spring), box-shadow 0.3s ease, background 0.2s ease;
  cursor: pointer;
  border: none;
  position: relative;
}
.btn:active { transform: scale(0.94); }

.btn-primary {
  background: rgba(0, 102, 204, 0.88);
  color: var(--on-primary);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  box-shadow:
    var(--glass-highlight),
    var(--glass-shadow-sm),
    inset 0 -1px 0 rgba(0,0,0,0.12);
}
.btn-primary:hover {
  background: rgba(0, 113, 227, 0.92);
  transform: scale(1.03);
  box-shadow: var(--glass-highlight), var(--glass-shadow-md), inset 0 -1px 0 rgba(0,0,0,0.12);
}

.btn-ghost {
  background: var(--glass-subtle);
  color: var(--primary);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  box-shadow: var(--glass-border), var(--glass-highlight), var(--glass-shadow-sm);
  border: var(--glass-border);
}
.btn-ghost:hover {
  background: rgba(0,102,204,0.12);
  transform: scale(1.03);
}

.btn-outline {
  background: var(--glass-subtle);
  color: var(--primary);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  box-shadow: var(--glass-border), var(--glass-highlight), var(--glass-shadow-sm);
  border: var(--glass-border);
}
.btn-outline:hover {
  background: rgba(0,102,204,0.12);
  transform: scale(1.03);
}

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

/* ── Hero ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 80px) 48px 80px;
  overflow: clip;
  background:
    radial-gradient(ellipse 110% 55% at 65% -10%, rgba(0, 102, 204, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 75% 45% at -5% 90%, rgba(41, 151, 255, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 105% 55%, rgba(0, 102, 204, 0.05) 0%, transparent 40%),
    var(--parchment);
  min-height: 100vh;
}

.hero-bg { display: none; }

/* Earth arc */
.hero-earth {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  width: 88vw;
  height: 88vw;
  border-radius: 50%;
  border: 1px solid rgba(140, 185, 255, 0.22);
  box-shadow:
    inset 0 0 60px rgba(100, 155, 255, 0.06),
    0 0 4px rgba(140, 185, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

/* Hero entrance animation */
.hero-label,
.hero-title,
.hero-sub,
.hero-actions {
  opacity: 0;
  transform: translateY(22px);
  animation: heroFadeUp 0.75s var(--ease) forwards;
}
.hero-label  { animation-delay: 0.05s; }
.hero-title  { animation-delay: 0.18s; }
.hero-sub    { animation-delay: 0.32s; }
.hero-actions { animation-delay: 0.46s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-label {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  color: var(--ink-48);
  margin-bottom: 40px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.5vw, 100px);
  font-weight: 800;
  line-height: 1.2;
  padding: 0.1em 0;
  letter-spacing: -0.28px;
  color: var(--ink);
  margin-bottom: 48px;
  white-space: nowrap;
}

.hero-shimmer {
  display: inline;
  background-color: #1d1d1f;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(240, 220, 160, 0.85) 20%,
    rgba(212, 185, 106, 0.55) 45%,
    rgba(29, 29, 31, 0.15) 72%,
    transparent 100%
  );
  background-size: 160vw 160vw;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: planetaryShimmer 24s linear 1.8s infinite;
}

@keyframes planetaryShimmer {
  0%    { background-position: calc(100% + 160vw) 50%; }
  50%   { background-position: -160vw 50%; }
  100%  { background-position: -160vw 50%; }
}

.hero-sub {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--ink-48);
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

html[lang="zh"] .hero-sub {
  display: inline-flex;
  flex-direction: column;
  text-align: left;
  gap: 1.19em;
}
.hero-sub-services {
  display: flex;
  justify-content: space-between;
}
.hero-sub-tagline {
  display: block;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.hero-scroll {
  position: absolute;
  bottom: 48px; left: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--ink-48);
  z-index: 1;
}
.scroll-line {
  width: 48px; height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--primary);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%   { left: -100%; }
  50%  { left: 0; }
  100% { left: 100%; }
}

.hero-tags {
  position: absolute;
  bottom: 48px; right: 48px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  z-index: 1;
}
.hero-tags span {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--ink-48);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-mid);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
  transition: transform 0.4s var(--spring);
}
.hero-tags span:hover { transform: scale(1.06); }

/* ── Work Section ── */
.work-section {
  padding: 80px 48px;
  min-height: auto;
  background: var(--canvas);
}
.work-section .section-label { color: var(--ink-48); }
.work-section .section-title { color: var(--ink); }

.work-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.work-col-right { display: flex; flex-direction: column; gap: 12px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 48px;
}

.work-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.5s var(--spring), box-shadow 0.5s var(--spring-soft);
  will-change: transform;
  border: 0.5px solid rgba(255,255,255,0.08);
}
.work-item:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--glass-shadow-lg), 0 0 0 0.5px rgba(255,255,255,0.12);
}

.work-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.work-img-tall { aspect-ratio: 3/4; }
.work-col-right .work-img { aspect-ratio: 16/9; }

.work-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.placeholder-label,
.placeholder-shape,
.shape-1, .shape-2, .shape-3,
.shape-4, .shape-5, .shape-6 { display: none; }

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.2) 45%, transparent 70%);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-item:hover .work-overlay { opacity: 1; }
.work-img { transition: transform 0.6s var(--ease); }
.work-item:hover .work-img { transform: scale(1.05); }

.work-category {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.work-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 600;
  letter-spacing: -0.374px;
  color: white;
  margin-bottom: 8px;
}
.work-desc {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: rgba(255,255,255,0.75);
  line-height: 1.43;
  margin-bottom: 14px;
}
.work-link {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--primary-dark);
  font-weight: 400;
}

.work-footer { text-align: center; }

/* ── Services ── */
.services-section {
  background: var(--tile-1);
  color: var(--on-dark);
  padding: 80px 48px;
  min-height: auto;
}
.services-section .section-label { color: rgba(255,255,255,0.4); }
.services-section .section-title { color: var(--on-dark); }
.services-section .section-header { margin-bottom: 64px; }

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

.service-item {
  padding: 24px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-dark);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
  transition: transform 0.45s var(--spring), box-shadow 0.3s ease, background 0.3s ease;
}
.service-item:hover {
  transform: translateY(-6px) scale(1.01);
  background: rgba(255,255,255,0.12);
  box-shadow: var(--glass-highlight), var(--glass-shadow-md);
}

.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.224px;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.service-item h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.231px;
  margin-bottom: 14px;
  line-height: 1.19;
  color: var(--on-dark);
}
.service-item p {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.service-item ul { display: flex; flex-direction: column; gap: 6px; }
.service-item li {
  font-size: 14px;
  letter-spacing: -0.224px;
  color: rgba(255,255,255,0.35);
  padding-left: 14px;
  position: relative;
}
.service-item li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.18);
  font-size: 10px;
}

/* ── About ── */
.about-section {
  padding: 80px 48px;
  min-height: auto;
  background: var(--parchment);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.about-section .section-label { color: var(--ink-48); }
.about-section .section-title { color: var(--ink); }

.about-lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.19;
  letter-spacing: 0.231px;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 400;
}
.about-text p {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink-48);
  margin-bottom: 40px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.374px;
}
.stat-label {
  font-size: 12px;
  color: var(--ink-48);
  letter-spacing: -0.12px;
  margin-top: 4px;
}
/* stat 玻璃卡 */
.stat {
  background: var(--glass-mid);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border-radius: var(--radius-md);
  border: 0.5px solid rgba(255,255,255,0.30);
  padding: 16px;
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
  transition: transform 0.4s var(--spring);
}
.stat:hover { transform: translateY(-4px) scale(1.02); }

.about-visual { position: relative; height: 100%; }
.about-card {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: calc(var(--radius-lg) + 6px);
  overflow: hidden;
  background: rgba(30,30,36,0.72);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
}
.about-building-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.about-img-placeholder {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-circle { position: absolute; border-radius: 50%; }
.c1 { width: 70%; aspect-ratio: 1; background: var(--primary); opacity: 0.18; top: -20%; right: -20%; }
.c2 { width: 50%; aspect-ratio: 1; background: var(--primary-dark); opacity: 0.12; bottom: 10%; left: -15%; }
.c3 { width: 40%; aspect-ratio: 1; background: rgba(255,255,255,0.08); top: 40%; right: 5%; }
.ap-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.374px;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.47;
}

/* ── Contact ── */
.contact-section {
  background: var(--tile-2);
  color: var(--on-dark);
  padding: 80px 48px;
  min-height: auto;
}
.contact-inner { max-width: 720px; }
.contact-section .section-label { color: rgba(255,255,255,0.35); }

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  margin-bottom: 20px;
  color: var(--on-dark);
}
.contact-title em {
  font-style: normal;
  color: var(--primary-dark);
}
.contact-sub {
  font-size: 17px;
  letter-spacing: -0.374px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 56px;
}

.contact-form { margin-bottom: 56px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-group label {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: rgba(255,255,255,0.4);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--glass-dark);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: -0.374px;
  outline: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
  min-height: 44px;
  box-shadow: var(--glass-highlight), inset 0 -0.5px 0 rgba(0,0,0,0.1);
}
.form-group textarea { min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255,255,255,0.12);
  box-shadow: var(--glass-highlight), 0 0 0 2px rgba(41,151,255,0.5), inset 0 -0.5px 0 rgba(0,0,0,0.1);
  outline: none;
}
.form-group select option { background: #1a1a1a; }

.contact-section .btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.contact-section .btn-primary:hover { background: var(--primary-focus); }

.contact-info {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.contact-detail { display: flex; flex-direction: column; gap: 4px; }
.ci-label {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: rgba(255,255,255,0.3);
}
.contact-detail span:last-child {
  font-size: 17px;
  letter-spacing: -0.374px;
  color: rgba(255,255,255,0.7);
}

/* ── Footer ── */
.footer {
  background: var(--parchment);
  padding: 40px 48px;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  align-self: flex-start;
}
.footer-logo .logo-cn {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--ink-80);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--primary);
  line-height: 2.41;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-copy {
  font-size: 12px;
  color: var(--ink-48);
  letter-spacing: -0.12px;
}

/* ── Page Transition Overlay ── */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--canvas);
  z-index: 8000;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.4s var(--spring-soft);
}
.page-overlay.loaded { opacity: 0; }

/* 非首页 section 顶部内边距（留出浮动导航空间）*/
.page-section {
  min-height: 100vh;
}
@media (orientation: portrait) {
  .page-section { padding-top: calc(70px + 48px); }
}
@media (orientation: landscape) {
  .page-section { padding-top: 60px; }
}

/* ── Reveal Animations (Spring) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.97);
  transition: opacity 0.6s var(--spring-soft), transform 0.7s var(--spring);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Language Switcher（独立球形按钮） ── */
.lang-switcher {
  position: fixed;
  z-index: 101;
}

/* 位置由 JS 动态计算，此处仅保留 dropdown 方向 */
@media (orientation: landscape) {
  .lang-dropdown {
    bottom: calc(100% + 8px);
    left: 0;
    top: auto;
    right: auto;
  }
}

@media (orientation: portrait) {
  .lang-dropdown {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
  }
}

.lang-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.36);
  backdrop-filter: blur(60px) saturate(4) brightness(0.92);
  -webkit-backdrop-filter: blur(60px) saturate(4) brightness(0.92);
  border: 0.5px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -0.5px 0 rgba(0,0,0,0.15),
    0 8px 40px rgba(0,0,0,0.30),
    0 2px 8px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-family: var(--font-body);
  letter-spacing: -0.12px;
  color: var(--on-dark);
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.lang-btn:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -0.5px 0 rgba(0,0,0,0.08),
    0 12px 48px rgba(0,0,0,0.38),
    0 2px 8px rgba(0,0,0,0.18);
}
.lang-dropdown {
  position: absolute;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  list-style: none;
  min-width: 110px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 200;
  overflow: hidden;
}
.lang-switcher.open .lang-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.lang-option {
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: -0.224px;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--ink-80);
}
.lang-option:hover { background: var(--divider); color: var(--ink); }
.lang-option.active { color: var(--primary); font-weight: 400; }

/* ── Work Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: saturate(180%) blur(10px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: rgba(255,255,255,0.88);
  backdrop-filter: var(--glass-blur-lg);
  -webkit-backdrop-filter: var(--glass-blur-lg);
  border-radius: calc(var(--radius-lg) + 8px);
  border: var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
  width: 80vw;
  height: 80vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 7fr 3fr;
  position: relative;
  transform: translateY(32px) scale(0.96);
  transition: transform 0.5s var(--spring), opacity 0.3s ease;
  opacity: 0;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(210,210,215,0.64);
  color: var(--ink);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--chip-gray); }

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  background: rgba(20,20,24,0.72);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-radius: calc(var(--radius-lg) + 8px) 0 0 calc(var(--radius-lg) + 8px);
  height: 100%;
  overflow: hidden;
}
.modal-main-img {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.modal-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}
.modal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-thumb {
  width: 72px; height: 50px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.modal-thumb:hover,
.modal-thumb.active { opacity: 1; border-color: var(--primary-focus); }

/* 弹窗内图片缩放 */
.modal-main-img {
  cursor: zoom-in;
  user-select: none;
}
.modal-main-img.zoomed { cursor: grab; }
.modal-main-img.zoomed.dragging { cursor: grabbing; }
.modal-main-img img {
  transform-origin: center center;
  transition: transform 0.3s ease;
  will-change: transform;
}

.modal-info {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  overflow-y: auto;
}
.modal-category {
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--primary);
  font-weight: 400;
}
.modal-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
  letter-spacing: -0.374px;
  line-height: 1.2;
  color: var(--ink);
}
.modal-desc {
  color: var(--ink-48);
  font-size: 17px;
  letter-spacing: -0.374px;
  line-height: 1.47;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.modal-tag {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: -0.224px;
  color: var(--ink-48);
  background: var(--glass-subtle);
  backdrop-filter: var(--glass-blur-sm);
  -webkit-backdrop-filter: var(--glass-blur-sm);
  border: 0.5px solid rgba(0,0,0,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 3px rgba(0,0,0,0.06);
}
.work-item { cursor: pointer; }

/* ── Responsive ── */
@media (max-width: 1068px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .work-featured { grid-template-columns: 1fr; }
  .work-img-tall { aspect-ratio: 16/9; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { display: block; width: 100%; height: auto; }
  .about-card { height: auto; aspect-ratio: 16/9; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 833px) {
  .hero { padding-left: 24px; padding-right: 24px; }
  .work-section,
  .services-section,
  .about-section,
  .contact-section { padding-left: 24px; padding-right: 24px; }
  .hero-scroll, .hero-tags { display: none; }
  .work-grid { grid-template-columns: 1fr; }
  .work-featured { gap: 8px; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; gap: 20px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 横屏时页面内容左移，给导航岛让位 */
@media (orientation: landscape) {
  .hero { padding-left: 100px; }
  .work-section,
  .services-section,
  .about-section,
  .contact-section,
  .footer { padding-left: 100px; }
}
/* 竖屏时内容顶部留出导航岛高度 */
@media (orientation: portrait) {
  .hero { padding-top: calc(70px + 60px); }
}

@media (max-width: 640px) {
  .hero-title { font-size: 34px; }
  .section-title { font-size: 28px; }
  .modal-box { grid-template-columns: 1fr; width: 92vw; height: 88vh; }
  .modal-gallery { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 24px; height: auto; max-height: 50vh; }
  .modal-info { padding: 24px; overflow-y: auto; max-height: 38vh; }
}

@media (max-width: 419px) {
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 17px; }
}
