@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;0,6..96,700;1,6..96,400&family=Jost:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --primary: #1c1917;
  --primary-light: #292524;
  --accent: #e94560;
  --accent-hover: #d63850;
  --gold: #ca8a04;
  --gold-light: #fbbf24;
  --success: #22c55e;
  --success-hover: #16a34a;
  --bg: #fafaf9;
  --bg-mesh: #f5f5f4;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --glass-border: rgba(255, 255, 255, 0.45);
  --text: #0c0a09;
  --text-muted: #57534e;
  --border: rgba(28, 25, 23, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow: 0 1px 2px rgba(12, 10, 9, 0.04);
  --shadow-md: 0 4px 20px rgba(12, 10, 9, 0.1);
  --shadow-lg: 0 16px 48px rgba(12, 10, 9, 0.14);
  --shadow-glow-apple: 0 12px 40px rgba(233, 69, 96, 0.18);
  --shadow-glow-android: 0 12px 40px rgba(34, 197, 94, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 220ms var(--ease-out);
  --transition-slow: 480ms var(--ease-out);
  --blur: 20px;
  --font-display: 'Bodoni Moda', 'Noto Sans SC', serif;
  --font-ui: 'Jost', 'Noto Sans SC', system-ui, sans-serif;
  /* 固定顶栏高度 — 全站统一内容区留白 */
  --header-height: 60px;
  --header-pad: 0.75rem;
  --header-clearance: calc(var(--header-pad) * 2 + var(--header-height) + 0.5rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}

body.is-loaded { opacity: 1; }

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(233, 69, 96, 0.06), transparent),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 197, 94, 0.05), transparent),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(202, 138, 4, 0.04), transparent),
    var(--bg);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Reveal animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Glass header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
  transition: padding var(--transition);
}

.site-header.is-scrolled { padding: 0.5rem 1rem; }

.site-header .header-shell {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 60px;
  padding: 0 0.75rem;
  min-width: 0;
  overflow: hidden;
  background: rgba(12, 10, 9, 0.55);
  backdrop-filter: blur(var(--blur)) saturate(1.4);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  color: #fff;
  transition: height var(--transition), background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled .header-shell {
  height: 54px;
  background: rgba(12, 10, 9, 0.82);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: contents;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.logo:hover { transform: scale(1.02); }

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(233, 69, 96, 0.35);
}

.nav-main {
  display: none;
  gap: 0.125rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-main::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  transition: width var(--transition), left var(--transition);
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
  width: 60%;
  left: 20%;
}

.search-bar {
  flex: 1 1 140px;
  min-width: 100px;
  max-width: 260px;
  display: none;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.8125rem;
  font-family: inherit;
  outline: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.search-bar input::placeholder { color: rgba(255, 255, 255, 0.45); }

.search-bar input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.15);
}

.search-bar svg {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(233, 69, 96, 0); }
}

.region-pill {
  display: none;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
}

.region-pill:hover { background: rgba(255, 255, 255, 0.14); }

/* ── Buttons ── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 600ms var(--ease-out);
}

.btn:hover::before { transform: translateX(100%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #c73652 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-apple);
}

.btn-primary:hover { box-shadow: 0 16px 48px rgba(233, 69, 96, 0.3); }

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #15803d 100%);
  color: #fff;
  box-shadow: var(--shadow-glow-android);
}

.btn-success:hover { box-shadow: 0 16px 48px rgba(34, 197, 94, 0.3); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #a16207 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(202, 138, 4, 0.25);
}

.btn-outline {
  background: var(--surface-solid);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.btn-outline:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); }

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 0.9375rem;
}

/* ── Glass cards ── */
.card {
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(12, 10, 9, 0.05);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
}

.card-hover {
  cursor: pointer;
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
}

/* 商品卡：允许成色角标浮在圆角之上，图片区自行裁切 */
.product-card.card {
  position: relative;
  overflow: visible;
}

.product-card .img-wrap {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-hover:hover {
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(28, 25, 23, 0.16);
}

/* ── Product card ── */
.product-card .img-wrap {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0.375rem 0.25rem;
  box-sizing: border-box;
}

/* 图片舞台 — 铺满卡片上半区，等比完整显示 */
.product-card .img-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.product-card .img-stage img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform var(--transition-slow);
  filter: drop-shadow(0 6px 14px rgba(12, 10, 9, 0.08));
}

.product-card .img-stage img.is-placeholder {
  width: 42%;
  height: 42%;
  opacity: 0.5;
  filter: none;
}

.product-card .img-stage--icon svg {
  width: 3rem;
  height: 3rem;
  color: #a8a29e;
}

/* 无图占位：保留 shimmer 骨架动效 */
.product-card .img-wrap:not(:has(.img-stage)) {
  background: linear-gradient(145deg, #f5f5f4 0%, #e7e5e4 50%, #f5f5f4 100%);
  background-size: 200% 200%;
  animation: shimmer 6s ease infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.product-card:hover .img-stage img:not(.is-placeholder) {
  transform: scale(1.03);
}

.product-card:hover .img-stage--icon svg {
  transform: scale(1.06);
  color: var(--accent);
}

.grade-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  z-index: 5;
  padding: 0.3rem 0.6rem;
  background: rgba(12, 10, 9, 0.85);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.06em;
  border: 1px solid rgba(251, 191, 36, 0.3);
  line-height: 1.2;
  pointer-events: none;
}

/* 商品卡成色角标 — 置于卡片最上层，避免被圆角/图片遮挡 */
.product-card > .grade-badge {
  z-index: 10;
}

.product-card .body { padding: 1.125rem; }

.product-card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-ui);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.65em;
  line-height: 1.325;
}

.product-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--primary);
}

.product-card .price span {
  font-size: 0.75rem;
  font-weight: 400;
  font-family: var(--font-ui);
  color: var(--text-muted);
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}

/* ── Hero premium ── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 7rem 0 4rem;
  margin-top: 0;
  background: linear-gradient(145deg, #0c0a09 0%, #1a1512 40%, #0f1410 70%, #0c0a09 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 65% 45%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-premium {
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { max-width: 600px; }

.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: orb-float 18s ease-in-out infinite;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.55), transparent 70%);
  top: 5%;
  right: 8%;
  animation-delay: 0s;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 70%);
  bottom: 5%;
  right: 25%;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(202, 138, 4, 0.45), transparent 70%);
  top: 35%;
  right: 40%;
  animation-delay: -12s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

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

.hero-light {
  background: #fafaf9;
  color: var(--text);
}

/* ── Dynamic hero background ── */
.hero-dynamic {
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-gradient {
  position: absolute;
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    rgba(233, 69, 96, 0.32) 0deg,
    rgba(250, 250, 249, 0.04) 50deg,
    rgba(202, 138, 4, 0.22) 110deg,
    rgba(34, 197, 94, 0.28) 190deg,
    rgba(250, 250, 249, 0.04) 260deg,
    rgba(233, 69, 96, 0.32) 360deg
  );
  filter: blur(36px);
  animation: hero-gradient-spin 16s linear infinite;
  opacity: 1;
}

@keyframes hero-gradient-spin {
  to { transform: rotate(360deg); }
}

.hero-bg-blobs .blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(28px);
  will-change: transform, border-radius;
}

.blob-apple {
  width: min(580px, 62vw);
  height: min(580px, 62vw);
  background: radial-gradient(circle at 30% 30%, rgba(233, 69, 96, 0.55), rgba(233, 69, 96, 0.12) 68%);
  top: -15%;
  left: -10%;
  animation: blob-morph-a 9s ease-in-out infinite;
}

.blob-android {
  width: min(520px, 58vw);
  height: min(520px, 58vw);
  background: radial-gradient(circle at 60% 40%, rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0.1) 68%);
  bottom: -12%;
  right: -8%;
  animation: blob-morph-b 11s ease-in-out infinite;
  animation-delay: -3s;
}

.blob-gold {
  width: min(380px, 42vw);
  height: min(380px, 42vw);
  background: radial-gradient(circle at 50% 50%, rgba(202, 138, 4, 0.45), rgba(202, 138, 4, 0.08) 68%);
  top: 32%;
  left: 38%;
  animation: blob-morph-c 8s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes blob-morph-a {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) scale(1); }
  33% { border-radius: 65% 35% 45% 55% / 35% 55% 45% 65%; transform: translate(56px, -36px) scale(1.1); }
  66% { border-radius: 50% 50% 35% 65% / 55% 35% 65% 45%; transform: translate(-36px, 28px) scale(0.92); }
}

@keyframes blob-morph-b {
  0%, 100% { border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%; transform: translate(0, 0) scale(1); }
  40% { border-radius: 35% 65% 50% 50% / 60% 40% 55% 45%; transform: translate(-48px, -28px) scale(1.08); }
  70% { border-radius: 60% 40% 35% 65% / 45% 55% 60% 40%; transform: translate(32px, 40px) scale(0.94); }
}

@keyframes blob-morph-c {
  0%, 100% { border-radius: 50% 50% 40% 60% / 45% 55% 50% 50%; transform: translate(0, 0) scale(1); }
  50% { border-radius: 40% 60% 55% 45% / 60% 40% 50% 50%; transform: translate(-28px, -32px) scale(1.12); }
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 10, 9, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 10, 9, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 55% 42%, black 20%, transparent 78%);
  animation: grid-drift 14s linear infinite;
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 48px 48px; }
}

.hero-bg-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.65) 47%,
    rgba(255, 255, 255, 0.2) 53%,
    transparent 65%
  );
  background-size: 220% 100%;
  animation: hero-shimmer-sweep 6s ease-in-out infinite;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

@keyframes hero-shimmer-sweep {
  0%, 100% { background-position: 180% 0; }
  50% { background-position: -80% 0; }
}

.hero-bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 75% at 50% 45%, transparent 45%, rgba(250, 250, 249, 0.42) 88%),
    linear-gradient(180deg, rgba(250, 250, 249, 0.15) 0%, transparent 20%, transparent 80%, rgba(250, 250, 249, 0.25) 100%);
}

.hero-dynamic .hero-grid,
.hero-dynamic .hero-content {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-gradient,
  .hero-bg-blobs .blob,
  .hero-bg-grid,
  .hero-bg-shimmer {
    animation: none !important;
  }

  .hero-bg-canvas { display: none; }
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
}

.hero-dynamic::after {
  display: none;
}

.hero-light::after {
  mask-image: radial-gradient(ellipse 90% 80% at 65% 45%, black 20%, transparent 75%);
}

.hero-light .hero-eyebrow {
  color: var(--text);
  background: #fff;
  border-color: rgba(28, 25, 23, 0.12);
  box-shadow: 0 1px 4px rgba(12, 10, 9, 0.06);
}

.hero-light h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  margin: 0 0 1.25rem;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: currentColor;
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Split headline: small eco badge + large Chinese title */
.hero-headline {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
}

.hero-headline-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-eco-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
}

.hero-eco-badge-apple {
  color: var(--accent);
  background: rgba(233, 69, 96, 0.1);
  border-color: rgba(233, 69, 96, 0.22);
}

.hero-eco-badge-android {
  color: #15803d;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.22);
}

.hero-headline-main {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-headline-row:first-child .hero-headline-main {
  background: linear-gradient(135deg, #0c0a09 0%, #57534e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline-row:last-child .hero-headline-main {
  background: linear-gradient(135deg, #0c0a09 0%, #44403c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-light h1 .text-accent-apple {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.hero-light h1 .text-accent-android {
  color: var(--success);
  -webkit-text-fill-color: var(--success);
}

.hero-light .hero-desc,
.hero-light p {
  color: #44403c;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.hero-light p strong { color: var(--text); font-weight: 600; }

.hero-light .hero-search {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}

.hero-light .hero-stat::before {
  background: linear-gradient(180deg, var(--accent), var(--success));
}

.hero-light .hero-stat strong {
  color: var(--text);
  font-size: 1.875rem;
}

.hero-light .hero-stat span {
  color: #78716c;
  font-weight: 500;
}

.hero-light .hero-search input {
  border: 1px solid rgba(28, 25, 23, 0.12);
  box-shadow: inset 0 1px 2px rgba(12, 10, 9, 0.04);
}

.hero-light .hero-search input::placeholder { color: #78716c; }

.hero-light .site-header .header-shell,
body:has(.hero-light) .site-header .header-shell {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.3);
  border-color: rgba(28, 25, 23, 0.08);
  color: var(--text);
  box-shadow: 0 4px 24px rgba(12, 10, 9, 0.06);
}

body:has(.hero-light) .nav-link { color: var(--text-muted); }
body:has(.hero-light) .nav-link:hover,
body:has(.hero-light) .nav-link.active { color: var(--text); background: rgba(12,10,9,0.04); }
body:has(.hero-light) .search-bar input {
  background: rgba(12, 10, 9, 0.04);
  border-color: var(--border);
  color: var(--text);
}
body:has(.hero-light) .search-bar input::placeholder { color: var(--text-muted); }
body:has(.hero-light) .search-bar svg { color: var(--text-muted); }
body:has(.hero-light) .region-pill {
  background: rgba(12, 10, 9, 0.04);
  border-color: var(--border);
  color: var(--text);
}
body:has(.hero-light) .icon-btn { color: var(--text); }
body:has(.hero-light) .btn-ghost {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.hero-mosaic .mosaic-panel {
  position: relative;
  width: 100%;
  min-height: 420px;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #ffffff 0%, #f5f5f4 100%);
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow:
    0 1px 2px rgba(12, 10, 9, 0.04),
    0 16px 48px rgba(12, 10, 9, 0.1);
}

.hero-light .hero-mosaic .mosaic-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "apple android"
    "rom pill";
  gap: 0.875rem;
  min-height: auto;
}

.hero-light .hero-mosaic .hero-float-apple { grid-area: apple; }
.hero-light .hero-mosaic .hero-float-android { grid-area: android; }
.hero-light .hero-mosaic .hero-float-rom { grid-area: rom; }
.hero-light .hero-mosaic .hero-float-pill { grid-area: pill; }

.hero-light .hero-mosaic .hero-float-card {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  min-width: 0;
  max-width: none;
  width: 100%;
  animation: none;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 2px 10px rgba(12, 10, 9, 0.06);
}

.hero-light .hero-mosaic .hero-float-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(12, 10, 9, 0.1);
}

.hero-light .hero-mosaic .hero-float-pill {
  position: relative;
  bottom: auto;
  right: auto;
  justify-content: center;
  animation: none;
  color: #44403c;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 2px 8px rgba(12, 10, 9, 0.05);
}

.hero-light .hero-float-card {
  background: #fff;
  color: var(--text);
  border-color: rgba(28, 25, 23, 0.1);
  box-shadow: 0 2px 10px rgba(12, 10, 9, 0.06);
}

.hero-light .hfc-tag {
  color: #78716c;
  font-weight: 600;
}

.hero-light .hfc-body strong { color: var(--text); }
.hero-light .hfc-meta { color: #78716c; }
.hero-light .hfc-price { color: var(--accent); }
.hero-light .hfc-price-green { color: var(--success); }
.hero-light .hero-float-flash .hfc-price { color: var(--gold); }
.hero-light .hero-float-pill {
  color: #44403c;
  background: #fff;
  border-color: rgba(28, 25, 23, 0.1);
}

.hero-light .orb { opacity: 0.25; filter: blur(100px); }

/* Hero right visual */
.hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 65%);
  animation: ring-pulse 4s ease-in-out infinite;
}

.hero-visual-orbit {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.06);
  animation: orbit-spin 40s linear infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-float-card {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.125rem;
  min-width: 220px;
  max-width: 260px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
  text-decoration: none;
  color: #fff;
}

.hero-float-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.45);
}

.hero-float-apple {
  top: 0;
  right: 0;
  animation: float-card-a 6s ease-in-out infinite;
  border-top: 2px solid rgba(233, 69, 96, 0.6);
}

.hero-float-android {
  bottom: 12%;
  left: 0;
  animation: float-card-b 7s ease-in-out infinite;
  border-top: 2px solid rgba(34, 197, 94, 0.6);
}

.hero-float-rom {
  top: 42%;
  right: 8%;
  min-width: 200px;
  max-width: 220px;
  padding: 0.875rem 1rem;
  animation: float-card-c 5.5s ease-in-out infinite;
  border-top: 2px solid rgba(202, 138, 4, 0.5);
}

@keyframes float-card-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-card-b {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(6px); }
}

@keyframes float-card-c {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.hero-float-card:hover { animation-play-state: paused; }

.hfc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.hfc-icon svg { width: 22px; height: 22px; }

.hero-float-apple .hfc-icon { color: #e94560; background: rgba(233, 69, 96, 0.15); }
.hero-float-android .hfc-icon { color: #22c55e; background: rgba(34, 197, 94, 0.15); }
.hero-float-rom .hfc-icon { color: #fbbf24; background: rgba(202, 138, 4, 0.15); }

.hfc-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hfc-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.hfc-body strong {
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-ui);
  line-height: 1.3;
}

.hfc-meta {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
}

.hfc-price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-top: 0.15rem;
}

.hfc-price-green { color: #4ade80; }

.hero-float-pill {
  position: absolute;
  bottom: 0;
  right: 20%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  animation: float-card-c 8s ease-in-out infinite reverse;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold-light);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero:not(.hero-light) h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.08;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero:not(.hero-light) p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero:not(.hero-light) p strong { color: rgba(255, 255, 255, 0.9); font-weight: 500; }

.hero-search {
  display: flex;
  gap: 0.625rem;
  max-width: 580px;
  margin-bottom: 2.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(16px);
}

.hero-search input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  outline: none;
  transition: box-shadow var(--transition);
}

.hero-search input:focus { box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.25); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stat {
  position: relative;
  padding-left: 1rem;
}

.hero-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  border-radius: 2px;
}

.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

.hero-stat span {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.hero-compact {
  padding: 7rem 0 3rem;
  min-height: auto;
}

/* ── Service tiles ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.125rem;
}

.service-tile {
  position: relative;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(12, 10, 9, 0.05);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.6), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}

.service-tile:hover::before { opacity: 1; }

.service-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-tile.eco-apple {
  border-left: 4px solid var(--accent);
  padding-left: calc(1.75rem - 1px);
}

.service-tile.eco-android {
  border-left: 4px solid var(--success);
  padding-left: calc(1.75rem - 1px);
}

.service-tile.eco-apple:hover { box-shadow: var(--shadow-glow-apple); }
.service-tile.eco-android:hover { box-shadow: var(--shadow-glow-android); }

.service-tile .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  transition: transform var(--transition-spring);
}

.service-tile:hover .icon-wrap { transform: scale(1.1) rotate(-3deg); }

.service-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.service-tile p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.service-tile .tile-arrow {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(12, 10, 9, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--transition), transform var(--transition);
}

.service-tile:hover .tile-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── Sections ── */
.section { padding: 4rem 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
}

.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition), color var(--transition);
}

.section-header a:hover { gap: 0.5rem; color: var(--accent-hover); }

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Trust bar ── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(12, 10, 9, 0.05);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #44403c;
  padding: 0.5rem 0;
}

.trust-item svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

/* ── Footer (unified via footer.js) ── */
.site-footer {
  position: relative;
  background: #0c0a09;
  color: rgba(255, 255, 255, 0.55);
  padding: 3.5rem 0 6.5rem;
  margin-top: 2rem;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(202,138,4,0.5), rgba(233,69,96,0.5), rgba(34,197,94,0.5), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand { max-width: 320px; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.footer-logo:hover { color: #fff; opacity: 0.9; }

.footer-desc {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.5);
}

.footer-social-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.625rem;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.footer-social-btn svg { width: 18px; height: 18px; }

.footer-social-btn:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.footer-social-facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social-x:hover { background: #0f1419; border-color: #333; }
.footer-social-tiktok:hover { background: #010101; border-color: #fe2c55; color: #fe2c55; }
.footer-social-zalo:hover { background: #0068ff; border-color: #0068ff; }
.footer-social-telegram:hover { background: #229ed9; border-color: #229ed9; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.footer-col h4 {
  color: #fff;
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45rem; }

.footer-col a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition), padding-left var(--transition);
}

.footer-col a:hover { color: #fff; padding-left: 4px; }

.footer-map-block h4 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-ui);
}

.footer-address {
  margin: 0 0 0.875rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
}

.footer-map-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.footer-map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  filter: grayscale(0.15) contrast(1.05);
}

.footer-map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
}

.footer-map-link:hover { color: #fff; }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 768px) {
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-map-wrap { height: 220px; }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.1fr 1.2fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }

  .footer-map-wrap { height: 240px; }
}

/* legacy alias */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* ── Proto nav ── */
.proto-nav {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 100;
  display: flex;
  gap: 0.375rem;
  padding: 0.4rem;
  background: rgba(12, 10, 9, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
}

.proto-nav a {
  padding: 0.45rem 0.875rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.proto-nav a:hover, .proto-nav a.active {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
}

/* ── Shop ── */
.page-top-spacer { padding-top: 6.5rem; }

main.detail-layout.page-top-spacer {
  padding-top: 8.75rem;
}

.shop-layout {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 0 4rem;
}

.filters {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 6rem;
  align-self: start;
}

.filter-group { margin-bottom: 1.375rem; }
.filter-group:last-child { margin-bottom: 0; }

.filter-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  cursor: pointer;
  transition: all var(--transition);
}

.chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(12, 10, 9, 0.15);
}

/* ── Product detail ── */
.detail-layout {
  display: grid;
  gap: 2.5rem;
  padding: 1.5rem 0 4rem;
}

.gallery {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.gallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(202,138,4,0.06) 50%, transparent 60%);
  animation: gallery-sweep 4s ease-in-out infinite;
}

@keyframes gallery-sweep {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.gallery svg { width: 88px; height: 88px; color: #d6d3d1; position: relative; z-index: 1; }

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  padding: 1rem;
}

.thumb-row {
  display: flex;
  gap: 0.625rem;
  margin-top: 0.875rem;
}

.thumb {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  border: 2px solid var(--border);
  background: var(--surface) center/cover no-repeat;
  background: linear-gradient(145deg, #f5f5f4, #e7e5e4);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.thumb.active, .thumb:hover {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-apple);
}

.detail-info h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.detail-price {
  font-size: 2.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.spec-item {
  padding: 0.875rem 1rem;
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.spec-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.spec-item strong {
  display: block;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.inspection-panel {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.inspection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  background: rgba(12, 10, 9, 0.03);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background var(--transition);
}

.inspection-header:hover { background: rgba(12, 10, 9, 0.06); }

.inspection-panel .inspection-body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.375rem;
  transition: max-height 400ms var(--ease-out), padding 400ms var(--ease-out);
}

.inspection-panel.is-open .inspection-body {
  max-height: 600px;
  padding: 0 1.375rem 1.375rem;
}

.inspection-panel .inspection-header svg:last-child {
  transition: transform var(--transition);
}

.inspection-panel.is-open .inspection-header svg:last-child {
  transform: rotate(180deg);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
}

.check-item svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }

/* ── Recycle wizard ── */
.wizard {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.stepper {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--success), #4ade80);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 500ms var(--ease-out);
}

.step.done::after, .step.active::after { transform: scaleX(1); }
.step.active::after { background: linear-gradient(90deg, var(--accent), var(--gold)); }

.wizard-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  animation: wizard-in 400ms var(--ease-out);
}

@keyframes wizard-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-card:not(.wizard-step-active) { display: none; }

.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.model-option {
  padding: 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  font-weight: 500;
  transition: all var(--transition);
  background: var(--surface-solid);
}

.model-option:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.model-option.selected {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.06);
  box-shadow: var(--shadow-glow-android);
}

.option-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-solid);
}

.option-card:hover { border-color: var(--success); transform: translateX(4px); }

.option-card.is-highlight {
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.04);
}

.quote-result {
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(34,197,94,0.02) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
}

.quote-result .amount {
  font-size: 3.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--success);
  line-height: 1;
  margin: 0.75rem 0;
  transition: transform 400ms var(--ease-spring);
}

.quote-result .amount.count-pop {
  animation: count-pop 500ms var(--ease-spring);
}

@keyframes count-pop {
  0% { transform: scale(0.85); opacity: 0.5; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── ROM ── */
.rom-card {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  padding: 1.375rem;
  cursor: pointer;
}

.rom-card .rom-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(12,10,9,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.rom-card:hover .rom-icon { transform: rotate(-6deg) scale(1.08); }

.rom-card .rom-icon svg { width: 24px; height: 24px; color: var(--primary); }
.rom-card .info { flex: 1; min-width: 0; }
.rom-card h3 { margin: 0 0 0.25rem; font-size: 0.9375rem; font-family: var(--font-ui); font-weight: 600; }
.rom-card .meta { font-size: 0.75rem; color: var(--text-muted); }

.tab-bar {
  display: inline-flex;
  gap: 0.25rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  background: rgba(12, 10, 9, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.tab-btn {
  padding: 0.625rem 1.5rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: all var(--transition);
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(12, 10, 9, 0.2);
}

.tab-panel-active {
  animation: tab-in 350ms var(--ease-out);
}

@keyframes tab-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tag-free { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.tag-paid { background: rgba(202, 138, 4, 0.12); color: #a16207; }

/* ── Dual ecosystem ── */
.eco-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.eco-apple .eco-label {
  color: var(--accent);
  background: rgba(233, 69, 96, 0.08);
}

.eco-android .eco-label {
  color: var(--success);
  background: rgba(34, 197, 94, 0.08);
}

.eco-android {
  border-left: 3px solid var(--success);
  padding-left: 1.125rem;
}

.eco-apple {
  border-left: 3px solid var(--accent);
  padding-left: 1.125rem;
}

/* ── Quick chips row ── */
.quick-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.quick-chips .chip {
  text-align: center;
  padding: 1.125rem 1rem;
  font-size: 0.875rem;
}

/* ── Responsive ── */
@media (min-width: 768px) {
  .nav-main { display: flex; }
  .search-bar { display: block; }
  .region-pill { display: flex; }
  .grid-products { grid-template-columns: repeat(3, 1fr); gap: 1.375rem; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .shop-layout { grid-template-columns: 272px 1fr; }
  .detail-layout { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: repeat(3, 1fr); }
  .check-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .nav-link { font-size: 0.8125rem; padding: 0.5rem 0.75rem; }
  .search-bar { max-width: 300px; flex-basis: 180px; }
  .site-header .header-shell { gap: 0.875rem; padding: 0 1rem; }
  .grid-products { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero-visual { min-height: 460px; }
  .hero-float-apple { right: 4%; }
  .hero-float-android { left: 4%; }
}

html[lang="en"] .nav-link {
  font-size: 0.6875rem;
  padding: 0.4rem 0.5rem;
}

html[lang="en"] .logo {
  font-size: 1.05rem;
}

html[lang="en"] .search-bar {
  flex: 0 1 140px;
  min-width: 0;
}

html[lang="en"] .search-bar input {
  font-size: 0.75rem;
  padding: 0.45rem 0.5rem 0.45rem 2rem;
}

html[lang="en"] .region-pill {
  font-size: 0.6875rem;
  padding: 0.35rem 0.5rem;
}

html[lang="en"] .header-auth-root .btn-sm {
  font-size: 0.6875rem;
  padding: 0.35rem 0.65rem;
}

@media (min-width: 1024px) {
  html[lang="en"] .nav-link {
    font-size: 0.75rem;
    padding: 0.45rem 0.6rem;
  }
}

@media (max-width: 1023px) {
  .hero-visual {
    min-height: auto;
    display: block;
    padding-top: 0.5rem;
  }

  .hero-light .hero-mosaic .mosaic-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "apple"
      "android"
      "rom"
      "pill";
  }

  .hero-visual-ring,
  .hero-visual-orbit,
  .hero:not(.hero-light) .hero-float-pill { display: none; }
  .hero-float-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    min-width: 0;
    max-width: none;
    animation: none;
  }
  .hero-float-rom { grid-column: 1 / -1; max-width: 320px; justify-self: center; width: 100%; }
}

@media (max-width: 767px) {
  .hero { padding: 7rem 0 3.5rem; }
  .hero-premium { min-height: auto; }
  .hero-search { flex-direction: column; padding: 0.5rem; }
  .hero-visual { grid-template-columns: 1fr; }
  .hero-float-rom { max-width: none; }
  .proto-nav { left: 1rem; right: 1rem; justify-content: center; flex-wrap: wrap; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-panel { min-height: auto; }
}

/* ── Open Design: subpage light theme ── */
body.page-light .site-header .header-shell,
body:has(.hero-light) .site-header .header-shell {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(1.3);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 4px 24px rgba(12, 10, 9, 0.06);
}

body.page-light .nav-link,
body:has(.hero-light) .nav-link { color: var(--text-muted); }

body.page-light .nav-link:hover,
body.page-light .nav-link.active,
body:has(.hero-light) .nav-link:hover,
body:has(.hero-light) .nav-link.active {
  color: var(--text);
  background: rgba(12, 10, 9, 0.04);
}

body.page-light .search-bar input,
body:has(.hero-light) .search-bar input {
  background: rgba(12, 10, 9, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

body.page-light .search-bar input::placeholder { color: var(--text-muted); }
body.page-light .search-bar svg { color: var(--text-muted); }
body.page-light .region-pill {
  background: rgba(12, 10, 9, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
}
body.page-light .icon-btn { color: var(--text); }
body.page-light .btn-ghost {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

body.page-apple .nav-link.active::after {
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

body.page-android .nav-link.active::after {
  background: linear-gradient(90deg, var(--success), var(--gold));
}

/* Page hero band (subpages) */
.page-hero {
  padding: 6.5rem 0 2.5rem;
  background: linear-gradient(160deg, #fafaf9 0%, #f5f5f4 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.page-hero-apple::before {
  background: radial-gradient(ellipse 50% 80% at 85% 30%, rgba(233, 69, 96, 0.1), transparent);
}

.page-hero-android::before {
  background: radial-gradient(ellipse 50% 80% at 85% 30%, rgba(34, 197, 94, 0.1), transparent);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.page-hero .lead {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 42ch;
  line-height: 1.65;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.trust-pill svg { width: 14px; height: 14px; flex-shrink: 0; }
.page-hero-apple .trust-pill svg { color: var(--accent); }
.page-hero-android .trust-pill svg { color: var(--success); }

.page-hero-panel {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.1);
  box-shadow: 0 4px 20px rgba(12, 10, 9, 0.08);
  min-height: 200px;
}

.page-hero-panel h3 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-ui);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-cards {
  display: grid;
  gap: 0.625rem;
}

.highlight-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.highlight-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.page-hero-apple .highlight-card:hover { box-shadow: var(--shadow-glow-apple); }
.page-hero-android .highlight-card:hover { box-shadow: var(--shadow-glow-android); }

.highlight-card .hc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-hero-apple .hc-icon { background: rgba(233, 69, 96, 0.1); color: var(--accent); }
.page-hero-android .hc-icon { background: rgba(34, 197, 94, 0.1); color: var(--success); }

.highlight-card strong {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.highlight-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.highlight-card .hc-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.select-field {
  padding: 0.55rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--surface-solid);
  cursor: pointer;
  color: var(--text);
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--surface-solid);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.page-hero-android .form-field input:focus,
.page-hero-android .form-field select:focus,
.page-hero-android .form-field textarea:focus {
  border-color: var(--success);
}

.rom-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}

.rom-stat {
  padding: 0.875rem;
  border-radius: var(--radius);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  text-align: center;
}

.rom-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--success);
}

.rom-stat span {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quote-preview {
  text-align: center;
  padding: 1.5rem;
}

.quote-preview .qp-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--success);
  line-height: 1;
}

.quote-preview p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.main-content { padding: 2rem 0 4rem; }

.main-content.page-top-spacer {
  padding-top: 7.75rem;
  padding-bottom: 4rem;
}

/* ── Flash service, share, comments, cross-links ── */
.cross-banner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-top: 5.5rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(202, 138, 4, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  color: #44403c;
}

.cross-banner svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.cross-banner span { flex: 1; min-width: 200px; }

.btn-sm { padding: 0.45rem 0.875rem; font-size: 0.8125rem; }

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.share-bar {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.share-bar-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-ui);
}

.share-bar-head svg { width: 18px; height: 18px; color: var(--success); }

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.share-btn svg { width: 14px; height: 14px; }

.share-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
}

.share-facebook .share-icon { background: #1877f2; }
.share-x .share-icon { background: #0f1419; }
.share-youtube .share-icon { background: #ff0000; }
.share-tiktok .share-icon { background: #010101; }
.share-copy { border-color: rgba(28, 25, 23, 0.15); }

.share-toast {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  color: var(--success);
  font-weight: 500;
}

.share-toast[hidden] { display: none; }

.flash-detail { padding: 1.5rem; margin-bottom: 1.5rem; }
.flash-detail h2 { margin: 0 0 1rem; font-size: 1.25rem; }
.flash-detail p { margin: 0 0 0.75rem; color: #44403c; line-height: 1.65; font-size: 0.9375rem; }

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.inline-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--success);
}

.inline-links svg { width: 16px; height: 16px; }

.process-section { margin-bottom: 2rem; }
.section-subtitle { margin: 0 0 1.25rem; font-size: 1.25rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
}

.process-step {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.step-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
}

.process-step p { margin: 0; font-size: 0.8125rem; color: #44403c; line-height: 1.5; }

.comments-section { padding: 1.5rem; margin-bottom: 2rem; }
.comments-head h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.comments-head p { margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--text-muted); }

.comment-moderation-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(234, 179, 8, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.comment-login-gate {
  text-align: center;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.comment-login-gate p { margin: 0 0 0.75rem; color: var(--text-muted); }

.comment-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.comment-form input,
.comment-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  background: var(--bg);
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.comment-list { display: grid; gap: 1rem; }

.comment-item {
  padding: 1rem 1.125rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.comment-author { font-weight: 600; font-size: 0.875rem; }
.comment-time { font-size: 0.75rem; color: var(--text-muted); }
.comment-body { margin: 0; font-size: 0.875rem; line-height: 1.6; color: #44403c; }

.comment-reply {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(34, 197, 94, 0.06);
  border-radius: var(--radius);
  border-left: 3px solid var(--success);
  font-size: 0.8125rem;
  color: #44403c;
}

.comment-reply strong { color: var(--success); font-size: 0.75rem; display: block; margin-bottom: 0.25rem; }

.comment-empty {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.related-services h3 { margin: 0 0 1rem; font-size: 1.125rem; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(4, 1fr); }
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.125rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.related-card.is-current {
  border-color: var(--success);
  box-shadow: var(--shadow-glow-android);
}

.related-card svg { width: 22px; height: 22px; color: var(--success); margin-bottom: 0.25rem; }
.related-card strong { font-size: 0.875rem; font-family: var(--font-ui); }
.related-card span { font-size: 0.75rem; color: var(--text-muted); line-height: 1.45; }

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(202, 138, 4, 0.06) 100%);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: var(--radius-xl);
}

.promo-banner h3 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.promo-banner p { margin: 0; font-size: 0.875rem; color: var(--text-muted); max-width: 480px; }

.hero-light .hero-mosaic .hero-float-flash { grid-area: flash; border-top: 2px solid rgba(202, 138, 4, 0.55); }
.hero-float-flash .hfc-icon { color: var(--gold); background: rgba(202, 138, 4, 0.12); }

@media (min-width: 768px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(5, 1fr); }
}

.hero-light .hero-mosaic .mosaic-panel {
  grid-template-areas:
    "apple android"
    "rom flash"
    "pill pill";
}

@media (max-width: 1023px) {
  .hero-light .hero-mosaic .mosaic-panel {
    grid-template-areas:
      "apple"
      "android"
      "rom"
      "flash"
      "pill";
  }
}

.proto-nav { max-width: calc(100vw - 2rem); flex-wrap: wrap; justify-content: center; }

/* ========== API 动态模块样式 ========== */
.skeleton-card { pointer-events: none; opacity: 0.5; }
.skeleton-card .img-wrap { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: sk-shimmer 1.2s infinite; }
.sk-line { height: 14px; background: #eee; border-radius: 4px; margin-bottom: 8px; }
.sk-line.short { width: 60%; }
@keyframes sk-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.api-empty { text-align: center; color: var(--text-muted, #666); padding: 2rem; grid-column: 1 / -1; }

/* ========== 会员登录 / 注册 — Premium Layout ========== */
.page-account {
  --auth-card-w: 440px;
}

.header-auth-root {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.header-user-name {
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.auth-shell {
  position: relative;
  min-height: 100vh;
  padding: 6.5rem 1.25rem 3rem;
  overflow: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.auth-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: auth-orb-float 18s ease-in-out infinite;
}

.auth-bg-orb-a {
  width: 520px;
  height: 520px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.22), transparent 70%);
}

.auth-bg-orb-b {
  width: 480px;
  height: 480px;
  bottom: -100px;
  right: -60px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);
  animation-delay: -9s;
}

.auth-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 25, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 25, 23, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

@keyframes auth-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -16px) scale(1.05); }
}

.auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 960px) {
  .auth-layout {
    grid-template-columns: 1fr var(--auth-card-w);
    gap: 2.5rem;
    min-height: calc(100vh - 10rem);
    align-items: center;
  }
}

/* ── 左侧品牌展示 ── */
.auth-showcase {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  width: fit-content;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(233, 69, 96, 0.08);
  border: 1px solid rgba(233, 69, 96, 0.15);
}

.auth-badge svg { width: 14px; height: 14px; }

.auth-showcase-title {
  margin: 0 0 0.875rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  max-width: 14ch;
}

.auth-showcase-lead {
  margin: 0 0 2rem;
  max-width: 36ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.auth-benefits {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.auth-benefits li:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.auth-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
}

.auth-benefit-icon svg { width: 18px; height: 18px; }

.auth-benefit-icon-apple { background: rgba(233, 69, 96, 0.1); color: var(--accent); }
.auth-benefit-icon-android { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.auth-benefit-icon-rom { background: rgba(202, 138, 4, 0.12); color: var(--gold); }

.auth-benefits strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.auth-benefits span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.auth-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.auth-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── 右侧表单卡片 ── */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: var(--auth-card-w);
  padding: 2rem 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(28, 25, 23, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
}

.auth-card-head h2 {
  margin: 0 0 0.375rem;
  font-size: 1.625rem;
}

.auth-card-head p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.auth-tabs {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0.25rem;
  margin-bottom: 1.75rem;
  background: var(--bg-mesh);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.auth-tab {
  position: relative;
  z-index: 1;
  padding: 0.6875rem 1rem;
  border: none;
  border-radius: calc(var(--radius) - 4px);
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}

.auth-tab.is-active { color: var(--text); }

.auth-tab-indicator {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: calc(50% - 0.25rem);
  height: calc(100% - 0.5rem);
  background: var(--surface-solid);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: var(--shadow), 0 0 0 1px rgba(28, 25, 23, 0.04);
  transition: transform 320ms var(--ease-spring);
  pointer-events: none;
}

.auth-tabs[data-active-tab="register"] .auth-tab-indicator {
  transform: translateX(100%);
}

.auth-field {
  margin-bottom: 1.125rem;
}

.auth-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4375rem;
  letter-spacing: 0.02em;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-wrap > svg,
.auth-input-wrap > i[data-lucide] {
  position: absolute;
  left: 0.875rem;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
  z-index: 1;
}

.auth-input-wrap input {
  width: 100%;
  padding: 0.75rem 2.75rem 0.75rem 2.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--surface-solid);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth-input-wrap input::placeholder {
  color: rgba(87, 83, 78, 0.45);
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: rgba(233, 69, 96, 0.45);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
  background: #fff;
}

.auth-pw-toggle {
  position: absolute;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.auth-pw-toggle:hover {
  background: var(--bg-mesh);
  color: var(--text);
}

.auth-pw-toggle svg { width: 16px; height: 16px; }

.auth-strength {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.auth-strength-bar {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: var(--border);
  transition: background var(--transition);
}

.auth-strength[data-level="1"] .auth-strength-bar:nth-child(-n+1) { background: #ef4444; }
.auth-strength[data-level="2"] .auth-strength-bar:nth-child(-n+2) { background: #f59e0b; }
.auth-strength[data-level="3"] .auth-strength-bar:nth-child(-n+3) { background: #84cc16; }
.auth-strength[data-level="4"] .auth-strength-bar:nth-child(-n+4) { background: var(--success); }

.auth-field-hint {
  margin: 0.4375rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius);
  background: rgba(233, 69, 96, 0.07);
  border: 1px solid rgba(233, 69, 96, 0.15);
  color: var(--accent);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-glow-apple);
  transition: transform var(--transition), box-shadow var(--transition);
}

.auth-submit svg { width: 18px; height: 18px; }

.auth-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(233, 69, 96, 0.28);
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.auth-switch-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-link-btn {
  border: none;
  background: none;
  padding: 0;
  margin-left: 0.25rem;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-link-btn:hover { color: var(--accent-hover); }

.auth-legal {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.auth-legal a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 959px) {
  .auth-showcase {
    text-align: center;
    align-items: center;
  }

  .auth-badge { margin-left: auto; margin-right: auto; }

  .auth-showcase-title { max-width: none; }

  .auth-showcase-lead { max-width: 42ch; }

  .auth-benefits { width: 100%; max-width: 480px; }

  .auth-stats { justify-content: center; }
}

@media (max-width: 480px) {
  .auth-shell { padding-top: var(--header-clearance); }

  .auth-card { padding: 1.5rem 1.25rem 1.25rem; }

  .auth-benefits li { padding: 0.75rem; }
}

/* ── 全站响应式补强：移动/平板/桌面统一 ── */

.site-header.is-scrolled {
  --header-height: 54px;
  --header-pad: 0.5rem;
}

.page-top-spacer,
.main-content.page-top-spacer,
main.detail-layout.page-top-spacer {
  padding-top: var(--header-clearance);
}

.page-hero,
.hero,
.auth-shell {
  padding-top: var(--header-clearance);
}

.cross-banner {
  margin-top: var(--header-clearance);
}

/* 移动端导航抽屉 */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  color: #fff;
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-main {
    display: none;
    position: fixed;
    top: var(--header-clearance);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem;
    background: rgba(12, 10, 9, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-clearance) - 1rem);
    overflow-y: auto;
  }

  body.nav-open .nav-main { display: flex; }

  .nav-link {
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
  }

  .search-bar,
  .region-pill,
  .header-user-name {
    display: none !important;
  }

  .header-messages-link span,
  .header-messages-link {
    font-size: 0.75rem;
  }

  .filters {
    position: static;
    top: auto;
  }

  .thumb-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .rom-card {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .rom-card .btn { margin-left: 0; width: 100%; }

  .cross-banner span { min-width: 0; flex: 1 1 100%; }

  .pagination,
  .shop-toolbar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}

@media (max-width: 1023px) {
  .site-header .header-shell { overflow: visible; }
  .search-bar { max-width: 180px; flex-basis: 120px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-grid,
  .shop-layout,
  .ex-detail-grid {
    gap: 1.25rem;
  }
}

/* 开源锋 OpenForge 下载中心 */
.page-openforge .los-hero,
.page-lineageos .los-hero { padding-bottom: 1.25rem; }
.los-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.los-hero-inner .lead { max-width: 36rem; margin-bottom: 0; }
.los-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.los-stat {
  text-align: center;
  min-width: 4.5rem;
  padding: 0.65rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.los-stat strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.2;
}
.los-stat span { font-size: 0.6875rem; color: var(--text-muted); }
.los-shell { padding-bottom: 3rem; }
.los-nav {
  margin-bottom: 1.25rem;
  position: sticky;
  top: 4.25rem;
  z-index: 20;
  background: var(--bg);
  padding: 0.35rem 0;
}
.los-view-full { width: 100%; max-width: none; }
.los-panel-head {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.los-panel-head h2 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.los-panel-head p { margin: 0; color: var(--text-muted); font-size: 0.875rem; }
.los-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.los-sidebar {
  padding: 0;
  max-height: calc(100vh - 11rem);
  overflow: auto;
  position: sticky;
  top: 7.5rem;
}
.los-sidebar-head {
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.los-sidebar-head h2 { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.los-filter-input {
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: var(--bg);
}
.los-oem-list { padding: 0.25rem 0; }
.los-oem { border-bottom: 1px solid var(--border); }
.los-oem summary {
  cursor: pointer;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.8125rem;
  list-style: none;
}
.los-oem summary::-webkit-details-marker { display: none; }
.los-oem-count { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }
.los-oem ul { list-style: none; margin: 0; padding: 0 0 0.35rem; }
.los-device-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 0.4rem 1rem 0.4rem 1.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  border-left: 3px solid transparent;
}
.los-device-btn:hover { background: var(--surface-alt); }
.los-device-btn.is-active {
  background: rgba(34, 197, 94, 0.08);
  border-left-color: var(--primary);
}
.los-device-name { font-size: 0.8125rem; font-weight: 500; }
.los-device-code { font-size: 0.6875rem; color: var(--text-muted); font-family: monospace; }
.los-main { min-width: 0; }
.los-welcome {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.los-welcome h2 { margin: 0 0 0.35rem; color: var(--text); }
.los-device-card { padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.los-device-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.los-device-card h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.los-device-meta { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.los-section-title { margin: 0 0 0.75rem; font-size: 1rem; }
.los-build-card { padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.los-build-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.los-build-head h3 { margin: 0; font-size: 0.9375rem; }
.los-build-date { font-size: 0.75rem; color: var(--text-muted); }
.los-build-meta { margin: 0 0 0.75rem; font-size: 0.8125rem; color: var(--text-muted); }
.los-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.los-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.los-table th,
.los-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.los-table tr:last-child td { border-bottom: none; }
.los-table th { font-size: 0.6875rem; text-transform: uppercase; color: var(--text-muted); background: var(--surface-alt); }
.los-file-link {
  color: var(--primary);
  font-weight: 500;
  word-break: break-all;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}
.los-file-link:hover { text-decoration: underline; }
.los-hash-cell { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.los-hash-preview { font-size: 0.6875rem; color: var(--text-muted); }
.los-copy-btn,
.los-verify-btn {
  font-size: 0.625rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}
.los-verify-btn { color: var(--primary); border-color: rgba(34, 197, 94, 0.35); }

/* 变更列表 — 全宽双列网格 */
.los-changes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 0.75rem;
}
.los-change-card {
  padding: 0.9rem 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.los-change-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.los-change-type {
  background: var(--surface-alt);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  text-transform: capitalize;
}
.los-change-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  line-height: 1.4;
  flex: 1;
}
.los-change-card h3 a { color: inherit; text-decoration: none; }
.los-change-card h3 a:hover { color: var(--primary); }
.los-change-card-btn {
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
  text-align: left;
  width: 100%;
}
.los-change-card-btn:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
}
.los-change-card-btn h3 { margin: 0 0 0.35rem; font-size: 0.875rem; line-height: 1.4; color: var(--text); }
.los-change-detail { display: grid; gap: 0.75rem; }
.los-change-detail-head { padding: 1.25rem 1.5rem; }
.los-back-btn { margin-bottom: 0.75rem; }
.los-change-detail-title h2 { margin: 0.5rem 0; font-size: 1.25rem; line-height: 1.35; }
.los-change-status {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-alt);
}
.los-change-status-merged { background: rgba(34, 197, 94, 0.12); color: var(--primary); }
.los-change-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.los-change-stats { margin: 0.5rem 0 0; font-size: 0.8125rem; font-family: monospace; }
.los-change-detail-section { padding: 1.25rem 1.5rem; }
.los-change-detail-section h3 { margin: 0 0 0.75rem; font-size: 0.9375rem; }
.los-commit-message,
.los-change-msg-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  background: var(--surface-alt);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  max-height: 320px;
  overflow: auto;
}
.los-file-path { font-size: 0.6875rem; word-break: break-all; }
.los-diff-add { color: #16a34a; font-family: monospace; }
.los-diff-del { color: #dc2626; font-family: monospace; }
.los-change-messages { display: grid; gap: 0.65rem; }
.los-change-msg { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.75rem; }
.los-change-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

/* Diff 阅读器 */
#losDiffMount { margin-top: 1rem; }
.los-diff-panel { padding: 0; overflow: hidden; }
.los-diff-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.los-diff-panel-head h4 { margin: 0; font-size: 0.8125rem; font-weight: 600; }
.los-diff-truncated {
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #b45309;
  background: #fffbeb;
  border-bottom: 1px solid var(--border);
}
.los-diff-header {
  padding: 0.5rem 1rem;
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.los-diff-header-line { white-space: pre-wrap; }
.los-diff-body {
  max-height: 480px;
  overflow: auto;
  font-family: ui-monospace, monospace;
  font-size: 0.6875rem;
  line-height: 1.45;
}
.los-diff-row {
  display: grid;
  grid-template-columns: 2.5rem 2.5rem 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.los-diff-ln {
  padding: 0 0.35rem;
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  background: rgba(0, 0, 0, 0.02);
  border-right: 1px solid var(--border);
}
.los-diff-code {
  padding: 0 0.65rem;
  white-space: pre-wrap;
  word-break: break-all;
  display: block;
}
.los-diff-context .los-diff-code { background: var(--surface); }
.los-diff-insert { background: rgba(34, 197, 94, 0.1); }
.los-diff-insert .los-diff-code { background: rgba(34, 197, 94, 0.08); }
.los-diff-delete { background: rgba(239, 68, 68, 0.08); }
.los-diff-delete .los-diff-code { background: rgba(239, 68, 68, 0.06); text-decoration: line-through; opacity: 0.85; }
.los-change-meta {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.los-load-more-wrap { text-align: center; margin: 1.25rem 0 0; }

/* 校验 */
.los-verify-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}
.los-verify-drop,
.los-verify-lookup { padding: 1.25rem 1.5rem; }
.los-verify-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.los-verify-dropzone:hover,
.los-verify-dropzone.is-drag {
  border-color: var(--primary);
  background: rgba(34, 197, 94, 0.05);
}
.los-verify-dropzone p { margin: 0.5rem 0 0; }
.los-verify-hint { font-size: 0.75rem; color: var(--text-muted); }
.los-verify-progress { margin-top: 1rem; }
.los-verify-progress-bar {
  height: 6px;
  background: var(--surface-alt);
  border-radius: 3px;
  overflow: hidden;
}
.los-verify-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--primary);
  transition: width 0.2s;
}
.los-verify-progress p { margin: 0.35rem 0 0; font-size: 0.75rem; color: var(--text-muted); }
.los-verify-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.los-verify-result.is-ok { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.35); }
.los-verify-result.is-fail { background: rgba(239, 68, 68, 0.06); border-color: rgba(239, 68, 68, 0.3); }
.los-verify-status { margin: 0 0 0.5rem; font-weight: 600; }
.los-verify-hash-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.5rem;
  font-size: 0.6875rem;
  margin-top: 0.35rem;
  align-items: start;
}
.los-verify-hash-row code { word-break: break-all; font-family: monospace; }
.los-verify-lookup h3 { margin: 0 0 0.75rem; font-size: 0.9375rem; }
.los-hash-full {
  font-family: monospace;
  font-size: 0.6875rem;
  word-break: break-all;
  background: var(--surface-alt);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin: 0.35rem 0 0.5rem;
}
.los-verify-expected label { font-size: 0.75rem; color: var(--text-muted); }

/* 刷机 iframe — 同源镜像嵌入，完整显示 Flash Tools 主内容区 */
.los-flash-panel {
  padding: 0;
  overflow: hidden;
}
.los-flash-intro {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border, #e7e5e4);
}
.los-flash-intro h2 { margin: 0 0 0.35rem; font-size: 1.125rem; }
.los-flash-intro p { margin: 0; font-size: 0.875rem; color: var(--text-muted); }
.los-flash-viewport {
  width: 100%;
  min-height: clamp(480px, 72vh, 760px);
  background: #161616;
}
.los-flash-iframe {
  display: block;
  width: 100%;
  height: clamp(480px, 72vh, 760px);
  min-height: 480px;
  border: none;
  background: #161616;
}
.los-flash-footnote {
  margin: 0;
  padding: 0.75rem 1.5rem 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border, #e7e5e4);
}
.los-search-bar { max-width: 240px; }

/* 下载登录弹窗 */
.los-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.los-modal[hidden] { display: none; }
.los-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.los-modal-card {
  position: relative;
  width: min(100%, 24rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.los-modal-card h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.los-modal-card p { margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.los-modal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.los-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

/* 代刷预约 */
.flash-pkg-card {
  width: 100%;
  text-align: left;
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.flash-pkg-card.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}
.flash-booking-card { width: min(100%, 28rem); }
.flash-booking-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
}
.flash-booking-form { display: grid; gap: 0.85rem; }
.flash-order-id {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.flash-order-id strong {
  color: var(--text);
  font-family: monospace;
}

@media (max-width: 900px) {
  .los-layout { grid-template-columns: 1fr; }
  .los-sidebar {
    max-height: 280px;
    position: static;
  }
  .los-nav { top: 3.5rem; }
  .los-flash-viewport,
  .los-flash-iframe {
    min-height: 420px;
    height: 58vh;
  }
}

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.my-orders-section { margin-top: 1rem; padding: 1rem; }
.my-order-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border, #e5e7eb);
}
.my-order-card:last-child { border-bottom: none; }
.my-order-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.my-order-req {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  white-space: pre-wrap;
}
.auth-gate-card {
  padding: 1.5rem;
  text-align: center;
  max-width: 28rem;
  margin: 2rem auto;
}
