/* =========================================================
   95Nice Studio — 配色对齐山海综合平台（仅 theme-studio）
   brand #224941 / flat / section-dark #f5f2eb / canvas #f3f5f4 / warm #f7f4ed / gold #b8872d
   ========================================================= */
:root {
  --st-ink: #192321;
  --st-ink-soft: #43514e;
  --st-muted: #6b7774;
  --st-white: #ffffff;
  --st-paper: #f3f5f4;          /* 山海 canvas：页面底 */
  --st-paper-warm: #f7f4ed;     /* 山海 canvas-warm：穿插浅底 */
  --st-line: #dce2df;
  --st-line-strong: #c7d0cc;
  --st-brand: #224941;          /* 主色 #224941（无渐变） */
  --st-brand-dark: #1a3834;
  --st-brand-soft: #e6eeec;
  --st-brand-light: #224941;
  --st-gold: #b8872d;
  --st-gold-bright: #e3b85d;
  --st-gold-soft: #f3e8cf;
  --st-nav: #ffffff;
  --st-nav-line: #dce2df;
  --st-hero: #224941;
  --st-hero-2: #224941;
  /* 副色：主色按钮 + 白字；深底上用白按钮 */
  --st-accent: #224941;
  --st-accent-deep: #1a3834;
  --st-accent-soft: #e6eeec;
  --st-accent-ink: #ffffff;
  --st-steel: #224941;
  --st-steel-soft: #e6eeec;
  --st-ok: #224941;
  --st-warn: #b8872d;
  --st-danger: #a33b35;
  --st-radius: 6px;
  --st-radius-sm: 5px;
  --st-shadow: 0 18px 45px rgba(25, 35, 33, 0.10);
  --st-shadow-lg: 0 18px 45px rgba(25, 35, 33, 0.14);
  --st-max: 1160px;
  --st-nav-h: 70px;
  --primary-color: var(--st-brand);
  --text-light: var(--st-ink);
  --text-gray: var(--st-muted);
  --card-bg: var(--st-white);
  --border-color: var(--st-line);
  --dark-bg: var(--st-brand-dark);
  --darker-bg: var(--st-paper);
  --gradient-start: var(--st-brand);
  --gradient-end: var(--st-brand-dark);
  --st-ember: var(--st-brand);
  --st-ember-deep: var(--st-brand-dark);
  --st-ember-soft: var(--st-brand-soft);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.theme-studio {
  font-family: "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  background: var(--st-paper);
  color: var(--st-ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container { max-width: var(--st-max); margin: 0 auto; padding: 0 1.35rem; }

/* ---------- Nav：白色（对齐山海） ---------- */
.st-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--st-nav-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--st-line);
  box-shadow: none;
  backdrop-filter: blur(12px);
}
.st-nav.is-solid { background: rgba(255,255,255,.98); }
.st-nav-inner {
  max-width: var(--st-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.st-brand { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.st-brand-mark { width: 40px; height: 40px; flex-shrink: 0; display: inline-flex; }
.st-brand-mark svg { width: 100%; height: 100%; }
.st-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.st-brand-text strong {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.st-brand-text small {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .05em;
  margin-top: 2px;
  color: var(--st-muted);
  -webkit-text-fill-color: var(--st-muted);
  background: none;
}
.st-nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .1rem;
}
.st-nav-links > li > a,
.st-nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .85rem;
  border-radius: var(--st-radius-sm);
  color: var(--st-ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1.2;
}
.st-nav-links > li > a:hover,
.st-nav-drop-btn:hover,
.st-nav-links > li > a.active,
.st-nav-drop.is-active .st-nav-drop-btn,
.st-nav-user.is-active .st-nav-user-btn {
  color: var(--st-brand);
  background: var(--st-brand-soft);
}
.st-nav-cta,
.st-nav-user-btn {
  margin-left: .35rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem !important;
  background: transparent !important;
  color: var(--st-ink) !important;
  border: 1px solid var(--st-line-strong) !important;
  border-radius: var(--st-radius-sm) !important;
  padding: 2px 1.05rem 0 !important; /* 中文字光学垂直居中 */
  min-height: 38px !important;
  height: 38px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.st-nav-cta:hover,
.st-nav-user-btn:hover {
  background: var(--st-brand-soft) !important;
  border-color: var(--st-brand) !important;
  color: var(--st-brand) !important;
}
.st-nav-drop-btn::after,
.st-nav-user-btn::after {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .55;
  margin-left: 0;
  flex: 0 0 auto;
}
.st-nav-drop,
.st-nav-user { position: relative; }
.st-nav-drop-menu,
.st-nav-user-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 10px 0 0;
  background: transparent;
  border: 0;
  display: none;
  z-index: 30;
}
.st-nav-user-menu { left: auto; right: 0; min-width: 176px; }
.st-nav-drop-menu > .st-drop-panel,
.st-nav-user-menu > .st-drop-panel {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  padding: .35rem;
}
.st-nav-drop:hover .st-nav-drop-menu,
.st-nav-drop.is-open .st-nav-drop-menu,
.st-nav-user:hover .st-nav-user-menu,
.st-nav-user.is-open .st-nav-user-menu { display: block; }
.st-drop-panel a {
  display: block;
  padding: .62rem .8rem;
  border-radius: var(--st-radius-sm);
  font-size: 13.5px;
  color: var(--st-ink-soft);
}
.st-drop-panel a:hover,
.st-drop-panel a.active {
  background: var(--st-brand-soft);
  color: var(--st-brand);
}
.st-nav-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-sm);
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.st-nav-toggle span {
  display: block; width: 16px; height: 1.5px; background: var(--st-ink);
}

/* ---------- Page shell ---------- */
.st-page-wrap,
.theme-studio .page-wrap {
  padding-top: var(--st-nav-h);
  min-height: calc(100vh - 100px);
}
.theme-studio .page-header {
  background: #224941;
  color: #fff;
  text-align: left;
  padding: 2.6rem 1.35rem 2.1rem;
  position: relative;
  overflow: hidden;
}
.theme-studio .page-header h1 {
  max-width: var(--st-max);
  margin: 0 auto;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 750;
}
.theme-studio .page-header > p {
  max-width: var(--st-max);
  margin: .55rem auto 0;
  color: rgba(255,255,255,.68);
  font-size: .98rem;
}
.theme-studio .page-content {
  padding: 1.6rem 0 2.8rem;
  background: var(--st-paper);
  color: var(--st-ink);
}
.theme-studio .section { margin-bottom: 1.35rem; padding: 1.1rem 0; }
.theme-studio .section-title {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--st-ink);
  margin-bottom: .4rem;
  text-align: left;
}
.theme-studio .section-subtitle {
  color: var(--st-muted);
  margin-bottom: 1rem;
  text-align: left;
  max-width: 40rem;
  font-size: .95rem;
}

/* ---------- Buttons：完整自洽，不依赖 common.css ---------- */
.theme-studio .btn,
.theme-studio a.btn,
.st-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .4rem;
  padding: 2px 1.2rem 0 !important; /* 中文字体光学垂直居中 */
  min-height: 40px !important;
  height: 40px !important;
  line-height: 1.15 !important;
  border-radius: var(--st-radius-sm) !important;
  border: 1px solid transparent !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-sizing: border-box !important;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  transition: transform .15s, background .15s, border-color .15s, color .15s;
  -webkit-text-fill-color: currentColor;
  background-image: none !important;
  vertical-align: middle;
}
.theme-studio .btn::before,
.theme-studio a.btn::before { display: none !important; content: none !important; }
.theme-studio .btn:hover,
.st-btn:hover { transform: translateY(-1px); }

.theme-studio .btn-primary,
.theme-studio a.btn-primary,
.st-btn-primary {
  background: var(--st-brand) !important;
  border-color: var(--st-brand) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.theme-studio .btn-primary:hover,
.theme-studio a.btn-primary:hover,
.st-btn-primary:hover {
  background: var(--st-brand-dark) !important;
  border-color: var(--st-brand-dark) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.theme-studio .btn-secondary,
.theme-studio a.btn-secondary,
.st-btn-ghost {
  background: #fff !important;
  color: var(--st-ink) !important;
  border: 1px solid var(--st-line-strong) !important;
}
.theme-studio .btn-secondary:hover,
.theme-studio a.btn-secondary:hover,
.st-btn-ghost:hover {
  color: var(--st-brand) !important;
  border-color: var(--st-brand) !important;
  background: #fff !important;
}

/* 深底/首屏：白底主按钮 + 描边次按钮（对齐山海 hero） */
.theme-studio .page-header .btn-primary,
.theme-studio .page-header a.btn-primary,
.theme-studio .st-hero .st-btn-light,
.theme-studio .st-cta-band .st-btn-light,
.st-btn-light {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--st-ink) !important;
  -webkit-text-fill-color: var(--st-ink) !important;
}
.theme-studio .page-header .btn-primary:hover,
.theme-studio .page-header a.btn-primary:hover,
.theme-studio .st-hero .st-btn-light:hover,
.theme-studio .st-cta-band .st-btn-light:hover,
.st-btn-light:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--st-brand) !important;
  -webkit-text-fill-color: var(--st-brand) !important;
}
.theme-studio .page-header .btn-secondary,
.theme-studio .page-header a.btn-secondary,
.theme-studio .st-hero .st-btn-outline,
.theme-studio .st-cta-band .st-btn-outline {
  background: rgba(8, 28, 27, .46) !important;
  border: 1px solid rgba(255,255,255,.56) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.theme-studio .page-header .btn-secondary:hover,
.theme-studio .page-header a.btn-secondary:hover,
.theme-studio .st-hero .st-btn-outline:hover,
.theme-studio .st-cta-band .st-btn-outline:hover {
  background: rgba(8, 28, 27, .76) !important;
  border-color: #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.theme-studio .card,
.theme-studio .feature-item,
.theme-studio .download-card,
.theme-studio .feature-detail,
.theme-studio .notice {
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: var(--st-shadow);
  color: var(--st-ink);
}
.theme-studio .card,
.theme-studio .download-card,
.theme-studio .feature-detail,
.theme-studio .notice { padding: 1.15rem 1.25rem; }
.theme-studio .feature-item { padding: 1.05rem; text-align: left; }
.theme-studio .feature-item .icon { font-size: 1.35rem; margin-bottom: .4rem; }
.theme-studio .feature-item h4 { font-size: 1rem; margin-bottom: .3rem; }
.theme-studio .feature-item p { color: var(--st-muted); font-size: .9rem; }
.theme-studio .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
}
.theme-studio .code-block {
  margin-top: .85rem;
  padding: .9rem 1rem;
  background: #17201f;
  color: #d9e2f0;
  border-radius: var(--st-radius-sm);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.theme-studio table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.theme-studio th, .theme-studio td {
  padding: .7rem .55rem;
  border-bottom: 1px solid var(--st-line);
  text-align: left;
}
.theme-studio th { color: var(--st-muted); font-weight: 650; }
.theme-studio .tag {
  display: inline-block;
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: 12px;
  background: var(--st-ember-soft);
  color: var(--st-ember-deep);
  margin: .1rem .12rem .1rem 0;
}
.theme-studio .tag-success { background: #e5f2ea; color: var(--st-ok); }
.theme-studio .tag-centos { background: #efe8dc; color: #7a5a2e; }
.theme-studio .tag-ubuntu { background: #ebe4f5; color: #5b4578; }
.theme-studio .tag-mysql { background: #e7eef8; color: #355c8a; }
.theme-studio .tag-redis { background: #f8e8e8; color: #8a3d3d; }
.theme-studio .tag-mongo { background: #e8f2e8; color: #3d6a45; }
.theme-studio .notice ul { margin: .4rem 0 0 1.05rem; color: var(--st-ink-soft); }
.theme-studio .feature-detail {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.2rem;
  align-items: center;
  margin-bottom: .9rem;
}
.theme-studio .feature-detail-img {
  border-radius: var(--st-radius-sm);
  overflow: hidden;
  border: 1px solid var(--st-line);
  cursor: zoom-in;
  background: #e5eaf2;
}
.theme-studio .feature-detail-text p { color: var(--st-muted); margin-top: .45rem; }

/* ---------- Home：纯色毛面首屏（无渐变） ---------- */
.st-hero {
  position: relative;
  min-height: calc(var(--st-nav-h) + 420px + 100px);
  display: flex;
  align-items: center;
  padding: calc(var(--st-nav-h) + 3.2rem) 1.35rem 4.2rem;
  background: #224941;
  color: #fff;
  overflow: hidden;
  box-sizing: border-box;
}
.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.st-hero::after {
  content: none;
  display: none;
}
.st-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--st-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 1.5rem;
  align-items: center;
}
.st-kicker {
  /* 深底副色：白 */
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .08em;
  font-weight: 650;
  margin-bottom: .85rem;
}
.st-kicker::before {
  content: "";
  width: 18px; height: 2px;
  background: #fff;
}
.st-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.18;
  font-weight: 780;
  margin-bottom: .7rem;
  max-width: 11em;
}
.st-hero-lead {
  max-width: 34rem;
  color: rgba(255,255,255,.72);
  font-size: .98rem;
  margin-bottom: 1.25rem;
}
.st-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 1rem; }
.st-btn-outline { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.st-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  color: rgba(255,255,255,.55);
  font-size: 12.5px;
}
.st-hero-panel {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--st-radius);
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.st-hero-panel h3 {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.st-pipe {
  display: grid;
  gap: .55rem;
}
.st-pipe-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: .7rem;
  align-items: center;
  padding: .7rem .75rem;
  border-radius: var(--st-radius-sm);
  background: rgba(8,28,27,.46);
  border: 1px solid rgba(255,255,255,.14);
}
.st-pipe-item b {
  width: 42px; height: 42px;
  border-radius: var(--st-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 12px;
}
.st-pipe-item strong { display: block; font-size: 13.5px; margin-bottom: 2px; }
.st-pipe-item span { color: rgba(255,255,255,.62); font-size: 12px; }
.st-pipe-item em {
  font-style: normal;
  font-size: 11px;
  color: #fff;
  background: rgba(255,255,255,.16);
  padding: .18rem .45rem;
  border-radius: 999px;
}

.st-tool-only {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}
.st-tool-card {
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1.2rem 1.15rem 1.15rem;
  box-shadow: var(--st-shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.st-tool-card h3 {
  font-size: 1.15rem;
  margin: .35rem 0 .45rem;
}
.st-tool-card p {
  color: var(--st-muted);
  font-size: .92rem;
  margin-bottom: 1rem;
  flex: 1;
}
.st-tool-card .st-btn { width: 100%; }
@media (max-width: 980px) {
  .st-tool-only { grid-template-columns: 1fr; }
}

/* ---------- 首页板块间距 ---------- */
.st-section {
  padding: calc(4.8rem + 75px) 0;
}
.st-section-tight {
  padding: calc(4rem + 75px) 0;
  background: var(--st-paper-warm);
}
.st-section .container > .st-tool-only,
.st-section .container > .st-flow,
.st-section .container > .st-cta-band {
  margin-top: .5rem;
}
.st-section-dark {
  background: #224941;
  color: #fff;
}
.st-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.85rem;
  flex-wrap: wrap;
}
.st-label {
  display: inline-block;
  color: var(--st-brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: .4rem;
}
.st-section-dark .st-label {
  color: #fff;
  opacity: .92;
}
.st-section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.25;
}
.st-section-head p {
  color: var(--st-muted);
  font-size: .92rem;
  max-width: 28rem;
}
.st-section-dark .st-section-head p { color: rgba(255,255,255,.55); }

/* 主工作台：左大右小，非三等分仿制 */
.st-workbench {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 1rem;
}
.st-main-card {
  position: relative;
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1.5rem 1.45rem 1.3rem;
  box-shadow: var(--st-shadow);
  overflow: hidden;
}
.st-main-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--st-brand);
}
.st-main-card .watermark {
  position: absolute;
  right: -8px; bottom: -18px;
  font-size: 88px;
  font-weight: 800;
  color: rgba(16,24,40,.04);
  letter-spacing: -.04em;
  pointer-events: none;
}
.st-main-card h3 { font-size: 1.45rem; margin: .35rem 0 .55rem; }
.st-main-card p { color: var(--st-muted); margin-bottom: 1rem; max-width: 34rem; }
.st-chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.st-chip-row span {
  background: var(--st-steel-soft);
  color: var(--st-steel);
  border-radius: 999px;
  padding: .22rem .65rem;
  font-size: 12px;
  font-weight: 600;
}
.st-main-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.st-side-stack { display: grid; gap: .75rem; }
.st-side-card {
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1.05rem 1.1rem;
  box-shadow: var(--st-shadow);
}
.st-side-card h4 { font-size: 1.02rem; margin: .25rem 0 .35rem; }
.st-side-card p { color: var(--st-muted); font-size: .88rem; margin-bottom: .75rem; }
.st-side-card a {
  color: var(--st-ember-deep);
  font-size: 13px;
  font-weight: 700;
}

.st-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}
.st-flow-item {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1.05rem 1rem;
  box-shadow: var(--st-shadow);
}
.st-flow-item .n {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: var(--st-radius-sm);
  background: var(--st-brand-soft);
  color: var(--st-brand);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: .65rem;
}
.st-flow-item h4 { font-size: .98rem; margin-bottom: .3rem; color: var(--st-ink); }
.st-flow-item p { color: var(--st-muted); font-size: .86rem; }

.st-section-dark .st-flow-item {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
}
.st-section-dark .st-flow-item .n {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.st-section-dark .st-flow-item h4 { color: #fff; }
.st-section-dark .st-flow-item p { color: rgba(255,255,255,.55); }

.st-cta-band {
  background: #224941;
  color: #fff;
  border-radius: var(--st-radius);
  padding: 1.35rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--st-shadow);
  border: 1px solid rgba(255,255,255,.08);
}
.st-cta-band h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.st-cta-band p { color: rgba(255,255,255,.62); font-size: .9rem; }
.st-cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---------- User center ---------- */
.st-user {
  max-width: var(--st-max);
  margin: 0 auto;
  padding: 1.6rem 1.35rem 3rem;
}
.st-user-head { margin-bottom: 1.15rem; }
.st-user-head h1 { font-size: 1.7rem; font-weight: 750; }
.st-user-head p { color: var(--st-muted); margin-top: .3rem; font-size: .95rem; }
.st-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: 1.15rem;
}
.st-stat {
  border-radius: var(--st-radius);
  padding: 1.15rem 1.15rem;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.st-stat.a {
  background: #e2ece9;
  border-color: #b7cbc4;
  color: var(--st-ink);
}
.st-stat.b {
  background: #e4e9ec;
  border-color: #b9c4cc;
  color: var(--st-ink);
}
.st-stat.c {
  background: #e8ebe4;
  border-color: #c0c8b8;
  color: var(--st-ink);
}
.st-stat .badge {
  position: absolute; top: .85rem; right: .85rem;
  font-size: 11px;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--st-ink-soft);
  font-weight: 650;
}
.st-stat.c .badge { background: rgba(255,255,255,.72); color: var(--st-ink-soft); }
.st-stat h3 { font-size: 1.08rem; margin: .25rem 0 .35rem; padding-right: 4.5rem; }
.st-stat p { font-size: .88rem; opacity: .78; flex: 1; color: var(--st-ink-soft); }
.st-stat .st-btn {
  margin-top: .85rem;
  width: 100%;
  background: var(--st-brand);
  color: #fff;
  border: 0;
}
.st-stat.b .st-btn,
.st-stat.c .st-btn { background: var(--st-brand); color: #fff; }

.st-info-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
  box-shadow: var(--st-shadow);
}
.st-info-bar .lab { font-size: 12px; color: var(--st-muted); margin-bottom: .2rem; }
.st-info-bar .val { font-size: 14.5px; font-weight: 650; word-break: break-all; }

.st-tabs {
  display: flex;
  gap: .2rem;
  border-bottom: 1px solid var(--st-line);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.st-tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: .75rem .95rem;
  color: var(--st-muted);
  cursor: pointer;
  margin-bottom: -1px;
  font-weight: 550;
}
.st-tab.active { color: var(--st-ember-deep); border-bottom-color: var(--st-ember); }
.st-panel { display: none; }
.st-panel.active { display: block; }
.st-card {
  background: var(--st-white);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: .9rem;
  box-shadow: var(--st-shadow);
}
.st-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .9rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--st-line);
}
.st-card-head h3 { font-size: 1rem; font-weight: 650; }
.st-chip {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: 11px;
  background: var(--st-ember-soft);
  color: var(--st-ember-deep);
  font-weight: 650;
}
.st-chip.warn { background: #f5ead8; color: var(--st-warn); }
.st-chip.ok { background: #e5f2ea; color: var(--st-ok); }
.st-info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.st-info-table td {
  padding: .65rem 0;
  border-bottom: 1px solid #eef1f6;
}
.st-info-table tr:last-child td { border-bottom: 0; }
.st-info-table td:first-child { width: 120px; color: var(--st-muted); }
.st-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .85rem;
  margin-bottom: .85rem;
}
.st-form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: .3rem;
  color: var(--st-ink-soft);
}
.st-form-group input,
.st-form-group select {
  width: 100%;
  padding: .68rem .75rem;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius-sm);
  background: #f7f9fc;
  outline: none;
}
.st-form-group input:focus,
.st-form-group select:focus {
  border-color: var(--st-ember);
  box-shadow: 0 0 0 3px rgba(34,73,65,.15);
}
.st-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: .65rem;
}
.st-action {
  border: 1px solid var(--st-line);
  background: #f7f9fc;
  border-radius: var(--st-radius-sm);
  padding: .85rem .75rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.st-action:hover { border-color: var(--st-accent); background: var(--st-ember-soft); }
.st-action .ico { font-size: 1.15rem; margin-bottom: .3rem; }
.st-action .t { font-weight: 650; font-size: 13.5px; }
.st-action .d { color: var(--st-muted); font-size: 12px; margin-top: .15rem; }
.st-feat-sec { margin-bottom: 1.15rem; }
.st-feat-sec-title {
  font-size: 12.5px;
  color: var(--st-muted);
  letter-spacing: .06em;
  margin-bottom: .55rem;
}
.st-theme-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.st-theme-opt {
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 1rem;
  background: #f7f9fc;
  cursor: pointer;
  text-align: left;
}
.st-theme-opt.active {
  border-color: var(--st-ember);
  background: var(--st-ember-soft);
  box-shadow: inset 0 0 0 1px var(--st-ember);
}
.st-theme-opt strong { display: block; margin-bottom: .25rem; }
.st-theme-opt span { color: var(--st-muted); font-size: 12.5px; }

#upToast {
  position: fixed; top: 24px; right: 24px; z-index: 3000;
  background: #fff; border: 1px solid var(--st-line);
  border-radius: var(--st-radius-sm); padding: .75rem 1rem;
  box-shadow: var(--st-shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .2s;
  font-size: 13px;
}
#upToast.show { opacity: 1; }
#upToast.error { border-left: 3px solid var(--st-danger); }
#upToast.success { border-left: 3px solid var(--st-ok); }
#upToast.info { border-left: 3px solid var(--st-ember); }

/* ---------- Footer ---------- */
.st-footer {
  background: #224941;
  color: rgba(255,255,255,.72);
  padding: 1.15rem 1.35rem;
}
.st-footer-inner {
  max-width: var(--st-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.st-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  font-weight: 650;
  font-size: 13.5px;
}
.st-footer-brand .st-brand-mark { width: 26px; height: 26px; }
.st-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  font-size: 12.5px;
}
.st-footer-links a:hover { color: var(--st-accent); }
.st-footer-copy { font-size: 12px; color: rgba(255,255,255,.4); }

.theme-studio .auth-modal-logo span { color: var(--st-ember-deep); }
.theme-studio .auth-modal-tab.active { color: var(--st-ember-deep); border-bottom-color: var(--st-ember); }
.theme-studio .auth-modal-btn { background: var(--st-ember); }
.theme-studio .auth-modal-field input:focus {
  border-color: var(--st-ember);
  box-shadow: 0 0 0 3px rgba(34,73,65,.14);
}
.theme-studio .auth-modal-foot a { color: var(--st-ember-deep); }
/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .st-hero-grid,
  .st-workbench,
  .st-flow,
  .st-stat-grid,
  .st-info-bar,
  .theme-studio .grid-3,
  .theme-studio .feature-detail {
    grid-template-columns: 1fr;
  }
  .st-cta-band { flex-direction: column; align-items: flex-start; }
  .st-nav-toggle { display: inline-flex; }
  .st-nav-links {
    display: none;
    position: absolute;
    top: calc(var(--st-nav-h) - 1px);
    left: 0; right: 0;
    background: #17201f;
    border-bottom: 1px solid rgba(255,255,255,.1);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    gap: .2rem;
    box-shadow: var(--st-shadow-lg);
  }
  .st-nav-links.is-open { display: flex; }
  .st-nav-drop-menu,
  .st-nav-user-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: .2rem 0 .2rem .6rem;
    display: none;
  }
  .st-nav-drop.is-open .st-nav-drop-menu,
  .st-nav-user.is-open .st-nav-user-menu { display: block; }
  .st-nav-drop-menu > .st-drop-panel,
  .st-nav-user-menu > .st-drop-panel {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .st-nav-cta,
  .st-nav-user-btn { margin-left: 0 !important; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .st-hero { padding-top: calc(var(--st-nav-h) + 1.5rem); }
  .st-theme-switch { grid-template-columns: 1fr; }
}