:root {
  --ink: #211f1c;
  --muted: #716e68;
  --line: rgba(43, 40, 35, 0.12);
  --paper: #fffdfa;
  --canvas: #f5f2ed;
  --accent: #c7643f;
  --accent-dark: #a9482b;
  --green: #217a55;
  --green-soft: #e8f5ee;
  --red: #b3403c;
  --red-soft: #fbecea;
  --amber: #9a681c;
  --amber-soft: #fff4dc;
  --shadow: 0 24px 70px rgba(56, 44, 31, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(213, 117, 75, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 4%, rgba(76, 105, 89, 0.09), transparent 30rem),
    var(--canvas);
}

a { color: inherit; }

.page-shell { width: min(1360px, calc(100% - 64px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  border-radius: 12px;
  background: linear-gradient(145deg, #d47854, #a8472d);
  box-shadow: 0 10px 24px rgba(174, 74, 45, 0.26);
  font: 700 21px/1 Georgia, serif;
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 16px; letter-spacing: -0.01em; }
.brand-copy span { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.environment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #615d56;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.65);
  font-size: 12px;
}

.environment-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(199, 100, 63, 0.12); }

main { padding: 72px 0 40px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
  margin-bottom: 40px;
}

.eyebrow, .product-kicker {
  margin: 0;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

h1 {
  max-width: 760px;
  margin: 14px 0 16px;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-description { max-width: 690px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }

.suite-status {
  display: grid;
  min-width: 180px;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.72);
}

.suite-status-label, .suite-status span:last-child { color: var(--muted); font-size: 11px; }
.suite-status strong { font-size: 18px; }

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

.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(56, 44, 31, 0.13); }

.product-preview { height: 238px; padding: 18px 18px 0; overflow: hidden; background: #eee8df; }
.product-card--generation .product-preview { background: #e9e9e6; }
.product-card--review .product-preview { background: #f2e7e1; }

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 10px;
  color: #85766d;
  border: 1px solid rgba(55, 44, 36, 0.1);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: rgba(255,255,255,0.78);
  font-size: 8px;
}
.preview-toolbar > span { width: 5px; height: 5px; border-radius: 50%; background: #d3b6a8; }
.preview-toolbar-title { margin-left: 5px; }
.preview-toolbar--dark > span { background: #a8aaa7; }
.preview-toolbar--review > span { background: #dab3a2; }

.design-canvas, .generation-canvas, .review-canvas {
  display: grid;
  height: 188px;
  border: 1px solid rgba(55, 44, 36, 0.1);
  background: #f8f6f2;
}

.design-canvas { grid-template-columns: 58px 1fr 62px; }
.design-sidebar { padding: 15px 10px; border-right: 1px solid #e4dfd8; background: #f1ede7; }
.design-sidebar i { display: block; height: 5px; margin-bottom: 11px; border-radius: 2px; background: #c9c1b8; }
.design-sidebar i:first-child { width: 85%; background: #bf6846; }
.design-page { width: 118px; height: 158px; margin: 14px auto 0; padding: 18px 14px; background: white; box-shadow: 0 4px 14px rgba(52,43,34,.12); }
.design-page b, .design-page > span { display: block; height: 4px; margin-bottom: 8px; border-radius: 2px; background: #ded9d2; }
.design-page b { width: 57%; height: 7px; background: #4d4842; }
.design-layout-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0; }
.design-layout-blocks i { height: 35px; border-radius: 3px; background: #eee5df; border-left: 3px solid #c66b47; }
.design-panel { padding: 15px 10px; border-left: 1px solid #e4dfd8; background: #f5f1eb; }
.design-panel small, .design-panel i { display: block; height: 5px; margin-bottom: 11px; border-radius: 2px; background: #d9d1c9; }
.design-panel small { width: 70%; background: #877e75; }

.generation-canvas { grid-template-columns: 75px 1fr; background: #f6f6f4; }
.generation-nav { padding: 16px 11px; color: white; background: #1e201f; }
.generation-nav b, .generation-nav i { display: block; height: 5px; margin-bottom: 13px; border-radius: 2px; background: #585b58; }
.generation-nav b { width: 48%; height: 12px; margin-bottom: 22px; background: #f1f1ed; }
.generation-nav i:nth-child(3) { background: #9b9e98; }
.generation-main { padding: 20px; }
.generation-heading { display: flex; justify-content: space-between; align-items: center; }
.generation-heading b { width: 43%; height: 9px; border-radius: 2px; background: #343633; }
.generation-heading span { width: 22px; height: 13px; border-radius: 3px; background: #d8d9d5; }
.generation-progress { height: 5px; margin: 17px 0; border-radius: 4px; background: #dedfdb; }
.generation-progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: #272926; }
.generation-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.generation-sections span { height: 36px; border: 1px solid #dedfdb; border-radius: 4px; background: white; }
.generation-lines { margin-top: 16px; }
.generation-lines i { display: block; height: 4px; margin-bottom: 7px; border-radius: 3px; background: #ddded9; }
.generation-lines i:nth-child(2) { width: 84%; }.generation-lines i:nth-child(3) { width: 93%; }.generation-lines i:nth-child(4) { width: 64%; }

.review-canvas { padding: 18px; grid-template-rows: 68px 1fr; gap: 13px; background: #fbf7f4; }
.review-summary { display: grid; grid-template-columns: 92px 1fr; gap: 14px; }
.review-score { display: grid; place-items: center; align-content: center; color: #a64c2f; border-radius: 7px; background: #f1dbd1; font: 700 24px/1 Georgia, serif; }
.review-score small { margin-top: 5px; color: #8d7165; font: 7px/1 sans-serif; }
.review-bars { display: grid; align-content: center; gap: 8px; }
.review-bars i { display: block; width: 88%; height: 6px; border-radius: 4px; background: #e0d7d1; border-left: 48px solid #c46848; }
.review-bars i:nth-child(2) { width: 76%; border-left-width: 36px; }.review-bars i:nth-child(3) { width: 94%; border-left-width: 55px; }
.review-table { border: 1px solid #e2d9d3; border-radius: 6px; background: white; }
.review-table div { display: grid; grid-template-columns: 8px 1fr 28px; align-items: center; gap: 8px; min-height: 24px; padding: 0 9px; border-bottom: 1px solid #eee8e4; }
.review-table div:last-child { border-bottom: 0; }
.review-table b { width: 6px; height: 6px; border-radius: 50%; background: #d27a59; }
.review-table span { height: 4px; border-radius: 2px; background: #dad4cf; }
.review-table em { height: 10px; border-radius: 5px; background: #eef3ed; }

.product-body { display: flex; flex: 1; flex-direction: column; padding: 25px 25px 24px; }
.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.status-badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge--available { color: var(--green); background: var(--green-soft); }
.status-badge--unavailable { color: var(--red); background: var(--red-soft); }
.status-badge--unknown, .status-badge--checking { color: var(--amber); background: var(--amber-soft); }

.product-body h2 { margin: 17px 0 12px; font-family: Georgia, "Songti SC", "STSong", serif; font-size: 25px; line-height: 1.25; }
.product-body h2 span { color: var(--muted); font: 600 11px/1 sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.product-body > p { min-height: 76px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }

.version-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 21px 0 16px; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.version-row code, footer code { overflow: hidden; color: #46413b; font: 600 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }

.enter-button { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 13px 15px; color: white; border-radius: 10px; background: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; transition: background 150ms ease, transform 150ms ease; }
.enter-button:hover { background: var(--accent-dark); }
.enter-button:active { transform: translateY(1px); }
.enter-button:focus-visible, .brand:focus-visible { outline: 3px solid rgba(199, 100, 63, .34); outline-offset: 3px; }

.noscript-note { margin: 18px 0 0; padding: 14px; color: var(--amber); border-radius: 10px; background: var(--amber-soft); font-size: 13px; }

footer { display: flex; justify-content: space-between; gap: 24px; padding: 27px 0 32px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
footer p { margin: 0; }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card--review { grid-column: 1 / -1; }
  .product-card--review .product-preview { height: 220px; }
}

@media (max-width: 700px) {
  .page-shell { width: min(100% - 32px, 560px); }
  .topbar { min-height: 74px; }
  .brand-mark { width: 38px; height: 38px; }
  main { padding-top: 46px; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 24px; margin-bottom: 28px; }
  h1 { font-size: clamp(37px, 12vw, 50px); }
  .suite-status { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card--review { grid-column: auto; }
  .product-preview, .product-card--review .product-preview { height: 214px; }
  .design-canvas, .generation-canvas, .review-canvas { height: 166px; }
  .design-page { height: 140px; }
  .product-body > p { min-height: auto; }
  footer { display: grid; gap: 8px; }
}

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