/* ==========================================
   Luna AI Cut — Landing Page Styles
   遵循 DESIGN.md 设计令牌
   ========================================== */

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

:root {
  /* Color — tokens from DESIGN.md */
  --blue: #0066cc;
  --blue-dark: #004f9f;
  --blue-on-dark: #2997ff;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --tile-dark: #272729;
  --tile-dark-2: #2a2a2c;
  --black: #000000;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --muted-dark: #cccccc;
  --hairline: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;

  /* Shapes */
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-btn: 8px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  color: var(--ink);
  background: var(--canvas);
  min-width: 320px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* ---- Global Nav (44px black bar, mirrors app) ---- */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 44px;
  background: var(--black);
  color: #fff;
  font-size: 13px;
  font-family: var(--font-display);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  opacity: 0.9;
}

.nav-logo {
  opacity: 0.7;
  border-radius: 4px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  transition: color 120ms;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: border-color 140ms ease, color 140ms ease;
}

.nav-github:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff !important;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
  background: var(--canvas);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--parchment) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero-headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 16px;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.28px;
  color: var(--ink);
}

.hero-lead {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Pill Buttons ---- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  letter-spacing: -0.224px;
  text-decoration: none;
}

.pill:active {
  transform: scale(0.95);
}

.pill.primary {
  background: var(--blue);
  color: #fff;
  border: none;
}

.pill.primary:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

.pill.secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.pill.secondary:hover {
  background: rgba(0, 102, 204, 0.06);
  text-decoration: none;
}

/* ---- Hero Mockup ---- */
.hero-preview {
  margin-top: 60px;
}

.hero-mockup {
  background: var(--canvas);
  border-radius: var(--radius-card);
  box-shadow: rgba(0, 0, 0, 0.18) 0 8px 40px 0;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  background: var(--parchment);
  border-bottom: 1px solid var(--hairline);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted-dark);
  opacity: 0.5;
}

.mockup-text {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.mockup-body {
  padding: 16px;
}

/* ---- App Mockup ---- */
.mockup-body {
  padding: 12px;
}

.mockup-app {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #16161a 0%, #1e1e24 100%);
  border-radius: 14px;
  overflow: hidden;
  min-height: 260px;
}

/* Navigation Tabs */
.mockup-tabs {
  display: flex;
  gap: 2px;
  padding: 8px 10px 0;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mockup-tab {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: color 150ms, background 150ms;
  outline: none;
  user-select: none;
}

.mockup-tab:hover { color: rgba(255,255,255,0.6); }

.mockup-tab.active {
  color: var(--blue-on-dark);
  background: rgba(255,255,255,0.06);
}

.mockup-tab:focus-visible {
  box-shadow: 0 0 0 2px var(--blue-on-dark);
  border-radius: 8px 8px 0 0;
}

/* Content area */
.mockup-content {
  position: relative;
  flex: 1;
  min-height: 220px;
  display: flex;
}

.mockup-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(41,151,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.mockup-scene {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

/* ════════════════════════════
   Page 1: Device Connect
   ════════════════════════════ */
.mockup-connect {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.mockup-connect-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(41,151,255,0.1);
}

.mockup-connect-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

.mockup-connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 999px;
  background: var(--blue-on-dark);
  color: #000;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: opacity 120ms;
}

.mockup-connect-btn:hover { opacity: 0.85; }
.mockup-connect-btn:active { opacity: 0.7; }

/* ════════════════════════════
   Page 2: Library
   ════════════════════════════ */
.mockup-library {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.mockup-library-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-library-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mockup-library-date {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  white-space: nowrap;
}

.mockup-library-chips {
  display: flex;
  gap: 4px;
}

.mockup-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  cursor: default;
}

.mockup-chip.active {
  background: var(--blue-on-dark);
  color: #000;
}

.mockup-library-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
}

.mockup-media-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1.5px solid transparent;
  cursor: default;
}

.mockup-media-card.selected {
  border-color: var(--blue-on-dark);
}

.mockup-media-thumb {
  position: absolute;
  inset: 0;
}

.mockup-media-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-on-dark);
  display: grid;
  place-items: center;
}

.mockup-media-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  letter-spacing: 0.03em;
}

.mockup-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: grid;
  place-items: center;
  color: #fff;
}

.mockup-media-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
  color: #fff;
}

.mockup-media-dl-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
}

.mockup-library-footer {
  display: flex;
  align-items: center;
}

.mockup-library-selected {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
}

.mockup-library-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 999px;
  cursor: default;
  flex-shrink: 0;
}

.mockup-library-btn.primary {
  background: var(--blue-on-dark);
  color: #000;
}

/* ════════════════════════════
   Page 3: Workspace (左:预览+列表 | 右:调色)
   ════════════════════════════ */
.mockup-ws {
  display: flex;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.mockup-ws-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.mockup-ws-preview {
  position: relative;
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1e, #222226);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 80px;
}

.mockup-ws-preview-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(41,151,255,0.04) 0%, transparent 60%);
}

.mockup-ws-preview-controls {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 0 10px 8px;
  position: relative;
  z-index: 1;
}

.mockup-ws-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  cursor: default;
}

.mockup-ws-chip.active {
  background: var(--blue-on-dark);
  color: #000;
}

.mockup-ws-filmstrip {
  display: flex;
  gap: 4px;
}

.mockup-ws-film {
  width: 48px;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: default;
}

.mockup-ws-film.active {
  border-color: var(--blue-on-dark);
}

.mockup-ws-right {
  width: 180px;
  flex-shrink: 0;
}

.mockup-ws-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-ws-panel-title {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mockup-ws-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mockup-ws-row label {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  min-width: 36px;
  flex-shrink: 0;
}

.mockup-ws-row .mockup-s-track { flex: 1; }
.mockup-ws-row .mockup-s-val { min-width: 24px; font-size: 10px; }

.mockup-s-track {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
}

.mockup-s-fill {
  height: 3px;
  background: var(--blue-on-dark);
  border-radius: 2px;
}

.mockup-s-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blue-on-dark);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transform: translate(-50%,-50%);
  top: 50%;
}

.mockup-s-val {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mockup-ws-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.mockup-ws-wm-grid {
  display: grid;
  grid-template-columns: repeat(3, 14px);
  gap: 2px;
}

.mockup-ws-wm-grid span {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.mockup-ws-wm-grid span.active {
  background: var(--blue-on-dark);
  border-color: var(--blue-on-dark);
}

/* ---- Section Shared ---- */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.section-parchment {
  background: var(--parchment);
}

.section-white {
  background: var(--canvas);
}

.section-dark {
  background: var(--tile-dark);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.section-label.accent {
  color: var(--blue-on-dark);
}

.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-title-light {
  color: var(--canvas);
}

.version-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: #2997ff;
  background: rgba(41, 151, 255, 0.12);
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 10px;
  letter-spacing: 0;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 540px;
}

.section-desc-light {
  color: var(--muted-dark);
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--canvas);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: rgba(0, 0, 0, 0.06) 0 4px 20px 0;
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 102, 204, 0.1);
  color: var(--blue);
  margin-bottom: 18px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.feature-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Guide Steps ---- */
.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.guide-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
}

.guide-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.guide-step-content {
  padding-top: 4px;
}

.guide-step-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--ink);
}

.guide-step-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.guide-step-tip {
  margin-top: 10px;
  padding: 12px 18px;
  background: rgba(0, 102, 204, 0.06);
  border-radius: var(--radius-btn);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  border-left: 3px solid var(--blue);
}

.guide-step-tip strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- Download Grid ---- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.download-cell {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 32px;
  background: var(--tile-dark-2);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
  cursor: pointer;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue-on-dark);
  text-decoration: none;
}

.download-icon {
  color: var(--blue-on-dark);
}

.download-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--canvas);
  letter-spacing: -0.01em;
}

.download-sub {
  font-size: 15px;
  color: var(--muted-dark);
  text-align: center;
}

.download-badge {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted-dark);
  border-radius: var(--radius-pill);
}

.dl-chip-selector {
  text-align: center;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.dl-chip-selector select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 24px 4px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 200ms ease, color 200ms ease;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  display: none; /* 非 Mac 平台默认隐藏 */
}

.dl-chip-selector select:hover {
  border-color: var(--blue-on-dark);
  color: #ccc;
}

.dl-chip-selector select:focus {
  border-color: var(--blue-on-dark);
}

.download-note {
  text-align: center;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted-dark);
}

.download-note a {
  color: var(--blue-on-dark);
}

/* ---- 地区标签 ---- */
.dl-region-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  background: rgba(41, 151, 255, 0.15);
  color: var(--blue-on-dark);
  border-radius: 999px;
  margin-top: 4px;
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: var(--muted-dark);
  padding: 48px 24px 36px;
  font-size: 13px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--muted-dark);
  font-weight: 500;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copy {
  max-width: 400px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Responsive ---- */
@media (max-width: 840px) {
  .hero-title {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
  }

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

  .mockup-content {
    min-height: 200px;
  }

  .mockup-library-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 640px) {
  .hero {
    padding: 110px 18px 60px;
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -0.24px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .section {
    padding: 72px 18px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-step-number {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .guide-step-title {
    font-size: 22px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .mockup-content {
    min-height: 160px;
  }

  .mockup-library-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .mockup-ws {
    flex-direction: column;
  }

  .mockup-ws-right {
    width: 100%;
  }

  .mockup-ws-panel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px;
  }

  .mockup-ws-row {
    min-width: 100px;
  }

  .nav-links {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .nav-links a:not(:first-child) {
    display: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .pill {
    text-align: center;
  }
}

/* ---- Mirror (GitCode 国内镜像) ---- */
.mirror-section {
  margin-top: 40px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.mirror-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-on-dark);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.mirror-desc {
  font-size: 13px;
  color: var(--muted-dark);
  margin-bottom: 16px;
  opacity: 0.8;
}

.mirror-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mirror-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-btn);
  color: var(--muted-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
}

.mirror-link:hover {
  background: rgba(41, 151, 255, 0.15);
  color: var(--blue-on-dark);
  text-decoration: none;
}

.mirror-link-icon {
  font-size: 18px;
  line-height: 1;
}

.mirror-link-text {
  flex: 1;
}

.mirror-link-arrow {
  opacity: 0.5;
  transition: transform 140ms ease;
}

.mirror-link:hover .mirror-link-arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (max-width: 640px) {
  .mirror-section {
    padding: 20px 18px;
  }
}

/* ==========================================
   What's New / 更新动态
   ========================================== */
.whatsnew-list {
  display: grid;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

.whatsnew-item {
  background: var(--canvas);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  border: 1px solid var(--hairline);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.whatsnew-item:hover {
  transform: translateY(-1px);
  box-shadow: rgba(0, 0, 0, 0.04) 0 4px 16px 0;
}

.whatsnew-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  margin-bottom: 10px;
}

.whatsnew-tag.hotfix {
  background: rgba(0, 102, 204, 0.1);
  color: var(--blue);
}

.whatsnew-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--ink);
}

.whatsnew-item p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.whatsnew-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  opacity: 0.7;
}

/* ==========================================
   Contact / Follow 联系与关注
   ========================================== */
.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
}

.contact-qr {
  width: 200px;
  height: 200px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  object-fit: cover;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--ink);
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

.contact-info li {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-tip {
  font-size: 14px;
  color: var(--muted);
  opacity: 0.8;
}

@media (max-width: 640px) {
  .contact-card {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .contact-qr {
    width: 160px;
    height: 160px;
  }

  .contact-info ul {
    text-align: left;
  }
}
