:root {
  --ink: #132033;
  --muted: #65758a;
  --line: #dce5ef;
  --paper: #f6f9fc;
  --white: #ffffff;
  --green: #1767d2;
  --green-dark: #0d3470;
  --coral: #12a6b5;
  --gold: #f1b640;
  --shadow: 0 22px 70px rgba(19, 32, 51, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  background: rgba(246, 249, 252, 0.94);
  border-bottom: 1px solid rgba(23, 32, 38, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.header-action:hover {
  color: var(--green);
}

.nav a.active {
  color: var(--green);
  font-weight: 800;
}

.header-action {
  color: var(--green-dark);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 8vh 6vw 6vh;
  background:
    radial-gradient(circle at 78% 26%, rgba(18, 166, 181, 0.24), transparent 28%),
    linear-gradient(120deg, rgba(23, 103, 210, 0.13), rgba(255, 255, 255, 0.76) 48%, rgba(241, 182, 64, 0.12)),
    var(--paper);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: #44505a;
  font-size: 20px;
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--green-dark);
  background: var(--white);
  border-color: var(--line);
}

.hero-panel,
.hero-device {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(23, 32, 38, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-product-image {
  width: 100%;
  min-height: 360px;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-device {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  align-content: end;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 241, 250, 0.86)),
    var(--white);
}

.device-top {
  position: absolute;
  top: 28px;
  left: 28px;
  display: flex;
  gap: 8px;
}

.device-top span {
  width: 10px;
  height: 10px;
  background: var(--line);
  border-radius: 50%;
}

.device-top span:nth-child(2) {
  background: var(--coral);
}

.lens {
  position: absolute;
  top: 92px;
  left: 50%;
  width: 154px;
  height: 154px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, #102341 0 20%, #1767d2 21% 38%, #9bd8ff 39% 48%, #dce5ef 49% 62%, #ffffff 63%);
  border: 12px solid #263d5c;
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(23, 103, 210, 0.24);
}

.beam {
  position: absolute;
  top: 226px;
  left: 50%;
  width: 62%;
  height: 120px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(18, 166, 181, 0.36), rgba(18, 166, 181, 0));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
}

.device-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 250px;
}

.device-meta > div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.hero-panel strong {
  font-size: 30px;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-items: end;
  min-height: 160px;
  padding-top: 18px;
}

.mini-chart span {
  display: block;
  background: var(--green);
  border-radius: 8px 8px 0 0;
}

.mini-chart span:nth-child(1) {
  height: 52%;
  background: var(--gold);
}

.mini-chart span:nth-child(2) {
  height: 74%;
}

.mini-chart span:nth-child(3) {
  height: 42%;
  background: var(--coral);
}

.mini-chart span:nth-child(4) {
  height: 92%;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  padding: 34px 6vw;
  background: var(--white);
}

.stats-band strong {
  display: block;
  font-size: 34px;
}

.stats-band span {
  color: var(--muted);
}

.section,
.contact-band {
  padding: 86px 6vw;
}

.page-hero {
  padding: 82px 6vw 72px;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(13, 52, 112, 0.96), rgba(23, 103, 210, 0.72)),
    var(--green-dark);
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.08;
}

.page-hero p:not(.eyebrow) {
  max-width: 860px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

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

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

.section-heading .inline-link {
  margin-top: 0;
  white-space: nowrap;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.case-card {
  display: block;
  min-height: 240px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-link {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-link:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 103, 210, 0.36);
  box-shadow: 0 18px 48px rgba(19, 32, 51, 0.1);
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--surface);
}

.card-link strong {
  display: inline-flex;
  margin-top: 22px;
  color: var(--green);
  font-size: 14px;
}

.card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 44px;
  align-items: start;
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 42px;
  align-items: center;
  background: var(--white);
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rich-text {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.rich-text p {
  margin: 0;
  color: var(--muted);
}

.info-card p,
.case-card p,
.news-item p,
.section-copy,
.contact-band p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1.14fr);
  gap: 54px;
  background:
    linear-gradient(120deg, rgba(18, 166, 181, 0.18), rgba(23, 103, 210, 0.08)),
    var(--ink);
  color: var(--white);
}

.split .section-copy {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.72);
}

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

.check-list li {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.case-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.news-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.news-item:hover h3 {
  color: var(--green);
}

.news-item time {
  color: var(--coral);
  font-weight: 800;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  gap: 44px;
  color: var(--white);
  background: var(--green-dark);
}

.contact-page {
  min-height: 420px;
  align-items: center;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.86fr);
  gap: 44px;
  align-items: center;
  padding: 72px 6vw;
  background:
    linear-gradient(120deg, rgba(23, 103, 210, 0.08), rgba(18, 166, 181, 0.08)),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.detail-hero h1,
.article-detail h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.12;
}

.detail-hero p:not(.eyebrow),
.article-detail p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-tabs {
  display: grid;
  gap: 18px;
  padding: 58px 6vw 86px;
}

.detail-tabs article {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-tabs h2 {
  font-size: 24px;
}

.detail-tabs p {
  margin: 0;
  color: var(--muted);
}

.detail-tabs img {
  width: min(560px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.article-detail {
  max-width: 920px;
  margin: 0 auto;
  padding: 82px 6vw;
}

.article-detail time {
  display: inline-flex;
  margin-top: 18px;
  color: var(--coral);
  font-weight: 800;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.contact-card p {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-card strong {
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6vw;
  color: var(--muted);
  background: var(--white);
}

.admin-body {
  background: #eef2f1;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 5vw;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.admin-header h1 {
  margin: 0;
  font-size: 32px;
}

.admin-header .admin-actions {
  margin-top: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 5vw 60px;
}

.admin-tabs {
  display: grid;
  align-content: start;
  gap: 8px;
}

.tab,
.text-button,
.edit-card button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.tab.active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.admin-panel {
  display: none;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

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

.admin-panel h3 {
  margin-top: 30px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

label.wide {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(19, 111, 99, 0.12);
}

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

.edit-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fbfcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.edit-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.edit-card button {
  min-height: 34px;
  color: #b33d2f;
}

.text-button {
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 800;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(20px);
  padding: 12px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 900px) {
  .site-header,
  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .intro-section,
  .about-layout,
  .detail-hero,
  .contact-band,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .grid.three,
  .grid.four,
  .stats-band,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .detail-tabs article {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
