:root {
  --theme: #1d1d1f;
  --ink: #1d1d1f;
  --muted: #86868b;
  --line: #e8e8ed;
  --soft: #f5f5f7;
  --panel: #ffffff;
  --panel-soft: #f5f5f7;
  --body-bg: #ffffff;
  --card-border: #e8e8ed;
  --card-shadow: none;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --text-main: #1d1d1f;
  --text-sub: #86868b;
  --footer-bg: #f5f5f7;
  --footer-text: #6e6e73;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif;
  background: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

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: 52px;
  padding: 0 max(28px, calc((100vw - 980px) / 2));
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.brand img { width: 24px; height: 24px; }
.main-nav { display: flex; gap: 28px; font-size: 13px; color: var(--text-sub); }
.main-nav a:hover { color: var(--text-main); }

.pill-button, .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  background: var(--theme);
}

.primary-button.small { min-height: 32px; padding: 0 14px; font-size: 12px; }

.text-link {
  color: #0066cc;
  font-size: 15px;
  font-weight: 500;
}

.text-link:hover { text-decoration: underline; }

main { overflow: hidden; }

.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  text-align: center;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-desc {
  max-width: 520px;
  margin: 0 auto 32px;
  color: var(--text-sub);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions { margin-bottom: 48px; }

.hero-shot {
  display: block;
  width: min(720px, 92vw);
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px;
  background: var(--line);
}

.value-item {
  padding: 40px 32px;
  background: var(--panel);
  text-align: center;
}

.value-item h3 { font-size: 20px; margin-bottom: 8px; }
.value-item p { margin: 0; color: var(--text-sub); font-size: 15px; line-height: 1.6; }

.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  max-width: 980px;
  margin: 0 auto;
  background: var(--line);
}

.showcase-text {
  padding: 64px 40px;
  background: var(--panel);
}

.showcase-text h2 { font-size: 28px; margin-bottom: 12px; }
.showcase-text p { color: var(--text-sub); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }

.news-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 80px 24px;
}

.news-section h2 { font-size: 28px; margin-bottom: 32px; }

.news-list { display: grid; gap: 0; }

.news-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity .15s;
}

.news-row:hover { opacity: 0.6; }
.news-date { color: var(--text-sub); font-size: 13px; }
.news-title { font-size: 16px; font-weight: 500; }
.news-arrow { color: var(--text-sub); font-size: 18px; }

.page-hero {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 24px 48px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
.page-hero p { color: var(--text-sub); font-size: 17px; line-height: 1.6; margin-bottom: 24px; }
.page-grid { max-width: 980px; margin: 0 auto; padding: 0 24px 80px; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 680px) 240px;
  gap: 48px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.article-shell { min-width: 0; }
.article-shell h1 { font-size: clamp(28px, 4vw, 42px); margin: 8px 0 24px; line-height: 1.15; }
.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: 40px 0 12px; font-size: 24px; }
.article-content h3 { margin: 32px 0 10px; font-size: 20px; }
.article-content img { display: block; width: min(100%, 600px); margin: 28px auto; border-radius: var(--radius-sm); }
.article-content blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--soft);
  border-left: 3px solid var(--text-main);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-content pre {
  overflow-x: auto;
  padding: 16px;
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: var(--radius-sm);
}

.article-side { position: sticky; top: 76px; display: grid; gap: 20px; }
.side-card { padding: 24px; background: var(--soft); border-radius: var(--radius-sm); }
.side-card h2 { font-size: 14px; margin-bottom: 12px; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.5px; }
.download-panel { text-align: center; }
.download-panel strong { display: block; margin-bottom: 12px; font-size: 15px; }
.related-link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.related-link:hover { color: #0066cc; }

.empty {
  padding: 24px;
  color: var(--text-sub);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
}

.site-footer {
  display: block;
  padding: 48px max(24px, calc((100vw - 980px) / 2)) 0;
  background: var(--footer-bg);
  font-size: 13px;
  color: var(--footer-text);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: min(7vw, 60px);
  padding-bottom: 36px;
}

.footer-grid div { display: grid; gap: 8px; min-width: 100px; }
.footer-grid strong { color: var(--text-main); font-size: 15px; }
.footer-grid span { color: var(--text-main); font-weight: 700; font-size: 12px; }
.footer-grid p { margin: 0; max-width: 260px; }
.footer-grid a { color: var(--footer-text); }
.footer-grid a:hover { color: var(--text-main); }
.footer-bottom { width: 100%; padding: 20px 0; border-top: 1px solid var(--line); text-align: center; }
.footer-bottom p { margin: 0; }



.site-footer.compact {
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .site-header { height: auto; flex-wrap: wrap; padding: 12px 20px; }
  .main-nav { order: 3; width: 100%; justify-content: center; margin-top: 8px; }
  .value-strip, .showcase, .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
}


@media (max-width: 560px) {
  h1 { font-size: 34px; }
  .hero { padding-top: 60px; }
  .news-row { grid-template-columns: 1fr auto; }
    .site-footer { flex-direction: column; gap: 12px; text-align: center; }
  .footer-grid { flex-wrap: wrap; justify-content: center; gap: 24px; }

}

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 */
