:root {
  --theme: #4a154b;
  --accent: #36c5f0;
  --green: #2eb67d;
  --yellow: #ecb22e;
  --ink: #1d1c1d;
  --muted: #616061;
  --line: #e8e0f0;
  --soft: #f8f5ff;
  --panel: #ffffff;
  --body-bg: #ffffff;
  --card-border: #e8e0f0;
  --card-shadow: 0 4px 16px rgba(74, 21, 75, 0.06);
  --card-shadow-strong: 0 12px 32px rgba(74, 21, 75, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --text-main: #1d1c1d;
  --text-sub: #616061;
  --footer-bg: #1d1c1d;
  --footer-text: #b5b5b5;
}

* { 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;
  gap: 24px;
  height: 60px;
  padding: 0 max(28px, calc((100vw - 1140px) / 2));
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.brand img { width: 28px; height: 28px; }
.main-nav { display: flex; gap: 24px; font-size: 14px; color: var(--text-sub); margin-right: auto; }
.main-nav a:hover { color: var(--theme); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.link-button { font-size: 14px; color: var(--text-sub); font-weight: 500; }
.link-button:hover { color: var(--theme); }

.pill-button, .primary-button, .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
}

.pill-button, .primary-button {
  color: #fff;
  background: var(--theme);
  box-shadow: 0 4px 12px rgba(74, 21, 75, 0.2);
}

.pill-button:hover, .primary-button:hover { opacity: 0.9; }
.primary-button.small { min-height: 34px; padding: 0 14px; font-size: 13px; }

.secondary-button {
  color: var(--theme);
  background: var(--panel);
  border: 1.5px solid var(--theme);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--theme);
  background: rgba(74, 21, 75, 0.08);
}

main { overflow: hidden; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 72px 24px 64px;
}

.hero-content h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-content > p {
  color: var(--text-sub);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.trust-logos { font-size: 13px; color: var(--text-sub); }

.hero-shot {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(74, 21, 75, 0.1);
}

.section-header {
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-header h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 10px; }
.section-header p { color: var(--text-sub); font-size: 16px; line-height: 1.6; margin: 0; }

.features {
  max-width: 1140px;
  margin: 0 auto;
  padding: 64px 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-grid.compact { max-width: 900px; margin: 0 auto; }

.feature-card {
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: box-shadow .2s, transform .2s;
}

.feature-card:hover { transform: translateY(-2px); box-shadow: var(--card-shadow-strong); }
.fc-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.65; }

.social-proof {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

blockquote {
  margin: 0;
  padding: 28px;
  background: var(--soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

blockquote p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; }
blockquote cite { color: var(--text-sub); font-size: 13px; font-style: normal; font-weight: 600; }

.cta-band {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.cta-band h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 12px; }
.cta-band p { color: var(--text-sub); font-size: 16px; margin-bottom: 24px; }

.news-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}

.news-card {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: transform .18s, box-shadow .18s;
}

.news-card:hover { transform: translateY(-3px); 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(--accent); font-size: 12px; font-weight: 700; }
.news-card h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.4; }
.news-card p { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.5; }

.page-hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 24px 44px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 12px; }
.page-hero p { color: var(--text-sub); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.page-grid { max-width: 1140px; margin: 0 auto; padding: 0 24px 80px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 740px) 280px;
  gap: 40px;
  align-items: start;
  max-width: 1140px;
  margin: 0 auto;
  padding: 54px 24px 84px;
}

.article-shell { min-width: 0; }
.article-shell h1 { font-size: clamp(28px, 4vw, 42px); margin: 8px 0 12px; line-height: 1.2; }
.meta, .muted { color: var(--text-sub); font-size: 13px; }
.article-cover { display: block; width: 100%; margin: 24px 0; border-radius: var(--radius-sm); }

.article-content { font-size: 16px; line-height: 1.85; color: #333; }
.article-content h2 { margin: 36px 0 12px; font-size: 24px; }
.article-content h3 { margin: 28px 0 10px; font-size: 20px; }
.article-content img { display: block; width: min(100%, 640px); margin: 24px auto; border-radius: var(--radius-sm); }
.article-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--soft);
  border-left: 4px solid var(--theme);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content pre {
  overflow-x: auto;
  padding: 16px;
  background: #1d1c1d;
  color: #e8e0f0;
  border-radius: var(--radius-sm);
}

.article-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.side-card { padding: 22px; background: var(--soft); border: 1px solid var(--card-border); border-radius: var(--radius-sm); }
.side-card h2 { font-size: 13px; margin-bottom: 12px; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.5px; }
.download-panel { text-align: center; }
.download-panel img { width: 56px; margin-bottom: 10px; }
.download-panel strong { display: block; margin-bottom: 4px; font-size: 15px; }
.download-panel span { display: block; margin-bottom: 14px; color: var(--text-sub); font-size: 13px; }
.related-link { display: block; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.related-link:hover { color: var(--theme); }

.empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--text-sub);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.site-footer {
  color: var(--footer-text);
  background: var(--footer-bg);
  padding: 48px 24px;
}

.footer-grid {
  display: flex;
  justify-content: center;
  gap: min(7vw, 80px);
  max-width: 1140px;
  margin: 0 auto;
}

.footer-grid div { display: grid; gap: 8px; min-width: 110px; }
.footer-grid strong { color: #fff; font-size: 16px; }
.footer-grid span { color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-grid p, .footer-grid a { margin: 0; color: var(--footer-text); font-size: 13px; }
.footer-grid a:hover { color: #fff; }

.site-footer.compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px max(24px, calc((100vw - 1140px) / 2));
  font-size: 13px;
}

.site-footer.compact strong { color: #fff; margin-right: 16px; }
.site-footer.compact a { color: var(--footer-text); margin-left: 16px; }

@media (max-width: 900px) {
  .site-header { height: auto; flex-wrap: wrap; padding: 14px 20px; }
  .main-nav { order: 3; width: 100%; justify-content: center; margin: 8px 0 0; }
  .hero, .big-feature { grid-template-columns: 1fr; }
  .feature-grid, .quote-grid, .news-grid, .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .footer-grid { flex-wrap: wrap; gap: 28px; }
}


@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .hero { padding-top: 48px; }
  .hero-actions a { width: 100%; }
}

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 */
