:root {
  color-scheme: light;
  --ink: #192029;
  --muted: #5e6875;
  --line: #dfe5ec;
  --paper: #fbfcfe;
  --panel: #ffffff;
  --soft: #eef3f7;
  --accent: #0f8b8d;
  --accent-dark: #096f71;
  --sun: #f4b942;
  --coral: #e75a4d;
  --violet: #7161ef;
  --shadow: 0 18px 50px rgba(31, 42, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(238, 243, 247, 0.92), rgba(251, 252, 254, 0.96)),
    url("data:image/svg+xml,%3Csvg width='1440' height='820' viewBox='0 0 1440 820' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23cbd7e3' stroke-width='1' opacity='.55'%3E%3Cpath d='M0 126h1440M0 302h1440M0 478h1440M0 654h1440M178 0v820M356 0v820M534 0v820M712 0v820M890 0v820M1068 0v820M1246 0v820'/%3E%3C/g%3E%3Cg fill='%230f8b8d' opacity='.12'%3E%3Crect x='172' y='116' width='72' height='44' rx='8'/%3E%3Crect x='918' y='292' width='96' height='52' rx='8'/%3E%3Crect x='540' y='642' width='116' height='48' rx='8'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

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

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
}

.nav-actions a,
.lang-toggle {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  white-space: nowrap;
}

.nav-actions a:hover,
.lang-toggle:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.lang-toggle {
  cursor: pointer;
  background: var(--panel);
  color: var(--ink);
}

.support-nav {
  border-color: var(--accent) !important;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.market-head {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
  gap: 28px;
  padding: 72px 0 44px;
}

.headline {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: clamp(42px, 8vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: 0;
}

.headline p:not(.eyebrow),
.custom-panel p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.commerce-strip {
  display: grid;
  gap: 12px;
  align-self: stretch;
}

.commerce-strip div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.06);
}

.commerce-strip strong,
.commerce-strip span {
  display: block;
}

.commerce-strip strong {
  margin-bottom: 6px;
  font-size: 22px;
}

.commerce-strip span {
  color: var(--muted);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 16px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 42px rgba(31, 42, 55, 0.08);
}

.search-box,
.custom-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input,
.custom-form input,
.custom-form select,
.custom-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}

.search-box input:focus,
.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-btn {
  cursor: pointer;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 8px 12px;
}

.filter-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0 64px;
}

.tool-card {
  --card-accent: var(--accent);
  display: flex;
  min-height: 430px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 48px rgba(31, 42, 55, 0.1);
  animation: riseIn 560ms both;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.visual {
  min-height: 160px;
  padding: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 14%, white), #ffffff);
  border-bottom: 1px solid var(--line);
}

.mock-window {
  height: 128px;
  border: 1px solid rgba(25, 32, 41, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 42, 55, 0.12);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(25, 32, 41, 0.1);
  background: #f7f9fb;
}

.mock-bar i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--card-accent);
  opacity: 0.75;
}

.mock-content {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10px;
  padding: 12px;
}

.mock-thumb {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 32, 41, 0.12), rgba(255, 255, 255, 0)),
    var(--card-accent);
  opacity: 0.9;
}

.mock-lines {
  display: grid;
  gap: 7px;
}

.mock-lines span {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: #dce4ec;
}

.mock-lines span:nth-child(2) {
  width: 74%;
}

.mock-lines span:nth-child(3) {
  width: 52%;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-top h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

.price {
  white-space: nowrap;
  color: var(--accent-dark);
  font-weight: 800;
}

.desc {
  min-height: 72px;
  color: var(--muted);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: auto 0 16px;
}

.tag {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.primary-btn,
.secondary-btn {
  display: grid;
  place-items: center;
  cursor: pointer;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  font-weight: 800;
}

.primary-btn {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}

.inline-cta {
  display: inline-grid;
  width: fit-content;
  min-width: 150px;
  margin-top: 10px;
}

.primary-btn:hover {
  background: var(--accent-dark);
}

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.empty-state {
  padding: 30px 0 80px;
  color: var(--muted);
  text-align: center;
}

.custom-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
  margin: 0 0 80px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.salon-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: end;
  padding: 72px 0 34px;
}

.salon-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.salon-note {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.salon-note span {
  color: var(--muted);
  line-height: 1.55;
}

.salon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 26px;
}

.salon-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 34px rgba(31, 42, 55, 0.08);
}

.salon-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.salon-grid p {
  color: var(--muted);
  line-height: 1.6;
}

.salon-submit {
  margin-bottom: 80px;
}

.support-panel {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 26px;
  align-items: center;
  margin: 0 0 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.support-panel p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.support-qr {
  width: 100%;
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.support-qr.compact {
  max-width: 170px;
  justify-self: center;
}

.floating-support {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  min-width: 76px;
  min-height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(15, 139, 141, 0.35);
}

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

.form-result {
  min-height: 22px;
  color: var(--accent-dark);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: end;
  padding: 70px 0 36px;
}

.detail-hero h1 {
  max-width: 840px;
}

.detail-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-actions .primary-btn,
.detail-actions .secondary-btn {
  min-width: 160px;
}

.detail-summary {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-accent) 9%, white);
  box-shadow: var(--shadow);
}

.detail-summary strong {
  color: var(--accent-dark);
  font-size: 28px;
}

.detail-summary span {
  color: var(--muted);
  line-height: 1.55;
}

.detail-section {
  margin: 0 0 26px;
}

.video-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 20%, white), rgba(255, 255, 255, 0.88)),
    repeating-linear-gradient(0deg, rgba(25, 32, 41, 0.05), rgba(25, 32, 41, 0.05) 1px, transparent 1px, transparent 28px);
  box-shadow: var(--shadow);
  text-align: center;
}

.video-stage p {
  max-width: 620px;
  margin: 8px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.video-stage.has-video {
  padding: 0;
  overflow: hidden;
  background: #0f141a;
}

.product-video {
  display: block;
  width: 100%;
  min-height: 360px;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0f141a;
  object-fit: contain;
}

.play-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 18px 42px rgba(25, 32, 41, 0.24);
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

.payment-section,
.purchase-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  align-items: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.payment-section p,
.purchase-section p {
  color: var(--muted);
  line-height: 1.65;
}

.trial-section {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.trial-section p {
  color: var(--muted);
  line-height: 1.7;
}

.trial-section small {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.trial-actions {
  display: grid;
  min-width: 190px;
  gap: 10px;
}

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

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

.plan-card {
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 16px;
  text-align: left;
}

.plan-card:hover,
.plan-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.plan-card.active {
  background: color-mix(in srgb, var(--accent) 9%, white);
}

.plan-card strong {
  font-size: 20px;
}

.plan-card span {
  color: var(--accent-dark);
  font-weight: 900;
}

.plan-card p {
  margin: 0;
}

.payment-methods {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.qr-box,
.support-box {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.qr-placeholder {
  display: grid;
  min-height: 132px;
  min-width: 160px;
  place-items: center;
  border: 1px dashed #aeb9c5;
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(25, 32, 41, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(25, 32, 41, 0.05) 25%, transparent 25%),
    #fff;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  writing-mode: horizontal-tb;
}

.support-box p,
.support-box small {
  color: var(--muted);
  line-height: 1.55;
}

.support-box code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
}

.purchase-support {
  grid-column: 2;
}

.detail-custom {
  margin-top: 26px;
}

.faq-section {
  padding: 18px 0 80px;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px 16px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
}

.admin-login {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: start;
  padding: 72px 0;
}

.admin-login p {
  color: var(--muted);
  line-height: 1.65;
}

.admin-login form {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-board {
  padding: 28px 0 80px;
}

.product-editor {
  margin-bottom: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

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

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

.product-actions .primary-btn,
.product-actions .secondary-btn {
  min-width: 160px;
}

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

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-tools select,
.admin-tools input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
}

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

.lead-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(31, 42, 55, 0.08);
}

.lead-main,
.lead-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-main span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.lead-main select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
}

.lead-card dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.lead-card dt {
  color: var(--muted);
  font-weight: 800;
}

.lead-card dd {
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.note-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.note-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--paper);
}

.info-box strong {
  display: block;
  margin-bottom: 8px;
}

.info-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .market-head,
  .custom-panel,
  .support-panel,
  .salon-hero,
  .detail-hero,
  .payment-section,
  .purchase-section,
  .payment-methods,
  .trial-section,
  .admin-login {
    grid-template-columns: 1fr;
  }

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

  .pay-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

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

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

  .admin-heading,
  .lead-main,
  .lead-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-tools {
    justify-content: flex-start;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

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

  .nav-actions {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
  }

  .nav-actions a,
  .lang-toggle {
    padding: 7px 8px;
  }

  .market-head {
    min-height: auto;
    padding: 42px 0 28px;
  }

  h1 {
    font-size: 42px;
  }

  .headline p:not(.eyebrow),
  .custom-panel p:not(.eyebrow) {
    font-size: 16px;
  }

  .grid,
  .detail-columns,
  .salon-grid,
  .pay-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 390px;
  }

  .detail-hero {
    padding: 42px 0 24px;
  }

  .salon-hero {
    padding: 42px 0 24px;
  }

  .video-stage {
    min-height: 280px;
    padding: 22px;
  }

  .support-panel {
    padding: 18px;
  }

  .support-qr {
    max-width: 100%;
  }

  .floating-support {
    right: 12px;
    bottom: 12px;
  }

  .lead-card dl {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .purchase-support {
    grid-column: auto;
  }

  .custom-panel {
    padding: 18px;
  }
}
