/* ==========================================================================
   DeepSeek 首页 1:1 复刻 — 样式
   设计令牌与组件样式提取自 https://www.deepseek.com/ 生产 CSS
   ========================================================================== */

/* ---------- 设计令牌 (Design Tokens) ---------- */
:root {
  --ds-color-text-primary: #191410;
  --ds-color-text-primary-bluish: #17100a;
  --ds-color-text-link-blue: #c24e08;
  --ds-color-text-secondary: #5a4c3b;
  --ds-color-text-description: #8a7a66;
  --ds-color-text-inverse: #fff;
  --ds-color-text-placeholder: #a89880;
  --ds-color-brand: #f37021;
  --ds-color-brand-deep: #c24e08;
  --ds-color-brand-medium-reverse: #f37021;
  --ds-color-brand-light-reverse: #e8a87c;
  --ds-color-static-white: #fff;
  --ds-color-static-black: #17100a;
  --ds-color-static-black-secondary: rgba(25, 20, 16, 0.6);
  --ds-color-bg-hero-join: #c24e08;

  --ds-btn-ghost-static-bg: transparent;
  --ds-btn-ghost-static-text: #17100a;
  --ds-btn-ghost-static-border: rgba(25, 20, 16, 0.2);
  --ds-btn-ghost-static-hover-bg: rgba(25, 20, 16, 0.05);
  --ds-btn-ghost-static-hover-border: rgba(25, 20, 16, 0.32);

  --ds-color-bg-page: #faf6ee;
  --ds-color-bg-surface-1: hsla(45, 40%, 98%, 0.4);
  --ds-color-bg-surface-2: hsla(45, 40%, 98%, 0.28);
  --ds-color-bg-surface-3: rgba(25, 20, 16, 0.03);
  --ds-color-bg-surface-4: rgba(25, 20, 16, 0.02);
  --ds-color-bg-surface-5: rgba(25, 20, 16, 0.05);
  --ds-color-bg-overlay: #fdfbf7;
  --ds-color-bg-surface-raised: rgba(253, 251, 247, 0.6);
  --ds-color-bg-code: rgba(25, 20, 16, 0.05);
  --ds-color-bg-hover: rgba(25, 20, 16, 0.04);
  --ds-color-bg-input: hsla(40, 50%, 98%, 0.35);
  --ds-color-bg-input-hover: hsla(40, 50%, 98%, 0.6);
  --ds-color-border-input: hsla(40, 30%, 96%, 0.6);
  --ds-color-border-input-focus: hsla(40, 30%, 96%, 0.8);
  --ds-color-scrollbar: rgba(25, 20, 16, 0.16);
  --ds-color-bg-dark: #17100a;
  --ds-color-border-subtle: rgba(25, 20, 16, 0.08);
  --ds-color-border-default: rgba(25, 20, 16, 0.12);
  --ds-color-border-divider: rgba(25, 20, 16, 0.1);
  --ds-color-border-hover: rgba(25, 20, 16, 0.22);
  --ds-color-border-strong: rgba(25, 20, 16, 0.24);
  --ds-color-border-secondary: rgba(25, 20, 16, 0.16);

  --ds-btn-primary-bg: #17100a;
  --ds-btn-primary-text: #fff;
  --ds-btn-primary-border: transparent;
  --ds-btn-primary-hover-bg: rgba(25, 20, 16, 0.3);
  --ds-btn-secondary-bg: rgba(253, 251, 247, 0.55);
  --ds-btn-secondary-text: #191410;
  --ds-btn-secondary-border: rgba(25, 20, 16, 0.2);
  --ds-btn-secondary-hover-bg: rgba(25, 20, 16, 0.05);
  --ds-btn-secondary-hover-border: rgba(25, 20, 16, 0.42);
  --ds-btn-ghost-bg: transparent;
  --ds-btn-ghost-text: #191410;
  --ds-btn-ghost-border: transparent;
  --ds-btn-ghost-hover-bg: rgba(25, 20, 16, 0.04);
  --ds-btn-ghost-hover-border: rgba(25, 20, 16, 0.22);
  --ds-btn-liquid-bg: rgba(253, 251, 247, 0.55);
  --ds-btn-liquid-hover-bg: rgba(253, 251, 247, 0.7);

  --ds-radius-pill: 100px;
  --ds-radius-card: 24px;
  --ds-radius-panel: 16px;
  --ds-radius-media: 12px;
  --ds-radius-input: 10px;
  --ds-radius-sm: 8px;

  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 40px;
  --ds-space-8: 56px;
  --ds-space-9: 80px;
  --ds-space-10: 120px;
  --ds-space-11: 160px;
  --ds-space-12: 200px;
  --ds-space-13: 240px;

  --ds-blur-glass: 12px;
  --ds-shadow-card: 0 0 0 1px #f1f5f9, 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 24px rgba(0, 0, 0, 0.05);

  /* 中文优先用系统字体（PingFang/微软雅黑/Android Noto），自托管 Noto Sans SC 仅作兜底：
     避免首屏为中文再下载 ~500KB 字体子集；拉丁仍用 DM Sans 保持设计一致性 */
  --ds-font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC",
    system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --ds-font-mono: "Fragment Mono", "Roboto Mono", ui-monospace, monospace;
  --ds-font-sans: var(--ds-font-body);
}

/* ---------- 基础重置 (Base / Reset) ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overscroll-behavior: none;
}

body {
  margin: 0;
  line-height: inherit;
  font-family: var(--ds-font-sans);
  color: var(--ds-color-text-primary);
  background-color: var(--ds-color-bg-page);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, hr {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

button {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
  text-transform: none;
  cursor: pointer;
}

img, svg, video, canvas, audio, embed, iframe, object {
  display: block;
  vertical-align: middle;
}

img, video {
  max-width: 100%;
  height: auto;
}

ol, ul, menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* ---------- 布局容器 ---------- */
.ds-container {
  width: min(100% - 48px, 1140px);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .ds-container { width: min(100% - 144px, 1140px); }
}

@media (min-width: 1560px) {
  .ds-container { width: min(100% - 160px, 1280px); }
}

/* ---------- 按钮 (Buttons) ---------- */
.ds-btn-primary,
.ds-btn-secondary,
.ds-btn-ghost,
.ds-btn-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  border-radius: var(--ds-radius-pill);
  box-sizing: border-box;
  font-family: var(--ds-font-sans);
  font-weight: 500;
  line-height: 120%;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

/* 作者 display:flex 会盖过 UA 的 [hidden] { display:none } */
[hidden] {
  display: none !important;
}

.ds-btn-primary {
  background: var(--ds-btn-primary-bg);
  color: var(--ds-btn-primary-text);
  border: 1px solid var(--ds-btn-primary-border);
}

.ds-btn-secondary {
  background: var(--ds-btn-secondary-bg);
  color: var(--ds-btn-secondary-text);
  border: 1px solid var(--ds-btn-secondary-border);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
  transition: border-color 0.35s ease;
}

@media (hover: hover) {
  .ds-btn-secondary:hover { border-color: var(--ds-btn-secondary-hover-border); }
}

.ds-btn-ghost {
  background: var(--ds-btn-ghost-bg);
  color: var(--ds-btn-ghost-text);
  border: 1px solid var(--ds-btn-ghost-border);
  font-weight: 400;
  transition: border-color 0.2s;
}

@media (hover: hover) {
  .ds-btn-ghost:hover { border-color: var(--ds-btn-ghost-hover-border); }
}

.ds-btn-primary::after,
.ds-btn-secondary::after,
.ds-btn-ghost::after,
.ds-btn-text::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.36s ease-out, opacity 0.1s ease;
}

.ds-btn-primary::after { background: var(--ds-btn-primary-hover-bg); }
.ds-btn-secondary::after { background: var(--ds-btn-secondary-hover-bg); }
.ds-btn-ghost::after { background: var(--ds-btn-ghost-hover-bg); }

@media (hover: hover) {
  .ds-btn-primary:hover::after,
  .ds-btn-secondary:hover::after,
  .ds-btn-ghost:hover::after,
  .ds-btn-text:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.ds-btn-m { font-size: 15px; padding: var(--ds-space-3) 20px; }
.ds-btn-m svg { width: 16px; height: 16px; }
.ds-btn-s { font-size: 14px; padding: var(--ds-space-2) var(--ds-space-3); min-height: 40px; align-items: center; }
.ds-btn-s svg { width: 14px; height: 14px; }
.ds-btn-nav { font-size: 15px; }

/* ---------- 玻璃卡片 / 下拉 ---------- */
.ds-glass-card {
  background: var(--ds-color-bg-surface-1);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-card);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

.ds-glass-dropdown {
  background: var(--ds-color-bg-overlay);
  border: 1px solid var(--ds-color-border-subtle);
  border-radius: var(--ds-radius-panel);
  box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 4px 0 rgba(0, 0, 0, 0.02),
    0 12px 32px 0 rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(var(--ds-blur-glass));
  -webkit-backdrop-filter: blur(var(--ds-blur-glass));
}

/* ---------- 头部 (Header) ---------- */
.ds-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 200;
  width: min(100% - 48px, 1140px);
  padding: max(var(--ds-space-2), env(safe-area-inset-top, 0px)) 0 0;
  overflow: visible;
}

@media (min-width: 768px) {
  .ds-header-wrapper { width: min(100% - 144px, 1140px); }
}

@media (min-width: 1560px) {
  .ds-header-wrapper { width: min(100% - 160px, 1280px); }
}

.ds-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4px 0;
  border-radius: var(--ds-radius-pill);
  border: 1px solid transparent;
  background: transparent;
  overflow: visible;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}

.ds-header-bar.is-scrolled {
  background: #fdfbf7;
  border-color: var(--ds-color-border-default);
  padding-left: var(--ds-space-4);
  padding-right: var(--ds-space-4);
}

@media (min-width: 768px) {
  .ds-header-bar.is-scrolled {
    padding-left: var(--ds-space-5);
    padding-right: var(--ds-space-5);
  }
}

.ds-logo {
  display: flex;
  align-items: center;
  gap: 0.36em;
  flex-shrink: 0;
  padding: 6px 0;
  margin: -6px 0;
  font-size: 22px;
  color: var(--ds-color-brand-medium-reverse);
}

/* 品牌标识：吉致引擎 印章 + 字标 */
@font-face {
  font-family: "Gity Wordmark";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/gity-wordmark.woff2") format("woff2");
  unicode-range: U+5409, U+5F15, U+64CE, U+81F4;
}

.ds-seal {
  width: 1.36em;
  height: 1.36em;
  flex: none;
  color: var(--ds-color-brand);
  display: grid;
  place-items: center;
  overflow: visible;
}

.ds-seal svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.ds-brand-name {
  font-family: "Gity Wordmark", "Songti SC", "STSong", "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.14em;
  color: var(--ds-color-text-primary);
  white-space: nowrap;
  font-synthesis: none;
}

.ds-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.36em;
  font-size: 18px;
  color: var(--ds-color-brand-medium-reverse);
}

.ds-footer-brand .ds-brand-name {
  letter-spacing: 0.12em;
}

.ds-header-actions {
  display: none;
  align-items: center;
  gap: var(--ds-space-5);
}

.ds-header-actions .ds-btn-secondary,
.ds-header-actions .ds-btn-ghost,
.ds-mobile-menu-footer .ds-btn-secondary,
.ds-mobile-menu-footer .ds-btn-ghost {
  font-weight: 400;
}

@media (min-width: 768px) {
  .ds-header-actions { display: flex; }
}

.ds-header-mobile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 768px) {
  .ds-header-mobile-actions { display: none; }
}

.ds-header-mobile-actions .ds-btn-secondary {
  font-weight: 400;
}

.ds-account {
  position: relative;
}

.ds-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 11em;
}

.ds-account-trigger .js-gity-account-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-account-trigger-avatar {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: rgba(253, 118, 23, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.ds-account-trigger-avatar svg {
  display: block;
}

.ds-account-trigger-avatar.has-photo svg {
  display: none;
}

/* 不用 CSS :hover 开面板：开合只认 .is-open（点击）。 */
.ds-account-panel {
  position: absolute;
  right: 0;
  top: calc(100% - 4px);
  z-index: 80;
  min-width: 248px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--ds-color-border-default);
  background: #fdfbf7;
  box-shadow: 0 10px 28px rgba(28, 22, 16, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.ds-account-panel::before {
  display: none;
}

.ds-account.is-open .ds-account-panel,
.ds-account-panel.is-ported {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ds-account-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--ds-color-border-default);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(25, 20, 16, 0.04);
}

.ds-account-identity-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
  color: inherit;
  text-decoration: none;
  border-radius: 10px;
}

.ds-account-identity-main:hover .ds-account-identity-name {
  color: var(--ds-color-brand-deep);
}

.ds-account-identity-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ds-account-avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--ds-color-brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(243, 112, 33, 0.28);
}

.ds-account-avatar.has-photo {
  color: transparent;
}

.ds-account-identity-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ds-color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-account-identity-phone {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(25, 20, 16, 0.05);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ds-color-text-description);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-account-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ds-account-link {
  display: block;
  flex: 1;
  width: auto;
  margin: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: var(--ds-color-text-primary);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.ds-account-link:hover {
  background: rgba(243, 112, 33, 0.08);
}

.ds-account-link--primary {
  background: rgba(243, 112, 33, 0.12);
  color: var(--ds-color-brand-deep);
}

.ds-account-link--primary:hover {
  background: rgba(243, 112, 33, 0.2);
}

.ds-account-logout {
  background: rgba(25, 20, 16, 0.04);
  color: var(--ds-color-text-secondary, #6b625a);
}

.ds-account-logout:hover {
  background: rgba(25, 20, 16, 0.08);
}

.ds-account--sheet {
  width: 100%;
}

.ds-account--sheet::after {
  display: none !important;
}

.ds-account--sheet .ds-account-panel {
  position: static;
  min-width: 0;
  opacity: 1;
  /* 继承菜单的 visibility，避免关闭菜单时透明 sheet 仍可见可点 */
  visibility: inherit;
  pointer-events: none;
  transform: none;
  box-shadow: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.ds-account--sheet .ds-account-panel::before {
  display: none;
}

.ds-account--sheet .ds-account-identity {
  width: 100%;
  margin: 0;
  padding: 12px 12px 12px 14px;
  border: 1px solid var(--ds-color-border-default);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(25, 20, 16, 0.04);
  gap: 12px;
}

.ds-account--sheet .ds-account-identity-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px;
}

.ds-account--sheet .ds-account-avatar {
  width: 44px;
  height: 44px;
  font-size: 16px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(243, 112, 33, 0.28);
}

.ds-account--sheet .ds-account-identity-text {
  flex: 1;
  min-width: 0;
  gap: 3px;
}

.ds-account--sheet .ds-account-identity-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.ds-account--sheet .ds-account-identity-phone {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(25, 20, 16, 0.05);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ds-color-text-description);
}

.ds-account--sheet .ds-account-identity-actions {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-left: 0;
}

.ds-account--sheet .ds-account-link {
  width: auto;
  min-width: 4.5em;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.ds-account--sheet .ds-account-link--primary {
  background: rgba(243, 112, 33, 0.12);
  color: var(--ds-color-brand-deep);
}

.ds-account--sheet .ds-account-link--primary:hover,
.ds-account--sheet .ds-account-link--primary:active {
  background: rgba(243, 112, 33, 0.2);
}

.ds-account--sheet .ds-account-logout {
  background: rgba(25, 20, 16, 0.04);
  color: var(--ds-color-text-secondary);
}

.ds-account--sheet .ds-account-logout:hover,
.ds-account--sheet .ds-account-logout:active {
  background: rgba(25, 20, 16, 0.08);
}

.ds-mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ds-color-text-primary);
}

@media (min-width: 768px) {
  .ds-mobile-menu-btn { display: none; }
}

/* 语言切换 */
.ds-locale-toggle {
  display: flex;
  align-items: center;
  height: 32px;
  padding: 3px;
  border-radius: var(--ds-radius-pill);
  border: 1px solid var(--ds-color-border-default);
}

.ds-locale-toggle-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--ds-color-text-description);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.ds-locale-toggle-item.is-active {
  background: var(--ds-color-bg-surface-raised);
  color: var(--ds-color-text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* QR 下拉 */
.ds-qr-trigger { position: relative; }

.ds-qr-menu {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s 0.4s;
  z-index: 50;
}

.ds-qr-menu::before {
  content: "";
  position: absolute;
  inset: -8px;
}

.ds-qr-menu--top { top: 100%; left: 50%; transform: translateX(-50%); }
.ds-qr-menu--bottom { bottom: 100%; left: 50%; transform: translateX(-50%); }

.ds-qr-panel {
  transform: var(--qr-anim-from, translateY(-4px));
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}

.ds-qr-trigger:hover > .ds-qr-menu {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.15s 0.4s;
}

.ds-qr-trigger:hover > .ds-qr-menu .ds-qr-panel {
  opacity: 1;
  transform: translate(0);
}

/* ---------- 移动端菜单 ---------- */
.ds-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: var(--ds-color-bg-page);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ds-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ds-mobile-menu.is-open .ds-account--sheet .ds-account-panel {
  pointer-events: auto;
}

.ds-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px var(--ds-space-5);
  border: 1px solid transparent;
}

.ds-mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: var(--ds-space-3) var(--ds-space-5);
}

.ds-mobile-menu-item {
  display: flex;
  align-items: center;
  padding: var(--ds-space-5) 0;
  border-bottom: 1px solid var(--ds-color-border-divider);
  font-family: var(--ds-font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ds-color-text-primary);
  text-decoration: none;
}

.ds-mobile-menu-item--xiaoji {
  gap: 12px;
}

.ds-xiaoji-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(243, 112, 33, 0.08);
}

.ds-mobile-menu-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ds-space-3);
  padding: var(--ds-space-3) var(--ds-space-5) var(--ds-space-4);
  border-bottom: 1px solid var(--ds-color-border-divider);
}

.ds-mobile-menu-footer .ds-account--sheet {
  width: 100%;
  margin-top: 2px;
}

/* ---------- Hero ---------- */
.ds-hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  padding-bottom: 24px;
  min-height: min(100vh, 1020px);
  min-height: min(100svh, 1020px);
  background: linear-gradient(180deg, #f6cba4 0%, rgba(253, 251, 247, 0) 100%);
}

.ds-hero-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  mask: linear-gradient(#000000fc 0%, #000000e8 8.98%, transparent 100%);
  -webkit-mask: linear-gradient(#000000fc 0%, #000000e8 8.98%, transparent 100%);
}

.ds-hero-bg-layer--grid {
  z-index: 5;
}

.ds-hero-bg-layer canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ds-hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 64px;
  gap: var(--ds-space-7);
}

@media (min-width: 768px) {
  .ds-hero-content { padding-top: 64px; }
}

/* 公告链接 */
.ds-announcement {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 560px;
  text-align: center;
  color: var(--ds-color-text-primary);
  text-decoration: none;
  font-size: 15px;
  line-height: 160%;
  font-weight: 400;
  transition: color 0.15s ease;
}

.ds-announcement .ds-announcement-text {
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.ds-announcement:hover .ds-announcement-text {
  opacity: 1;
}

.ds-announcement:hover { color: var(--ds-color-text-primary-bluish); }

.ds-announcement-arrow {
  display: inline-flex;
  align-items: center;
  height: 1lh;
  align-bottom: 0.5rem;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}

.ds-announcement:hover .ds-announcement-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* 闪光点图标 */
.ds-sparkle-image,
.ds-sparkle-picture {
  display: inline-block;
  width: 14px;
  height: 14px;
}

.ds-sparkle-image {
  vertical-align: top;
  filter: hue-rotate(160deg) saturate(0.9);
}

/* 标语 */
.ds-hero-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.ds-cursor-region { width: fit-content; }

.ds-text-slogan {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 38px;
  font-weight: 400;
  line-height: 155%;
  letter-spacing: 0.2em;
  color: var(--ds-color-text-primary-bluish);
  white-space: pre-line;
  width: 100%;
  text-align: center;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .ds-text-slogan { font-size: 42px; letter-spacing: 0.2em; }
}

@media (min-width: 1024px) {
  .ds-text-slogan { font-size: 46px; letter-spacing: 0.4em; }
}

.ds-cursor-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: block;
  width: 100vw;
  height: 100vh;
  mix-blend-mode: screen;
}

@media (hover: none), (pointer: coarse) {
  .ds-cursor-canvas { display: none; }
}

/* 输入卡片 */
.ds-hero-input-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 880px;
  gap: 40px;
}

.ds-input-wrapper {
  cursor: text;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 4px 10px 10px;
  border-width: 2px;
  border-style: solid;
  border-color: hsla(0, 0%, 100%, 0.8);
  background-color: var(--ds-color-bg-input);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ds-input-wrapper:focus-within {
  background-color: var(--ds-color-bg-input-hover);
  border-color: var(--ds-color-border-input-focus);
}

@media (hover: hover) {
  .ds-input-wrapper:hover {
    background-color: var(--ds-color-bg-input-hover);
    border-color: var(--ds-color-border-input-focus);
  }
}

.hero-input {
  width: 100%;
  min-height: 80px;
  max-height: 300px;
  background: transparent;
  padding: var(--ds-space-3);
  font-size: 16px;
  font-family: var(--ds-font-sans);
  font-weight: 400;
  line-height: 1.4em;
  outline: none;
  border: none;
  color: var(--ds-color-text-primary);
  overflow-y: auto;
  resize: none;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.2s ease;
}

.hero-input:focus { scrollbar-color: var(--ds-color-scrollbar) transparent; }

@media (hover: hover) {
  .hero-input:hover { scrollbar-color: var(--ds-color-scrollbar) transparent; }
}

.hero-input::placeholder { color: rgba(90, 76, 59, 0.72); opacity: 1; }

.hero-input::-webkit-scrollbar { width: 6px; }
.hero-input::-webkit-scrollbar-track { background: transparent; }
.hero-input::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 100px;
  transition: background-color 0.2s ease;
}
.hero-input:focus::-webkit-scrollbar-thumb { background-color: var(--ds-color-scrollbar); }
@media (hover: hover) {
  .hero-input:hover::-webkit-scrollbar-thumb { background-color: var(--ds-color-scrollbar); }
}

.ds-input-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ds-input-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-hero-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  cursor: pointer;
  outline: none;
  border: 1px solid var(--ds-color-border-default);
  background: transparent;
  color: var(--ds-color-text-primary);
  transition-property: border, background, color;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

.ds-hero-toggle-btn svg { width: 14px; height: 14px; }

@media (hover: hover) {
  .ds-hero-toggle-btn:hover { background-color: var(--ds-color-bg-hover); }
  .ds-hero-toggle-btn--selected:hover { background-color: rgba(243, 112, 33, 0.18); }
}

.ds-hero-toggle-btn--selected {
  background-color: rgba(243, 112, 33, 0.16);
  color: #a84006;
  border-color: rgba(243, 112, 33, 0.32);
}

.ds-hero-toggle-label { display: inline; }

.ds-hero-send-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  overflow: hidden;
  border: none;
  background: #f37021;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ds-hero-send-btn svg { width: 16px; height: 16px; }

.ds-hero-send-btn:hover { background: #e05a0c; }

/* CTA 按钮组 */
.ds-hero-ctas {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  gap: 16px;
}

@media (min-width: 440px) {
  .ds-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    width: auto;
    max-width: 920px;
  }
}

.ds-hero-cta-card {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border-radius: var(--ds-radius-pill);
  padding: 8px 16px 8px 14px;
  text-align: left;
  border-color: rgba(25, 20, 16, 0.1);
}

@media (hover: hover) {
  .ds-hero-cta-card:hover {
    border-color: rgba(25, 20, 16, 0.22);
    background: #f6eed6; /* 米黄 hover 底 */
  }
  .ds-hero-cta-card:hover::after {
    background: transparent; /* 去掉默认深色圆点扩散，保持纯米黄 */
  }
}

.ds-hero-cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--ds-color-brand);
}

.ds-hero-cta-arrow {
  margin-left: auto;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--ds-color-text-placeholder);
  display: none;
}

.ds-hero-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.ds-hero-cta-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ds-color-text-primary);
}

.ds-hero-cta-sub {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--ds-color-text-secondary);
}

/* ---------- 页脚 (Footer) ---------- */
#footer {
  width: 100%;
  overflow: visible;
  padding-top: var(--ds-space-9);
  padding-bottom: 48px;
}

.ds-footer {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-9);
}

.ds-footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-9);
  width: 100%;
}

@media (min-width: 768px) {
  .ds-footer-top {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--ds-space-10);
  }
}

.ds-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-5);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .ds-footer-brand { max-width: 240px; }
}

.ds-footer-logo-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
}

.ds-icp-links {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-1);
}

.ds-icp-links a,
.ds-icp-links span {
  font-size: 14px;
  line-height: 150%;
  font-weight: 400;
  color: var(--ds-color-text-description);
  text-decoration: none;
}

.ds-social {
  display: flex;
  align-items: center;
  gap: var(--ds-space-3);
  margin-left: -8px;
}

.ds-social .ds-qr-menu {
  z-index: 80;
}

.ds-social a,
.ds-social .ds-social-static {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-color-text-secondary);
  transition: color 0.15s ease;
}

.ds-social a:hover { color: var(--ds-color-text-primary); }
.ds-social svg { width: 16px; height: 16px; }

.ds-social .ds-social-static { cursor: default; }

.ds-footer-links {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: var(--ds-space-5);
  row-gap: var(--ds-space-8);
}

.ds-footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-6);
  min-width: 120px;
}

.ds-footer-col-title {
  font-size: 14px;
  line-height: 150%;
  font-weight: 500;
  color: var(--ds-color-text-primary);
  margin: 0;
}

.ds-footer-col-body {
  display: flex;
  flex-direction: column;
  gap: var(--ds-space-5);
}

.ds-footer-col-body a {
  font-size: 14px;
  line-height: 150%;
  font-weight: 400;
  color: var(--ds-color-text-description);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ds-footer-col-body a:hover { color: var(--ds-color-text-primary); }

.ds-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-top: var(--ds-space-6);
  border-top: 1px solid var(--ds-color-border-subtle);
}

@media (min-width: 768px) {
  .ds-footer-bottom {
    flex-direction: row;
    align-items: center;
  }
}

.ds-footer-copyright {
  font-size: 14px;
  line-height: 150%;
  color: var(--ds-color-text-description);
}

.ds-footer-bottom .ds-locale-toggle { display: flex; }

@media (min-width: 768px) {
  .ds-footer-bottom .ds-locale-toggle { display: none; }
}

/* ---------- 通用工具 ---------- */
.text-ds-primary { color: var(--ds-color-text-primary); }
.text-ds-secondary { color: var(--ds-color-text-secondary); }
.text-ds-description { color: var(--ds-color-text-description); }
.text-ds-primary-bluish { color: var(--ds-color-text-primary-bluish); }
.no-underline { text-decoration: none; }

.ds-text-caption { font-size: 14px; font-weight: 400; line-height: 150%; }
.ds-text-xs { font-size: 13px; font-weight: 400; line-height: 150%; }

/* ---------- 入场动画 (Scroll Reveal) ---------- */
.ds-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.ds-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 无障碍 / 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ds-reveal { opacity: 1; transform: none; }
  .ds-flow-field-canvas { display: none !important; }
}

/* ---------- 登录弹层（对齐 Kimi ~667×392 居中卡） ---------- */
.ds-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 0;
}
.ds-login-overlay.is-open {
  display: flex !important;
}
.ds-login-dialog {
  width: min(680px, calc(100vw - 32px));
  height: min(420px, calc(100vh - 48px));
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
}
.ds-login-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}
@media (max-width: 720px) {
  .ds-login-overlay {
    padding: 16px;
  }
}

/* ---------- 窄屏首页节奏 ---------- */
@media (max-width: 767px) {
  .ds-hero-content {
    padding-top: 56px;
    padding-left: 16px;
    padding-right: 16px;
    gap: var(--ds-space-5);
  }

  .ds-hero-top {
    gap: 16px;
  }

  .ds-text-slogan {
    font-size: 28px;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .ds-announcement {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.45;
    align-items: flex-start;
  }

  .ds-announcement .ds-announcement-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-align: left;
  }

  .ds-hero-input-area {
    gap: 20px;
  }

  .hero-input {
    min-height: 52px;
    max-height: 160px;
    padding: 10px 8px;
  }

  /* 模式开关与发送按钮必须同排：footer 不换行，开关组只在内部压缩，
     发送按钮固定右侧；窄屏放不下时按下面断点隐藏装饰图标（见 max-width 350），
     绝不把发送按钮挤到下一行 */
  .ds-input-footer {
    flex-wrap: nowrap;
    gap: 6px;
    align-items: center;
  }

  .ds-input-toggles {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 4px;
  }

  .ds-hero-toggle-btn {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 6px;
    font-size: 12px;
  }

  .ds-hero-send-btn {
    width: 44px;
    height: 44px;
  }

  .ds-hero-ctas {
    gap: 10px;
  }

  .ds-hero-cta-card {
    min-height: 48px;
    padding: 10px 14px 10px 12px;
  }

  .ds-hero-cta-sub {
    font-size: 11px;
  }

  .ds-hero-cta-arrow {
    display: block;
  }
}

/* 窄屏（≤350，覆盖 320 宽安卓与 iPhone SE）：开关只留文字，
   三个标签 + 发送按钮可完整排在一行；文字仍可读，触控高度不变 */
@media (max-width: 350px) {
  .ds-hero-toggle-btn {
    padding: 0 8px;
  }

  .ds-hero-toggle-btn svg {
    display: none;
  }
}

/* 超窄屏（折叠屏外屏等）：开关横向滚动兜底，保证发送按钮仍在同排右侧 */
@media (max-width: 300px) {
  .ds-input-toggles {
    gap: 2px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    margin: -4px 0;
  }

  .ds-input-toggles::-webkit-scrollbar {
    display: none;
  }

  .ds-hero-toggle-btn {
    padding: 0 6px;
  }
}

@media (max-width: 390px) {
  .ds-text-slogan {
    font-size: 26px;
    letter-spacing: 0.06em;
  }

  .ds-brand-name {
    letter-spacing: 0.1em;
  }
}


/* ---------- 可访问性 ---------- */
:where(a, button, input, select, textarea, summary, [role='button'], [tabindex]:not([tabindex='-1'])):focus-visible {
  outline: 2px solid #b5500a;
  outline-offset: 2px;
}

/* 表单控件：鼠标点击不显示圆环（输入框恒匹配 :focus-visible），
   聚焦指示由 .ds-input-wrapper:focus-within 的边框/底色变化承担 */
:where(input, textarea, select):focus-visible {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── AI 管家回答卡片（引擎首页 · 与引擎暖色调统一）──────────── */
.ai-answer {
  margin: 14px auto 0;
  max-width: 820px;
  border-radius: 20px;
  background: #fdfbf7;
  border: 1px solid rgba(243, 112, 33, 0.16);
  box-shadow: 0 20px 48px -22px rgba(122, 62, 12, 0.28), 0 2px 8px -2px rgba(122, 62, 12, 0.08);
  overflow: hidden;
  animation: ai-answer-in 0.22s ease both;
}
@keyframes ai-answer-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-answer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: linear-gradient(100deg, #fff2e6 0%, #ffe6d2 55%, #ffdcc2 100%);
  border-bottom: 1px solid rgba(243, 112, 33, 0.14);
  color: #a84006;
}
.ai-answer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #c24e08;
  letter-spacing: 0.02em;
}
.ai-answer-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f37021;
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.18);
}
.ai-answer-hint { font-size: 11px; color: #a8927a; }
.ai-answer-close {
  margin-left: auto;
  border: 1px solid rgba(243, 112, 33, 0.2);
  background: rgba(255, 255, 255, 0.7);
  color: #c24e08;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background 0.15s ease;
}
.ai-answer-close:hover { background: #fff; }

.ai-answer-body { padding: 15px 17px 14px; }
.ai-answer-text {
  font-size: 14.5px;
  line-height: 1.8;
  color: #191410;
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-answer-links { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.ai-answer-links a {
  display: block;
  padding: 9px 12px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid rgba(243, 112, 33, 0.18);
  color: #a84006;
  font-size: 13px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ai-answer-links a:hover { background: #fff5ec; border-color: rgba(243, 112, 33, 0.4); }

.ai-answer-cta {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px dashed rgba(243, 112, 33, 0.2);
  display: flex;
  gap: 16px;
  font-size: 12.5px;
}
.ai-answer-cta a { color: #c24e08; text-decoration: none; font-weight: 600; }
.ai-answer-cta a:hover { text-decoration: underline; }
.ai-answer-cta .ai-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f37021;
  color: #fff !important;
  box-shadow: 0 6px 16px -8px rgba(243, 112, 33, 0.7);
}
.ai-answer-cta .ai-cta-primary:hover { background: #e05a0c; text-decoration: none; }

.ai-answer-systems {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.ai-systems-label { color: #a8927a; }
.ai-answer-systems a {
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff3e9;
  border: 1px solid rgba(243, 112, 33, 0.2);
  color: #a84006;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ai-answer-systems a:hover { background: #ffe8d8; border-color: rgba(243, 112, 33, 0.45); }

.ai-answer-loading { display: flex; gap: 5px; padding: 4px 0 6px; }
.ai-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f37021;
  opacity: 0.4;
  animation: ai-dot 1s infinite ease-in-out;
}
.ai-dot:nth-child(2) { animation-delay: 0.15s; }
.ai-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.ai-answer-error { color: #b42318; }

.ai-answer-report {
  margin-top: 8px;
  font-size: 11.5px;
  color: #a8927a;
}
.ai-answer-report button {
  border: 0;
  background: none;
  padding: 0;
  color: #a8927a;
  cursor: pointer;
  text-decoration: underline;
  font-size: 11.5px;
}
.ai-answer-report button:hover { color: #c24e08; }
