:root {
  --ink: #f7fbff;
  --muted: #a9b8c7;
  --panel: rgba(8, 20, 28, 0.74);
  --panel-strong: rgba(13, 31, 42, 0.92);
  --line: rgba(154, 216, 255, 0.22);
  --cyan: #48d9ff;
  --teal: #1fbba6;
  --amber: #f7b955;
  --coral: #ff6f61;
  --bg: #061016;
  --bg-deep: #02070b;
  font-family: "Microsoft YaHei", "PingFang SC", "Inter", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ink);
  letter-spacing: 0;
}

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

.site-header {
  align-items: center;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  left: 0;
  padding: 20px clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease;
  z-index: 20;
}

.site-header[data-elevated="true"] {
  background: rgba(3, 10, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  gap: 12px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cyan), var(--teal) 50%, var(--amber));
  color: #031014;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  width: 38px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-action,
.primary-button,
.secondary-button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
}

.header-action,
.secondary-button {
  border-color: var(--line);
  color: var(--ink);
}

.primary-button {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #021015;
  box-shadow: 0 16px 48px rgba(72, 217, 255, 0.24);
}

.primary-button.large {
  min-height: 54px;
  padding-inline: 28px;
}

.hero {
  min-height: 94vh;
  overflow: hidden;
  padding: 164px clamp(20px, 5vw, 72px) 44px;
  position: relative;
}

.hero-image,
.hero-shade,
.signal-canvas {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.96) 0%, rgba(2, 7, 11, 0.82) 34%, rgba(2, 7, 11, 0.22) 72%),
    linear-gradient(180deg, rgba(2, 7, 11, 0.18), var(--bg-deep) 98%);
}

.signal-canvas {
  opacity: 0.38;
  z-index: 1;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: 1.02;
  margin-bottom: 28px;
  max-width: 900px;
}

.hero-copy {
  color: #d8e5ef;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics {
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: clamp(20px, 5vw, 72px);
  max-width: 860px;
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  z-index: 2;
}

.hero-metrics div {
  border-right: 1px solid var(--line);
  padding: 20px 22px 22px 0;
}

.hero-metrics div:last-child {
  border-right: 0;
}

.hero-metrics strong {
  color: var(--cyan);
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.hero-metrics span,
.feature-list,
.system-step p,
.capability-list span,
.intro p,
.capability-copy p,
.contact p {
  color: var(--muted);
  line-height: 1.75;
}

.section-band {
  background:
    linear-gradient(180deg, rgba(6, 16, 22, 0.94), rgba(5, 15, 21, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 120px);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.intro,
.system,
.capabilities,
.contact,
.services {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.intro {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(240px, 0.86fr) minmax(280px, 1.14fr);
}

.section-heading h2,
.capability-copy h2,
.contact h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.16;
  margin-bottom: 0;
}

.services {
  background:
    radial-gradient(circle at 78% 15%, rgba(72, 217, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #02070b, #071923);
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 560px;
  padding: clamp(28px, 4vw, 52px);
  position: relative;
}

.service-panel.accent {
  border-color: rgba(247, 185, 85, 0.35);
}

.panel-number {
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(64px, 9vw, 126px);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 56px;
}

.service-panel h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  margin-bottom: 18px;
}

.service-panel p {
  color: #d9e7ef;
  font-size: 18px;
  line-height: 1.78;
}

.feature-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.feature-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.system-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.system-step {
  border-left: 1px solid var(--line);
  min-height: 260px;
  padding: 22px 22px 0;
}

.system-step span {
  color: var(--coral);
  font-weight: 900;
}

.system-step h3 {
  font-size: 24px;
  margin: 34px 0 14px;
}

.capabilities {
  background:
    linear-gradient(115deg, rgba(7, 25, 35, 0.96), rgba(2, 7, 11, 0.98)),
    linear-gradient(90deg, transparent 0 65%, rgba(247, 185, 85, 0.08) 65% 100%);
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
}

.capability-list {
  display: grid;
  gap: 1px;
}

.capability-list div {
  align-items: center;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 16px;
  grid-template-columns: 96px 1fr;
  padding: 22px 24px;
}

.capability-list strong {
  color: var(--cyan);
  font-size: 22px;
}

.contact {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(2, 7, 11, 0.96), rgba(8, 31, 41, 0.94)),
    repeating-linear-gradient(0deg, rgba(72, 217, 255, 0.08) 0 1px, transparent 1px 56px);
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.contact p {
  font-size: 18px;
  max-width: 740px;
}

.wechat-card {
  align-items: center;
  background: rgba(8, 20, 28, 0.82);
  border: 1px solid rgba(154, 216, 255, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 18px;
  grid-template-columns: 148px minmax(180px, 240px);
  padding: 18px;
}

.wechat-qr {
  aspect-ratio: 1;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: block;
  object-fit: cover;
  padding: 8px;
  width: 148px;
}

.wechat-meta {
  display: grid;
  gap: 10px;
}

.wechat-meta strong {
  color: var(--cyan);
  font-size: 22px;
}

.wechat-meta span {
  color: #d8e5ef;
  font-size: 14px;
  line-height: 1.7;
}

.wechat-meta a {
  border-top: 1px solid rgba(154, 216, 255, 0.22);
  color: var(--amber);
  font-size: 14px;
  font-weight: 800;
  padding-top: 10px;
}

.site-footer {
  align-items: center;
  background: #02070b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #7f91a1;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

.subpage {
  background:
    radial-gradient(circle at 82% 0%, rgba(72, 217, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #061016, #02070b 48%);
  min-height: 100vh;
}

.page-hero {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(280px, 1fr) 220px;
  padding: 148px clamp(20px, 5vw, 72px) 58px;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  margin-bottom: 22px;
}

.page-hero p {
  color: #d8e5ef;
  font-size: 18px;
  line-height: 1.78;
  max-width: 860px;
}

.page-stat {
  background: rgba(8, 20, 28, 0.78);
  border: 1px solid var(--line);
  padding: 28px;
}

.page-stat strong {
  color: var(--cyan);
  display: block;
  font-size: 56px;
  line-height: 1;
  margin-bottom: 10px;
}

.page-stat span {
  color: var(--muted);
}

.not-found-main {
  min-height: calc(100vh - 72px);
}

.not-found-hero {
  min-height: calc(100vh - 72px);
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.filter-panel {
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
}

.filter-group {
  display: grid;
  gap: 14px;
}

.filter-group strong {
  color: var(--ink);
}

.filter-chips,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips a,
.tag-row span {
  border: 1px solid rgba(154, 216, 255, 0.22);
  color: #c4d4df;
  font-size: 13px;
  padding: 8px 12px;
}

.filter-chips a.active,
.filter-chips a:hover {
  background: rgba(72, 217, 255, 0.14);
  border-color: rgba(72, 217, 255, 0.5);
  color: var(--ink);
}

.product-library,
.preview-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-library {
  padding: clamp(42px, 6vw, 82px) clamp(20px, 5vw, 72px);
}

.case-preview {
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.case-preview .section-heading {
  margin-bottom: 34px;
}

.product-card {
  background: rgba(8, 20, 28, 0.74);
  border: 1px solid rgba(154, 216, 255, 0.2);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.product-card.compact img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.product-media {
  background: #02070b;
  display: grid;
  gap: 0;
}

.product-media img,
.product-media video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.product-media video {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.product-card h2,
.product-card h3 {
  font-size: 24px;
  line-height: 1.24;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 0;
}

.scene-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.scene-row strong {
  color: var(--ink);
}

.video-placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(72, 217, 255, 0.12), rgba(247, 185, 85, 0.08)),
    #061016;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.video-placeholder span {
  color: var(--cyan);
  font-size: 20px;
  font-weight: 800;
}

.video-placeholder p {
  color: var(--muted);
  margin: 8px 0 0;
}

.empty-state,
.message,
.admin-panel {
  background: rgba(8, 20, 28, 0.82);
  border: 1px solid rgba(154, 216, 255, 0.2);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 40px;
}

.empty-state p {
  color: var(--muted);
}

.inline-link {
  margin-top: 28px;
}

.inline-form {
  margin: 0;
}

.admin-hero {
  padding-bottom: 36px;
}

.admin-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 0.74fr) minmax(360px, 1.26fr);
  padding: 0 clamp(20px, 5vw, 72px) clamp(72px, 9vw, 120px);
}

.admin-panel {
  padding: clamp(24px, 4vw, 38px);
}

.admin-panel.narrow {
  margin: 0 auto clamp(72px, 9vw, 120px);
  max-width: 520px;
}

.admin-panel h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.admin-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
}

.admin-form label span {
  color: #d8e5ef;
  font-weight: 700;
}

.admin-form input,
.admin-form textarea {
  background: rgba(2, 7, 11, 0.68);
  border: 1px solid rgba(154, 216, 255, 0.24);
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 12px 14px;
  width: 100%;
}

.admin-form textarea {
  resize: vertical;
}

.admin-note {
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 0;
}

.message {
  margin: 0 clamp(20px, 5vw, 72px) 24px;
  padding: 16px 20px;
}

.message p {
  margin: 0;
}

.message.error {
  border-color: rgba(255, 111, 97, 0.48);
  color: #ffd5d0;
}

.message.success {
  border-color: rgba(31, 187, 166, 0.48);
  color: #c7fff6;
}

.admin-product-list {
  display: grid;
  gap: 14px;
}

.admin-product-list article {
  align-items: center;
  background: rgba(2, 7, 11, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 16px;
  grid-template-columns: 112px 1fr auto;
  padding: 14px;
}

.admin-product-list img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 112px;
}

.admin-product-list h3 {
  margin-bottom: 8px;
}

.admin-product-list p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.admin-product-list span {
  color: var(--cyan);
  font-size: 13px;
}

.danger-button {
  background: rgba(255, 111, 97, 0.12);
  border: 1px solid rgba(255, 111, 97, 0.42);
  color: #ffd5d0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
}

@media (max-width: 900px) {
  .site-header {
    gap: 14px;
    padding-block: 14px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 980px;
    padding-top: 118px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(2, 7, 11, 0.94) 0%, rgba(2, 7, 11, 0.76) 56%, rgba(2, 7, 11, 0.22)),
      linear-gradient(180deg, transparent, var(--bg-deep) 98%);
  }

  .hero-metrics,
  .intro,
  .services,
  .system-grid,
  .capabilities {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    right: auto;
  }

  .hero-metrics div {
    border-right: 0;
  }

  .service-panel {
    min-height: auto;
  }

  .system-step {
    min-height: 0;
    padding-bottom: 20px;
  }

  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .wechat-card {
    grid-template-columns: 132px minmax(0, 1fr);
    width: 100%;
  }

  .wechat-qr {
    width: 132px;
  }

  .page-hero,
  .product-library,
  .preview-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding-top: 118px;
  }

  .admin-product-list article {
    align-items: start;
    grid-template-columns: 88px 1fr;
  }

  .admin-product-list form {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
  }

  .header-action {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero {
    min-height: 1060px;
  }

  h1 {
    font-size: 42px;
  }

  .wechat-card {
    grid-template-columns: 1fr;
  }

  .wechat-qr {
    max-width: 220px;
    width: 100%;
  }

  .hero-metrics {
    left: 20px;
    right: 20px;
  }

  .hero-actions a {
    width: 100%;
  }

  .capability-list div {
    grid-template-columns: 1fr;
  }
}
