:root {
  --wine: #6f1f37;
  --wine-dark: #431323;
  --wine-soft: #9d5368;
  --ink: #2c2421;
  --muted: #7f706a;
  --paper: #fffaf4;
  --sand: #f0e5da;
  --blush: #f4e6e3;
  --gold: #b57e5b;
  --green: #2f6543;
  --line: rgba(73, 42, 35, 0.13);
  --shadow: 0 24px 70px rgba(81, 43, 34, 0.13);
  --serif: "Songti SC", "STSong", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--wine);
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  box-shadow: 0 10px 30px rgba(111, 31, 55, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.site-header {
  width: min(1420px, calc(100% - 48px));
  height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site-nav a,
.text-link {
  color: #5f514c;
  font-size: 14px;
  transition: color 180ms ease;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--wine);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
}

.button {
  min-height: 50px;
  padding: 0 25px;
  border: 1px solid var(--wine);
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wine);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(111, 31, 55, 0.17);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(111, 31, 55, 0.24);
}

.button--small {
  min-height: 42px;
  padding: 0 19px;
  border-radius: 13px;
  font-size: 14px;
}

.button--ghost {
  background: transparent;
  color: var(--wine);
  box-shadow: none;
}

.button--light {
  border-color: #fff;
  background: #fff;
  color: var(--wine-dark);
}

.hero {
  width: min(1420px, calc(100% - 48px));
  min-height: 690px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(520px, 0.95fr);
  align-items: center;
  gap: 50px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--wine-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 90px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

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

.hero-text {
  max-width: 650px;
  margin: 30px 0 0;
  color: #695a55;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: #897871;
  font-size: 12px;
}

.trust-row span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  display: inline-block;
  background: var(--gold);
  vertical-align: 1px;
}

.hero-visual {
  position: relative;
  min-height: 540px;
  display: grid;
  place-items: center;
  border-radius: 60% 40% 42% 58% / 45% 55% 45% 55%;
  background:
    radial-gradient(circle at 60% 30%, rgba(255,255,255,0.86), transparent 32%),
    linear-gradient(145deg, #ead6ca, #f7ede6 55%, #e5c9c4);
  overflow: hidden;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(111, 31, 55, 0.16);
  border-radius: 50%;
}

.orbit--one {
  width: 440px;
  height: 440px;
}

.orbit--two {
  width: 570px;
  height: 260px;
  transform: rotate(-24deg);
}

.signal-card {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255, 250, 246, 0.88);
  box-shadow: 0 35px 90px rgba(81, 42, 39, 0.2);
  backdrop-filter: blur(16px);
}

.signal-card--main {
  width: min(470px, calc(100% - 70px));
  padding: 28px;
  border-radius: 28px;
  transform: rotate(-2deg);
}

.signal-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.signal-head b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e4efe7;
  color: var(--green);
  font-size: 10px;
}

.signal-card > strong {
  display: block;
  margin: 20px 0;
  font-family: var(--serif);
  font-size: 26px;
}

.signal-person {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.signal-person .avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f0dce2;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
}

.signal-person .avatar--gold {
  background: #efe1ce;
  color: #8d5a2b;
}

.signal-person b,
.signal-person small {
  display: block;
}

.signal-person b {
  font-size: 14px;
}

.signal-person small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.signal-person i {
  color: #9c8881;
  font-size: 10px;
  font-style: normal;
}

.mini-stat {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 16px 20px;
  border-radius: 19px;
  background: var(--wine);
  color: #fff;
  box-shadow: 0 18px 45px rgba(71, 19, 35, 0.3);
}

.mini-stat small,
.mini-stat strong {
  display: block;
}

.mini-stat small {
  opacity: 0.7;
  font-size: 10px;
}

.mini-stat strong {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 28px;
}

.mini-stat--top {
  top: 72px;
  right: 22px;
  transform: rotate(5deg);
}

.mini-stat--bottom {
  bottom: 58px;
  left: 12px;
  background: #fff;
  color: var(--wine);
  transform: rotate(-4deg);
}

.statement {
  padding: 100px 24px 130px;
  text-align: center;
  background: var(--wine-dark);
  color: #fff8f2;
}

.statement p {
  margin: 0 0 25px;
  color: #d3aeb7;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.statement h2 {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.35;
}

.section {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.feature-card {
  min-height: 320px;
  padding: 34px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255,255,255,0.72);
  overflow: hidden;
}

.feature-card--large {
  grid-row: span 2;
  min-height: 660px;
  background: #eaded2;
}

.feature-card--wine {
  background: var(--wine);
  color: #fff;
}

.feature-card--wine .eyebrow,
.feature-card--wine p {
  color: #e3bdc6;
}

.feature-index {
  position: absolute;
  top: 28px;
  right: 30px;
  color: rgba(111, 31, 55, 0.36);
  font-family: var(--serif);
  font-size: 28px;
}

.feature-card h3 {
  max-width: 530px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.28;
}

.feature-card > p:last-of-type {
  max-width: 560px;
  margin: 22px 0 0;
  color: #72615a;
  line-height: 1.85;
}

.canvas-preview {
  height: 315px;
  margin-top: 45px;
  position: relative;
  border-radius: 26px;
  background: #f9f3ed;
  overflow: hidden;
}

.cloth {
  width: 165px;
  height: 230px;
  position: absolute;
  bottom: 26px;
  border-radius: 80px 80px 25px 25px;
  box-shadow: 0 20px 35px rgba(58, 37, 30, 0.18);
}

.cloth::before {
  content: "";
  width: 52px;
  height: 30px;
  position: absolute;
  top: -8px;
  left: 56px;
  border: 10px solid currentColor;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}

.cloth--one {
  left: 10%;
  background: #264a5e;
  color: #264a5e;
  transform: rotate(-7deg);
}

.cloth--two {
  left: 36%;
  z-index: 2;
  background: #6f1f37;
  color: #6f1f37;
}

.cloth--three {
  right: 10%;
  background: #b88f72;
  color: #b88f72;
  transform: rotate(7deg);
}

.pulse-line {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-top: 34px;
}

.pulse-line span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: rgba(255,255,255,0.18);
}

.pulse-line span:nth-child(1) { height: 26%; }
.pulse-line span:nth-child(2) { height: 44%; }
.pulse-line span:nth-child(3) { height: 76%; }
.pulse-line span:nth-child(4) { height: 100%; background: #fff; }

.section-heading {
  max-width: 760px;
  margin-bottom: 58px;
}

.section-heading h2,
.workspace-copy h2,
.entry-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 58px);
  line-height: 1.25;
}

.section-heading > p:last-child,
.workspace-copy > p {
  color: var(--muted);
  line-height: 1.8;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.step {
  min-height: 250px;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step b {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 28px;
}

.step h3 {
  margin: 55px 0 14px;
  font-family: var(--serif);
  font-size: 26px;
}

.step p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.workspace {
  width: min(1420px, calc(100% - 48px));
  padding: 90px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 80px;
  border-radius: 46px;
  background: var(--wine-dark);
  color: #fff;
}

.workspace-copy > p {
  color: #d5bbc1;
}

.workspace-copy .button {
  margin-top: 24px;
}

.workspace-screen {
  overflow: hidden;
  border: 9px solid #1f1715;
  border-radius: 25px;
  background: #f8f1eb;
  box-shadow: 0 35px 80px rgba(0,0,0,0.28);
  transform: perspective(1200px) rotateY(-7deg) rotateX(2deg);
}

.screen-top {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #2b211e;
  color: #d5c6c0;
}

.screen-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8f7770;
}

.screen-top b {
  margin-left: 10px;
  font-size: 9px;
}

.screen-body {
  min-height: 370px;
  display: grid;
  grid-template-columns: 78px 1fr;
}

.screen-body aside {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--wine);
}

.screen-body aside i {
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.screen-main {
  padding: 35px;
}

.screen-title {
  width: 38%;
  height: 23px;
  border-radius: 7px;
  background: var(--wine);
}

.screen-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.screen-metrics span {
  height: 78px;
  border-radius: 13px;
  background: #eaded6;
}

.screen-list {
  margin-top: 25px;
  padding: 20px;
  border-radius: 15px;
  background: #fff;
}

.screen-list b {
  height: 38px;
  display: block;
  border-bottom: 1px solid #eee3dc;
}

.entry-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.entry-section article {
  min-height: 360px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
}

.entry-section article:first-child {
  background: var(--sand);
}

.entry-section article > p:not(.eyebrow) {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.entry-section .button {
  margin-top: auto;
}

.site-footer {
  padding: 54px max(24px, calc((100% - 1320px) / 2));
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 700ms cubic-bezier(.2,.75,.2,1);
}

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

.login-page {
  min-height: 100vh;
  padding: 30px;
  background:
    radial-gradient(circle at 12% 12%, rgba(181,126,91,0.16), transparent 30%),
    radial-gradient(circle at 92% 86%, rgba(111,31,55,0.12), transparent 34%),
    #f8efe7;
}

.login-brand {
  position: relative;
  z-index: 2;
}

.login-shell {
  width: min(1180px, 100%);
  min-height: calc(100vh - 130px);
  margin: 25px auto 0;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  align-items: stretch;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 40px;
  background: rgba(255,255,255,0.66);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.login-story {
  padding: 70px 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(150deg, rgba(111,31,55,0.95), rgba(67,19,35,0.98)),
    var(--wine);
  color: #fff;
}

.login-story .eyebrow {
  color: #d9aeb9;
}

.login-story h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.2;
}

.login-story > p:not(.eyebrow) {
  color: #d8c1c6;
  line-height: 1.9;
}

.login-points {
  margin-top: 48px;
  display: grid;
  gap: 18px;
}

.login-points span {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #efe3e6;
  font-size: 13px;
}

.login-points b {
  margin-right: 15px;
  color: #d6aeb8;
}

.login-panel {
  padding: 36px 58px 50px;
  background: rgba(255, 251, 247, 0.88);
}

.channel-switch,
.login-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  border-radius: 16px;
  background: #eee3dc;
}

.channel-switch button,
.login-methods button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #76655f;
  cursor: pointer;
}

.channel-switch button.is-active,
.login-methods button.is-active {
  background: #fff;
  color: var(--wine);
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(75,43,35,0.08);
}

.channel-view,
.method-view {
  display: none;
}

.channel-view.is-active,
.method-view.is-active {
  display: block;
}

.login-heading {
  margin: 42px 0 26px;
}

.login-heading h2,
.operator-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 37px;
}

.login-heading > p:last-child,
.operator-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.login-methods {
  margin-bottom: 22px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
}

.login-methods button {
  border-radius: 0;
  box-shadow: inset 0 -2px transparent;
}

.login-methods button.is-active {
  background: transparent;
  box-shadow: inset 0 -2px var(--wine);
}

.qr-frame {
  width: 232px;
  height: 232px;
  margin: 30px auto 18px;
  padding: 14px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(80,47,38,0.11);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.qr-loading {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.qr-loading span,
.merchant-loading span {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid #eadad4;
  border-top-color: var(--wine);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.qr-refresh {
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  position: absolute;
  border: 0;
  border-radius: 15px;
  background: rgba(67,19,35,0.92);
  color: #fff;
  cursor: pointer;
}

.qr-status {
  min-height: 24px;
  margin: 0;
  color: #675953;
  text-align: center;
  font-size: 13px;
}

.qr-status[data-tone="warning"],
.form-message[data-tone="warning"] {
  color: #a14a32;
}

.qr-status[data-tone="success"],
.form-message[data-tone="success"] {
  color: var(--green);
}

.qr-steps {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #9b8982;
  font-size: 10px;
}

.qr-steps i {
  width: 18px;
  height: 1px;
  background: #d2c1ba;
}

.phone-form {
  padding-top: 12px;
}

.phone-form label {
  display: block;
  margin-top: 18px;
}

.phone-form label > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: #675852;
  font-size: 12px;
  font-weight: 700;
}

.phone-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d9c9c2;
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.phone-form input:focus {
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(111,31,55,0.09);
}

.code-field {
  display: grid !important;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.code-field button {
  min-width: 112px;
  border: 1px solid #d9c9c2;
  border-radius: 14px;
  background: #f5ebe6;
  color: var(--wine);
  cursor: pointer;
}

.login-submit {
  width: 100%;
  margin-top: 24px;
  cursor: pointer;
}

.login-submit:disabled,
.code-field button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.form-message {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 12px;
}

.login-help {
  margin: 20px 0 0;
  color: #9b8982;
  font-size: 11px;
  text-align: center;
}

.operator-card {
  padding-top: 85px;
  text-align: center;
}

.operator-seal {
  width: 86px;
  height: 86px;
  margin: 0 auto 30px;
  display: grid;
  place-items: center;
  border-radius: 27px;
  background: var(--wine);
  color: #fff;
  font-family: var(--serif);
  font-size: 38px;
  box-shadow: 0 20px 50px rgba(111,31,55,0.25);
}

.operator-card .button {
  margin-top: 26px;
}

.operator-card small {
  max-width: 390px;
  margin: 25px auto 0;
  display: block;
  color: #998780;
  line-height: 1.7;
}

.merchant-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f6eee7;
}

.merchant-sidebar {
  min-height: 100vh;
  padding: 28px 20px;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #681d34, #411321);
  color: #fff;
}

.merchant-brand .brand-mark {
  background: #fff8f2;
  color: var(--wine);
}

.merchant-brand .brand-copy small {
  color: #d5b5be;
}

.merchant-nav {
  display: grid;
  gap: 7px;
  margin-top: 54px;
}

.merchant-nav button {
  height: 50px;
  padding: 0 13px;
  border: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #e7d4d9;
  cursor: pointer;
  text-align: left;
}

.merchant-nav button span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  font-family: var(--serif);
}

.merchant-nav button.is-active {
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-weight: 700;
}

.merchant-nav button.is-active span {
  background: #fff;
  color: var(--wine);
}

.sidebar-note {
  margin-top: auto;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #d9bcc4;
  font-size: 11px;
  line-height: 1.7;
}

.sidebar-note b {
  color: #fff;
}

.merchant-main {
  min-width: 0;
}

.merchant-topbar {
  min-height: 86px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255,250,245,0.8);
  backdrop-filter: blur(15px);
}

.merchant-topbar p {
  margin: 0 0 3px;
  color: var(--wine-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.merchant-topbar h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.merchant-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-badge {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--wine);
  color: #fff;
  font-family: var(--serif);
}

.merchant-account b,
.merchant-account small {
  display: block;
}

.merchant-account b {
  font-size: 12px;
}

.merchant-account small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.merchant-account button {
  margin-left: 16px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}

.merchant-menu-toggle {
  display: none;
}

.merchant-content {
  padding: 30px;
}

.merchant-panel {
  display: none;
}

.merchant-panel.is-active {
  display: block;
  animation: panel-in 350ms ease both;
}

.merchant-loading {
  min-height: calc(100vh - 86px);
  display: grid;
  place-content: center;
  color: var(--muted);
  text-align: center;
}

.merchant-loading[hidden] {
  display: none;
}

.merchant-error {
  max-width: 560px;
  margin: 100px auto;
  padding: 50px;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.merchant-hero {
  min-height: 205px;
  padding: 35px 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,255,255,0.13), transparent 27%),
    linear-gradient(135deg, #7b2942, #451321);
  color: #fff;
  box-shadow: 0 22px 55px rgba(67,19,35,0.2);
}

.merchant-hero h2 {
  max-width: 690px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 3vw, 46px);
}

.merchant-hero p:not(.eyebrow) {
  color: #dcc5cb;
}

.merchant-hero .eyebrow {
  color: #d9abb7;
}

.update-pill {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #e4d2d7;
  font-size: 10px;
}

.merchant-metrics {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.merchant-metrics article {
  min-height: 146px;
  padding: 23px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  background: rgba(255,255,255,0.75);
  overflow: hidden;
}

.merchant-metrics article::after {
  content: "";
  width: 75px;
  height: 75px;
  position: absolute;
  right: -24px;
  bottom: -22px;
  border-radius: 50%;
  background: var(--blush);
}

.merchant-metrics small,
.merchant-metrics strong,
.merchant-metrics span {
  display: block;
}

.merchant-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.merchant-metrics strong {
  margin-top: 12px;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 38px;
}

.merchant-metrics span {
  color: #8a7972;
  font-size: 10px;
}

.dashboard-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-card {
  min-height: 245px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: rgba(255,255,255,0.8);
}

.dashboard-card--wide {
  grid-row: span 2;
}

.card-heading,
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.card-heading h2,
.panel-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
}

.card-heading button,
.dashboard-card > button {
  border: 0;
  background: transparent;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.card-heading > b {
  color: var(--wine);
  font-family: var(--serif);
  font-size: 26px;
}

.compact-leads {
  margin-top: 16px;
}

.compact-lead {
  min-height: 74px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.lead-signal {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--blush);
  color: var(--wine);
  font-size: 11px;
  font-weight: 800;
}

.compact-lead b,
.compact-lead small {
  display: block;
}

.compact-lead b {
  font-size: 12px;
}

.compact-lead small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.compact-lead i {
  color: #9d8c85;
  font-size: 9px;
  font-style: normal;
}

.profile-progress {
  height: 8px;
  margin: 28px 0 15px;
  border-radius: 999px;
  background: #eaded8;
  overflow: hidden;
}

.profile-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--wine);
  transition: width 500ms ease;
}

.dashboard-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.service-state {
  margin-top: 28px;
  display: block;
  color: var(--wine);
  font-family: var(--serif);
  font-size: 23px;
}

.panel-heading {
  margin-bottom: 25px;
}

.panel-heading h2 {
  font-size: 36px;
}

.panel-heading p:not(.eyebrow) {
  color: var(--muted);
}

.count-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--wine);
  font-size: 11px;
  font-weight: 400;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  overflow: hidden;
}

.work-cover {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #eadbd2, #f6eee8);
  color: #aa8e84;
  font-family: var(--serif);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card > div:last-child {
  padding: 15px;
}

.work-card b,
.work-card small {
  display: block;
}

.work-card b {
  font-size: 12px;
}

.work-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.work-card div > span {
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
  background: var(--blush);
  color: var(--wine);
  font-size: 8px;
}

.table-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.78);
  overflow: hidden;
}

.lead-table {
  min-height: 62px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr 0.6fr 0.95fr 1.2fr 1fr 1fr 0.95fr;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.lead-table--head {
  min-height: 48px;
  background: #eee3dc;
  color: #7d6c65;
  font-size: 10px;
  font-weight: 700;
}

.lead-table span[data-signal="收藏"],
.lead-table span[data-signal="询价"] {
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--wine);
  font-weight: 700;
}

.lead-control {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
}

.lead-control:focus {
  outline: none;
  border-color: #c48c74;
  box-shadow: 0 0 0 2px rgba(196, 140, 116, 0.15);
}

.lead-table textarea.lead-control {
  min-height: 48px;
  resize: vertical;
}

.lead-table .lead-save-wrap {
  display: grid;
  gap: 4px;
}

.lead-save-btn {
  width: 100%;
  min-height: 36px;
  border-radius: 9px;
}

.lead-save-feedback {
  display: block;
  min-height: 16px;
  color: var(--muted);
  font-size: 10px;
}

.lead-save-feedback.is-success {
  color: var(--green);
}

.lead-save-feedback.is-error {
  color: #a33;
}

.lead-table--warn {
  color: #ab4e3d;
}

.analytics-board {
  min-height: 330px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  border-radius: 30px;
  background: #fff;
}

.analytics-board article {
  min-height: 170px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px;
  background: #f6eee8;
  text-align: center;
}

.analytics-board article.is-intent {
  background: var(--wine);
  color: #fff;
}

.analytics-board strong {
  margin: 10px 0;
  font-family: var(--serif);
  font-size: 46px;
}

.analytics-board small {
  color: var(--muted);
}

.analytics-board .is-intent small {
  color: #d9bdc4;
}

.analytics-board > i {
  color: var(--wine);
  font-style: normal;
  font-size: 25px;
}

.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checklist,
.member-list {
  margin-top: 20px;
}

.checklist > div,
.member-list > div {
  min-height: 54px;
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.checklist span,
.member-list > div > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f0e1dc;
  color: #a14a32;
  font-size: 10px;
  font-weight: 800;
}

.checklist .is-complete span {
  background: #e3eee6;
  color: var(--green);
}

.checklist b,
.member-list b {
  font-size: 11px;
}

.checklist small,
.member-list small {
  color: var(--muted);
  font-size: 9px;
}

.member-list b,
.member-list small {
  display: block;
}

.member-list i {
  color: var(--wine);
  font-size: 10px;
  font-style: normal;
}

.service-card {
  max-width: 780px;
  padding: 45px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--wine), var(--wine-dark));
  color: #fff;
}

.web-renewal-alert {
  display: flex;
  margin-bottom: 22px;
  padding: 18px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(143, 41, 72, 0.22);
  border-radius: 18px;
  background: #fff5f7;
  color: var(--ink);
}

.web-renewal-alert[hidden] {
  display: none;
}

.web-renewal-alert div {
  display: grid;
  gap: 5px;
}

.web-renewal-alert span {
  color: var(--muted);
  font-size: 12px;
}

.web-renewal-alert button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.service-card > span {
  color: #d8b9c1;
  font-size: 11px;
}

.service-card h2 {
  margin: 16px 0 8px;
  font-family: var(--serif);
  font-size: 34px;
}

.service-card p {
  color: #d9c1c7;
}

.safe-note {
  margin-top: 35px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.15);
  color: #d9c1c7;
  font-size: 11px;
}

.empty-state {
  padding: 45px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@media (max-width: 1080px) {
  .site-header {
    gap: 20px;
  }

  .site-nav {
    gap: 18px;
  }

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

  .workspace {
    padding: 60px;
    grid-template-columns: 1fr;
  }

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

  .step:nth-child(2) {
    border-right: 0;
  }

  .merchant-page {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .merchant-metrics,
  .works-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    width: calc(100% - 30px);
    position: relative;
  }

  .menu-toggle {
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
    background: #fff;
    font-size: 12px;
  }

  .site-nav {
    padding: 18px;
    position: absolute;
    z-index: 10;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .header-actions .text-link {
    display: none;
  }

  .hero {
    width: calc(100% - 30px);
    padding: 70px 0;
    grid-template-columns: 1fr;
  }

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

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

  .feature-card--large {
    grid-row: auto;
  }

  .workspace {
    width: calc(100% - 30px);
    padding: 45px 30px;
  }

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

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

  .login-story {
    min-height: 470px;
  }

  .merchant-page {
    display: block;
  }

  .merchant-sidebar {
    width: 250px;
    height: 100vh;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .merchant-nav-open .merchant-sidebar {
    transform: none;
  }

  .merchant-menu-toggle {
    margin-right: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: block;
    background: #fff;
    font-size: 11px;
  }

  .merchant-topbar {
    padding: 0 20px;
  }

  .merchant-content {
    padding: 20px;
  }

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

  .dashboard-card--wide {
    grid-row: auto;
  }

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

@media (max-width: 560px) {
  .site-header {
    height: 72px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions .button {
    min-height: 38px;
    padding: 0 13px;
  }

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

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

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .signal-card--main {
    width: calc(100% - 28px);
    padding: 20px;
  }

  .signal-card > strong {
    font-size: 21px;
  }

  .mini-stat {
    min-width: 120px;
  }

  .mini-stat--top {
    top: 20px;
  }

  .mini-stat--bottom {
    bottom: 18px;
  }

  .section {
    width: calc(100% - 30px);
    padding: 75px 0;
  }

  .feature-card,
  .entry-section article {
    padding: 27px;
  }

  .canvas-preview {
    height: 250px;
  }

  .cloth {
    width: 120px;
    height: 180px;
  }

  .cloth::before {
    left: 38px;
  }

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

  .step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step h3 {
    margin-top: 30px;
  }

  .workspace {
    padding: 35px 20px;
  }

  .screen-body {
    min-height: 260px;
    grid-template-columns: 50px 1fr;
  }

  .screen-main {
    padding: 20px;
  }

  .screen-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .login-page {
    padding: 15px;
  }

  .login-story {
    min-height: 410px;
    padding: 48px 28px;
  }

  .login-panel {
    padding: 28px 22px 40px;
  }

  .qr-frame {
    width: 210px;
    height: 210px;
  }

  .merchant-account > div {
    display: none;
  }

  .merchant-account button {
    margin-left: 0;
  }

  .merchant-content {
    padding: 14px;
  }

  .merchant-hero {
    min-height: 245px;
    padding: 25px;
    align-items: flex-start;
    flex-direction: column;
  }

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

  .merchant-metrics article {
    min-height: 130px;
    padding: 18px;
  }

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

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

  .table-card {
    overflow-x: auto;
  }

  .lead-table {
    min-width: 1040px;
  }

  .analytics-board {
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .analytics-board > i {
    transform: rotate(90deg);
    text-align: center;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
