:root {
  --primary: #125cff;
  --primary-dark: #0747d8;
  --primary-soft: #eef4ff;
  --ink: #161d2d;
  --text: #626b7d;
  --muted: #9aa3b2;
  --line: #e6eaf1;
  --surface: #ffffff;
  --page: #f8faff;
  --danger: #ff4b2b;
  --success: #1ebc91;
  --shadow: 0 16px 45px rgba(32, 62, 126, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1188px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 100;
  height: 68px;
  border-bottom: 1px solid #edf0f5;
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: grid;
  grid-template-columns: 250px minmax(540px, 1fr) auto;
  align-items: center;
  width: min(1384px, calc(100% - 72px));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-symbol {
  width: 30px;
  height: 39px;
  flex: 0 0 auto;
}

.brand-copy {
  display: block;
  min-width: 80px;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  white-space: nowrap;
}

.brand-copy strong {
  color: #19202d;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.14;
}

.brand-copy small {
  margin-top: 2px;
  color: #7b8597;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.45px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px;
  height: 100%;
  color: #4c5361;
  font-size: 13px;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  position: absolute;
  right: 3px;
  bottom: 0;
  left: 3px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
  content: "";
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  padding-left: 20px;
}

.header-search {
  display: flex;
  align-items: center;
  width: 204px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid #dfe4ec;
  border-radius: 18px;
  background: #fff;
  color: #a6aebe;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.header-search:focus-within {
  border-color: #9eb9ff;
  box-shadow: 0 0 0 3px rgba(18, 92, 255, 0.08);
}

.header-search svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 0 0 8px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.header-search input::placeholder {
  color: #a8afbd;
}

.cart-link {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #303a4d;
}

.cart-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.cart-link > span {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font: 700 9px/1 Arial, sans-serif;
}

.login-button,
.register-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 5px;
  font-size: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-button {
  width: 56px;
  border: 1px solid #dfe4ec;
  background: #fff;
  color: #303747;
}

.register-button {
  width: 56px;
  background: linear-gradient(135deg, #1965ff, #094fea);
  box-shadow: 0 6px 14px rgba(18, 92, 255, 0.18);
  color: #fff;
}

.login-button:hover,
.register-button:hover {
  transform: translateY(-1px);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  height: 462px;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 30%, rgba(92, 131, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #fff 0%, #fff 86%, #fbfcff 100%);
}

.hero::before {
  position: absolute;
  top: -124px;
  right: -118px;
  width: 650px;
  height: 650px;
  border-radius: 44% 0 49% 55%;
  background: linear-gradient(145deg, rgba(90, 129, 255, 0.09), rgba(224, 232, 255, 0.34));
  content: "";
  transform: rotate(16deg);
}

.hero::after {
  position: absolute;
  top: 16px;
  right: 86px;
  width: 560px;
  height: 430px;
  border-radius: 48%;
  background: radial-gradient(ellipse, rgba(203, 218, 255, 0.28), rgba(240, 244, 255, 0.12) 54%, transparent 70%);
  content: "";
}

.hero-glow {
  position: absolute;
  right: 244px;
  bottom: -76px;
  width: 410px;
  height: 230px;
  border-radius: 50%;
  background: rgba(218, 227, 255, 0.18);
  filter: blur(4px);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 530px 1fr;
  height: 100%;
}

.hero-copy {
  padding-top: 100px;
}

.hero-copy h1 {
  margin: 0;
  color: #172033;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.18;
  white-space: nowrap;
}

.hero-copy h1 span {
  color: var(--primary);
}

.hero-lead {
  margin: 22px 0 0;
  color: #7e8796;
  font-size: 14px;
  line-height: 1.82;
}

.hero-benefits {
  display: grid;
  grid-template-columns: 166px 184px 166px;
  align-items: center;
  margin-top: 30px;
}

.hero-benefits article {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.benefit-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #e4eafb;
  border-radius: 50%;
  background: #fbfdff;
  color: var(--primary);
  box-shadow: 0 7px 18px rgba(48, 94, 198, 0.05);
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero-benefits article > span:last-child {
  display: block;
  min-width: 0;
}

.hero-benefits strong,
.hero-benefits small {
  display: block;
  white-space: nowrap;
}

.hero-benefits strong {
  color: #303849;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.hero-benefits small {
  margin-top: 4px;
  color: #9ba3b0;
  font-size: 10px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  width: 170px;
  gap: 14px;
  background: linear-gradient(135deg, #1766ff, #0451ee);
  box-shadow: 0 12px 24px rgba(18, 92, 255, 0.22);
  color: #fff;
}

.primary-button span {
  font-family: Arial, sans-serif;
  font-size: 18px;
}

.secondary-button {
  width: 170px;
  gap: 9px;
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--primary);
}

.secondary-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(18, 92, 255, 0.2);
}

.hero-visual {
  position: relative;
  width: 658px;
  height: 462px;
  margin-left: -6px;
}

.dashboard-backdrop {
  position: absolute;
  top: 51px;
  left: 94px;
  width: 470px;
  height: 350px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 70px rgba(55, 85, 154, 0.08);
  filter: blur(0.2px);
}

.dashboard-window {
  position: absolute;
  top: 51px;
  left: 94px;
  width: 470px;
  height: 350px;
  overflow: hidden;
  border: 1px solid rgba(224, 230, 243, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px rgba(45, 76, 142, 0.13);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 18px;
  border-bottom: 1px solid #f1f3f8;
  background: rgba(255, 255, 255, 0.88);
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0d6e4;
}

.window-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.window-profile span {
  width: 36px;
  height: 5px;
  border-radius: 4px;
  background: #edf0f6;
}

.window-profile b {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(#ffbf85 0 45%, #4b78f7 46% 100%);
  box-shadow: 0 2px 6px rgba(47, 76, 135, 0.14);
}

.dashboard-main {
  padding: 17px 25px 20px 116px;
}

.dashboard-main h2 {
  margin: 0 0 14px;
  color: #3e4656;
  font-size: 13px;
  font-weight: 650;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-grid article {
  height: 54px;
  padding: 10px 9px;
  border: 1px solid #f1f3f7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(40, 65, 121, 0.045);
}

.kpi-grid strong,
.kpi-grid small {
  display: block;
  white-space: nowrap;
}

.kpi-grid strong {
  color: #2c69ef;
  font: 700 12px/1.1 Arial, sans-serif;
}

.kpi-grid small {
  margin-top: 6px;
  color: #a1a8b5;
  font-size: 6px;
}

.chart-panel {
  position: relative;
  height: 170px;
  margin-top: 15px;
  overflow: hidden;
  border: 1px solid #f0f2f7;
  border-radius: 7px;
  background: #fff;
}

.chart-grid-lines {
  position: absolute;
  inset: 18px 14px 25px;
  background: repeating-linear-gradient(to bottom, #edf0f6 0, #edf0f6 1px, transparent 1px, transparent 30px);
  opacity: 0.82;
}

.line-chart {
  position: absolute;
  top: 15px;
  right: 12px;
  bottom: 19px;
  left: 13px;
  width: calc(100% - 25px);
  height: calc(100% - 34px);
  overflow: visible;
}

.chart-area {
  fill: url(#chartArea);
}

.chart-line {
  fill: none;
  stroke: #5579ff;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.chart-labels {
  position: absolute;
  right: 16px;
  bottom: 7px;
  left: 17px;
  display: flex;
  justify-content: space-between;
  color: #bbc1cb;
  font: 5px/1 Arial, sans-serif;
}

.side-panel {
  position: absolute;
  top: 78px;
  left: 38px;
  z-index: 4;
  width: 153px;
  height: 322px;
  border: 1px solid #e9edf4;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 17px 42px rgba(42, 69, 132, 0.13);
}

.side-brand {
  display: flex;
  align-items: center;
  height: 49px;
  padding: 0 13px;
  color: var(--primary);
}

.side-brand > span {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font: 700 9px/1 Arial, sans-serif;
}

.side-brand > i {
  width: 30px;
  height: 6px;
  margin-left: 9px;
  border-radius: 6px;
  background: #dfe4ed;
}

.side-brand > b {
  margin-left: auto;
  color: #b5bdca;
  font: 400 11px/1 Arial, sans-serif;
}

.side-panel nav {
  display: grid;
  gap: 8px;
  padding: 0 9px;
}

.side-panel nav span {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 9px;
  border-radius: 5px;
  color: #aab3c3;
}

.side-panel nav span.selected {
  background: #eff4ff;
  color: #5c82f4;
}

.side-panel nav i {
  width: 15px;
  font: normal 8px/1 Arial, sans-serif;
}

.side-panel nav em {
  display: block;
  width: 29px;
  height: 6px;
  margin-left: 5px;
  border-radius: 5px;
  background: #e6eaf1;
  font-style: normal;
}

.side-panel nav .selected em {
  width: auto;
  height: auto;
  background: transparent;
  font-size: 7px;
  font-style: normal;
  white-space: nowrap;
}

.side-panel nav b {
  margin-left: auto;
  font: 400 10px/1 Arial, sans-serif;
}

.code-badge {
  position: absolute;
  top: 335px;
  left: 15px;
  z-index: 6;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #4a63e8, #6d84f4);
  box-shadow: 0 14px 28px rgba(55, 80, 197, 0.28);
  color: #fff;
  font: 400 24px/1 Consolas, monospace;
}

.donut-card {
  position: absolute;
  top: 250px;
  right: 0;
  z-index: 5;
  width: 228px;
  height: 156px;
  padding: 17px 19px;
  border: 1px solid #edf0f6;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 46px rgba(42, 67, 126, 0.14);
}

.donut-card h3 {
  margin: 0 0 14px;
  color: #596171;
  font-size: 10px;
  font-weight: 650;
}

.donut-layout {
  display: grid;
  grid-template-columns: 91px 1fr;
  gap: 15px;
  align-items: center;
}

.donut-chart {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: conic-gradient(#4868ed 0 45%, #18b999 45% 75%, #ffb62d 75% 90%, #8f60e9 90% 100%);
  transform: rotate(11deg);
}

.donut-chart::after {
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut-layout ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.donut-layout li {
  display: grid;
  grid-template-columns: 5px 1fr auto;
  gap: 4px;
  align-items: center;
  color: #9098a8;
  font-size: 6px;
  white-space: nowrap;
}

.donut-layout li i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.donut-layout li i.blue { background: #4868ed; }
.donut-layout li i.green { background: #18b999; }
.donut-layout li i.orange { background: #ffb62d; }
.donut-layout li i.purple { background: #8f60e9; }
.donut-layout li b { font-weight: 500; }

.recommend {
  height: 392px;
  background: #fff;
}

.recommend-inner {
  position: relative;
  height: 100%;
  padding-top: 25px;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
}

.section-heading p {
  margin: 7px 0 0;
  color: #9aa2b0;
  font-size: 11px;
}

.view-all {
  position: absolute;
  top: 69px;
  right: 0;
  color: var(--primary);
  font-size: 11px;
}

.view-all span {
  margin-left: 5px;
  font: 16px/1 Arial, sans-serif;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 23px;
}

.product-card {
  height: 239px;
  overflow: hidden;
  border: 1px solid #e4e8ef;
  border-radius: 7px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: #cdd9f6;
  box-shadow: 0 13px 28px rgba(42, 67, 126, 0.1);
  transform: translateY(-3px);
}

.product-preview {
  position: relative;
  height: 148px;
  overflow: hidden;
  margin: 9px 9px 0;
  border-radius: 5px;
  background: #f3f7ff;
}

.product-tag {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9;
  height: 20px;
  padding: 0 8px;
  border-radius: 9px 3px 9px 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 20px;
}

.product-tag.hot {
  background: linear-gradient(135deg, #0a62ff, #1657df);
}

.product-tag.new {
  background: linear-gradient(135deg, #24c999, #14ac81);
}

.product-body {
  padding: 8px 11px 9px;
}

.product-body h3 {
  overflow: hidden;
  margin: 0;
  color: #202736;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-body p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #8d96a5;
  font-size: 9px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-body footer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 9px;
}

.product-body footer strong {
  color: #ff4b2b;
  font: 700 17px/1 Arial, sans-serif;
}

.product-body footer strong small {
  font-size: 12px;
}

.product-body footer span {
  color: #8d96a5;
  font-size: 9px;
}

/* Shared miniature product-window primitives */
.mini-window {
  position: absolute;
  top: 11px;
  left: 12px;
  width: calc(100% - 24px);
  height: 124px;
  overflow: hidden;
  border: 1px solid rgba(212, 220, 235, 0.9);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 68, 124, 0.08);
}

.mini-top {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 12px;
  padding: 0 5px;
  border-bottom: 1px solid #edf0f5;
}

.mini-top i {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: #cbd2df;
}

.mini-top b {
  width: 17px;
  height: 2.5px;
  margin-left: auto;
  border-radius: 2px;
  background: #e5e9f1;
}

.mini-layout {
  display: grid;
  grid-template-columns: 31px 1fr;
  height: calc(100% - 12px);
}

.mini-layout aside {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 9px 7px;
  border-right: 1px solid #eef1f6;
  background: #fbfcff;
}

.mini-layout aside i {
  width: 15px;
  height: 3px;
  border-radius: 2px;
  background: #dfe5ef;
}

.mini-layout aside i:first-child {
  background: #8fb0ff;
}

.mini-layout main {
  padding: 8px;
}

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

.mini-kpis i {
  height: 18px;
  border: 1px solid #edf0f5;
  border-radius: 2px;
  background: linear-gradient(#f7f9fd 40%, #e9eef8 41% 49%, #fff 50%);
}

.mini-chart {
  display: grid;
  grid-template-columns: 1.4fr .75fr;
  gap: 5px;
  margin-top: 6px;
}

.mini-chart span {
  height: 41px;
  border: 1px solid #edf0f5;
  border-radius: 2px;
  background:
    linear-gradient(155deg, transparent 42%, #80a3ff 43% 45%, transparent 46%) center/100% 100%,
    repeating-linear-gradient(#fff 0 9px, #eef2f7 10px 10.5px);
}

.mini-chart span:last-child {
  background: conic-gradient(from 45deg at 50% 50%, #7298ff 0 27%, #56cdb3 27% 50%, #ffd078 50% 72%, #eef1f7 72%) center/27px 27px no-repeat;
}

.mini-donuts {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.mini-donuts i {
  width: 34px;
  height: 7px;
  border-radius: 2px;
  background: #eff2f7;
}

/* Knowledge preview */
.preview-knowledge {
  background: linear-gradient(135deg, #effbfa, #f8fbff);
}

.knowledge-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 17px;
  padding: 0 8px;
  border-bottom: 1px solid #eef1f5;
}

.knowledge-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45c5ac;
}

.knowledge-bar span {
  width: 54px;
  height: 4px;
  border-radius: 3px;
  background: #e1e7ef;
}

.knowledge-bar b {
  width: 20px;
  height: 5px;
  margin-left: auto;
  border-radius: 3px;
  background: #769cff;
}

.knowledge-layout {
  display: grid;
  grid-template-columns: 34px 1fr;
  height: 94px;
}

.knowledge-layout aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 8px;
  border-right: 1px solid #eef1f5;
}

.knowledge-layout aside i {
  width: 17px;
  height: 3px;
  border-radius: 3px;
  background: #dce3ec;
}

.knowledge-layout aside i:first-child { background: #65bcae; }
.knowledge-layout main { padding: 7px; }
.avatar-row { display: flex; gap: 5px; align-items: center; }
.avatar-row i { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(#ffd09f 50%, #6297ed 51%); }
.avatar-row span { width: 19px; height: 4px; border-radius: 2px; background: #e5eaf1; }
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 7px; }
.course-grid i { height: 29px; border-radius: 3px; background: linear-gradient(145deg, #e1f1f4, #aecbea); }
.course-grid i:nth-child(2) { background: linear-gradient(145deg, #f8e8cd, #e9c49e); }
.course-grid i:nth-child(3) { background: linear-gradient(145deg, #e0e9fb, #b8cdf6); }
.course-lines { display: flex; gap: 5px; margin-top: 7px; }
.course-lines span { width: 42px; height: 5px; border-radius: 2px; background: #e9edf3; }

/* Commerce preview */
.preview-commerce {
  background: linear-gradient(145deg, #ebeff5, #f7f2ee);
}

.commerce-screen {
  position: absolute;
  top: 25px;
  left: 20px;
  width: 165px;
  height: 104px;
  overflow: hidden;
  border: 7px solid #15191f;
  border-bottom-width: 10px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 14px rgba(17, 25, 42, 0.2);
}

.commerce-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 12px;
  padding: 0 4px;
  background: #fff;
}

.commerce-top i { width: 4px; height: 4px; border-radius: 50%; background: #ff784e; }
.commerce-top span { width: 34px; height: 3px; background: #e4e7ed; }
.commerce-top b { width: 16px; height: 4px; margin-left: auto; border-radius: 4px; background: #ff7a31; }
.commerce-body { display: grid; grid-template-columns: 28px 1fr; height: 75px; }
.commerce-body aside { display: grid; align-content: start; gap: 8px; padding: 7px; background: #15191f; }
.commerce-body aside i { width: 14px; height: 3px; border-radius: 2px; background: #454a52; }
.commerce-body main { padding: 5px; }
.commerce-banner { height: 24px; border-radius: 3px; background: linear-gradient(110deg, #fe7a2f, #12161d); }
.commerce-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 5px; }
.commerce-products i { height: 31px; border-radius: 2px; background: linear-gradient(#f2dfd2 60%, #e9edf3 61%); }
.phone-screen {
  position: absolute;
  top: 37px;
  right: 16px;
  width: 61px;
  height: 98px;
  padding: 7px 5px;
  border: 4px solid #11151b;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 13px rgba(17, 25, 42, 0.24);
}
.phone-screen i { display: block; width: 18px; height: 3px; margin: 0 auto 8px; border-radius: 2px; background: #e1e5eb; }
.phone-screen span { display: block; height: 27px; margin-bottom: 5px; border-radius: 3px; background: linear-gradient(135deg, #ff8450, #171b21); }
.phone-screen span + span { height: 17px; background: #f0f2f5; }
.phone-screen b { display: block; width: 26px; height: 5px; margin: 6px auto 0; border-radius: 4px; background: #ff7234; }

/* AI preview */
.preview-ai {
  background: linear-gradient(145deg, #e7faf6, #f4fffd);
}

.ai-layout {
  display: grid;
  grid-template-columns: 31px 1fr;
  height: 111px;
}

.ai-layout aside {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 10px 7px;
  border-right: 1px solid #e9f0ef;
  background: #fbfefd;
}
.ai-layout aside i { width: 16px; height: 3px; border-radius: 3px; background: #dce8e6; }
.ai-layout aside i:first-child { background: #42c5a8; }
.ai-layout main { padding: 8px; }
.ai-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.ai-cards i { height: 26px; border: 1px solid #e6f1ef; border-radius: 3px; background: linear-gradient(135deg, #e9f9f6, #fff); }
.ai-chat { margin-top: 6px; padding: 5px; border: 1px solid #e6f1ef; border-radius: 3px; }
.ai-chat span { display: block; width: 70%; height: 4px; margin-bottom: 5px; border-radius: 3px; background: #dfe9e8; }
.ai-chat span + span { width: 48%; margin-left: auto; background: #a8e1d5; }
.ai-chat b { display: block; height: 7px; margin-top: 7px; border-radius: 4px; background: #f0f5f4; }

/* City preview */
.preview-city {
  background: linear-gradient(135deg, #f7f7fb, #f4f6fa);
}

.city-window {
  position: absolute;
  top: 11px;
  left: 17px;
  width: calc(100% - 34px);
  height: 125px;
  overflow: hidden;
  border: 1px solid #e1e5ec;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(40, 68, 124, 0.08);
}
.city-top { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-bottom: 1px solid #eef1f5; }
.city-top i { width: 7px; height: 7px; border-radius: 50%; background: #ff6f52; }
.city-top span { width: 44px; height: 4px; border-radius: 3px; background: #e2e6ed; }
.city-top b { width: 21px; height: 5px; margin-left: auto; border-radius: 4px; background: #f27b4c; }
.city-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; padding: 8px 10px 5px; }
.city-icons i { height: 18px; border-radius: 50%; background: linear-gradient(145deg, #ffd4a0, #f19c40); }
.city-icons i:nth-child(2) { background: linear-gradient(145deg, #a9e4d6, #36b58e); }
.city-icons i:nth-child(3) { background: linear-gradient(145deg, #bdd5ff, #5d8ff0); }
.city-icons i:nth-child(4) { background: linear-gradient(145deg, #ffb9ad, #ef6c57); }
.city-icons i:nth-child(5) { background: linear-gradient(145deg, #ffe09d, #f3af3a); }
.city-banner { display: flex; align-items: center; height: 26px; margin: 0 9px; padding: 0 8px; border-radius: 13px; background: linear-gradient(90deg, #ff8f38, #ff2e9c); }
.city-banner i { width: 9px; height: 9px; border-radius: 50%; background: #fff; opacity: .9; }
.city-banner span { width: 48px; height: 4px; margin-left: 6px; border-radius: 3px; background: rgba(255,255,255,.7); }
.city-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; padding: 8px 12px; }
.city-services i { height: 17px; border-radius: 3px; background: #f0f2f6; }

.service-strip {
  min-height: 104px;
  background: linear-gradient(90deg, #f8faff, #fff, #f8faff);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 104px;
}

.service-grid article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 18px 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 25px rgba(47, 78, 146, 0.035);
}

.service-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #f0f5ff;
  color: var(--primary);
}

.service-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.service-grid article > span:last-child {
  min-width: 0;
}

.service-grid strong,
.service-grid small {
  display: block;
  white-space: nowrap;
}

.service-grid strong {
  color: #303848;
  font-size: 13px;
  font-weight: 600;
}

.service-grid small {
  margin-top: 4px;
  overflow: hidden;
  color: #929aa8;
  font-size: 9px;
  text-overflow: ellipsis;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #edf0f5;
  background: #fff;
  color: #9aa2af;
  font-size: 12px;
  text-align: center;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

@media (max-width: 1280px) {
  .header-inner {
    grid-template-columns: 180px 1fr auto;
    width: calc(100% - 40px);
  }

  .main-nav {
    gap: 24px;
  }

  .hero-visual {
    transform: scale(0.92);
    transform-origin: left center;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    gap: 20px;
    padding-inline: 18px;
  }

  .main-nav a:nth-last-child(-n + 2) {
    display: none;
  }

  .header-search {
    width: 170px;
  }

  .hero {
    height: auto;
    min-height: 720px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    height: auto;
    min-height: inherit;
  }

  .hero-copy {
    z-index: 2;
    width: 570px;
    padding-top: 70px;
  }

  .hero-visual {
    justify-self: center;
    margin-top: -20px;
    margin-left: 0;
    transform: scale(0.88);
    transform-origin: center top;
  }

  .recommend {
    height: auto;
    padding-bottom: 44px;
  }

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

  .product-card {
    height: 258px;
  }

  .product-preview {
    height: 164px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 20px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    width: calc(100% - 32px);
  }

  .main-nav {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: none;
    height: auto;
    padding: 14px 24px 20px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 30px rgba(34, 58, 110, 0.1);
    flex-wrap: wrap;
  }

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

  .main-nav a,
  .main-nav a:nth-last-child(-n + 2) {
    display: inline-flex;
    height: 34px;
  }

  .header-tools {
    margin-left: auto;
    padding-left: 12px;
  }

  .header-search {
    width: min(230px, 32vw);
  }

  .login-button,
  .register-button {
    display: none;
  }

  .menu-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 8px;
    place-content: center;
    gap: 4px;
    border-radius: 5px;
    background: var(--primary);
  }

  .menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(30px, 6vw, 40px);
    white-space: normal;
  }

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

  .hero-visual {
    margin-left: -20px;
  }

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

@media (max-width: 560px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .site-header,
  .header-inner {
    height: 62px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-symbol {
    width: 25px;
    height: 34px;
  }

  .header-search {
    width: min(145px, 38vw);
  }

  .cart-link {
    display: none;
  }

  .main-nav {
    top: 62px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 54px;
  }

  .hero-copy h1 {
    font-size: 31px;
    line-height: 1.32;
  }

  .hero-lead {
    font-size: 13px;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .hero-benefits small {
    font-size: 10px;
  }

  .hero-actions {
    margin-top: 30px;
  }

  .primary-button,
  .secondary-button {
    width: 50%;
    height: 44px;
    font-size: 12px;
  }

  .hero-visual {
    width: 658px;
    margin-top: 10px;
    margin-left: -160px;
    transform: scale(0.58);
    transform-origin: center top;
  }

  .recommend-inner {
    padding-top: 34px;
  }

  .view-all {
    top: 80px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 42px;
  }

  .product-card {
    height: 300px;
  }

  .product-preview {
    height: 205px;
  }

  .mini-window {
    left: 9%;
    width: 82%;
    height: 176px;
  }

  .product-body {
    padding: 10px 13px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .service-grid article {
    padding: 16px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
