:root {
  --theme: #00d4aa;
  --ink: #e6edf3;
  --muted: #8b949e;
  --line: #21262d;
  --soft: #161b22;
  --panel: #161b22;
  --panel-soft: #0d1117;
  --accent: #58a6ff;
  --body-bg: #0d1117;
  --hero-bg: radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.08) 0%, #0d1117 70%);
  --hero-glow: rgba(0, 212, 170, 0.15);
  --card-border: #21262d;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --card-shadow-strong: 0 16px 40px rgba(0, 212, 170, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --text-main: #e6edf3;
  --text-sub: #8b949e;
  --footer-bg: #010409;
  --footer-text: #8b949e;
}

* { 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(13, 17, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand, .main-nav, .hero-actions, .trust-bar { display: flex; align-items: center; }
.brand { gap: 8px; font-weight: 800; }
.brand img { width: 28px; height: 28px; }
.main-nav { gap: 26px; color: var(--text-sub); font-size: 14px; }
.main-nav a: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: 999px;
  font-weight: 700;
  font-size: 14px;
}

.pill-button, .primary-button {
  color: #0d1117;
  background: var(--theme);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

.primary-button.small { min-height: 36px; padding: 0 14px; }

.secondary-button {
  color: var(--theme);
  background: transparent;
  border: 1px solid var(--theme);
}

.secondary-button:hover { background: rgba(0, 212, 170, 0.08); }

main { overflow: hidden; }

.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  background: var(--hero-bg);
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--theme);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 800px;
  margin: 0 auto 18px;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--text-sub);
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions { justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-shot {
  display: block;
  width: min(680px, 90vw);
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.trust-bar {
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  width: min(1080px, 90vw);
  margin: 0 auto;
  padding: 48px 0;
}

.trust-item {
  min-width: 140px;
  padding: 20px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.trust-item strong { display: block; color: var(--theme); font-size: 22px; margin-bottom: 4px; }
.trust-item span { color: var(--text-sub); font-size: 13px; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(1080px, 90vw);
  margin: 0 auto;
  padding: 40px 0 64px;
}

.feature-card {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: border-color .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: var(--theme);
  box-shadow: var(--card-shadow-strong);
}

.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { margin: 0; color: var(--text-sub); font-size: 14px; line-height: 1.7; }

.cta-section {
  width: min(700px, 88vw);
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.cta-section h2 { font-size: clamp(26px, 3.5vw, 38px); margin-bottom: 14px; }
.cta-section p { color: var(--text-sub); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }

.news-section {
  width: min(1080px, 90vw);
  margin: 0 auto;
  padding: 0 0 80px;
  text-align: center;
}

.news-section h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 28px; }

.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(-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: 700; }
.news-card h3 { margin: 8px 0; font-size: 16px; line-height: 1.4; }
.news-card p { margin: 0; color: var(--text-sub); font-size: 13px; line-height: 1.6; }

.page-hero {
  width: min(800px, 88vw);
  margin: 0 auto;
  padding: 64px 0 44px;
  text-align: center;
}

.page-hero h1 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); }
.page-hero p { color: var(--text-sub); line-height: 1.7; margin-bottom: 24px; }
.page-grid { width: min(1080px, 90vw); margin: 0 auto 80px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 36px;
  align-items: start;
  width: min(1080px, 90vw);
  margin: 0 auto;
  padding: 54px 0 84px;
}

.article-shell { min-width: 0; }
.article-shell h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); }
.meta, .muted { color: var(--text-sub); font-size: 14px; }
.article-cover { display: block; width: 100%; margin: 28px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); }

.article-content { color: var(--text-main); font-size: 16px; line-height: 1.85; }
.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 18px;
  background: var(--panel);
  border-left: 3px solid var(--theme);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content pre {
  overflow-x: auto;
  padding: 16px;
  color: #e6edf3;
  background: #010409;
  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); border-radius: var(--radius-sm); }
.download-panel { text-align: center; }
.download-panel img { width: 72px; margin-bottom: 12px; }
.download-panel strong, .download-panel span { display: block; }
.download-panel span { margin: 6px 0 14px; color: var(--text-sub); font-size: 13px; }
.related-link {
  display: block;
  padding: 10px 0;
  color: var(--text-main);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
}
.related-link:hover { color: var(--theme); }

.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);
}

.site-footer {
  display: block;
  padding: 48px 24px 0;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
}

.site-footer strong, .footer-brand strong { color: var(--theme); font-size: 16px; }
.site-footer span { color: var(--text-main); font-weight: 700; font-size: 13px; }
.site-footer p, .site-footer a { margin: 0; color: var(--text-sub); font-size: 13px; }
.site-footer a:hover { color: var(--theme); }

@media (max-width: 900px) {
  .site-header { height: auto; flex-wrap: wrap; padding: 14px 24px; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .features, .news-grid, .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
}


@media (max-width: 560px) {
  .hero { padding-top: 50px; }
  h1 { font-size: 32px; }
  .hero-actions a, .pill-button { width: 100%; }
  .site-header .pill-button { width: auto; }
  .trust-bar { gap: 12px; }
  .trust-item { min-width: 120px; padding: 14px; }
}


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 */
