:root {
  --ink: #101820;
  --muted: #66717c;
  --line: #e6e9ed;
  --paper: #fbfbf9;
  --white: #ffffff;
  --steel: #243241;
  --blue: #2166f3;
  --green: #16826b;
  --gold: #b8872f;
  --rose: #b94b62;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.09);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei",
    Arial, sans-serif;
  line-height: 1.55;
}

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

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

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 233, 237, 0.86);
  background: rgba(251, 251, 249, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  font-weight: 750;
  letter-spacing: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d8dee5;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 8px 22px rgba(33, 102, 243, 0.11);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 7px;
  color: #3a4651;
  font-size: 14px;
}

.nav-link.active,
.nav-link:hover {
  background: #eef3ff;
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.menu-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.menu-btn {
  display: none;
}

.cart-count {
  position: absolute;
  transform: translate(13px, -13px);
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  line-height: 18px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section.tight {
  padding: 42px 0;
}

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

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: #4b5965;
  font-size: 18px;
}

.muted {
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  min-height: calc(100vh - 72px);
  align-items: center;
  gap: 54px;
  padding: 54px 0 42px;
}

.hero-actions,
.inline-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
}

.btn.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.btn.dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.btn.ghost {
  background: transparent;
}

.btn.block {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 680px;
  margin-top: 44px;
}

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

.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

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

.hero-visual {
  position: relative;
  min-height: 560px;
}

.dashboard-shot {
  position: absolute;
  inset: 0 0 54px;
  overflow: hidden;
  border: 1px solid #d9dee5;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.shot-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d8dde3;
}

.dot:nth-child(1) {
  background: #ef6a62;
}

.dot:nth-child(2) {
  background: #e8b44d;
}

.dot:nth-child(3) {
  background: #4dbb7a;
}

.shot-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  height: calc(100% - 44px);
}

.shot-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}

.side-line,
.bar {
  height: 9px;
  border-radius: 99px;
  background: #e8edf4;
}

.side-line {
  margin-bottom: 14px;
}

.side-line.active {
  width: 72%;
  background: #cfe0ff;
}

.shot-main {
  padding: 22px;
}

.chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 150px;
  margin: 20px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bar {
  flex: 1;
  min-width: 16px;
  background: var(--blue);
  opacity: 0.82;
}

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

.mini-card {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.floating-order {
  position: absolute;
  right: 22px;
  bottom: 0;
  width: min(330px, calc(100% - 44px));
  border: 1px solid #d9dee5;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 18px;
}

.order-row,
.cart-row,
.summary-row,
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.order-row:last-child,
.summary-row:last-child,
.spec-row:last-child {
  border-bottom: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #40505d;
  font-weight: 680;
}

.chip.active {
  border-color: var(--blue);
  background: #eef3ff;
  color: var(--blue);
}

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

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

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

.product-card,
.article-card,
.testimonial,
.panel,
.contact-card,
.cart-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.product-card,
.article-card,
.testimonial {
  overflow: hidden;
}

.product-media {
  min-height: 192px;
  padding: 18px;
  background: #f2f5f7;
}

.product-media-inner {
  display: grid;
  align-content: space-between;
  height: 154px;
  border: 1px solid #d9dee5;
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
}

.screen-lines {
  display: grid;
  gap: 8px;
}

.screen-lines span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: #dfe6ef;
}

.screen-lines span:nth-child(1) {
  width: 80%;
}

.screen-lines span:nth-child(2) {
  width: 62%;
}

.screen-lines span:nth-child(3) {
  width: 90%;
}

.color-stripe {
  height: 8px;
  border-radius: 99px;
}

.stripe-blue {
  background: var(--blue);
}

.stripe-green {
  background: var(--green);
}

.stripe-gold {
  background: var(--gold);
}

.stripe-rose {
  background: var(--rose);
}

.card-body {
  padding: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f3f6;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.price {
  font-size: 24px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 24px;
  align-items: start;
}

.panel,
.contact-card,
.cart-panel {
  padding: 24px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.detail-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 20px;
}

.detail-image {
  min-height: 420px;
  border-radius: var(--radius);
  background: #eef2f6;
  padding: 24px;
}

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

.feature-list li {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfcfb;
}

.check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #e8f6f1;
  color: var(--green);
  font-weight: 900;
}

.article-card {
  min-height: 100%;
}

.article-cover {
  height: 132px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.06)),
    #dfe7ef;
  border-bottom: 1px solid var(--line);
}

.article-card:nth-child(3n + 1) .article-cover {
  background-color: #dce8ff;
}

.article-card:nth-child(3n + 2) .article-cover {
  background-color: #e0f0eb;
}

.article-card:nth-child(3n) .article-cover {
  background-color: #f1e7d2;
}

.testimonial {
  padding: 22px;
}

.quote {
  font-size: 18px;
  color: #263440;
}

.avatar-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #edf1f6;
  color: var(--blue);
  font-weight: 800;
}

.cta-band {
  width: 100%;
  background: var(--ink);
  color: var(--white);
}

.cta-band .section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 58px 0;
}

.cta-band p {
  color: #c8d0d8;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  gap: 18px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 750;
  color: #34414d;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 18px;
}

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

.cart-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 14px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty button {
  width: 34px;
  height: 34px;
  border: 0;
  background: var(--white);
}

.qty span {
  min-width: 34px;
  text-align: center;
}

.payment-status {
  border-radius: var(--radius);
  padding: 12px;
  background: #eef8f4;
  color: #0d6957;
  font-weight: 730;
}

.code-box {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #101820;
  color: #e9eef4;
  padding: 14px;
  font-size: 13px;
}

.empty {
  border: 1px dashed #cfd6de;
  border-radius: var(--radius);
  background: var(--white);
  padding: 36px;
  text-align: center;
}

@media (max-width: 940px) {
  .nav {
    min-height: 64px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    justify-content: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .detail-layout,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .product-grid,
  .blog-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 24px, 1180px);
    padding: 48px 0;
  }

  .brand span {
    display: none;
  }

  .hero {
    gap: 30px;
  }

  h1 {
    font-size: 42px;
  }

  .trust-row,
  .product-grid,
  .blog-grid,
  .testimonial-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-band .section,
  .footer-inner,
  .cart-row,
  .price-line {
    align-items: start;
    flex-direction: column;
  }

  .shot-body {
    grid-template-columns: 82px 1fr;
  }

  .hero-visual {
    min-height: 430px;
  }

  .dashboard-shot {
    inset: 0 0 44px;
  }

  .detail-image {
    min-height: 300px;
  }
}
