/* BIOSPro 3.0 - Dark Tech Theme */
:root {
  --bg-deep: #050816;
  --bg-main: #0B1220;
  --card: #131D33;
  --card-hover: #1a2844;
  --primary: #22D3EE;
  --primary-dim: #06B6D4;
  --text: #FFFFFF;
  --text-muted: #94A3B8;
  --border: rgba(34, 211, 238, 0.15);
  --glass: rgba(19, 29, 51, 0.72);
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #67e8f9; }

/* ===== Dynamic Background (4 layers + motion) ===== */
.bg-layers {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #050816;
}

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

/* Layer 1: gradient */
.bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(6, 182, 212, 0.25) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 60%, rgba(14, 116, 144, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0B1220 0%, #050816 100%);
  animation: gradientPulse 20s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.15); }
}

/* Layer 2: tech grid */
.bg-grid {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.09) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 22s linear infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.bg-grid-2 {
  background-size: 56px 56px;
  opacity: 0.5;
  animation: gridDrift2 28s linear infinite reverse;
}

@keyframes gridDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(56px, 56px) rotate(0deg); }
}

@keyframes gridDrift2 {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-56px, 28px); }
}

/* Layer 3: aurora */
.bg-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
}

.bg-aurora-1 {
  width: 70vw;
  height: 50vh;
  top: -5%;
  left: -10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45) 0%, rgba(6, 182, 212, 0.2) 40%, transparent 70%);
  animation: auroraA 18s ease-in-out infinite;
}

.bg-aurora-2 {
  width: 60vw;
  height: 45vh;
  top: 20%;
  right: -15%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.4) 0%, rgba(14, 165, 233, 0.15) 45%, transparent 70%);
  animation: auroraB 24s ease-in-out infinite;
}

.bg-aurora-3 {
  width: 50vw;
  height: 40vh;
  bottom: -5%;
  left: 25%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, transparent 65%);
  animation: auroraC 20s ease-in-out infinite reverse;
}

@keyframes auroraA {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  33% { transform: translate(12vw, 8vh) scale(1.15); opacity: 1; }
  66% { transform: translate(-5vw, 12vh) scale(0.95); opacity: 0.8; }
}

@keyframes auroraB {
  0%, 100% { transform: translate(0, 0) scale(1.1); opacity: 0.6; }
  50% { transform: translate(-15vw, 6vh) scale(0.9); opacity: 1; }
}

@keyframes auroraC {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(8vw, -10vh); opacity: 0.9; }
}

/* Light beams */
.bg-beam {
  position: absolute;
  width: 2px;
  height: 120%;
  top: -10%;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  filter: blur(1px);
  opacity: 0.4;
}

.bg-beam-1 { left: 25%; animation: beamMove 25s ease-in-out infinite; }
.bg-beam-2 { left: 72%; animation: beamMove 30s ease-in-out infinite reverse; animation-delay: -8s; }

@keyframes beamMove {
  0%, 100% { transform: translateX(0) rotate(8deg); opacity: 0.2; }
  50% { transform: translateX(80px) rotate(12deg); opacity: 0.55; }
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.8) 0%, transparent 70%);
  filter: blur(20px);
}

.bg-orb-1 { width: 120px; height: 120px; top: 15%; left: 10%; animation: orbFloat 16s ease-in-out infinite; }
.bg-orb-2 { width: 80px; height: 80px; bottom: 25%; right: 12%; animation: orbFloat 22s ease-in-out infinite reverse; }

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(30px, -40px); opacity: 0.75; }
}

/* Content above background */
.site-header { position: relative; z-index: 10; flex-shrink: 0; }
.page-content {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
}
.site-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
}

.site-footer > .container {
  width: min(1200px, 92vw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Layout ===== */
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.65rem 0;
  gap: 1rem;
}

.logo {
  justify-self: start;
  grid-column: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.02em;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.22));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.38));
  transform: translateY(-1px);
}

.logo-text {
  color: #fff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.logo-accent {
  background: linear-gradient(135deg, #06B6D4 0%, #22D3EE 45%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55));
}

.page-home .logo {
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.nav-main {
  justify-self: center;
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  padding: 0.35rem;
  background: rgba(5, 8, 22, 0.65);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-main a {
  color: rgba(226, 232, 240, 0.88);
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-main a:hover {
  color: #fff;
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.22);
}

.nav-main a.active {
  color: var(--primary);
  background: rgba(34, 211, 238, 0.14);
  border-color: rgba(34, 211, 238, 0.38);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
}

.btn-taobao {
  justify-self: end;
  grid-column: 3;
  background: linear-gradient(135deg, var(--primary-dim), var(--primary));
  color: #050816 !important;
  padding: 0.62rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}
.btn-taobao:hover { filter: brightness(1.1); color: #050816 !important; }

.mobile-toggle {
  display: none;
  grid-column: 3;
  justify-self: end;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-2px);
}

/* ===== Hero (home first screen) ===== */
.page-home {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-home .site-header {
  position: relative;
  flex-shrink: 0;
}

.page-home .header-inner {
  padding: 0.5rem 0;
}

.page-home .page-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .page-content > .container {
  width: 100%;
  max-width: none;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-viewport {
  width: min(820px, 96vw);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.5rem, 1.4vh, 0.85rem);
}

.hero-glass {
  width: 100%;
  padding: clamp(1rem, 2.4vh, 1.55rem) clamp(1.25rem, 3vw, 1.75rem) clamp(0.9rem, 2vh, 1.35rem);
  text-align: center;
  background: rgba(19, 29, 51, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  flex-shrink: 1;
  min-height: 0;
}

.hero-brand {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.05em;
  margin: 0 auto clamp(0.65rem, 1.4vh, 1rem);
  font-size: clamp(1.35rem, 2.8vh, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-brand-text {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.hero-brand-accent {
  background: linear-gradient(135deg, #06B6D4, #22D3EE, #a5f3fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.5));
}

.hero-headline {
  font-size: clamp(1.1rem, 2.4vh + 0.5rem, 1.9rem);
  font-weight: 700;
  line-height: 1.38;
  margin: 0;
  color: #fff;
  text-align: center;
  flex-shrink: 0;
}

.hero-headline i {
  font-style: normal;
  color: rgba(34, 211, 238, 0.45);
  font-weight: 300;
  margin: 0 0.15em;
}

.hero-tags {
  font-size: clamp(0.76rem, 1.65vh, 0.9rem);
  color: var(--text-muted);
  margin: clamp(0.55rem, 1.1vh, 0.8rem) 0 clamp(0.4rem, 0.85vh, 0.6rem);
  letter-spacing: 0.02em;
}

.hero-device {
  font-size: clamp(0.76rem, 1.65vh, 0.9rem);
  color: var(--text-muted);
  margin: 0 0 clamp(0.5rem, 1.1vh, 0.75rem);
  text-align: center;
}

.hero-device em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

/* 首页工具图标 - 点击直接下载绿色版 */
.hero-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.55rem, 1.3vh, 0.8rem);
  margin-top: 0;
}

.tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.65rem, 1.5vh, 0.85rem) clamp(0.75rem, 1.6vh, 1rem);
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.12);
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.tool-btn-brand {
  background: rgba(255, 255, 255, 0.04);
}

.tool-btn-brand:hover {
  background: rgba(255, 255, 255, 0.07);
}

.tool-brand {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vh, 0.65rem);
  min-width: 0;
}

.tool-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: left;
}

.tool-brand-name {
  font-size: clamp(0.88rem, 1.85vh, 1.02rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tool-brand-sub {
  margin-top: 0.1rem;
  font-size: clamp(0.62rem, 1.2vh, 0.72rem);
  font-weight: 500;
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.2;
  white-space: nowrap;
}

.tool-brand-todesk .tool-brand-name { color: #1785ff; }
.tool-brand-sunlogin .tool-brand-name { color: #ff0042; }
.tool-brand-cherry .tool-brand-name { color: #4ade80; }
.tool-brand-anydesk .tool-brand-name { color: #ef4444; }

.tool-btn-brand:hover .tool-brand-name {
  filter: brightness(1.12);
}

.tool-btn-brand.tool-brand-cherry:hover {
  border-color: rgba(74, 222, 128, 0.42);
  box-shadow: 0 8px 24px rgba(57, 255, 20, 0.12);
}

.tool-btn:hover {
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15);
  color: #fff;
}

.tool-btn-highlight {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
  background: rgba(34, 211, 238, 0.06);
}

.tool-icon-todesk {
  padding: 0.35rem;
}

.tool-icon {
  width: clamp(38px, 5.5vh, 44px);
  height: clamp(38px, 5.5vh, 44px);
  flex-shrink: 0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.tool-icon img {
  width: clamp(26px, 4vh, 30px);
  height: clamp(26px, 4vh, 30px);
  object-fit: contain;
}

/* 向日葵 / 小樱桃：图标铺满整块区域，不要白边留白 */
.tool-icon.tool-icon-sunlogin,
.tool-icon.tool-icon-cherry {
  padding: 0;
  background: transparent;
  box-shadow: none;
  display: block;
  line-height: 0;
}

.tool-icon.tool-icon-sunlogin img,
.tool-icon.tool-icon-cherry img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  border-radius: inherit;
  object-fit: cover;
  display: block;
}

.tool-icon-contact {
  background: rgba(19, 29, 51, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.tool-icon-contact svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.tool-label {
  font-size: clamp(0.78rem, 1.75vh, 0.92rem);
  font-weight: 600;
  color: rgba(226, 232, 240, 0.96);
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  padding: 0 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-btn:hover .tool-label {
  color: var(--primary);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.25);
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 0.4rem;
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.15);
  color: var(--text);
  font-size: 0.75rem;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.action-btn svg { width: 22px; height: 22px; color: var(--primary); }

.action-btn:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
  color: #fff;
}

.action-primary {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(34, 211, 238, 0.2));
  border-color: rgba(34, 211, 238, 0.4);
}

/* Hot strip (首页第一屏底部) */
.home-viewport .hot-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(0.45rem, 1.1vh, 0.6rem) 0.9rem;
  width: 100%;
  background: rgba(19, 29, 51, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.home-viewport .hot-label {
  font-size: clamp(0.72rem, 1.5vh, 0.82rem);
}

.home-viewport .hot-item {
  padding: 0.3rem 0.65rem;
  font-size: clamp(0.7rem, 1.4vh, 0.78rem);
}

.hot-label {
  font-size: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
}

.hot-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hot-scroll::-webkit-scrollbar { display: none; }

.hot-item {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(19, 29, 51, 0.8);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.hot-item:hover { color: var(--primary); border-color: rgba(34,211,238,0.35); }
.hot-more { color: var(--primary); }

/* ===== Legacy hero (other pages) ===== */
.hero {
  padding: 3rem 0 4rem;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-sub strong { color: var(--primary); font-weight: 500; }

/* ===== Search ===== */
.search-box {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.page-home .search-box {
  z-index: 120;
}

.page-home .hero-glass {
  overflow: visible;
}

.page-home .home-viewport {
  overflow: visible;
}

.search-form {
  display: flex;
  gap: 0;
  background: rgba(5, 8, 22, 0.7);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 12px;
  overflow: hidden;
}

.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: clamp(0.82rem, 1.6vh, 0.92rem);
  padding: clamp(0.65rem, 1.5vh, 0.8rem) 0.85rem;
  outline: none;
  min-width: 0;
}

.search-form input::placeholder { color: rgba(148, 163, 184, 0.7); }

.search-form button {
  background: linear-gradient(135deg, #06B6D4, #22D3EE);
  color: #050816;
  border: none;
  padding: clamp(0.65rem, 1.5vh, 0.8rem) 1rem;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.5vh, 0.88rem);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-form button:hover { filter: brightness(1.08); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: rgba(5, 8, 22, 0.97);
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 10px;
  max-height: min(320px, 42vh);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 200;
  display: none;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(34, 211, 238, 0.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.search-suggestions-portal {
  z-index: 10000;
}

.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggestions.show { display: block; }

.search-suggestions .suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.9rem;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
  font-size: 0.88rem;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.search-suggestions .suggest-item:last-child { border-bottom: none; }

.search-suggestions .suggest-item:hover,
.search-suggestions .suggest-item:focus-visible {
  background: rgba(34, 211, 238, 0.12);
  color: #fff;
}

.search-suggestions .suggest-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestions .suggest-meta {
  flex-shrink: 0;
  color: rgba(148, 163, 184, 0.92);
  font-size: 0.78rem;
  text-align: right;
}

.search-suggestions-empty {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.device-detect {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.device-detect .device-badge {
  background: rgba(34, 211, 238, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

/* ===== Quick Actions ===== */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--text);
}
.quick-action .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.quick-action span { font-size: 0.875rem; font-weight: 500; }

/* ===== Sections ===== */
.section { padding: 3rem 0; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--primary);
  border-radius: 2px;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: stretch; }

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 1.5rem;
}

.contact-card-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.contact-dl {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.contact-wechat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem 0 0.25rem;
  margin-top: 0.5rem;
}

.contact-wechat-label {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.contact-wechat-id {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: var(--primary);
}

.contact-wechat-qr {
  width: 168px;
  height: 168px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.12);
}

.contact-wechat-tip {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.95rem;
}

.contact-row dt {
  color: var(--text-muted);
  margin: 0;
}

.contact-row dd {
  margin: 0;
  color: var(--text);
  word-break: break-all;
}

.contact-service-groups {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-service-group-label {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
  opacity: 0.9;
}

.contact-service-group-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.45rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.45);
  vertical-align: middle;
  transform: translateY(-1px);
}

.contact-services {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem 0.75rem;
  align-content: start;
}

.contact-services li {
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text-muted);
  padding: 0.48rem 0.5rem;
  background: rgba(11, 18, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.contact-services li:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.contact-card-foot {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ===== BIOS Card ===== */
.bios-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bios-card h3 { font-size: 1rem; margin-bottom: 0.35rem; line-height: 1.4; }
.bios-card .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.bios-card .tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; }

.bios-card-pricing {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(34, 211, 238, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bios-card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.bios-card-price-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 0;
}

.bios-card-price-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-align: right;
}

.bios-card-price-amount .price-display {
  justify-content: flex-end;
}

.bios-card-price-amount-sub,
.bios-card-price-amount-sub .price-display-num {
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
}

.bios-card-price-amount-sub {
  font-size: 0.82rem;
}

.bios-card-price-row-sub .bios-card-price-label,
.bios-card-price-row-sub .bios-card-price-amount {
  font-size: 0.82rem;
  font-weight: 500;
}

.bios-card-price-row-sub .bios-card-price-amount {
  color: rgba(226, 232, 240, 0.85);
  font-weight: 600;
}
.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--primary);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.rev-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  margin: 0.35rem 0;
}

.rev-badge-lg {
  font-size: 0.78rem;
  padding: 0.18rem 0.55rem;
  line-height: 1.2;
  margin: 0;
}

.rev-missing {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
  font-weight: 500;
}

.rev-tip {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid #fbbf24;
  border-radius: 0 8px 8px 0;
  text-align: left;
}

.bios-card-desc {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-dim), var(--primary));
  color: #050816;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== Detail Page ===== */
.firmware-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.firmware-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.45rem);
  background: rgba(19, 29, 51, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.22);
}

.firmware-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 1.25rem;
  align-items: stretch;
}

.firmware-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.firmware-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.45rem;
  align-items: center;
}

.firmware-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.firmware-brand {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  line-height: 1.2;
}

.firmware-spec {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.firmware-hero-details {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
}

.firmware-hero-intro {
  min-width: 0;
}

.firmware-hero-price-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-shrink: 0;
  min-width: 7.5rem;
  padding: 0.35rem 0.85rem;
  border-left: 1px solid rgba(34, 211, 238, 0.14);
}

.firmware-price-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
}

.price-display-hero {
  font-size: clamp(2.35rem, 4.5vw, 3.15rem);
  color: var(--primary);
  text-shadow: 0 0 28px rgba(34, 211, 238, 0.22);
}

.price-display-hero .price-display-yen {
  margin-top: 0.2em;
}

.firmware-price-hero-label {
  margin: 0;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1.3;
}

.firmware-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.firmware-price-chip {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  padding: 0.14rem 0.5rem;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  line-height: 1;
}

.price-display-chip {
  font-size: 1.55rem;
  color: var(--primary);
}

.price-display-chip .price-display-yen {
  margin-top: 0.16em;
}

.price-display-chip-sub {
  font-size: 0.74rem;
  color: rgba(203, 213, 225, 0.92);
}

.firmware-price-chip-label {
  margin: 0;
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
  line-height: 1;
}

.firmware-hero-remote-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  margin: 0;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  line-height: 1;
}

.firmware-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
}

.firmware-risk-tip {
  margin: 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #fbbf24;
  font-weight: 600;
}

.firmware-rev-notice {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid #fbbf24;
  border-radius: 0 10px 10px 0;
}

.firmware-rev-notice strong {
  color: #fbbf24;
  font-weight: 600;
}

.firmware-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.firmware-hero-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 0;
  padding: 0.5rem 0.65rem;
  background: rgba(11, 18, 32, 0.42);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 10px;
  text-align: center;
}

.firmware-hero-aside .price-display-lg {
  font-size: 1.55rem;
}

.firmware-hero-aside .price-display-yen {
  margin-top: 0.18em;
}

.hero-price-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

/* ===== Price Display ===== */
.price-display {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}

.price-display-yen {
  font-size: 0.6em;
  font-weight: 600;
  margin-top: 0.22em;
  margin-right: 0.05em;
  line-height: 1;
  opacity: 0.92;
}

.price-display-num {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-display-lg {
  font-size: 2.35rem;
  color: var(--primary);
}

.price-display-sm {
  font-size: 0.92rem;
  color: rgba(226, 232, 240, 0.95);
}

.price-display-sm .price-display-yen {
  margin-top: 0.16em;
}

.firmware-hero-price-note {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.firmware-hero-remote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(34, 211, 238, 0.1);
  font-size: 0.72rem;
  color: rgba(203, 213, 225, 0.88);
}

.firmware-hero-aside .price-display-sm {
  font-size: 0.78rem;
}

.firmware-hero-remote-label {
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
}

.firmware-list-pricing {
  margin: -0.75rem 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.firmware-list-pricing strong {
  color: var(--primary);
  font-weight: 600;
}


.bios-card-dual {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fbbf24;
}

.firmware-dual-tip {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.92);
  background: rgba(251, 191, 36, 0.08);
  border-left: 3px solid #fbbf24;
  border-radius: 0 10px 10px 0;
}

.detail-buy-price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.price-option {
  position: relative;
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: rgba(11, 18, 32, 0.45);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 12px;
}

.price-option-featured {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

.price-option-badge {
  position: absolute;
  top: -0.45rem;
  right: 0.85rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #050816;
  background: linear-gradient(135deg, #06B6D4, #22D3EE);
  border-radius: 999px;
}

.price-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.price-option-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.price-option-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.price-option-amount .price-display {
  font-size: 1em;
  color: inherit;
}

.price-option-desc {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.price-option-tip {
  margin: 0 0 0.35rem;
  padding-left: 0.65rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.88);
  border-left: 2px solid rgba(34, 211, 238, 0.35);
}

.price-option-tutorial {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
}

.price-option-tutorial a {
  color: var(--primary);
  text-decoration: none;
}

.price-option-tutorial a:hover {
  text-decoration: underline;
}

.price-option-remote-hint {
  margin: 0 0 0.55rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.74rem;
  line-height: 1.45;
  color: rgba(186, 196, 214, 0.92);
  background: rgba(56, 189, 248, 0.05);
  border-radius: 6px;
  border-left: 2px solid rgba(56, 189, 248, 0.3);
}

.price-option-tag {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(74, 222, 128, 0.9);
  line-height: 1.45;
}

.price-option .btn-block {
  width: 100%;
  margin: 0;
}

.detail-policy {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.detail-policy p {
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.detail-policy p:last-child {
  margin-bottom: 0;
}

.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.detail-panel-title {
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.detail-info dl { display: grid; grid-template-columns: 100px 1fr; gap: 0.55rem 1rem; font-size: 0.9rem; }
.detail-info dt { color: var(--text-muted); }
.detail-code {
  font-size: 0.78rem;
  word-break: break-all;
}
.detail-desc {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.detail-desc-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}
.detail-desc p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.75;
}
.detail-desc-link {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
}
.detail-desc-link a {
  color: var(--primary);
  text-decoration: none;
}
.detail-desc-link a:hover {
  text-decoration: underline;
}
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}
.detail-buy-price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}
.detail-buy-note {
  margin: 0.35rem 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.detail-pay-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0 0.35rem;
}
.detail-contact-btn { margin-top: 0.75rem; }
.detail-synology {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.detail-stats {
  padding: 1rem 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.detail-stats p { margin: 0.25rem 0; }
.firmware-related { margin-top: 2.5rem; }
.text-muted { color: var(--text-muted); }

.order-success-card { padding: 1.75rem; max-width: 560px; margin: 0 auto; }
.order-success-model { font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 0.5rem; }
.order-success-desc { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
.order-download-btn { margin-bottom: 0.75rem; font-size: 1rem; padding: 0.85rem 1rem; }
.order-success-note { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 1.25rem; }
.order-instructions { margin: 1.25rem 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.order-instructions h3 { margin: 0 0 0.5rem; font-size: 0.95rem; color: #fff; }
.order-instructions p { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--text-muted); }
.order-success-tip { font-size: 0.8rem; color: #fbbf24; margin: 1rem 0; }
.version-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.version-badge {
  background: var(--bg-main);
  border: 1px solid var(--border);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}

/* ===== Download Page ===== */
.download-card { text-align: center; padding: 2rem; }
.download-card .platform-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }

.page-home .site-footer {
  flex-shrink: 0;
  margin-top: 0;
  background: transparent;
  border-top: none;
  padding: clamp(0.25rem, 0.8vh, 0.45rem) 0 clamp(0.4rem, 1.2vh, 0.65rem);
}

.page-home .site-footer .container {
  width: min(820px, 96vw);
}

.page-home .footer-stats {
  max-width: none;
  margin: 0 auto 0.35rem;
  padding: clamp(0.4rem, 1vh, 0.55rem) 1rem;
  background: rgba(19, 29, 51, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 14px;
  gap: clamp(0.85rem, 2.2vw, 1.5rem);
  font-size: clamp(0.76rem, 1.55vh, 0.88rem);
}

.page-home .footer-note {
  font-size: clamp(0.68rem, 1.25vh, 0.76rem);
  margin-bottom: 0.35rem;
}

.page-home .footer-copy {
  opacity: 0.7;
  font-size: clamp(0.72rem, 1.35vh, 0.82rem);
  margin: 0;
}

/* 首页搜索框加大 */
.page-home .search-form {
  border-radius: 14px;
}

.page-home .search-form input {
  font-size: clamp(0.92rem, 1.85vh, 1.05rem);
  padding: clamp(0.78rem, 1.85vh, 1rem) 1.05rem;
}

.page-home .search-form button {
  font-size: clamp(0.88rem, 1.75vh, 0.98rem);
  padding: clamp(0.78rem, 1.85vh, 1rem) 1.4rem;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 1rem;
  background: rgba(11, 18, 32, 0.6);
  text-align: center;
}

.footer-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-stats strong { color: var(--primary); }

.footer-note {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.9);
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  opacity: 0.75;
}

.footer-sep { margin: 0 0.4rem; opacity: 0.45; }

/* ===== Filters ===== */
.filters { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filters select, .filters input {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.firmware-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.firmware-toolbar .filters {
  flex-shrink: 0;
  margin-bottom: 0;
  flex-wrap: nowrap;
  align-items: stretch;
}

.firmware-toolbar .filters select {
  min-width: 7.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  padding-right: 1.75rem;
}

.firmware-toolbar .filters .btn {
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  white-space: nowrap;
}

.firmware-search-box {
  position: relative;
  z-index: 50;
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.page-firmware .firmware-search-box .search-form {
  height: 100%;
  border-radius: 12px;
}

.page-firmware .firmware-search-box .search-form input {
  font-size: 0.92rem;
  padding: 0.65rem 1rem;
}

.page-firmware .firmware-search-box .search-form button {
  font-size: 0.88rem;
  padding: 0.65rem 1.25rem;
}

.firmware-result-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.firmware-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
}

.firmware-pagination-info {
  color: var(--text-muted);
  font-size: 0.9rem;
  min-width: 6rem;
  text-align: center;
}

.firmware-page-btn {
  min-width: 6.5rem;
  text-align: center;
  text-decoration: none;
}

.firmware-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ===== Payment ===== */
.payment-options { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.payment-qr { max-width: 200px; border-radius: 8px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-actions { grid-template-columns: repeat(2, 1fr); }
  .page-home .hero-headline i { display: inline; }
  .page-home .hero-headline span { display: inline; }
  .page-home .hero-headline {
    font-size: clamp(0.95rem, 2vh + 0.4rem, 1.35rem);
  }
  .hero-tools { grid-template-columns: repeat(3, 1fr); }
  .hero-headline i { display: none; }
  .hero-headline span { display: block; margin: 0.15em 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-services { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .firmware-hero-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem 0;
  }
  .firmware-hero-price-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    padding: 0.75rem 0 0;
    border-left: none;
    border-top: 1px solid rgba(34, 211, 238, 0.14);
  }
  .firmware-price-hero {
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
  }
  .price-display-hero {
    font-size: 2.15rem;
  }
  .firmware-hero-remote-line {
    justify-content: flex-end;
  }
  .firmware-hero-head {
    grid-template-columns: 1fr;
    row-gap: 0.55rem;
  }
  .firmware-hero-intro,
  .firmware-hero-price-col {
    grid-column: 1;
    grid-row: auto;
  }
  .logo { font-size: 1.55rem; letter-spacing: 0.05em; }
  .page-home .logo { font-size: 1.65rem; }
  .firmware-toolbar {
    flex-direction: column;
  }
  .firmware-toolbar .filters {
    flex-wrap: wrap;
  }
  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.65rem;
    border-radius: 12px;
    margin-top: 0.5rem;
  }
  .nav-main.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 18, 32, 0.97);
    padding: 0.75rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }
  .nav-main.open a {
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }
  .mobile-toggle { display: block; }
  .header-inner {
    position: relative;
    grid-template-columns: 1fr auto auto;
  }
  .nav-main {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
  .btn-taobao {
    grid-column: 2;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
  }
  .mobile-toggle {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .page-home .search-form { flex-direction: column; }
}

/* ===== Admin styles (frontend minimal) ===== */
.page-content > .container {
  flex: 1 0 auto;
  width: min(1200px, 92vw);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 教程详情 ===== */
.tutorial-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.tutorial-hero {
  margin-bottom: 1.75rem;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
  background: rgba(19, 29, 51, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.tutorial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.tutorial-cat {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.tutorial-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tutorial-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  letter-spacing: 0.01em;
}

.tutorial-lead {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(148, 163, 184, 0.92);
}

.tutorial-risk-tip {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(251, 191, 36, 0.22);
  font-size: 0.95rem;
  line-height: 1.75;
  color: #fbbf24;
  font-weight: 600;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1.5rem;
  align-items: start;
}

.tutorial-article {
  padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem);
  background: rgba(19, 29, 51, 0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 18px;
}

.tutorial-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 5.5rem;
}

.tutorial-side-card {
  padding: 1.1rem 1.15rem;
  background: rgba(19, 29, 51, 0.55);
  border: 1px solid rgba(34, 211, 238, 0.14);
  border-radius: 14px;
}

.tutorial-side-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tutorial-side-link {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
  transition: color 0.15s ease;
}

.tutorial-side-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tutorial-side-link:hover {
  color: var(--primary);
}

.tutorial-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(5, 8, 22, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 10px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tutorial-back:hover {
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.06);
}

/* 教程正文排版 */
.tutorial-buy-banner {
  margin-bottom: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 14px;
}

.tutorial-buy-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.tutorial-buy-desc {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.tutorial-buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tutorial-buy-actions .btn {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

.article-prose {
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(226, 232, 240, 0.92);
}

.article-prose > p:first-child {
  margin-top: 0;
  font-size: 0.98rem;
  color: rgba(203, 213, 225, 0.95);
}

.article-prose p {
  margin: 0 0 1.15rem;
}

.article-prose strong {
  color: #fff;
  font-weight: 600;
}

.article-prose h2 {
  margin: 2rem 0 1rem;
  padding: 0.65rem 0 0.65rem 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.1) 0%, transparent 100%);
  border-left: 3px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose h3 {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(34, 211, 238, 0.95);
}

.article-prose ol {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  counter-reset: tutorial-step;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.article-prose ol li {
  counter-increment: tutorial-step;
  position: relative;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: rgba(5, 8, 22, 0.45);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.article-prose ol li::before {
  content: counter(tutorial-step);
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 1.65rem;
  height: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #050816;
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  border-radius: 8px;
}

.article-prose ul {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem 1rem 1.35rem;
  list-style: none;
  background: rgba(5, 8, 22, 0.35);
  border: 1px solid rgba(34, 211, 238, 0.08);
  border-radius: 12px;
}

.article-prose ul li {
  position: relative;
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.95);
}

.article-prose ul li:last-child {
  margin-bottom: 0;
}

.article-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}

.article-prose code {
  padding: 0.12em 0.4em;
  font-size: 0.88em;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 4px;
}

.article-prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

  .tutorial-aside {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .tutorial-side-card {
    flex: 1;
    min-width: 200px;
  }

  .tutorial-back {
    flex: 1;
    min-width: 160px;
  }
}

/* ===== 教程列表 ===== */
.tutorial-list-desc {
  margin: -0.5rem 0 1.5rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.tutorial-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tutorial-cat-pill {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(19, 29, 51, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.tutorial-cat-pill:hover {
  color: var(--primary);
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.tutorial-section {
  margin-bottom: 2.5rem;
}

.tutorial-section-title {
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  border-left: 3px solid var(--primary);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.25rem;
  background: rgba(19, 29, 51, 0.5);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 14px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.tutorial-card:hover {
  border-color: rgba(34, 211, 238, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.tutorial-card-cat {
  align-self: flex-start;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(34, 211, 238, 0.1);
  border-radius: 6px;
}

.tutorial-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}

.tutorial-card-summary {
  flex: 1;
  margin: 0.45rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutorial-card-risk {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #fbbf24;
  font-weight: 600;
}

.tutorial-card-more {
  font-size: 0.78rem;
  color: var(--primary);
  opacity: 0.85;
}

.tutorial-card:hover .tutorial-card-more {
  opacity: 1;
}

.article-content { line-height: 1.8; }
.article-content p { margin-bottom: 1rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ===== 微信悬浮按钮 ===== */
.wechat-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 200;
}

.wechat-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem 0.55rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: #07c160;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(7, 193, 96, 0.45);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

.wechat-float-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(7, 193, 96, 0.5);
}

.wechat-float-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wechat-modal[hidden] {
  display: none;
}

.wechat-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(4px);
}

.wechat-modal-box {
  position: relative;
  z-index: 1;
  width: min(300px, 92vw);
  padding: 1.5rem 1.25rem 1.35rem;
  text-align: center;
  background: rgba(19, 29, 51, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.wechat-modal-box h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}

.wechat-modal-tip {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.wechat-modal-qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 0.35rem;
}

.wechat-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.wechat-modal-close:hover {
  color: #fff;
}

@media (max-width: 560px) {
  .wechat-float {
    right: 0.85rem;
    bottom: 1rem;
  }
  .wechat-float-btn {
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    font-size: 0.92rem;
  }
}
