@font-face {
  font-family: "OPlusSans3";
  src: url("../fonts/OPlusSans3-Regular.47fab42.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "OPlusSans3", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-scale: 1;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #333;
  background: #f0f2f5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.topbar {
  height: 48px;
  background: #1a2332;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(15px * var(--font-scale));
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  height: 48px;
  gap: 4px;
}

.nav-item {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: calc(14px * var(--font-scale));
  color: rgba(255,255,255,0.85);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.nav-item:hover { color: #fff; }

.nav-item.active {
  color: #fff;
  border-bottom-color: #3b82f6;
}

.logo-icon {
  width: 28px;
  height: 28px;
  border: 2px solid #7eb8e8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid #7eb8e8;
  border-radius: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: calc(13px * var(--font-scale));
  color: rgba(255,255,255,0.85);
}

.topbar-right a:hover { color: #fff; }

.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.page-title {
  font-size: calc(22px * var(--font-scale));
  font-weight: 600;
  color: #1a1a1a;
}

.page-meta {
  font-size: calc(12px * var(--font-scale));
  color: #999;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
  transform: translateY(-1px);
}

.product-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  background: #0c111a;
  border-bottom: 1px solid #f0f0f0;
}

.product-cover.is-placeholder,
.detail-main-img.is-placeholder,
.detail-thumb.is-placeholder,
.detail-imgs img.is-placeholder {
  object-fit: cover;
  background: #0c111a;
}

.product-body {
  padding: 18px 18px 20px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.product-tag {
  font-size: calc(11px * var(--font-scale));
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 0;
}

/* ===== Shop filters ===== */
.page-shop {
  background: #f4f6f9;
}

.shop-layout .page-header {
  margin-bottom: 16px;
}

.shop-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.shop-filters {
  position: sticky;
  top: 64px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 16px;
}

.filter-search {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 13px;
}

.filter-search-btn,
.filter-reset {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 0;
}

.filter-search-btn {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.filter-reset {
  width: 100%;
  margin-top: 12px;
}

.filter-group + .filter-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.filter-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  border: 1px solid #e8e8e8;
  background: #fafafa;
  color: #666;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 0;
}

.filter-chip.active,
.filter-chip:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.filter-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #666;
}

.filter-tag {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  font-size: 12px;
}

.filter-clear {
  border: none;
  background: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 12px;
}

.product-name {
  font-size: calc(16px * var(--font-scale));
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-all;
}

.product-price {
  margin-top: 12px;
  font-size: calc(24px * var(--font-scale));
  font-weight: 600;
  color: #e74c3c;
  font-variant-numeric: tabular-nums;
}

.product-price.is-free {
  color: #16a34a;
}

.product-price small {
  font-size: calc(13px * var(--font-scale));
  color: #999;
  font-weight: 400;
  margin-left: 6px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.product-downloads {
  font-size: calc(12px * var(--font-scale));
  color: #8c8c8c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.status-tag {
  display: inline-block;
  margin-top: 0;
  padding: 2px 8px;
  border-radius: 0;
  font-size: 11px;
  line-height: 18px;
  flex-shrink: 0;
}

.status-active { color: #389e0d; background: #f6ffed; border: 1px solid #b7eb8f; }
.status-inactive { color: #8c8c8c; background: #f5f5f5; border: 1px solid #d9d9d9; }
.status-suppressed { color: #cf1322; background: #fff1f0; border: 1px solid #ffa39e; }

.state-box {
  grid-column: 1 / -1;
  text-align: center;
  color: #999;
  padding: 48px 16px;
  background: #fff;
  border: 1px dashed #e8e8e8;
  border-radius: 12px;
}

.state-box.error { color: #cf1322; }

/* ===== Home Premium ===== */
.page-home {
  background: #f4f6f9;
}

.page-home .page-shell {
  max-width: 1320px;
}

.page-home .topbar {
  background: rgba(12, 17, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.home-hero-wrap {
  position: relative;
  overflow: hidden;
  background: #0c111a;
  padding: 56px 0 88px;
  margin-bottom: -36px;
}

.home-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.home-hero-glow-a {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 8%;
  background: rgba(59, 130, 246, 0.22);
}

.home-hero-glow-b {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -40px;
  background: rgba(201, 169, 98, 0.14);
}

.home-hero-shell {
  position: relative;
  z-index: 1;
  padding-top: 0;
  padding-bottom: 0;
}

.home-shell {
  padding-top: 0;
  padding-bottom: 0;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 32px;
  align-items: center;
  color: #fff;
}

.home-hero-main { min-width: 0; }

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(11px * var(--font-scale));
  color: rgba(255,255,255,0.55);
  letter-spacing: 2px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, #c9a962, transparent);
}

.home-title {
  font-size: calc(44px * var(--font-scale));
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.home-title em {
  font-style: normal;
  background: linear-gradient(90deg, #ffffff 0%, #c9d8ef 55%, #c9a962 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-desc {
  font-size: calc(15px * var(--font-scale));
  color: rgba(255,255,255,0.68);
  line-height: 1.9;
  max-width: 640px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .home-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 0;
  font-size: calc(14px * var(--font-scale));
  letter-spacing: 0.3px;
  transition: background 0.2s, border-color 0.2s;
}

.page-home .home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.08) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-cta:hover::before {
  animation: cta-shine 0.75s ease;
}

@keyframes cta-shine {
  from { left: -100%; }
  to { left: 160%; }
}

.page-home .home-cta.primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff !important;
  box-shadow: none;
}

.page-home .home-cta.primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.page-home .home-cta.ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.92) !important;
}

.page-home .home-cta.ghost::before {
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 35%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.04) 65%,
    transparent 100%
  );
}

.page-home .home-cta.ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.32);
}

.home-hero-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  padding: 24px 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}

.hero-panel-head {
  font-size: calc(11px * var(--font-scale));
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #c9a962;
  margin-bottom: 18px;
}

.hero-panel-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-panel-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent);
  margin: 16px 0;
}

.hero-panel-k {
  font-size: calc(11px * var(--font-scale));
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero-panel-v {
  font-size: calc(14px * var(--font-scale));
  color: rgba(255,255,255,0.92);
  line-height: 1.65;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.page-home .stat-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 2px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.page-home .stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.page-home .stat-num {
  font-size: calc(32px * var(--font-scale));
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.page-home .stat-label {
  margin-top: 10px;
  font-size: calc(12px * var(--font-scale));
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.home-section {
  margin-top: 0;
  margin-bottom: 56px;
}

.section-head.center {
  text-align: center;
  display: block;
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-tag {
  font-size: calc(11px * var(--font-scale));
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a962;
  margin-bottom: 10px;
}

.section-tag.light { color: rgba(201, 169, 98, 0.9); }

.page-home .section-title {
  font-size: calc(28px * var(--font-scale));
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.3px;
}

.section-sub.center-sub {
  margin-top: 10px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  margin-top: 8px;
  font-size: calc(14px * var(--font-scale));
  color: #64748b;
  line-height: 1.7;
}

.page-home .section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: calc(13px * var(--font-scale));
  color: #2563eb;
  letter-spacing: 0.2px;
}

.page-home .section-more .icon-arrow-right {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.page-home .section-more:hover .icon-arrow-right {
  transform: translateX(3px);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.page-home .service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 2px;
  padding: 28px 22px 24px;
  min-height: 196px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}

.page-home .service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c9a962, #3b82f6);
  opacity: 0;
  transition: opacity 0.25s;
}

.page-home .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
  border-color: rgba(59, 130, 246, 0.16);
}

.page-home .service-card:hover::before { opacity: 1; }

.service-no {
  display: block;
  font-size: calc(28px * var(--font-scale));
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 18px;
}

.page-home .service-card h3 {
  font-size: calc(16px * var(--font-scale));
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.page-home .service-card p {
  font-size: calc(13px * var(--font-scale));
  color: #64748b;
  line-height: 1.8;
}

.page-home .process-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 2px;
  padding: 28px 32px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 96px;
  text-align: center;
}

.page-home .step-no {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: calc(12px * var(--font-scale));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: calc(14px * var(--font-scale));
  color: #334155;
  white-space: nowrap;
}

.process-line {
  flex: 1;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, rgba(148,163,184,0.2), rgba(148,163,184,0.6), rgba(148,163,184,0.2));
}

.process-arrow { display: none; }

.products-section .home-product-grid {
  gap: 22px;
}

.page-home .product-card {
  border-radius: 2px;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.page-home .product-card:hover {
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.09);
  transform: translateY(-3px);
}

.page-home .home-contact {
  position: relative;
  overflow: hidden;
  background: #0c111a;
  border: none;
  border-radius: 2px;
  padding: 40px 36px;
  margin-bottom: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.contact-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -40px;
  top: -80px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.18);
  filter: blur(60px);
  pointer-events: none;
}

.page-home .contact-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.page-home .contact-inner h2 {
  font-size: calc(26px * var(--font-scale));
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.page-home .contact-inner p {
  font-size: calc(14px * var(--font-scale));
  color: rgba(255,255,255,0.62);
}

.page-home .site-footer {
  padding: 28px 16px 40px;
  color: #94a3b8;
  letter-spacing: 0.3px;
}

@media (max-width: 960px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-title {
    font-size: calc(34px * var(--font-scale));
  }
}

@media (max-width: 640px) {
  .page-shell { padding: 16px 12px 32px; }
  .topbar { padding: 0 12px; }
  .topbar-left { gap: 12px; }
  .topbar-nav .nav-item { padding: 0 6px; font-size: calc(13px * var(--font-scale)); }
  .logo span { display: none; }
  .home-hero-wrap { padding: 36px 0 72px; }
  .home-title { font-size: calc(28px * var(--font-scale)); }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 40px; }
  .service-grid { grid-template-columns: 1fr; }
  .page-home .process-row { padding: 22px 18px; }
  .process-line { display: none; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
  .product-grid { gap: 14px; }
  .shop-body { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .product-cover { min-height: 160px; }
  .product-body { padding: 14px; }
  .product-name { font-size: calc(14px * var(--font-scale)); }
  .product-price { font-size: calc(20px * var(--font-scale)); }
}
