:root {
  --paper: #f5f1e8;
  --paper-strong: #fffdf8;
  --ink: #17151d;
  --muted: #6c6874;
  --line: rgba(23, 21, 29, .13);
  --violet: #6c46ff;
  --violet-dark: #4e2dd8;
  --coral: #ff6b55;
  --lime: #c8f15a;
  --cyan: #83e4e0;
  --shadow: 0 24px 70px rgba(31, 21, 60, .13);
  --radius-lg: 32px;
  --radius-md: 20px;
  --max: 1180px;
}

[data-theme="dark"] {
  --paper: #121017;
  --paper-strong: #1d1a24;
  --ink: #f8f4ea;
  --muted: #aaa4b4;
  --line: rgba(255, 255, 255, .12);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.demo-strip {
  min-height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 6px 20px;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  letter-spacing: .03em;
}
.demo-strip span { padding: 2px 7px; color: #15121c; background: var(--lime); border-radius: 4px; font-weight: 900; letter-spacing: .12em; }
.demo-strip p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  max-width: var(--max);
  min-height: 80px;
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand, .footer-brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--violet);
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}
.brand b, .footer-brand b { display: block; line-height: 1.1; font-size: 17px; letter-spacing: .06em; }
.brand small, .footer-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .13em; }
.site-header nav { display: flex; justify-content: center; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.site-header nav a { position: relative; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--violet); transition: right .2s ease; }
.site-header nav a:hover::after { right: 0; }
.nav-action { border: 0; background: none; cursor: pointer; font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .cart-button, .login-button {
  min-height: 39px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-strong);
  cursor: pointer;
}
.icon-button { width: 39px; font-size: 20px; }
.cart-button { padding: 0 12px; font-size: 12px; font-weight: 800; }
.cart-button span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; color: #fff; background: var(--coral); border-radius: 10px; }
.login-button { padding: 0 15px; color: #fff; background: var(--ink); font-size: 12px; font-weight: 800; }

main > section { max-width: var(--max); margin: 0 auto; padding-left: 22px; padding-right: 22px; }
.hero { min-height: 660px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 55px; padding-top: 70px; padding-bottom: 84px; overflow: hidden; }
.eyebrow, .kicker { color: var(--violet); font-size: 11px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--violet); }
.hero h1 { margin: 23px 0 22px; font-family: Georgia, "Songti SC", serif; font-size: clamp(58px, 7vw, 92px); line-height: .98; letter-spacing: -.055em; }
.hero h1 em { color: var(--violet); font-style: normal; }
.hero-lead { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 22px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 14px; cursor: pointer; font-weight: 900; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--violet); box-shadow: 5px 5px 0 var(--ink); }
.button.ghost { background: transparent; }
.button.full { width: 100%; }
.hero-stats { display: flex; gap: 38px; margin: 49px 0 0; }
.hero-stats div { padding-right: 35px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border: 0; }
.hero-stats dt { font-family: Georgia, serif; font-size: 30px; font-weight: 800; line-height: 1; }
.hero-stats dd { margin: 8px 0 0; color: var(--muted); font-size: 11px; }

.hero-stage { position: relative; min-height: 520px; display: grid; place-items: center; }
.hero-stage::before { content: ""; position: absolute; inset: 4% 2% 0; background: linear-gradient(145deg, var(--violet), #8f73ff 48%, var(--coral)); border: 2px solid var(--ink); border-radius: 47% 53% 48% 52% / 57% 41% 59% 43%; box-shadow: 12px 14px 0 var(--ink); transform: rotate(-4deg); }
.stage-orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.orbit-one { width: 83%; height: 42%; transform: rotate(20deg); }
.orbit-two { width: 60%; height: 78%; transform: rotate(-32deg); }
.floating-card { position: absolute; z-index: 2; color: #17151d; background: rgba(255,255,255,.93); border: 2px solid #17151d; box-shadow: 8px 9px 0 rgba(23,21,29,.92); }
.main-card { width: 265px; padding: 16px; border-radius: 24px; transform: rotate(2deg); animation: float 5s ease-in-out infinite; }
.card-topline, .trust-row, .hero-product-copy { display: flex; align-items: center; justify-content: space-between; }
.card-topline { font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.card-topline b { padding: 3px 6px; background: var(--lime); border-radius: 5px; }
.hero-product { height: 190px; display: grid; place-items: center; margin: 13px 0; background: #d9d0ff; border-radius: 16px; overflow: hidden; }
.hero-product::before { content: ""; position: absolute; width: 160px; height: 160px; background: rgba(255,255,255,.34); border-radius: 50%; }
.hero-product span { position: relative; font-size: 86px; transform: rotate(-11deg); text-shadow: 7px 8px 0 rgba(108,70,255,.18); }
.hero-product-copy strong { font-size: 15px; }
.hero-product-copy span { color: var(--violet-dark); font: 800 22px Georgia, serif; }
.trust-row { margin-top: 13px; padding-top: 12px; border-top: 1px solid #ddd7e6; color: #65606d; font-size: 10px; }
.ai-card { right: -4px; top: 55px; display: flex; align-items: center; gap: 11px; padding: 13px 16px; border-radius: 15px; transform: rotate(5deg); }
.ai-card .spark { display: grid; place-items: center; width: 37px; height: 37px; color: #fff; background: var(--violet); border-radius: 11px; }
.ai-card small, .ai-card strong { display: block; line-height: 1.25; }
.ai-card small { color: #716b79; font-size: 9px; }
.chat-card { left: -20px; bottom: 65px; width: 190px; padding: 13px; border-radius: 14px; transform: rotate(-4deg); font-size: 10px; }
.chat-card span, .chat-card b { display: block; padding: 7px 9px; border-radius: 8px; }
.chat-card span { background: #eee9f7; }
.chat-card b { margin-top: 6px; color: #fff; background: var(--violet); }
.eco-card { right: 7px; bottom: 38px; padding: 12px 17px; border-radius: 14px; text-align: center; transform: rotate(4deg); }
.eco-card b, .eco-card span { display: block; }
.eco-card b { color: #2a6c45; font: 800 23px Georgia, serif; }
.eco-card span { font-size: 9px; }
@keyframes float { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }

.trust-band { max-width: none; min-height: 62px; display: flex; justify-content: center; align-items: center; gap: 38px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.trust-band i { width: 5px; height: 5px; background: var(--lime); border-radius: 50%; }

.market-section { padding-top: 105px; padding-bottom: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { margin: 8px 0 0; font: 800 clamp(38px, 5vw, 58px)/1 Georgia, "Songti SC", serif; letter-spacing: -.04em; }
.section-heading p { max-width: 370px; margin: 0; color: var(--muted); font-size: 13px; }
.market-toolbar { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 800; }
.filter.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.search-box { min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 0 13px; background: var(--paper-strong); border: 1px solid var(--line); border-radius: 12px; }
.search-box input { width: 100%; padding: 10px 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.product-card { position: relative; overflow: hidden; background: var(--paper-strong); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 10px 30px rgba(31,21,60,.05); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-open { width: 100%; padding: 0; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.product-art { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; background: var(--tone); }
.tone-violet { --tone: #d9d0ff; }
.tone-mint { --tone: #c9eddb; }
.tone-amber { --tone: #ffe0a8; }
.tone-coral { --tone: #ffd0cd; }
.tone-sky { --tone: #cce6ff; }
.tone-lilac { --tone: #ead7ff; }
.tone-lime { --tone: #d8edb7; }
.tone-sand { --tone: #f4d9b5; }
.product-art::before { content: ""; position: absolute; width: 160px; height: 160px; background: rgba(255,255,255,.37); border: 1px solid rgba(255,255,255,.55); border-radius: 44% 56% 57% 43%; transform: rotate(19deg); }
.product-art span { position: relative; font-size: 78px; filter: drop-shadow(7px 10px 0 rgba(23,21,29,.12)); transform: rotate(-7deg); }
.product-badge { position: absolute; top: 12px; left: 12px; padding: 4px 7px; color: #17151d; background: var(--lime); border: 1px solid #17151d; border-radius: 6px; font-size: 9px; font-weight: 900; letter-spacing: .07em; }
.favorite-button { position: absolute; z-index: 2; right: 12px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; background: rgba(255,255,255,.9); border: 1px solid #17151d; border-radius: 50%; cursor: pointer; font-size: 17px; }
.favorite-button.active { color: #fff; background: var(--coral); }
.product-info { padding: 16px; }
.product-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.product-info h3 { min-height: 49px; margin: 8px 0 9px; font-size: 16px; line-height: 1.45; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.price { color: var(--violet); font: 800 23px Georgia, serif; }
.product-bottom span:last-child { font-size: 10px; color: var(--muted); }
.empty-state { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-md); }

.feature-section { max-width: none; padding-top: 100px; padding-bottom: 110px; background: var(--ink); }
.feature-section > * { max-width: calc(var(--max) - 44px); margin-left: auto; margin-right: auto; }
.section-heading.inverse { color: #fff; }
.section-heading.inverse p { color: #aaa5b1; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { position: relative; min-height: 280px; padding: 27px; color: #f7f3eb; background: #24212c; border: 1px solid rgba(255,255,255,.12); border-radius: 24px; overflow: hidden; }
.feature-card.feature-main { grid-row: span 2; min-height: 576px; color: #17151d; background: var(--lime); }
.feature-index { position: absolute; right: 20px; top: 17px; opacity: .48; font: italic 18px Georgia, serif; }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 46px; color: #17151d; background: var(--cyan); border: 1px solid #17151d; border-radius: 16px; box-shadow: 4px 4px 0 #17151d; font-size: 23px; }
.feature-main .feature-icon { margin-bottom: 110px; color: #fff; background: var(--violet); }
.feature-card h3 { margin: 0 0 10px; font: 800 27px/1.15 Georgia, "Songti SC", serif; }
.feature-card p { margin: 0; color: #bdb8c5; font-size: 13px; }
.feature-main p { color: #49434e; }
.feature-card button { margin-top: 25px; padding: 10px 0; background: none; border: 0; border-bottom: 1px solid #17151d; cursor: pointer; font-weight: 900; }
.feature-tag { position: absolute; left: 27px; bottom: 25px; color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.ai-lines { position: absolute; left: 27px; right: 27px; bottom: 25px; display: grid; gap: 8px; }
.ai-lines i { height: 8px; background: rgba(23,21,29,.14); border-radius: 6px; }
.ai-lines i:nth-child(2) { width: 82%; }
.ai-lines i:nth-child(3) { width: 56%; }

.process-section { padding-top: 100px; padding-bottom: 110px; }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 50px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.process-list li { display: flex; gap: 20px; padding: 29px 25px 0 0; }
.process-list li + li { padding-left: 25px; border-left: 1px solid var(--line); }
.process-list > li > span { color: var(--violet); font: italic 16px Georgia, serif; }
.process-list h3 { margin: 0 0 7px; font-size: 18px; }
.process-list p { margin: 0; color: var(--muted); font-size: 12px; }

footer { max-width: var(--max); margin: 0 auto; padding: 32px 22px 42px; display: grid; grid-template-columns: 1fr 1.7fr auto; align-items: center; gap: 35px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p { margin: 0; text-align: center; }

.dialog { width: min(680px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); background: var(--paper-strong); border: 2px solid var(--ink); border-radius: 25px; box-shadow: 10px 12px 0 var(--ink); overflow: auto; }
.dialog::backdrop { background: rgba(18,16,23,.72); backdrop-filter: blur(7px); }
.dialog-close { position: sticky; z-index: 3; float: right; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 50%; cursor: pointer; font-size: 24px; }
.dialog-product-art { min-height: 270px; display: grid; place-items: center; clear: both; background: var(--tone); }
.dialog-product-art span { font-size: 105px; filter: drop-shadow(9px 12px 0 rgba(23,21,29,.13)); }
.dialog-product-info { padding: 30px; }
.dialog-product-info .kicker-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; }
.dialog-product-info h2 { margin: 10px 0 8px; font: 800 38px/1.1 Georgia, "Songti SC", serif; }
.dialog-product-info .dialog-price { color: var(--violet); font: 800 31px Georgia, serif; }
.dialog-product-info p { color: var(--muted); }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.detail-chips span { padding: 6px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.publish-dialog { padding: 34px; }
.dialog-heading { clear: both; }
.dialog-heading > span { color: var(--violet); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.dialog-heading h2 { margin: 8px 0; font: 800 36px/1.1 Georgia, "Songti SC", serif; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.publish-dialog form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.publish-dialog label { display: grid; gap: 7px; font-size: 11px; font-weight: 900; }
.publish-dialog label:first-child, .publish-dialog label:nth-child(3), .publish-dialog .full { grid-column: 1 / -1; }
.publish-dialog input, .publish-dialog select { width: 100%; padding: 12px 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.ai-result { margin-top: 18px; padding: 18px; background: color-mix(in srgb, var(--lime) 38%, var(--paper)); border: 1px solid var(--ink); border-radius: 14px; }
.ai-result > div { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.ai-result button { padding: 5px 10px; background: var(--paper-strong); border: 1px solid var(--ink); border-radius: 7px; cursor: pointer; }
.ai-result p { white-space: pre-line; }
.ai-result strong { color: var(--violet); }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; max-width: calc(100% - 30px); padding: 11px 18px; color: #fff; background: #17151d; border: 1px solid rgba(255,255,255,.24); border-radius: 11px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 18px); transition: .2s ease; font-size: 12px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.not-found main { max-width: 600px; padding: 30px; }
.not-found .brand-mark { margin-bottom: 25px; }
.not-found p { color: var(--violet); font-weight: 900; letter-spacing: .14em; }
.not-found h1 { margin-bottom: 30px; font: 800 clamp(40px, 7vw, 70px)/1.05 Georgia, "Songti SC", serif; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-copy { text-align: center; }
  .eyebrow, .hero-actions, .hero-stats { justify-content: center; }
  .hero-lead { margin-inline: auto; }
  .hero-stage { width: min(560px, 100%); margin: 0 auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.feature-main { grid-row: auto; grid-column: span 2; min-height: 410px; }
  .feature-main .feature-icon { margin-bottom: 50px; }
  footer { grid-template-columns: 1fr auto; }
  footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
}

@media (max-width: 680px) {
  .demo-strip { align-items: flex-start; gap: 8px; font-size: 10px; }
  .site-header { min-height: 68px; padding-inline: 15px; }
  .brand small, .cart-button { display: none; }
  .header-actions { gap: 5px; }
  .login-button { padding: 0 10px; }
  main > section { padding-left: 15px; padding-right: 15px; }
  .hero { min-height: auto; padding-top: 45px; gap: 25px; }
  .hero h1 { font-size: clamp(51px, 17vw, 75px); }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 12px; justify-content: space-between; }
  .hero-stats div { padding-right: 12px; }
  .hero-stage { min-height: 450px; transform: scale(.86); margin-top: -20px; margin-bottom: -25px; }
  .trust-band { gap: 13px; padding-inline: 14px; font-size: 9px; letter-spacing: .05em; }
  .section-heading, .market-toolbar { align-items: stretch; flex-direction: column; }
  .section-heading h2 { font-size: 40px; }
  .search-box { min-width: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .product-art { height: 240px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.feature-main { grid-column: auto; min-height: 430px; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; }
  footer p { grid-column: auto; grid-row: auto; text-align: left; }
  .publish-dialog { padding: 24px 18px; }
  .publish-dialog form { grid-template-columns: 1fr; }
  .publish-dialog label, .publish-dialog label:first-child, .publish-dialog label:nth-child(3), .publish-dialog .full { grid-column: auto; }
}

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