/* 与 public_web/src/styles/global.css 营销区（.marketing-shell）对齐，供独立静态页引用 */
:root {
  --bg: #f6f8fc;
  --card: #fff;
  --text: #0f172a;
  --muted: #5c5c5c;
  --sub: #64748b;
  --border: #e2e4e8;
  --line: #e2e8f0;
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --primary-soft: #eff6ff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 18px 48px rgba(15, 23, 42, 0.1);
  --mkt-max: 1180px;
  --accent: var(--primary);
  --danger: #b02a37;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
}

.marketing-shell {
  --console-line: #e7ebf3;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f6f8fc 42%, #f3f6fb 100%);
}

.marketing-shell a {
  color: inherit;
  text-decoration: none;
}

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

.marketing-shell .nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 252, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.marketing-shell .nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.marketing-shell .brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.marketing-shell .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  flex-shrink: 0;
}

.marketing-shell .brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.marketing-shell .brand-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--sub);
}

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

.marketing-shell .nav-link {
  font-size: 14px;
  color: #334155;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.18s ease;
}

.marketing-shell .nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
}

.marketing-shell .main {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 0 48px;
}

.marketing-shell .main.help-main {
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 72px;
}

.marketing-shell .help-card-wrap {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-shell section.card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow: hidden;
}

.marketing-shell .card-inner {
  padding: 30px 28px 28px;
}

.marketing-shell .card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.marketing-shell .card-icon {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.marketing-shell .card-title {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.marketing-shell .card-sub {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--sub);
}

.marketing-shell .help-steps {
  margin: 0;
  padding-left: 1.35rem;
  color: #334155;
  font-size: 15px;
  line-height: 1.75;
}

.marketing-shell .help-steps li {
  margin-bottom: 14px;
}

.marketing-shell .help-steps li:last-child {
  margin-bottom: 0;
}

.marketing-shell code {
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.9em;
  word-break: break-all;
}

.marketing-shell .help-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 14px;
  color: var(--sub);
  line-height: 1.75;
}

/* 与 public_web MarketingShell 顶栏 CTA 对齐 */
.marketing-shell .btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.18s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.marketing-shell .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.marketing-shell .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-d));
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.22);
}

.marketing-shell .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* 产品介绍长文（product-intro.html） */
.marketing-shell .product-doc-main {
  align-items: flex-start;
}

.marketing-shell .product-doc-wrap {
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.marketing-shell .product-card {
  width: 100%;
}

.marketing-shell .product-inner {
  padding: 28px 32px 36px;
}

.marketing-shell .product-hero-top {
  margin-bottom: 8px;
}

.marketing-shell .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-sm);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.marketing-shell .pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
}

.marketing-shell .product-title {
  margin: 18px 0 0;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.marketing-shell .product-lead {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--sub);
  max-width: 52rem;
}

.marketing-shell .product-prose {
  margin-top: 28px;
  color: #334155;
  font-size: 15px;
  line-height: 1.8;
}

.marketing-shell .product-prose > h2 {
  margin: 2rem 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.marketing-shell .product-prose > h2:first-of-type {
  margin-top: 0;
}

.marketing-shell .product-prose > h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.marketing-shell .product-prose p {
  margin: 0 0 0.85rem;
}

.marketing-shell .doc-hr {
  border: none;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  margin: 1.75rem 0;
}

.marketing-shell .product-list {
  margin: 0.35rem 0 0;
  padding-left: 1.25rem;
}

.marketing-shell .product-list li {
  margin-bottom: 0.55rem;
}

.marketing-shell .product-list li:last-child {
  margin-bottom: 0;
}

.marketing-shell .table-scroll {
  overflow-x: auto;
  margin: 0.75rem 0 1rem;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(248, 250, 252, 0.65);
}

.marketing-shell .compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.marketing-shell .compare-table th,
.marketing-shell .compare-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.marketing-shell .compare-table thead th {
  background: rgba(239, 246, 255, 0.85);
  color: #1e293b;
  font-weight: 800;
}

.marketing-shell .compare-table tbody th[scope="row"] {
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}

.marketing-shell .compare-table tbody tr:last-child th,
.marketing-shell .compare-table tbody tr:last-child td {
  border-bottom: none;
}

.marketing-shell .product-pullquote {
  margin: 0.5rem 0 0;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(191, 219, 254, 0.65);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
  color: #1e3a8a;
}

.marketing-shell .product-footnote {
  margin: 1.5rem 0 0;
  font-size: 13px;
  color: var(--sub);
  line-height: 1.65;
}

.marketing-shell .product-device-figure {
  margin: 1.25rem 0 1.75rem;
  padding: 0;
}

.marketing-shell .product-device-figure img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--shadow-sm);
}

.marketing-shell .product-device-caption {
  margin: 0.65rem 0 0;
  max-width: 560px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--sub);
}

.marketing-shell .product-code-block {
  margin: 0.75rem 0 1rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}

.marketing-shell .product-code-block code {
  background: none;
  padding: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #334155;
}

.marketing-shell .muted-like {
  margin: -0.35rem 0 0.75rem;
  font-size: 14px;
  color: var(--sub);
}

.marketing-shell .product-faq {
  margin: 0.5rem 0 0;
}

.marketing-shell .product-faq dt {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--text);
}

.marketing-shell .product-faq dt:first-child {
  margin-top: 0;
}

.marketing-shell .product-faq dd {
  margin: 0.35rem 0 0;
  padding: 0;
  color: #334155;
}

/* Landing 首页（landing.html，与 public_web Landing.tsx 对齐） */
.marketing-shell .hero {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 40px;
}

.marketing-shell .hero-inner {
  width: 100%;
  max-width: 820px;
}

.marketing-shell .hero-title {
  margin-top: 18px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.06em;
  font-weight: 800;
  max-width: 820px;
}

.marketing-shell .hero-desc {
  margin-top: 22px;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.9;
  color: #475569;
}

.marketing-shell .hero-tutorial {
  margin-top: 10px;
  max-width: 700px;
  font-size: 15px;
  line-height: 1.6;
  color: #475569;
}

.marketing-shell .hero-sub {
  margin-top: 16px;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.marketing-shell .hero-feature-list {
  margin-top: 14px;
  max-width: 820px;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.8);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.marketing-shell .hero-feature-item {
  display: grid;
  grid-template-columns: 102px 1fr;
  align-items: start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
}

.marketing-shell .hero-feature-item strong {
  color: #1d4ed8;
  font-weight: 700;
}

.marketing-shell .hero-feature-item span {
  color: #334155;
}

.marketing-shell .hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.marketing-shell .hero-diff {
  margin-top: 18px;
  max-width: 820px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid rgba(191, 219, 254, 0.88);
  box-shadow: 0 12px 32px rgba(30, 64, 175, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.marketing-shell .hero-diff-head {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.marketing-shell .hero-diff-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1e3a8a;
  line-height: 1.35;
}

.marketing-shell .hero-diff-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.marketing-shell .hero-diff-grid > li {
  margin: 0;
}

.marketing-shell .hero-diff-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.marketing-shell .hero-diff-card:hover {
  border-color: rgba(147, 197, 253, 0.95);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.marketing-shell .hero-diff-idx {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 1px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.marketing-shell .hero-diff-card-inner {
  min-width: 0;
  flex: 1;
}

.marketing-shell .hero-diff-card-title {
  display: block;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #1d4ed8;
}

.marketing-shell .hero-diff-card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #475569;
}

.marketing-shell .site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 2.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.marketing-shell .site-footer p {
  margin: 0;
}

.marketing-shell .site-footer a {
  color: inherit;
  text-decoration: none;
}

.marketing-shell .site-footer a:hover {
  text-decoration: underline;
}

.marketing-shell a.minor-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.marketing-shell a.minor-link:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .marketing-shell .hero-title {
    font-size: 48px;
  }

  .marketing-shell .hero-desc {
    font-size: 17px;
  }

  .marketing-shell .hero-feature-item {
    grid-template-columns: 96px 1fr;
  }
}

@media (max-width: 640px) {
  .marketing-shell .wrap {
    width: calc(100% - 24px);
  }

  .marketing-shell .nav-inner {
    height: auto;
    min-height: 64px;
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .marketing-shell .card-title {
    font-size: 22px;
  }

  .marketing-shell .card-inner {
    padding: 22px 18px 20px;
  }

  .marketing-shell .product-title {
    font-size: 26px;
  }

  .marketing-shell .product-inner {
    padding: 22px 18px 28px;
  }

  .marketing-shell .nav-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .marketing-shell .hero {
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 32px;
    align-items: flex-start;
  }

  .marketing-shell .hero-title {
    font-size: 36px;
  }

  .marketing-shell .hero-desc {
    font-size: 16px;
    line-height: 1.8;
  }

  .marketing-shell .hero-sub {
    font-size: 14px;
  }

  .marketing-shell .hero-feature-list {
    padding: 12px 12px;
    border-radius: 14px;
  }

  .marketing-shell .hero-feature-item {
    grid-template-columns: 1fr;
    gap: 2px;
    font-size: 13px;
    line-height: 1.65;
  }

  .marketing-shell .hero-diff {
    padding: 14px 12px 12px;
    border-radius: 16px;
  }

  .marketing-shell .hero-diff-title {
    font-size: 15px;
  }

  .marketing-shell .hero-diff-card {
    padding: 10px 12px;
  }

  .marketing-shell .hero-diff-card-desc {
    font-size: 12px;
    line-height: 1.6;
  }
}
