:root {
  --theme: #6c5ce7;
  --ink: #1a1a2e;
  --muted: #6b7280;
  --line: #e5e7f0;
  --soft: #f5f3ff;
  --panel: #ffffff;
  --panel-soft: #f9f8ff;
  --accent: #a78bfa;
  --green: #10b981;
  --rose: #f472b6;
  --body-bg: #ffffff;
  --hero-bg: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  --hero-glow: rgba(108, 92, 231, 0.12);
  --card-border: #e5e7f0;
  --card-shadow: 0 12px 30px rgba(108, 92, 231, 0.08);
  --card-shadow-strong: 0 18px 42px rgba(108, 92, 231, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --text-main: #1a1a2e;
  --text-sub: #6b7280;
  --footer-bg: #1a1a2e;
  --footer-text: #d1d5db;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background: var(--body-bg);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 58px;
  padding: 0 max(28px, calc((100vw - 1160px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand, .main-nav, .hero-actions, .site-footer, .metric-grid { display: flex; align-items: center; }
.brand { gap: 8px; font-weight: 800; }
.brand img { width: 28px; height: 28px; }
.main-nav { gap: 26px; color: color-mix(in srgb, var(--text-main) 82%, white 18%); font-size: 14px; }

/* Nav Toggle (hamburger) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.pill-button, .primary-button, .secondary-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.pill-button, .primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--theme), var(--accent));
  box-shadow: 0 12px 28px rgba(108, 92, 231, 0.22);
}

.primary-button.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

.secondary-button {
  color: var(--theme);
  background: var(--panel);
  border: 1px solid var(--card-border);
}

.text-button {
  min-height: 34px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--theme), var(--accent));
  font-size: 14px;
}

main { overflow: hidden; }

.hero {
  padding: 74px 24px 66px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, var(--hero-glow), transparent 36%),
    var(--hero-bg);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--theme);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 860px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.08;
}

.hero > p {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 1.8;
}

.hero-shot {
  display: block;
  width: min(620px, 88vw);
  margin: 28px auto 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 22px 70px rgba(108, 92, 231, 0.14);
}

.hero-actions { justify-content: center; flex-wrap: wrap; gap: 14px; }

.metrics {
  width: min(1080px, 88vw);
  margin: 0 auto;
  padding: 58px 0;
  text-align: center;
}

.metrics h2, .news h2, .testimonials h2 { margin-bottom: 26px; font-size: clamp(24px, 3vw, 34px); }

.metric-grid { justify-content: center; flex-wrap: wrap; gap: 18px; }

.metric-grid div {
  width: 170px;
  min-height: 94px;
  padding: 20px 16px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}

.metric-grid strong { display: block; color: var(--theme); font-size: 26px; }
.metric-grid span { color: var(--text-sub); font-size: 13px; }

.feature-row, .why, .article-layout { width: min(1080px, 88vw); margin: 0 auto; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
  padding: 56px 0;
}

.feature-row img, .why img, .article-cover, .side-card {
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(108, 92, 231, 0.1);
}

.feature-copy h2, .why h2 { font-size: clamp(25px, 3vw, 36px); }
.feature-copy p, .lead, .article-content p { color: var(--text-sub); line-height: 1.85; }

.feature-copy ul {
  margin: 18px 0 22px;
  padding-left: 20px;
  color: color-mix(in srgb, var(--text-main) 88%, white 12%);
  line-height: 1.9;
}

.reverse { padding-top: 20px; }

.why {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  padding: 64px 0;
}

.why-list { display: grid; gap: 18px; margin-top: 28px; }

.why-list div {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 14px 0;
}

.why-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--theme);
  background: color-mix(in srgb, var(--theme) 10%, white);
  border-radius: 50%;
  font-weight: 800;
}

.why-list strong { margin-bottom: 4px; }
.why-list p { margin: 0; }

.testimonials {
  padding: 62px 24px;
  text-align: center;
  background: color-mix(in srgb, var(--panel-soft) 65%, white);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(900px, 88vw);
  margin: 28px auto 0;
}

blockquote {
  margin: 0;
  padding: 28px;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
}

blockquote cite {
  display: block;
  margin-top: 18px;
  color: var(--theme);
  font-style: normal;
  font-weight: 800;
}

.news {
  width: min(1080px, 88vw);
  margin: 0 auto;
  padding: 64px 0 90px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.news-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.news-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-strong); }
.news-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card div { padding: 16px; }
.news-card span { color: var(--theme); font-size: 12px; font-weight: 800; }
.news-card h3 { margin: 8px 0; font-size: 18px; line-height: 1.35; }
.news-card p { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.7; }

.site-footer {
  display: block;
  padding: 54px 24px 0;
  color: var(--footer-text);
  background: var(--footer-bg);
}

.footer-main {
  display: flex;
  justify-content: center;
  gap: min(7vw, 90px);
  padding-bottom: 36px;
}

.footer-main div { display: grid; gap: 8px; min-width: 120px; }
.site-footer strong { color: #fff; font-size: 18px; }
.site-footer span { color: #fff; font-weight: 800; }
.site-footer p, .site-footer a { margin: 0; color: #c5cbd6; font-size: 14px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: #9ca3af;
  font-size: 13px;
}

.site-footer.compact {
  padding-left: max(24px, calc((100vw - 1080px) / 2));
  padding-right: max(24px, calc((100vw - 1080px) / 2));
}

.page-hero { width: min(900px, 88vw); margin: 0 auto; padding: 64px 0 44px; text-align: center; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { color: var(--text-sub); line-height: 1.8; }
.page-grid { width: min(1080px, 88vw); margin: 0 auto 80px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 36px;
  align-items: start;
  padding: 54px 0 84px;
}

.article-shell { min-width: 0; }
.article-shell h1 { margin: 0 0 12px; font-size: clamp(30px, 4.5vw, 48px); }
.meta, .muted { color: var(--text-sub); font-size: 14px; }
.article-cover { display: block; width: 100%; margin: 28px 0; }

.article-content { color: color-mix(in srgb, var(--text-main) 90%, #ffffff 10%); font-size: 17px; line-height: 1.9; }
.article-content h2 { margin: 40px 0 12px; font-size: 27px; }
.article-content h3 { margin: 30px 0 10px; font-size: 22px; }
.article-content img { display: block; width: min(100%, 640px); margin: 26px auto; border-radius: var(--radius-sm); }

.article-content blockquote {
  margin: 24px 0;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--panel-soft) 75%, white);
  border-left: 4px solid var(--theme);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content pre {
  overflow-x: auto;
  padding: 16px;
  color: #dbeafe;
  background: #1a1a2e;
  border-radius: var(--radius-sm);
}

.article-side { position: sticky; top: 82px; display: grid; gap: 18px; }
.side-card { padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.download-panel { text-align: center; }
.download-panel img { width: 86px; margin-bottom: 12px; }
.download-panel strong, .download-panel span { display: block; }
.download-panel span { margin: 6px 0 14px; color: var(--text-sub); }

.related-link {
  display: block;
  padding: 12px 0;
  color: color-mix(in srgb, var(--text-main) 88%, white 12%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 65%, transparent);
  line-height: 1.55;
}

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--text-sub);
  text-align: center;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.about-hero .primary-button { margin-top: 12px; }

@media (max-width: 900px) {
  .site-header { height: auto; flex-wrap: wrap; padding: 14px 24px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .feature-row, .why, .article-layout, .quote-grid, .news-grid { grid-template-columns: 1fr; }
  .reverse img { order: 2; }
  .article-side { position: static; }
  .footer-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 46px; }
  h1 { font-size: 34px; }
  .hero-actions a, .pill-button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; }
}

html { min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
/* im-faq-styles BEGIN */
.faq-section { margin: 80px auto; max-width: 980px; padding: 0 20px; }
.faq-section h2 { font-size: 32px; margin: 0 0 32px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

/* 浅色模板默认样式 */
.faq-item {
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.faq-item[open] {
  border-color: var(--theme, #6c5ce7);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 16px;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--theme, #6c5ce7);
  font-weight: 300;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-answer {
  padding: 0 24px 18px;
  color: rgba(0,0,0,0.72);
  line-height: 1.7;
  font-size: 15px;
}
.faq-item .faq-answer p { margin: 0 0 12px; }
.faq-item .faq-answer p:last-child { margin: 0; }
.faq-item .faq-answer ul,
.faq-item .faq-answer ol { padding-left: 24px; margin: 8px 0; }
.faq-item .faq-answer code {
  background: rgba(0,0,0,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}
.faq-item .faq-answer strong { color: inherit; }
.faq-item .faq-answer a {
  color: var(--theme, #6c5ce7);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* 深色模板（im_chat_01 = theme-dark-im / im_chat_05 = theme-neon / im_chat_08 = theme-glass）的对比度强化 */
body.theme-dark-im .faq-item,
body.theme-neon .faq-item,
body.theme-glass .faq-item {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}
body.theme-dark-im .faq-item:hover,
body.theme-neon .faq-item:hover,
body.theme-glass .faq-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.20);
}
body.theme-dark-im .faq-item[open],
body.theme-neon .faq-item[open],
body.theme-glass .faq-item[open] {
  background: rgba(255,255,255,0.06);
  border-color: var(--theme, #8b5cf6);
  box-shadow: 0 4px 24px rgba(0,0,0,0.40);
}
body.theme-dark-im .faq-item summary,
body.theme-neon .faq-item summary,
body.theme-glass .faq-item summary {
  color: rgba(255,255,255,0.96);
}
body.theme-dark-im .faq-item .faq-answer,
body.theme-neon .faq-item .faq-answer,
body.theme-glass .faq-item .faq-answer {
  color: rgba(255,255,255,0.86);
}
body.theme-dark-im .faq-item .faq-answer code,
body.theme-neon .faq-item .faq-answer code,
body.theme-glass .faq-item .faq-answer code {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.95);
}
body.theme-dark-im .faq-item .faq-answer strong,
body.theme-neon .faq-item .faq-answer strong,
body.theme-glass .faq-item .faq-answer strong {
  color: rgba(255,255,255,0.98);
}

@media (max-width: 768px) {
  .faq-section { margin: 48px auto; }
  .faq-section h2 { font-size: 24px; margin-bottom: 20px; }
  .faq-item summary { padding: 14px 18px; font-size: 15px; }
  .faq-item .faq-answer { padding: 0 18px 14px; font-size: 14px; }
}
/* im-faq-styles END */
