/* Shared styles for pinmai help answers (no external assets). */
:root {
  /* Light theme */
  --bg: #f6f7fb;
  --panel: #ffffff;
  --card: #ffffff;
  --border: #e6e8f0;
  --text: #111827;
  --muted: #6b7280;
  --brand: #fe2c55;
  --brand2: #ff6b8a;
  --link: #2563eb;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% 0%, rgba(254,44,85,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 10%, rgba(37,99,235,.10), transparent 55%),
    var(--bg);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1060px; margin: 0 auto; padding: 28px 18px 60px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-radius: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 12px 30px rgba(254,44,85,.25);
}
.brand-title { font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text { min-width: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid #d7dbea;
  background: rgba(255,255,255,.9);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.btn:hover { border-color: #c7cce0; background: #ffffff; }

.hero {
  margin-top: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.86));
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.kicker { color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.title { margin: 6px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: .2px; }
.meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d7dbea;
  background: rgba(255,255,255,.9);
}
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--brand); }

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
}
@media (max-width: 920px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  border-radius: 16px;
  padding: 16px;
}
.card h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .2px; }
.card p { margin: 10px 0; color: var(--text); line-height: 1.75; }
.muted { color: var(--muted); }

.steps {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.85;
}
.steps li { margin: 6px 0; }

.callout {
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid #d7dbea;
  background: rgba(249,250,251,.9);
}
.callout strong { display: inline-block; margin-bottom: 6px; }
.callout.ok { border-color: rgba(34,197,94,.35); }
.callout.warn { border-color: rgba(245,158,11,.35); }
.callout.danger { border-color: rgba(239,68,68,.35); }

.diagram {
  border: 1px solid #d7dbea;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(249,250,251,.9));
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}
.diagram-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.badge {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid #d7dbea;
  padding: 4px 8px;
  border-radius: 999px;
}
.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.node {
  position: relative;
  padding: 12px 12px 12px 12px;
  border-radius: 14px;
  border: 1px solid #d7dbea;
  background: rgba(255,255,255,.9);
}
.node .label { font-weight: 700; font-size: 13px; }
.node .desc { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.node:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(254,44,85,.25);
  transform: translateY(2px);
}
.node .label, .node .desc { padding-left: 16px; }

.footer {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

code.inline {
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid #d7dbea;
  background: rgba(249,250,251,.95);
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

