:root {
  --ink: #edf7ff;
  --muted: #96abc0;
  --line: rgba(106, 207, 255, 0.2);
  --paper: #07111f;
  --white: #ffffff;
  --teal: #35e3c3;
  --teal-dark: #1fb8c9;
  --coral: #ffb24c;
  --blue: #2379fb;
  --gold: #8b63ff;
  --panel: rgba(10, 25, 43, 0.78);
  --panel-strong: rgba(13, 36, 61, 0.92);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(35, 121, 251, 0.2), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(53, 227, 195, 0.14), transparent 24%),
    linear-gradient(rgba(106, 207, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 207, 255, 0.055) 1px, transparent 1px);
  background-size: auto, auto, 42px 42px, 42px 42px;
  line-height: 1.6;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 72px);
  background: rgba(6, 16, 29, 0.86);
  border-bottom: 1px solid rgba(106, 207, 255, 0.18);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(106, 207, 255, 0.22);
  box-shadow: 0 0 22px rgba(35, 121, 251, 0.22);
  border-radius: 8px;
}

.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1.2;
}

.brand small {
  max-width: 210px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #d7e8f6;
  border-radius: 8px;
}

.main-nav a:hover {
  background: rgba(35, 121, 251, 0.18);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #07111f;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 20, 0.5);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(rgba(114, 215, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(114, 215, 255, 0.12) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 58% 42%, black, transparent 68%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 36px));
  margin: 0 clamp(18px, 6vw, 96px) 82px;
  color: var(--white);
}

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

.hero .eyebrow {
  color: #7ff0d0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(61, 211, 255, 0.22);
}

.hero-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: #e5efeb;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  color: var(--white);
  background: var(--blue);
  border-color: rgba(120, 202, 255, 0.34);
  box-shadow: 0 0 30px rgba(35, 121, 251, 0.38);
}

.btn.primary:hover {
  background: #1b65dc;
}

.btn.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.08);
}

.btn.secondary {
  color: #10223a;
  border-color: var(--line);
  background: var(--white);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(1160px, calc(100% - 36px));
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  background: rgba(7, 17, 31, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.metric {
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: #eaf8ff;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 96px auto;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 48px;
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
}

.intro-section > p,
.contact-section > div > p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.product-card,
.news-card,
.solution-item,
.admin-panel,
.login-box,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.product-card {
  overflow: hidden;
  position: relative;
}

.product-card::before,
.solution-item::before,
.news-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(89, 238, 255, 0.32);
  opacity: 0.9;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: contain;
  padding: 54px;
  background:
    radial-gradient(circle at center, rgba(35, 121, 251, 0.22), transparent 54%),
    rgba(4, 13, 25, 0.92);
}

.product-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  color: #10223a;
  font-size: 12px;
  font-weight: 800;
  background: #72ecff;
  border-radius: 999px;
}

.product-body h3,
.news-card h3,
.solution-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.product-body p,
.news-card p,
.solution-item p {
  margin: 0;
  color: var(--muted);
}

.point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.point-list li {
  padding: 6px 9px;
  color: #baf7ff;
  font-size: 13px;
  font-weight: 700;
  background: rgba(35, 121, 251, 0.16);
  border: 1px solid rgba(114, 236, 255, 0.22);
  border-radius: 8px;
}

.split-band {
  width: 100%;
  padding: 78px max(18px, calc((100% - 1160px) / 2));
  background: rgba(5, 13, 25, 0.6);
  border-top: 1px solid rgba(106, 207, 255, 0.12);
  border-bottom: 1px solid rgba(106, 207, 255, 0.12);
}

.solution-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.solution-item {
  padding: 24px;
  position: relative;
}

.solution-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 24px;
  color: var(--white);
  font-weight: 800;
  background: var(--blue);
  box-shadow: 0 0 22px rgba(35, 121, 251, 0.42);
  border-radius: 8px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  padding: 22px;
  position: relative;
}

.news-card time {
  display: block;
  margin-bottom: 14px;
  color: var(--coral);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 48px;
  width: min(1160px, calc(100% - 36px));
  margin: 96px auto 0;
  padding: 54px;
  color: var(--white);
  background: rgba(7, 17, 31, 0.92);
  border: 1px solid rgba(106, 207, 255, 0.18);
  box-shadow: 0 0 60px rgba(35, 121, 251, 0.18);
  border-radius: 8px 8px 0 0;
}

.contact-section .eyebrow {
  color: #7ff0d0;
}

.contact-section p,
.contact-meta dd {
  color: #d9e4e0;
}

.contact-meta {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.contact-meta div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
}

.contact-meta dt {
  color: #9fb2ac;
}

.contact-meta dd {
  margin: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  color: #142132;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(47, 159, 136, 0.16);
}

.form-state {
  min-height: 24px;
  margin: 0;
  color: #9cebcf;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 24px clamp(18px, 4vw, 72px) 28px;
  color: #a9bed0;
  background: #06101d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 14px;
}

.footer-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0;
}

.footer-line span:not(:first-child)::before,
.footer-line a::before {
  content: "[";
}

.footer-line span:not(:first-child)::after,
.footer-line a::after {
  content: "]";
}

.site-footer a {
  color: #7ddfff;
}

.site-footer a:hover {
  color: #ffffff;
}

.admin-body {
  min-height: 100vh;
  background: #07111f;
  background-image:
    radial-gradient(circle at 80% 14%, rgba(35, 121, 251, 0.18), transparent 26%),
    linear-gradient(rgba(106, 207, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(106, 207, 255, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: min(420px, 100%);
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-box h1 {
  color: var(--ink);
  font-size: 30px;
}

.login-box form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.admin-shell {
  display: none;
  min-height: 100vh;
  grid-template-columns: 250px 1fr;
}

.admin-shell.active {
  display: grid;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  color: var(--white);
  background: rgba(5, 14, 25, 0.95);
  border-right: 1px solid rgba(106, 207, 255, 0.16);
}

.admin-sidebar .brand {
  color: var(--white);
  min-width: 0;
}

.admin-sidebar .brand small {
  color: #bdd0ca;
}

.admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.admin-menu button {
  width: 100%;
  padding: 11px 12px;
  color: #d9e4e0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.admin-menu button.active,
.admin-menu button:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-topbar h1 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 38px);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stat-card strong {
  display: block;
  font-size: 26px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.admin-panel {
  display: none;
  padding: 22px;
}

.admin-panel.active {
  display: block;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title h2 {
  font-size: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.form-subtitle {
  margin-top: 8px;
  padding-top: 18px;
  color: var(--teal);
  border-top: 1px solid var(--line);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  background: rgba(35, 121, 251, 0.12);
}

td input,
td textarea {
  min-width: 160px;
}

td textarea {
  min-height: 84px;
}

.row-actions {
  display: flex;
  gap: 8px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.mini-btn.danger {
  color: #b34b3d;
}

.admin-note {
  min-height: 24px;
  color: var(--teal-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header,
  .intro-section,
  .contact-section,
  .admin-shell.active {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: start;
  }

  .product-grid,
  .solution-list,
  .news-list,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 680px) {
  .site-header {
    display: grid;
    padding: 14px 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: rgba(31, 41, 39, 0.72);
  }

  .hero-copy {
    margin-bottom: 48px;
  }

  .metric-strip,
  .product-grid,
  .solution-list,
  .news-list,
  .stat-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    margin: 68px auto;
  }

  .section-heading,
  .site-footer,
  .admin-topbar {
    align-items: start;
    flex-direction: column;
  }

  .contact-section {
    padding: 32px 22px;
  }

  .admin-main {
    padding: 18px;
  }

  .admin-menu {
    grid-template-columns: 1fr 1fr;
  }
}
