@import url("../fonts/fonts.css");

:root {
  color-scheme: light;
  --brand: #5b5bd6;
  --brand-strong: #4141bd;
  --brand-soft: #ececff;
  --jiyi: #258d70;
  --jiyi-soft: #e2f6ef;
  --jiadang: #cf7f8e;
  --jiadang-soft: #ffedf1;
  --chengpian: #5e73d6;
  --chengpian-soft: #e9edff;
  --success: #207f5e;
  --warning: #9a681c;
  --danger: #b84040;
  --info: #356fb7;
  --bg: #f8f8fc;
  --bg-elevated: #ffffff;
  --bg-muted: #f0f1f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --ink: #202131;
  --ink-soft: #626679;
  --ink-faint: #8b8fa0;
  --line: rgba(48, 50, 80, 0.12);
  --line-strong: rgba(48, 50, 80, 0.23);
  --shadow: 0 24px 70px -52px rgba(51, 48, 105, 0.58);
  --shadow-soft: 0 12px 34px -26px rgba(51, 48, 105, 0.42);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 42px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Plus Jakarta Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", monospace;
  --container: 1240px;
  --page-pad: 24px;
  --nav-height: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12131b;
  --bg-elevated: #1a1c27;
  --bg-muted: #20222e;
  --surface: rgba(29, 31, 44, 0.8);
  --surface-solid: #1b1d28;
  --ink: #f1f2f8;
  --ink-soft: #b2b5c4;
  --ink-faint: #858999;
  --line: rgba(222, 225, 244, 0.11);
  --line-strong: rgba(222, 225, 244, 0.21);
  --brand-soft: #29294a;
  --jiyi-soft: #17352d;
  --jiadang-soft: #3c2630;
  --chengpian-soft: #25294c;
  --shadow: 0 24px 70px -48px rgba(0, 0, 0, 0.8);
  --shadow-soft: 0 12px 34px -24px rgba(0, 0, 0, 0.72);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, color-mix(in srgb, var(--jiyi) 11%, transparent), transparent 22rem),
    radial-gradient(circle at 7% 26%, color-mix(in srgb, var(--jiadang) 10%, transparent), transparent 24rem),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: color 180ms ease, background-color 180ms ease;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

::selection {
  color: #fff;
  background: var(--brand);
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 70%, white);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100vw - var(--page-pad) * 2));
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 72px 0;
}

.eyebrow,
.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--brand);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(54px, 7vw, 98px);
  line-height: 0.94;
}

h2 {
  font-size: clamp(35px, 4vw, 54px);
  line-height: 1.05;
}

h3 {
  font-size: 23px;
  line-height: 1.2;
}

p {
  color: var(--ink-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 180ms, box-shadow 180ms, background-color 180ms;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px -28px rgba(35, 33, 80, 0.45);
}

.nav-shell {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 26px;
  align-items: center;
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.brand b {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.045em;
}

.brand small {
  margin-left: -4px;
  color: var(--ink-faint);
  font-size: 8px;
  white-space: nowrap;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--brand);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  background: var(--surface);
  transition: color 180ms, border-color 180ms, transform 180ms;
}

.icon-button:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-link {
  min-height: 44px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 11px;
  font-weight: 700;
  transition: transform 180ms var(--ease-out), background 180ms;
}

.account-link:hover {
  background: var(--brand-strong);
  transform: translateY(-1px);
}

.language-link {
  padding: 8px 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
}

.language-link:hover,
.nav-account a:hover {
  color: var(--brand);
}

.nav-account {
  display: inline-flex;
  min-width: 58px;
  justify-content: flex-end;
}

.nav-account a {
  max-width: 150px;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account__loading {
  width: 58px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bg-muted), var(--line), var(--bg-muted));
  background-size: 200% 100%;
  animation: skeleton 1.4s linear infinite;
}

.product-menu {
  position: relative;
}

.product-menu > button {
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  color: var(--ink-soft);
  background: none;
  font-size: 12px;
  font-weight: 600;
}

.product-menu > button svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  transition: transform 220ms;
}

.product-menu[data-open="true"] > button svg {
  transform: rotate(180deg);
}

.product-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: -22px;
  width: 340px;
  max-height: min(70vh, 620px);
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-7px) scale(0.98);
  transform-origin: top left;
  transition: opacity 180ms, transform 220ms var(--ease-out);
}

.product-menu[data-open="true"] .product-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.product-popover a {
  padding: 12px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 11px;
  border-radius: 13px;
}

.product-popover a:hover {
  background: var(--bg-muted);
}

.product-popover .product-popover-all {
  margin-top: 5px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
}

.product-popover .icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.product-popover .icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-popover b {
  display: block;
  font-size: 12px;
}

.product-popover small {
  display: block;
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.mobile-menu-button {
  display: none;
}

.mobile-drawer {
  position: fixed;
  inset: var(--nav-height) 0 0;
  z-index: 55;
  padding: 24px;
  overflow-y: auto;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 180ms, transform 220ms var(--ease-out);
}

.mobile-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-drawer a {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.mobile-drawer-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
}

.mobile-drawer-actions .language-link {
  padding: 0;
  border: 0;
  font: inherit;
}

.btn {
  position: relative;
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  isolation: isolate;
  transition: transform 160ms var(--ease-out), box-shadow 220ms, background 220ms, border-color 220ms;
}

.btn::before {
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.24), transparent 36%);
  content: "";
  opacity: 0;
  transition: opacity 180ms;
}

.btn:hover::before {
  opacity: 1;
}

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

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px -18px rgba(91, 91, 214, 0.85);
}

.btn--primary:hover {
  background: var(--brand-strong);
}

.btn--ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-solid) 68%, transparent);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  background: var(--surface-solid);
}

.btn--small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 10px;
}

.hero {
  min-height: 720px;
  padding: 74px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 760px;
  margin: 24px 0;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: 17px;
  line-height: 1.8;
}

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

.hero-note {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  color: var(--ink-faint);
  font-size: 10px;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note span::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jiyi);
  content: "";
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: clip;
}

.hero-orb {
  position: absolute;
  inset: 4% 1% 7% 3%;
  border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  border-radius: 48% 52% 58% 42% / 42% 44% 56% 58%;
  background:
    radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--jiadang) 28%, transparent), transparent 32%),
    radial-gradient(circle at 20% 68%, color-mix(in srgb, var(--jiyi) 24%, transparent), transparent 34%),
    var(--brand-soft);
  transform: rotate(7deg);
}

.hero-product {
  position: absolute;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 400ms var(--ease-out), box-shadow 400ms;
}

.hero-product:hover {
  box-shadow: 0 32px 75px -46px rgba(48, 47, 94, 0.5);
}

.hero-product--jiyi {
  top: 70px;
  left: 20px;
  width: 280px;
  height: 390px;
  padding: 18px;
  border-radius: 78px 24px 24px 24px;
  background: var(--jiyi-soft);
  transform: rotate(-4deg);
}

.hero-product--jiyi:hover {
  transform: rotate(-1deg) translateY(-6px);
}

.hero-product--jiyi img {
  width: 100%;
  height: 310px;
  margin-top: 12px;
  border-radius: 18px;
  object-fit: contain;
  object-position: top;
  background: var(--surface-solid);
}

.hero-product--jiadang {
  right: 12px;
  bottom: 40px;
  width: 230px;
  height: 260px;
  padding: 20px;
  border-radius: 24px 70px 24px 24px;
  background: var(--jiadang-soft);
  transform: rotate(3deg);
}

.hero-product--jiadang:hover {
  transform: rotate(0deg) translateY(-7px);
}

.hero-product--jiadang img {
  width: 100%;
  height: 178px;
  margin-top: 12px;
  border-radius: 16px;
  object-fit: cover;
  object-position: top;
  background: var(--surface-solid);
}

.hero-product--chengpian {
  right: 162px;
  top: 20px;
  width: 285px;
  height: 195px;
  padding: 15px;
  border-radius: 24px;
  background: var(--chengpian-soft);
  transform: rotate(-1deg);
}

.hero-product--chengpian:hover {
  transform: rotate(0deg) translateY(-5px);
}

.hero-product--chengpian img {
  width: 100%;
  height: 132px;
  margin-top: 10px;
  border-radius: 13px;
  object-fit: cover;
  object-position: top;
}

.mini-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-product-head b {
  font-family: var(--font-display);
  font-size: 18px;
}

.mini-product-head span {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
}

.pending-ui {
  width: 100%;
  height: 155px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  color: var(--ink-faint);
  background:
    repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 10px),
    color-mix(in srgb, var(--surface-solid) 50%, transparent);
  font-family: var(--font-mono);
  font-size: 8px;
  text-align: center;
}

.floating-badge {
  position: absolute;
  left: 42%;
  bottom: 8px;
  z-index: 4;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-size: 8px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin: 14px 0 15px;
}

.section-head p {
  max-width: 620px;
  margin-bottom: 0;
}

.path-switcher {
  padding: 34px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

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

.path-tab {
  min-height: 54px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
}

.path-tab span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--bg-muted);
  font-family: var(--font-mono);
  font-size: 8px;
}

.path-tab b {
  font-size: 12px;
}

.path-tab[aria-selected="true"] {
  color: var(--ink);
  border-color: var(--line);
  background: var(--brand-soft);
}

.path-tab[aria-selected="true"] span {
  color: #fff;
  background: var(--brand);
}

.path-panel {
  min-height: 330px;
  padding: 10px 10px 10px 0;
  display: none;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 35px;
  align-items: center;
}

.path-panel.is-active {
  display: grid;
  animation: panel-in 460ms var(--ease-out) both;
}

.path-panel h3 {
  max-width: 560px;
  margin: 14px 0 16px;
  font-size: clamp(34px, 4vw, 50px);
}

.path-panel p {
  max-width: 520px;
}

.path-visual {
  height: 305px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 28px 72px 28px 28px;
  background: var(--brand-soft);
}

.path-visual img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
}

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

.product-card {
  position: relative;
  min-height: 420px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  transition: transform 300ms var(--ease-out), border-color 300ms, box-shadow 300ms;
}

.product-card:hover {
  border-color: color-mix(in srgb, var(--product-color, var(--brand)) 35%, var(--line));
  box-shadow: 0 28px 65px -48px rgba(45, 45, 84, 0.46);
  transform: translateY(-6px);
}

.product-card::after {
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  top: -80px;
  border-radius: 50%;
  background: var(--product-soft, var(--brand-soft));
  content: "";
  opacity: 0.72;
}

.product-card--jiyi {
  --product-color: var(--jiyi);
  --product-soft: var(--jiyi-soft);
}

.product-card--jiadang {
  --product-color: var(--jiadang);
  --product-soft: var(--jiadang-soft);
}

.product-card--chengpian {
  --product-color: var(--chengpian);
  --product-soft: var(--chengpian-soft);
}

.product-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: var(--product-color);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.product-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-no {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.product-card h3 {
  position: relative;
  z-index: 1;
  margin: 54px 0 10px;
  font-size: 34px;
}

.product-card h3 .product-en {
  display: block;
  margin-top: 4px;
  color: var(--ink-faint);
  font: 9px var(--font-mono);
}

.product-card > p {
  position: relative;
  z-index: 1;
  margin-bottom: 25px;
  font-size: 13px;
}

.pill-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 8px;
}

.product-card-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.product-card-link span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--product-color);
  background: var(--product-soft);
  transition: transform 220ms var(--ease-out);
}

.product-card:hover .product-card-link span {
  transform: translate(3px, -3px);
}

.product-grid-footer {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.product-grid-footer p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 9px;
}

.catalog-section {
  padding: 36px 0 100px;
}

.catalog-toolbar {
  padding: 30px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
}

.catalog-toolbar h2 {
  margin: 9px 0 0;
  font-size: 36px;
}

.catalog-search {
  width: min(420px, 100%);
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.catalog-search input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--ink);
  background: var(--bg);
}

.catalog-search input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.catalog-meta {
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.catalog-filter {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-solid);
  font-size: 10px;
  font-weight: 700;
}

.catalog-filter[aria-pressed="true"] {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.catalog-meta > .mono {
  flex: 0 0 auto;
  color: var(--ink-faint);
}

.catalog-empty {
  padding: 52px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  text-align: center;
}

.catalog-empty h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.catalog-empty p {
  margin: 0 auto 20px;
  max-width: 520px;
}

.boundary-panel {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--jiyi) 12%, transparent), transparent 20rem),
    var(--surface-solid);
}

.boundary-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.boundary-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--bg-muted) 65%, transparent);
}

.boundary-card b {
  display: block;
  margin: 35px 0 7px;
  font-family: var(--font-display);
  font-size: 20px;
}

.boundary-card p {
  margin: 0;
  font-size: 12px;
}

.boundary-card span {
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 9px;
}

.workshop-band {
  padding: 70px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: end;
  border-radius: var(--radius-xl);
  background: var(--brand);
  color: #fff;
}

.workshop-band h2 {
  margin: 15px 0 0;
  font-size: clamp(42px, 5vw, 65px);
}

.workshop-band p {
  max-width: 540px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.workshop-band .btn {
  margin-top: 22px;
  color: var(--brand);
  background: #fff;
}

.site-footer {
  margin-top: 50px;
  padding: 56px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.7fr);
  gap: 50px;
}

.footer-grid h3 {
  margin: 0 0 16px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 11px;
}

.footer-bottom {
  margin-top: 45px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 9px;
}

.page-hero {
  padding: 90px 0 55px;
}

.page-hero h1 {
  max-width: 970px;
  margin: 18px 0;
}

.page-hero p {
  max-width: 650px;
  font-size: 16px;
}

.product-detail-hero {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
  gap: 60px;
  align-items: center;
}

.product-detail-hero h1 {
  margin: 18px 0;
}

.product-detail-hero h1 em {
  color: var(--product-accent, var(--brand));
  font-style: normal;
}

.product-detail-visual {
  position: relative;
  min-height: 480px;
  padding: 34px;
  border-radius: 60px 24px 34px 34px;
  background: var(--product-soft, var(--brand-soft));
}

.product-detail-visual img {
  width: 100%;
  height: 410px;
  object-fit: contain;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
}

.product-detail-visual .pending-ui {
  height: 410px;
  margin-top: 0;
  background: color-mix(in srgb, var(--surface-solid) 42%, transparent);
}

.product-page[data-product="memeasy"] {
  --product-accent: var(--jiyi);
  --product-soft: var(--jiyi-soft);
}

.product-page[data-product="belongings"] {
  --product-accent: var(--jiadang);
  --product-soft: var(--jiadang-soft);
}

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

.feature-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}

.feature-card .feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--product-accent, var(--brand));
  background: var(--product-soft, var(--brand-soft));
  font-family: var(--font-mono);
  font-size: 10px;
}

.feature-card h3 {
  margin: 34px 0 9px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  font-size: 12px;
}

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

.product-shot-grid figure {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}

.product-shot-grid img {
  width: 100%;
  height: 380px;
  object-fit: contain;
  object-position: top;
  border-radius: 12px;
  background: var(--bg-muted);
}

.product-shot-grid figcaption {
  padding: 10px 4px 2px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.plan-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.plan-row:last-child {
  border-bottom: 0;
}

.plan-row strong,
.plan-row small {
  display: block;
}

.plan-row small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 10px;
}

.plan-row > b {
  font-family: var(--font-mono);
  font-size: 15px;
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

.product-boundary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-boundary article {
  min-height: 170px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: var(--surface-solid);
}

.product-boundary article:last-child {
  border-right: 0;
}

.product-boundary h3 {
  margin: 26px 0 6px;
  font-size: 18px;
}

.product-boundary p {
  margin: 0;
  font-size: 11px;
}

.download-panel {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.download-panel h2 {
  margin: 10px 0 7px;
  font-size: 34px;
}

.download-panel p {
  margin: 0;
}

.download-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}

.download-panel > div:first-child {
  flex: 0.7 1 320px;
}

.download-panel > div:last-child {
  flex: 1.3 1 560px;
  min-width: 0;
}

.download-details {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.download-details h3,
.download-details h4 {
  margin: 0;
}

.download-details h3 {
  font-size: 18px;
}

.download-details h4 {
  margin-top: 24px;
  font-size: 14px;
}

.release-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.release-facts > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-muted);
}

.release-facts dt {
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.release-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.install-steps {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

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

.faq-list details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-solid);
}

.faq-list summary {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 12px;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--brand);
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  transition: transform 180ms;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: 0 0 18px;
  font-size: 12px;
}

.docs-layout {
  padding: 45px 0 100px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 42px;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-solid);
}

.docs-sidebar h3 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.docs-sidebar a {
  padding: 7px 0;
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
}

.docs-sidebar a:hover {
  color: var(--brand);
}

.docs-article {
  max-width: 800px;
  min-height: 650px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
}

.docs-article h1 {
  font-size: 48px;
}

.docs-article h2 {
  margin-top: 48px;
  font-size: 28px;
}

.docs-article p {
  font-size: 14px;
  line-height: 1.9;
}

.docs-article code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-muted);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.legal-meta {
  margin: 12px 0 24px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 10px;
}

.legal-callout {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  color: var(--ink-soft);
  font-size: 13px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.docs-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 12px;
}

.docs-article th,
.docs-article td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.docs-article th {
  background: var(--bg-muted);
  font-family: var(--font-display);
}

.support-grid {
  padding: 30px 0 100px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 20px;
}

.support-card,
.form-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.support-card h2 {
  margin: 22px 0 12px;
  font-size: 42px;
}

.support-card p {
  font-size: 13px;
}

.contact-box {
  margin-top: 38px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--jiyi-soft);
}

.contact-box span {
  display: block;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 8px;
}

.contact-box strong {
  display: block;
  margin: 8px 0 15px;
  font-size: 25px;
}

.contact-id {
  margin-top: 28px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--jiyi) 26%, var(--line));
  border-radius: var(--radius-md);
  background: var(--jiyi-soft);
}

.contact-id span {
  flex: 1 1 190px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
}

#form-result textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

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

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 11px;
  font-weight: 700;
}

.field-help {
  color: var(--ink-faint);
  font-size: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 160ms, box-shadow 160ms, background 160ms;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 9px;
}

.form-footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.char-count {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.auth-shell {
  min-height: 710px;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 0.7fr);
  gap: 70px;
  align-items: center;
}

.auth-intro h1 {
  max-width: 590px;
  margin: 18px 0;
  font-size: clamp(50px, 6vw, 78px);
}

.auth-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.auth-switch {
  padding: 5px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 999px;
  background: var(--bg-muted);
}

.auth-switch button {
  position: relative;
  z-index: 1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.auth-switch button[aria-selected="true"] {
  color: var(--ink);
}

.auth-switch::before {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc(50% - 5px);
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-soft);
  content: "";
  transform: translateX(var(--auth-shift, 0));
  transition: transform 280ms var(--ease-out);
}

.auth-form {
  margin-top: 28px;
  display: none;
}

.auth-form.is-active {
  display: grid;
  gap: 15px;
  animation: panel-in 360ms var(--ease-out) both;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--brand);
}

#verification-view > h2,
#device-limit-view > h2,
#recovery-view > h2 {
  margin-bottom: 8px;
}

#verification-code,
#reset-code {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: 0.28em;
  text-align: center;
}

.device-row input[type="radio"] {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--brand);
}

.account-shell {
  padding: 88px 0 110px;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 48px;
  align-items: start;
}

.account-intro {
  position: sticky;
  top: calc(var(--nav-height) + 32px);
}

.account-intro h1 {
  max-width: 560px;
  margin: 14px 0 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.account-intro > p {
  max-width: 560px;
  color: var(--ink-soft);
}

.account-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.account-card h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.account-loading,
.account-empty,
.account-message {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-size: 13px;
}

.account-message.error {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 36%, transparent);
  background: color-mix(in srgb, var(--danger) 7%, var(--bg-elevated));
}

.account-message.success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 34%, transparent);
  background: color-mix(in srgb, var(--success) 7%, var(--bg-elevated));
}

.account-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.account-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--jiadang));
  color: #fff;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.account-summary h2 {
  margin: 0;
  font-size: 22px;
}

.account-summary p {
  margin: 2px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-section {
  padding-top: 26px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.account-section h3 {
  margin-bottom: 14px;
  font-size: 17px;
}

.account-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.account-section__head h3 {
  margin: 0;
}

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

.membership-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--product-color, var(--brand)) 6%, var(--bg-elevated));
}

.membership-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.membership-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 16px;
}

.membership-icon {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  object-fit: cover;
}

.membership-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.membership-meta {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--ink-faint);
  font-size: 11px;
}

.membership-renewals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.membership-renewals > .mono {
  flex-basis: 100%;
  color: var(--ink-faint);
}

.plan-upgrade {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 14px 14px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: var(--radius-sm);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent 62%),
    var(--bg-elevated);
}

.plan-upgrade::after {
  position: absolute;
  top: -28px;
  right: -22px;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--product-color, var(--brand)) 10%, transparent);
  content: "";
  pointer-events: none;
}

.plan-upgrade__label {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

.plan-upgrade__label > span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-upgrade__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-upgrade__actions .btn {
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
}

.feedback-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.feedback-form > .btn {
  justify-self: start;
}

.product-deletion-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.product-dot {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 8%, transparent);
}

.deletion-preview {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--danger) 32%, var(--line));
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--danger) 4%, var(--bg-elevated));
}

.deletion-preview h4 {
  margin: 0 0 8px;
  font-size: 17px;
}

.deletion-preview p {
  color: var(--ink-soft);
  font-size: 12px;
}

.deletion-items {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.deletion-item,
.deletion-items > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  font-size: 11px;
}

.deletion-warning {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  color: color-mix(in srgb, var(--danger) 86%, var(--ink));
  background: color-mix(in srgb, var(--danger) 9%, var(--bg-elevated));
  font-weight: 700;
}

.device-list {
  display: grid;
  gap: 10px;
}

.device-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.device-row__copy {
  min-width: 0;
  flex: 1;
}

.device-row strong,
.device-row small {
  display: block;
}

.device-row small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 11px;
}

.danger-zone {
  border-color: color-mix(in srgb, var(--danger) 28%, var(--line));
  background: color-mix(in srgb, var(--danger) 4%, var(--bg-elevated));
}

.danger-zone .btn {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 38%, transparent);
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 0.45fr) auto;
  gap: 10px;
  align-items: end;
}

.account-card .product-card {
  min-height: 0;
}

@media (max-width: 960px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .account-intro {
    position: static;
  }
}

@media (max-width: 620px) {
  .account-shell {
    padding-top: 54px;
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .device-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .device-row .btn {
    width: 100%;
  }
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: var(--bg);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 25px 17px;
  border-right: 1px solid var(--line);
  background: var(--surface-solid);
}

.admin-brand {
  margin-bottom: 35px;
  padding: 0 10px;
}

.admin-nav {
  display: grid;
  gap: 5px;
}

.admin-nav button {
  min-height: 42px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 11px;
  color: var(--ink-soft);
  background: transparent;
  text-align: left;
  font-size: 11px;
}

.admin-nav button span {
  width: 20px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.admin-nav button[aria-current="page"] {
  color: var(--brand);
  background: var(--brand-soft);
}

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

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

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

.admin-title p {
  margin: 5px 0 0;
  font-size: 11px;
}

.admin-content {
  margin-top: 28px;
}

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

.metric {
  min-height: 135px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}

.metric span {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.metric strong {
  display: block;
  margin-top: 34px;
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.admin-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
}

.admin-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
}

.admin-panel h2 {
  margin: 0 0 18px;
  font-size: 18px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 10px;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
}

.admin-module-panel {
  display: none;
}

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

.module-placeholder {
  min-height: 360px;
  padding: 36px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: var(--surface-solid);
}

.module-placeholder h2 {
  margin-bottom: 10px;
}

.module-placeholder p {
  max-width: 620px;
  font-size: 12px;
}

.style-hero {
  padding: 80px 0 50px;
}

.style-hero h1 {
  margin: 16px 0;
}

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

.swatch-card {
  min-height: 130px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: #fff;
}

.swatch-card span,
.swatch-card code {
  font-family: var(--font-mono);
  font-size: 8px;
}

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

.token-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
}

.type-display {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
}

.type-body {
  font-family: var(--font-body);
  font-size: 16px;
}

.type-mono {
  font-family: var(--font-mono);
  font-size: 10px;
}

.component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.state-badge {
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 9px;
}

.state-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.state-badge.success { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.state-badge.warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.state-badge.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.state-badge.info { color: var(--info); background: color-mix(in srgb, var(--info) 10%, transparent); }

.loading-bar {
  width: 240px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-muted);
}

.loading-bar::after {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  content: "";
  animation: loading-slide 1.4s ease-in-out infinite;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms, transform 220ms var(--ease-out);
  font-size: 11px;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loading-slide {
  0%, 100% { transform: translateX(-20%); }
  50% { transform: translateX(155%); }
}

@media (max-width: 1060px) {
  .hero,
  .product-detail-hero,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    width: min(680px, 100%);
    min-height: 520px;
  }

  .product-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .boundary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workshop-band {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 50px;
  }

  .product-popover {
    left: -50px;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .token-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --page-pad: 18px;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-center,
  .nav-actions .account-link,
  .nav-actions .theme-button,
  .nav-actions .language-link,
  .nav-actions .nav-account {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .path-switcher {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .path-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-tab {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .path-panel {
    padding: 0;
    grid-template-columns: 1fr;
  }

  .path-visual {
    height: 230px;
  }

  .product-grid,
  .feature-grid,
  .boundary-grid,
  .product-boundary {
    grid-template-columns: 1fr;
  }

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

  .product-card {
    min-height: 340px;
  }

  .product-card h3 {
    margin-top: 35px;
  }

  .workshop-band {
    padding: 36px 24px;
    border-radius: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .docs-layout {
    grid-template-columns: 1fr;
    padding-top: 20px;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-article {
    padding: 27px 20px;
  }

  .docs-article h1 {
    font-size: 36px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .product-shot-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

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

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .admin-nav button {
    justify-content: center;
    text-align: center;
  }

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

  .swatch-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-height: 64px;
    --page-pad: 14px;
  }

  body {
    font-size: 15px;
  }

  .section {
    padding: 72px 0;
  }

  .brand small,
  .nav-actions .icon-button:not(.mobile-menu-button) {
    display: none;
  }

  .brand img {
    width: 29px;
    height: 29px;
  }

  .hero {
    min-height: auto;
    padding: 54px 0 65px;
    gap: 40px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-note {
    flex-direction: column;
    gap: 8px;
  }

  .hero-stage {
    min-height: 510px;
  }

  .hero-product--jiyi {
    width: 64%;
    height: 335px;
    left: 0;
  }

  .hero-product--jiyi img {
    height: 255px;
  }

  .hero-product--jiadang {
    width: 48%;
    height: 220px;
    right: 0;
  }

  .hero-product--chengpian {
    width: 61%;
    height: 165px;
    top: 370px;
    right: 4%;
  }

  .floating-badge {
    left: 8%;
    bottom: 0;
  }

  .path-tabs {
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
  }

  .path-tab {
    min-height: 48px;
    padding: 8px;
  }

  .path-tab span {
    width: 24px;
    height: 24px;
  }

  .path-tab b {
    font-size: 10px;
  }

  .product-card {
    min-height: 310px;
  }

  .product-grid-footer,
  .catalog-toolbar,
  .catalog-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-search {
    width: 100%;
  }

  .catalog-meta > .mono {
    align-self: flex-start;
  }

  .boundary-panel {
    padding: 28px 20px;
  }

  .workshop-band h2 {
    font-size: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-facts {
    grid-template-columns: 1fr;
  }

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

  .product-boundary article:last-child {
    border-bottom: 0;
  }

  .auth-card {
    padding: 22px;
  }

  .admin-main {
    padding: 18px 12px;
  }

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

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  .swatch-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
