/* iManxing front — studio look, not generic SaaS blue */
:root {
  --ink: #0e0f11;
  --ink-2: #16181c;
  --ink-3: #1e2128;
  --panel: #181b21;
  --line: rgba(244, 241, 234, 0.08);
  --line-strong: rgba(244, 241, 234, 0.14);
  --cream: #f3efe6;
  --cream-dim: #b8b2a6;
  --mute: #8a857c;
  --faint: #5c5850;
  --copper: #c9956c;
  --copper-deep: #a8744d;
  --copper-soft: rgba(201, 149, 108, 0.14);
  --mint: #7dcea0;
  --danger: #e07a6a;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Semibold", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(201, 149, 108, 0.07), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(125, 206, 160, 0.04), transparent 50%),
    var(--ink);
  color: var(--cream);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* —— top bar —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(14, 15, 17, 0.82);
  border-bottom: 1px solid var(--line);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--display);
  letter-spacing: 0.02em;
}
.brand-mark {
  font-size: 20px;
  font-weight: 700;
  color: var(--cream);
}
.brand-mark span { color: var(--copper); }
.brand-tag {
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: none;
}
@media (min-width: 900px) {
  .brand-tag { display: inline; }
}

.nav-main {
  display: none;
  gap: 4px;
}
@media (min-width: 900px) {
  .nav-main { display: flex; }
}
.nav-main a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--mute);
  transition: color .15s, background .15s;
}
.nav-main a:hover { color: var(--cream); background: rgba(255,255,255,0.04); }
.nav-main a.is-active {
  color: var(--cream);
  background: rgba(201, 149, 108, 0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-solid {
  background: var(--copper);
  color: #1a120c;
  border-color: var(--copper);
}
.btn-solid:hover { background: #d9a87a; }
.btn-line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--cream-dim);
}
.btn-line:hover {
  border-color: var(--copper);
  color: var(--cream);
}
.btn-ghost {
  background: transparent;
  color: var(--mute);
  border-color: transparent;
  padding-inline: 12px;
}
.btn-ghost:hover { color: var(--cream); }
.btn-block { width: 100%; }
.btn-lg { min-height: 48px; padding-inline: 24px; font-size: 14.5px; }

.site-main { padding-top: 0; min-height: 60vh; }

/* —— footer —— */
.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding: 56px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.footer-brand p {
  margin-top: 12px;
  color: var(--mute);
  font-size: 13.5px;
  max-width: 280px;
  line-height: 1.75;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-col a,
.footer-col li {
  display: block;
  color: var(--cream-dim);
  font-size: 13.5px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: var(--copper); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--faint);
  font-size: 12px;
}
.footer-bottom .icp-link {
  color: var(--mute);
  text-decoration: none;
}
.footer-bottom .icp-link:hover {
  color: var(--copper);
  text-decoration: underline;
}
.footer-bottom .icp-link.muted {
  color: var(--faint);
  pointer-events: none;
}
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* —— shared page pieces —— */
.page-hero {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
}
.page-hero .kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 16em;
}
.page-hero p {
  margin-top: 12px;
  color: var(--mute);
  max-width: 36em;
  font-size: 15.5px;
}

.section {
  padding: 72px 0;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p {
  color: var(--mute);
  font-size: 14px;
  max-width: 28em;
}
.section-head .more {
  color: var(--copper);
  font-size: 13.5px;
  font-weight: 600;
}
.section-head .more:hover { text-decoration: underline; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-tight { padding: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card-grid[style*="repeat(4"] { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .card-grid[style*="repeat(4"] { grid-template-columns: 1fr !important; }
  .section .container[style*="grid-template-columns:1.2fr"],
  .section .container[style*="grid-template-columns:1fr 1.1fr"],
  .section .container[style*="grid-template-columns:1fr 280px"],
  .container[style*="grid-template-columns:220px"] {
    grid-template-columns: 1fr !important;
  }
}

.soft-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .2s, transform .2s;
  height: 100%;
}
a.soft-card:hover,
.soft-card:hover {
  border-color: rgba(201, 149, 108, 0.35);
  transform: translateY(-2px);
}
.soft-card .num {
  font-size: 12px;
  color: var(--copper);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.soft-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
  font-weight: 650;
}
.soft-card p {
  color: var(--mute);
  font-size: 13.5px;
  line-height: 1.7;
}

.product-tile {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  height: 100%;
}
a.product-tile:hover {
  border-color: rgba(201, 149, 108, 0.35);
  transform: translateY(-2px);
}
.product-tile .thumb {
  height: 150px;
  background:
    linear-gradient(145deg, #242830 0%, #15171b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-tile .thumb::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(201,149,108,.18), transparent 70%);
}
.product-tile .thumb-label {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--faint);
  letter-spacing: 0.08em;
}
.product-tile .body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-tile h3 {
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.35;
}
.product-tile .desc {
  color: var(--mute);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.product-tile .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.price {
  font-weight: 700;
  font-size: 18px;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.price.free { color: var(--mint); }
.meta-note { font-size: 12px; color: var(--faint); }

.case-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  overflow: hidden;
  display: grid;
  grid-template-rows: 120px 1fr;
  transition: border-color .2s;
  height: 100%;
}
a.case-tile:hover { border-color: rgba(201,149,108,.35); }
.case-tile .band {
  background:
    linear-gradient(120deg, rgba(201,149,108,.16), transparent 55%),
    #1a1d24;
  display: flex;
  align-items: end;
  padding: 14px 16px;
}
.case-tile .band span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(0,0,0,.25);
  padding: 4px 8px;
  border-radius: 999px;
}
.case-tile .body { padding: 16px 18px 18px; }
.case-tile h3 { font-size: 15.5px; margin-bottom: 6px; }
.case-tile p { color: var(--mute); font-size: 13px; line-height: 1.65; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--mute);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.015);
}

/* forms */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--mute);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(201, 149, 108, 0.55);
  background: rgba(201, 149, 108, 0.04);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 12px;
}

.mobile-nav-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
@media (min-width: 900px) {
  .mobile-nav-toggle { display: none; }
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 16px;
}
.mobile-drawer.open { display: block; }
.mobile-drawer a {
  display: block;
  padding: 12px 4px;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.mobile-drawer a:last-child { border-bottom: 0; }

/* home specific helpers used globally too */
.hero-home {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-home { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
}
.hero-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--copper);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-home .eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--copper);
}
.hero-home h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 750;
  max-width: 10em;
}
.hero-home h1 em {
  font-style: normal;
  color: var(--copper);
}
.hero-home .lead {
  margin-top: 18px;
  color: var(--mute);
  font-size: 16px;
  max-width: 32em;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-aside {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(201,149,108,0.1), transparent 42%),
    var(--panel);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.hero-aside h3 {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--cream-dim);
}
/* 步骤列表结构由首页 .flow-list 接管，避免 ::before 与正文抢布局 */

.strip {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  padding: 18px 0;
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.strip-row b { color: var(--cream-dim); font-weight: 600; }

.cta-band {
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(90deg, rgba(201,149,108,0.09), transparent 55%),
    var(--panel);
}
.cta-band h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cta-band p { color: var(--mute); font-size: 14px; max-width: 36em; }

/* page layout helpers for list pages */
.two-col {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 36px 0 72px;
}
@media (max-width: 800px) {
  .two-col { grid-template-columns: 1fr; }
}
.side-nav {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 88px;
}
.side-nav h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.side-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--mute);
  font-size: 13.5px;
}
.side-nav a:hover,
.side-nav a.active {
  background: var(--copper-soft);
  color: var(--cream);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.toolbar input,
.toolbar select {
  min-height: 40px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--cream);
}
.toolbar input { flex: 1; min-width: 160px; }

.auth-shell {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 40px 16px 64px;
}
.auth-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.auth-card h1 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-card .sub {
  color: var(--mute);
  font-size: 13.5px;
  margin-bottom: 22px;
}
.auth-foot {
  margin-top: 18px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
}
.auth-foot a { color: var(--copper); }
.error-msg {
  color: var(--danger);
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  display: none;
}
