/* ==========================================================================
   钱醒认知智库 · 统一设计系统 v3.0
   暗调极简轻奢 | 炭黑+米咖低饱和色系
   替换 core.css + style.css，全站唯一样式表
   ========================================================================== */

/* ========== 1. CSS 变量 ========== */
:root {
  /* 背景色阶 */
  --bg-primary: #1C1A18;
  --bg-secondary: #252320;
  --bg-tertiary: #2E2B27;
  --bg-quaternary: #35312C;
  --bg-input: #1A1815;
  --bg-overlay: rgba(12,11,10,0.85);

  /* 边框 */
  --border-default: #4A3F35;
  --border-hover: #6B5C4E;
  --border-focus: #C4A882;
  --border-subtle: rgba(74,63,53,0.4);
  --border-card: rgba(74,63,53,0.55);

  /* 文字 */
  --text-primary: #D4C5A9;
  --text-secondary: #8C7B65;
  --text-muted: #5C4F42;

  /* 品牌强调色 */
  --accent-gold: #C4A882;
  --accent-gold-light: #D4B896;
  --accent-gold-dark: #A08B6E;
  --accent-glow: rgba(196,168,130,0.12);

  /* 功能色 */
  --color-success: #6B9E7A;
  --color-danger: #C47B6A;
  --color-warning: #C4A06A;
  --color-info: #7A95A8;

  /* 字体 */
  --font-cn: "PingFang SC","Microsoft YaHei","Hiragino Sans GB","Noto Sans SC",sans-serif;
  --font-en: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-mono: "SF Mono","Cascadia Code","Consolas",monospace;
  --font-serif: "Noto Serif SC","STSong","SimSun",Georgia,serif;

  /* 字号 */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;

  /* 字重 */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* 行高 */
  --leading-tight: 1.25;
  --leading-snug: 1.4;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;
  --leading-loose: 1.9;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* 间距 (4px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-gold: 0 0 20px rgba(196,168,130,0.08);

  /* 过渡 */
  --transition-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-normal: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);

  /* 容器 */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;
  --navbar-height: 64px;
  --mobile-nav-height: 56px;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 1000;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
}

/* ========== 2. Reset & 基础样式 ========== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
}

body {
  font-family: var(--font-cn);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
* { scrollbar-width: thin; scrollbar-color: var(--border-default) var(--bg-primary); }

::selection { background: rgba(196,168,130,0.25); color: var(--text-primary); }

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-gold); }

img,svg,video { max-width: 100%; height: auto; display: block; }
ul,ol { list-style: none; }

input,textarea,select,button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
table { border-collapse: collapse; width: 100%; }
hr { border: none; border-top: 1px solid var(--border-default); margin: 24px 0; }

code,pre { font-family: var(--font-mono); font-size: 0.88em; }
pre { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; overflow-x: auto; white-space: pre-wrap; }
code { background: var(--bg-tertiary); padding: 2px 6px; border-radius: var(--radius-sm); color: var(--accent-gold); }

/* ========== 3. 容器与布局 ========== */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.section { padding: 80px 0; }
.section-dark { background: var(--bg-secondary); }
.section-pad { padding: 80px 0; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header::before { content: ''; display: block; width: 32px; height: 2px; background: var(--accent-gold); margin: 0 auto 20px; }
.section-label { font-size: 0.78rem; font-weight: 600; color: var(--accent-gold); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; line-height: 1.25; }
.section-desc { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; }

/* Flex/Grid 工具 */
.flex { display: flex; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.overflow-hidden { overflow: hidden; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ========== 4. 排版系统 ========== */
h1,h2,h3,h4,h5,h6 { color: var(--text-primary); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { color: var(--text-secondary); line-height: 1.75; }
p + p { margin-top: 0.75em; }

.heading-lg { font-size: 2.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: var(--text-primary); }
.heading-sm { font-size: 1.6rem; font-weight: 700; line-height: 1.3; color: var(--text-primary); }
.heading-xs { font-size: 1.2rem; font-weight: 600; line-height: 1.35; color: var(--text-primary); }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-gold); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.78rem; }
.text-lg { font-size: 1.1rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-mono { font-family: var(--font-mono); }

/* ========== 5. 按钮系统 ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent; text-decoration: none;
  white-space: nowrap; font-family: var(--font-cn); line-height: 1;
  position: relative; overflow: hidden;
}
.btn:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary { background: var(--accent-gold); color: #1C1A18; border-color: var(--accent-gold); font-weight: 600; }
.btn-primary:hover { background: var(--accent-gold-light); border-color: var(--accent-gold-light); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(196,168,130,0.25); }
.btn-primary:active { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.btn-outline:hover { background: rgba(196,168,130,0.1); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text-primary); background: var(--bg-tertiary); }

.btn-danger { background: transparent; color: var(--color-danger); border: 1px solid var(--color-danger); }
.btn-danger:hover { background: rgba(196,123,106,0.1); }

.btn-success { background: transparent; color: var(--color-success); border: 1px solid var(--color-success); }
.btn-success:hover { background: rgba(107,158,122,0.1); }

.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 10px; font-size: 0.75rem; border-radius: var(--radius-sm); }
.btn-block { display: flex; width: 100%; }

/* ========== 6. 导航栏 ========== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-navbar);
  height: var(--navbar-height);
  background: rgba(28,26,24,0.80);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled { background: rgba(28,26,24,0.95); border-bottom-color: var(--border-default); }

.navbar-inner {
  max-width: var(--container-max); margin: 0 auto; height: 100%;
  padding: 0 24px; display: flex; align-items: center; gap: 16px;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--accent-gold); color: #1C1A18;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.nav-logo span { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-md);
  color: var(--text-secondary); font-size: 0.88rem; transition: all var(--transition-fast);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); background: rgba(196,168,130,0.08); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-btn {
  padding: 8px 18px; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 600;
  transition: all var(--transition-fast); display: inline-flex; align-items: center;
}
.nav-btn-primary { background: var(--accent-gold); color: #1C1A18; }
.nav-btn-primary:hover { background: var(--accent-gold-light); transform: translateY(-1px); }
.nav-btn-outline { border: 1px solid var(--border-default); color: var(--text-secondary); }
.nav-btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; background: none; border: none; flex-shrink: 0;
}
.hamburger span { width: 22px; height: 1.5px; background: var(--text-secondary); transition: all 0.25s; display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none; position: fixed; top: var(--navbar-height); left: 0; right: 0; bottom: 0;
  background: rgba(28,26,24,0.98); backdrop-filter: blur(20px);
  z-index: 999; padding: 16px 24px; flex-direction: column; gap: 0;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link {
  padding: 14px 0; font-size: 1rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle); transition: color var(--transition-fast);
}
.mobile-menu .nav-link:hover, .mobile-menu .nav-link.active { color: var(--accent-gold); }
.mobile-menu-divider { height: 1px; background: var(--border-subtle); margin: 8px 0; }

/* ========== 7. Hero 区域 ========== */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 100px 24px 80px; position: relative; overflow: hidden;
  background: var(--bg-primary);
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(ellipse, rgba(196,168,130,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to bottom, transparent, var(--bg-primary));
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(196,168,130,0.1); border: 1px solid rgba(196,168,130,0.2);
  border-radius: var(--radius-full); padding: 6px 16px;
  font-size: 0.8rem; color: var(--accent-gold); margin-bottom: 32px; letter-spacing: 0.05em;
}

.hero-title {
  font-size: 3.2rem; font-weight: 700; color: var(--text-primary);
  line-height: 1.2; max-width: 800px; margin: 0 auto 24px; letter-spacing: -0.02em;
}
.hero-title .gold, .hero-title .highlight { color: var(--accent-gold); }

.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary); line-height: 1.8;
  max-width: 540px; margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.75rem;
}
.hero-scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--border-default), transparent);
  animation: scroll-fade 2.5s ease-in-out infinite;
}
@keyframes scroll-fade {
  0%,100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ========== 8. 卡片系统 ========== */
.card {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 24px; transition: border-color var(--transition-normal);
}
.card:hover { border-color: var(--border-hover); }
.card-sm { padding: 16px; }
.card-lg { padding: 36px; }

/* 功能卡片网格 */
.card-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card-grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.card-feature {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 32px 28px; transition: all var(--transition-normal);
  position: relative; overflow: hidden;
}
.card-feature::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent-gold); transform: scaleX(0); transition: transform 0.3s ease; transform-origin: left;
}
.card-feature:hover { border-color: var(--border-hover); background: var(--bg-tertiary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-feature:hover::before { transform: scaleX(1); }
.card-feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  background: rgba(196,168,130,0.08); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px;
  transition: border-color 0.3s, background 0.3s;
}
.card-feature:hover .card-feature-icon { border-color: var(--accent-gold); background: rgba(196,168,130,0.12); }
.card-feature-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.card-feature-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* 文章卡片 */
.article-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.card-article {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 28px; cursor: pointer;
  transition: all var(--transition-normal); display: flex; flex-direction: column;
}
.card-article:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 0.8rem; color: var(--text-muted); }
.card-article-tag {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  background: rgba(196,168,130,0.1); color: var(--accent-gold);
  font-size: 0.75rem; font-weight: 500;
}
.card-article-title { font-size: 1.15rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; margin-bottom: 12px; }
.card-article-excerpt { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; flex: 1; }
.card-article-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border-subtle); }

/* 帖子卡片 */
.post-card {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 24px; cursor: pointer;
  transition: all var(--transition-normal);
}
.post-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.post-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.post-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: var(--accent-gold); flex-shrink: 0;
}
.post-author { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.post-time { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.post-title { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; margin-bottom: 10px; }
.post-content { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.post-tags { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.post-tag {
  padding: 3px 10px; border-radius: var(--radius-full);
  background: rgba(196,168,130,0.08); border: 1px solid var(--border-subtle);
  font-size: 0.75rem; color: var(--accent-gold);
}
.post-actions { display: flex; gap: 16px; }
.post-action {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.82rem; color: var(--text-muted); transition: color var(--transition-fast); background: none; border: none; cursor: pointer;
}
.post-action:hover { color: var(--accent-gold); }

/* 社区帖子卡片（精简版） */
.post-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-muted); }
.post-card-author { color: var(--accent-gold); font-weight: 500; }
.post-card-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; margin-bottom: 8px; }
.post-card-excerpt { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 12px; }
.post-card-tag { padding: 2px 8px; border-radius: var(--radius-full); background: rgba(196,168,130,0.08); font-size: 0.72rem; color: var(--accent-gold); }
.post-card-stats { display: flex; gap: 16px; font-size: 0.8rem; color: var(--text-muted); }

/* ========== 9. 面包屑 ========== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-secondary); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb-sep { color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); }

/* ========== 10. 文章页 ========== */
.article-body { font-size: 1rem; line-height: 1.9; color: var(--text-secondary); }
.article-body p { margin-bottom: 1.5em; color: var(--text-secondary); }
.article-body h2 { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 2em 0 1em; letter-spacing: -0.01em; }
.article-body h3 { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin: 1.5em 0 0.8em; }
.article-body strong { color: var(--text-primary); font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--accent-gold); padding: 16px 24px;
  margin: 24px 0; background: var(--bg-secondary); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary); font-style: italic;
}
.article-body ul, .article-body ol { margin: 16px 0 16px 24px; color: var(--text-secondary); }
.article-body ul li { list-style: disc; margin-bottom: 8px; }
.article-body ol li { list-style: decimal; margin-bottom: 8px; }

/* 文章配图区 */
.article-image-box {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-6); margin-bottom: var(--sp-8);
  text-align: center;
}
.article-image-box p { margin: 0; }

/* 文章互动栏 */
.article-actions { display: flex; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.article-action-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-full);
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  color: var(--text-secondary); font-size: 0.9rem; transition: all var(--transition-fast); cursor: pointer;
}
.article-action-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.article-action-btn.active { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(196,168,130,0.08); }
.action-icon { font-size: 1.1rem; }
.action-count { font-weight: 600; color: var(--text-primary); }

/* 互动话题 */
.engagement-box {
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 28px;
}
.engagement-title { font-size: 0.85rem; font-weight: 600; color: var(--accent-gold); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.engagement-text { font-size: 1rem; color: var(--text-secondary); line-height: 1.8; }

/* 社区引流 */
.community-cta-inline {
  display: flex; align-items: center; gap: 20px;
  background: rgba(196,168,130,0.05); border: 1px solid rgba(196,168,130,0.15);
  border-radius: var(--radius-lg); padding: 24px;
}
.community-cta-icon { font-size: 2rem; color: var(--accent-gold); flex-shrink: 0; }
.community-cta-text { flex: 1; }
.community-cta-text strong { display: block; font-size: 1rem; color: var(--text-primary); margin-bottom: 4px; }
.community-cta-text p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

/* 评论区 */
.comment-section { margin-top: 40px; }
.comment-title { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; }
.comment-form { margin-bottom: 32px; }
.comment-input {
  width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 14px 16px; color: var(--text-primary);
  font-size: 0.92rem; outline: none; transition: border-color var(--transition-fast); font-family: inherit; resize: vertical;
}
.comment-input:focus { border-color: var(--accent-gold); }
.comment-input::placeholder { color: var(--text-muted); }
.comment-textarea { min-height: 80px; }
.comment-input-area { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 12px; }
.emoji-quick { display: flex; gap: 8px; }
.emoji-quick span { cursor: pointer; font-size: 1.3rem; transition: transform var(--transition-fast); }
.emoji-quick span:hover { transform: scale(1.2); }
.comment-submit {
  padding: 8px 24px; border-radius: var(--radius-md);
  background: var(--accent-gold); color: #1C1A18; font-weight: 600; font-size: 0.88rem;
  transition: all var(--transition-fast); white-space: nowrap;
}
.comment-submit:hover { background: var(--accent-gold-light); }

.comment-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-subtle); }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
  color: var(--accent-gold); flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-author { font-size: 0.88rem; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.comment-time { font-size: 0.75rem; color: var(--text-muted); font-weight: 400; }
.comment-text { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.comment-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: 1px solid var(--border-default); background: var(--bg-secondary);
  color: var(--text-secondary); font-size: 0.85rem; cursor: pointer; transition: all var(--transition-fast);
}
.page-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.page-btn.active { background: var(--accent-gold); color: #1C1A18; border-color: var(--accent-gold); }

/* 文章导航 */
.article-nav { display: flex; gap: 24px; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.article-nav-item { flex: 1; display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.article-nav-prev { text-align: left; }
.article-nav-next { text-align: right; align-items: flex-end; }
.article-nav-label { font-size: 0.78rem; color: var(--text-muted); }
.article-nav-title { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); transition: color var(--transition-fast); }
a.article-nav-item:hover .article-nav-title { color: var(--accent-gold); }

/* ========== 11. 社区页 ========== */
.community-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip {
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  color: var(--text-secondary); font-size: 0.85rem; cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-chip:hover { border-color: var(--border-hover); color: var(--text-primary); }
.filter-chip.active { background: rgba(196,168,130,0.12); border-color: var(--accent-gold); color: var(--accent-gold); }

.community-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-default); overflow-x: auto; }
.community-tab {
  padding: 12px 20px; border: none; background: none;
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition-fast); white-space: nowrap; position: relative; font-family: inherit;
}
.community-tab::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px;
  background: var(--accent-gold); transform: scaleX(0); transition: transform var(--transition-fast);
}
.community-tab:hover { color: var(--text-primary); }
.community-tab.active { color: var(--accent-gold); }
.community-tab.active::after { transform: scaleX(1); }

.community-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

[data-panel] { display: none; }
[data-panel].active { display: block; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination button {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-md);
  border: 1px solid var(--border-default); background: var(--bg-secondary);
  color: var(--text-secondary); font-size: 0.85rem; cursor: pointer; transition: all var(--transition-fast);
}
.pagination button:hover:not(:disabled) { border-color: var(--accent-gold); color: var(--accent-gold); }
.pagination button.active { background: var(--accent-gold); color: #1C1A18; border-color: var(--accent-gold); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }

/* 浮动发帖按钮 */
.fab-post {
  position: fixed; bottom: 32px; right: 32px; width: 56px; height: 56px;
  border-radius: 50%; background: var(--accent-gold); color: #1C1A18;
  font-size: 1.4rem; cursor: pointer; z-index: 50;
  box-shadow: 0 4px 20px rgba(196,168,130,0.3); transition: all var(--transition-normal);
  display: flex; align-items: center; justify-content: center; border: none;
}
.fab-post:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(196,168,130,0.4); }

/* 搜索/空状态 */
.search-empty { text-align: center; padding: 48px 24px; color: var(--text-muted); font-size: 0.95rem; }

/* ========== 12. 模态框 ========== */
.modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: var(--z-modal-backdrop);
  background: var(--bg-overlay); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 32px; max-width: 500px; width: 100%;
  box-shadow: var(--shadow-lg);
}

/* 发帖编辑器 */
.post-editor label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; margin-top: 16px; }
.post-editor input, .post-editor select, .post-editor textarea {
  width: 100%; background: var(--bg-input); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 12px 16px; color: var(--text-primary);
  font-size: 0.92rem; outline: none; transition: border-color var(--transition-fast); font-family: inherit;
}
.post-editor input:focus, .post-editor select:focus, .post-editor textarea:focus { border-color: var(--accent-gold); }
.post-editor textarea { min-height: 120px; resize: vertical; }

/* ========== 13. Footer ========== */
.footer, .footer-standard {
  background: var(--bg-secondary); border-top: 1px solid var(--border-default);
  padding: 64px 0 32px;
  margin-top: auto;
}
.footer-grid, .footer-standard-grid {
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-desc, .footer-standard-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; margin-top: 16px; }
.footer-col-title, .footer-standard-col h4, .footer-standard-col-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; letter-spacing: 0.03em; }
.footer-link, .footer-standard-col a, .footer-standard-link { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; transition: color var(--transition-fast); }
.footer-link:hover, .footer-standard-col a:hover, .footer-standard-link:hover { color: var(--accent-gold); }
.footer-bottom, .footer-standard-bottom {
  max-width: var(--container-max); margin: 48px auto 0; padding: 24px 24px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-standard-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-standard-brand .nav-logo-icon { width: 36px; height: 36px; font-size: 18px; }
.footer-standard-brand span { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.footer-standard-col h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 16px; }

/* ========== 14. 滚动渐显动画 ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 15. Toast 通知 ========== */
.toast-container { position: fixed; top: 80px; right: 24px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 12px 20px; font-size: 0.88rem; color: var(--text-primary);
  box-shadow: var(--shadow-md); opacity: 0; transform: translateX(40px);
  transition: all 0.3s ease-out; pointer-events: auto; max-width: 360px;
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.toast-success { border-color: var(--color-success); }
.toast.toast-error { border-color: var(--color-danger); }

/* ========== 16. 回到顶部 ========== */
.back-to-top {
  position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border-default);
  color: var(--text-secondary); font-size: 20px; cursor: pointer; z-index: 50;
  opacity: 0; transform: translateY(10px); transition: all 0.25s; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.back-to-top:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ========== 17. 软弹窗 ========== */
.soft-popup {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 24px 28px; z-index: 500;
  max-width: 420px; width: calc(100% - 48px);
  box-shadow: var(--shadow-lg); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  display: flex; flex-direction: column; gap: 12px;
}
.soft-popup.show { transform: translateX(-50%) translateY(0); }
.soft-popup-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; }
.soft-popup-title { font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }
.soft-popup-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.soft-popup-actions { display: flex; gap: 12px; margin-top: 4px; }

/* ========== 18. AI 对话加载动画 ========== */
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.typing-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-gold);
  animation: typing-bounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* ========== 19. 会员中心 ========== */
.member-menu-item.active { background: rgba(196,168,130,0.08); color: var(--accent-gold); border-left-color: var(--accent-gold); }

/* ========== 20. 信息框 ========== */
.info-box { background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; }
.info-box.accent { background: rgba(196,168,130,0.05); border-color: rgba(196,168,130,0.2); }
.info-box.success { background: rgba(107,158,122,0.06); border-color: rgba(107,158,122,0.2); }
.info-box.danger { background: rgba(196,123,106,0.06); border-color: rgba(196,123,106,0.2); }

/* ========== 20.5 移动端Toast（兼容m/index.html） ========== */
.toast.success { border-color: var(--color-success); }
.toast-icon { color: var(--color-success); margin-right: 6px; font-weight: bold; }
.toast-title { font-weight: 600; margin-bottom: 2px; }
.toast-msg { font-size: 0.78rem; color: var(--text-secondary); }
.toast-body { flex: 1; }

/* ========== 21. 移动端页面样式 ========== */
.mobile-page { background: var(--bg-primary); }
.mobile-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; position: sticky; top: 0;
  background: rgba(28,26,24,0.9); backdrop-filter: blur(20px);
  z-index: 100; border-bottom: 1px solid var(--border-subtle);
}
.mobile-header-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.mobile-header-sub { font-size: 0.72rem; color: var(--text-muted); }
.mobile-section { padding: 12px 16px; }
.mobile-section-title { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }

.mobile-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0; padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: rgba(28,26,24,0.95); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle); z-index: 200;
}
.m-tab { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--text-muted); font-size: 0.68rem; background: none; border: none; cursor: pointer; padding: 4px 8px; transition: color 0.2s; font-family: inherit; }
.m-tab.active, .m-tab:active { color: var(--accent-gold); }
.m-tab-icon { font-size: 1.2rem; }
.m-tab-label { font-size: 0.65rem; }

.m-hero { padding: 8px 20px 28px; text-align: center; }
.m-hero-title { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.m-hero-sub { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.m-entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.m-entry-card { background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 18px 14px; text-align: center; text-decoration: none; color: inherit; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.m-entry-card:active { border-color: var(--accent-gold); background: var(--bg-tertiary); transform: scale(0.97); }
.m-entry-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(196,168,130,0.08); border: 1px solid var(--border-default); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.m-entry-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.m-acct-row { display: flex; gap: 10px; align-items: center; }
.m-acct-input { flex: 1; background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px 16px; font-size: 0.95rem; color: var(--text-primary); outline: none; font-family: inherit; transition: border-color 0.2s; }
.m-acct-input:focus { border-color: var(--border-focus); }
.m-acct-input::placeholder { color: var(--text-muted); }
.m-acct-send { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-gold); border: none; color: #1C1A18; font-size: 0.88rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.2s; letter-spacing: 0.05em; }
.m-acct-send:active { background: var(--accent-gold-dark); transform: scale(0.95); }
.m-today-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.m-today-item { text-align: center; }
.m-today-val { font-size: 1.2rem; font-weight: 700; color: var(--accent-gold); font-family: var(--font-en); }
.m-today-label { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.m-pwa-banner { position: fixed; bottom: 80px; left: 16px; right: 16px; z-index: 300; background: var(--bg-secondary); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 14px 16px; display: none; align-items: center; gap: 12px; box-shadow: var(--shadow-md); }
.m-pwa-banner.show { display: flex; }
.m-pwa-text { flex: 1; }
.m-pwa-text strong { display: block; font-size: 0.9rem; color: var(--text-primary); }
.m-pwa-text span { font-size: 0.76rem; color: var(--text-muted); }
.m-pwa-close { background: none; border: none; color: var(--text-muted); font-size: 1rem; cursor: pointer; padding: 4px; flex-shrink: 0; }
.mobile-content { padding-bottom: 100px; }

/* ========== 22. 响应式适配 ========== */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .footer-standard-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:nth-child(4), .footer-standard-grid > div:nth-child(4) { grid-column: span 2; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.25rem; }
  .heading-lg { font-size: 1.8rem; }
  .heading-sm { font-size: 1.3rem; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.6rem; }

  .container, .container-narrow, .container-wide { padding: 0 16px; }

  /* 导航栏 - 移动端 */
  .nav-links { display: none; }
  .nav-btn-primary { display: none; }
  .nav-logo span { font-size: 0.95rem; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding: 80px 20px 60px; min-height: 90vh; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-scroll { display: none; }

  /* 卡片网格 */
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .community-posts-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid, .footer-standard-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom, .footer-standard-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* 文章页 */
  .article-body { font-size: 0.95rem; line-height: 1.85; }
  .article-body h2 { font-size: 1.3rem; }
  .article-actions { flex-wrap: wrap; gap: 10px; }
  .article-action-btn { padding: 8px 16px; font-size: 0.85rem; }
  .article-nav { flex-direction: column; gap: 16px; }
  .article-nav-prev, .article-nav-next { text-align: left; align-items: flex-start; }
  .community-cta-inline { flex-direction: column; text-align: center; gap: 12px; }

  /* 社区页 */
  .community-tabs { gap: 0; }
  .community-tab { padding: 10px 14px; font-size: 0.85rem; }
  .fab-post { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 1.2rem; }
  .soft-popup { bottom: 16px; width: calc(100% - 32px); }

  /* 模态框 */
  .modal-box { padding: 24px 20px; }

  /* 功能卡片 */
  .card-feature { padding: 24px 20px; }

  /* 帖子卡片内边距 */
  .post-card, .card-article { padding: 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero-subtitle { font-size: 0.92rem; }
  .section-title { font-size: 1.4rem; }
  .heading-lg { font-size: 1.5rem; }
  .card-article-title { font-size: 1.05rem; }
  .container, .container-narrow, .container-wide { padding: 0 12px; }
  .card-feature-icon { width: 40px; height: 40px; font-size: 18px; }
}

/* ========== 23. 性能优化 ========== */
img[loading="lazy"] { opacity: 0; transition: opacity 0.3s; }
img[loading="lazy"].loaded { opacity: 1; }

/* 减少动画 for prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ========== 24. 杂项补丁 ========== */
.text-secondary.text-lg { font-size: 1.1rem; }
.leading-relaxed { line-height: var(--leading-relaxed); }
.items-center.gap-3 { display: flex; align-items: center; gap: 12px; }
.items-center.gap-4 { display: flex; align-items: center; gap: 16px; }
.items-center.justify-center.gap-4 { display: flex; align-items: center; justify-content: center; gap: 16px; }
.items-center.gap-2 { display: flex; align-items: center; gap: 8px; }

/* ========== 25. v6.0 登录注册页 ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + var(--sp-8)) var(--sp-4) var(--sp-8);
}
.auth-card {
  max-width: 420px;
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
}
.auth-header { text-align: center; margin-bottom: var(--sp-6); }
.auth-logo {
  width: 56px; height: 56px; margin: 0 auto var(--sp-3);
  background: var(--accent-gold); color: var(--bg-primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.auth-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-2); }
.auth-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.auth-tabs {
  display: flex; gap: 0; margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-default);
}
.auth-tab {
  flex: 1; padding: 12px 0; text-align: center;
  background: none; border: none; color: var(--text-muted);
  font-size: 0.95rem; cursor: pointer; font-family: inherit;
  border-bottom: 2px solid transparent; transition: all .2s;
}
.auth-tab.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form .form-group { margin-bottom: var(--sp-4); }
.auth-code-row { display: flex; gap: 8px; }
.auth-code-row .form-input { flex: 1; }
.auth-code-row .btn { white-space: nowrap; }
.auth-form-actions { margin-top: var(--sp-5); }
.auth-alt { text-align: center; margin-top: var(--sp-4); }
.auth-alt span { font-size: 0.85rem; color: var(--accent-gold); cursor: pointer; }
.auth-note { text-align: center; margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border-subtle); }
.auth-note p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }

/* ========== 26. v6.0 个人中心 ========== */
.profile-card {
  display: flex; align-items: center; gap: var(--sp-4);
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: var(--sp-6);
}
.profile-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-gold); color: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
}
.profile-info { flex: 1; }
.profile-name { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.profile-meta { font-size: 0.8rem; color: var(--text-muted); }
.profile-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3);
}
.profile-section-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-4);
}
.profile-shortcuts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3);
}
.profile-shortcut-card {
  display: block; padding: var(--sp-5); text-decoration: none;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); transition: all .2s;
}
.profile-shortcut-card:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.profile-shortcut-icon { font-size: 1.8rem; margin-bottom: var(--sp-2); }
.profile-shortcut-name { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.profile-shortcut-desc { font-size: 0.78rem; color: var(--text-muted); }

/* ========== 27. v6.0 记账记录列表 ========== */
.tx-summary-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--bg-tertiary); border-radius: var(--radius-md);
  margin-bottom: var(--sp-3); font-size: 0.85rem; color: var(--text-muted);
}
.tx-summary-bar strong { color: var(--text-primary); }
.tx-list-item, .tx-record-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border-subtle);
}
.tx-list-cat, .tx-record-cat {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--accent-gold); flex-shrink: 0; font-weight: 600;
}
.tx-list-info, .tx-record-info { flex: 1; min-width: 0; }
.tx-list-desc, .tx-record-desc { font-size: 0.88rem; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-list-time, .tx-record-time { font-size: 0.75rem; color: var(--text-muted); }
.tx-list-amount, .tx-record-amount { font-size: 1rem; font-weight: 700; color: var(--accent-gold); flex-shrink: 0; }
.tx-list-ops, .tx-record-del { flex-shrink: 0; }

/* 记账明细卡片（聊天中） */
.tx-card-bubble { padding: 16px !important; min-width: 280px; }
.tx-card-header { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.tx-card-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.82rem; }
.tx-card-label { color: var(--text-muted); }
.tx-card-value { color: var(--text-secondary); text-align: right; max-width: 200px; word-break: break-all; }
.tx-card-amount { color: var(--accent-gold); font-weight: 700; font-size: 1rem !important; }
.tx-card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }

/* ========== 28. v6.0 语音播放按钮 ========== */
.voice-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid var(--border-default); background: var(--bg-tertiary);
  color: var(--text-muted); font-size: 0.78rem; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.voice-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.voice-btn.voice-playing { border-color: var(--accent-gold); color: var(--accent-gold); background: rgba(196,168,130,0.1); }

/* 帖子详情弹窗 */
.post-detail-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.post-detail-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-gold); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 600; }
.post-detail-author { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.post-detail-time { font-size: 0.78rem; color: var(--text-muted); }
.post-detail-title { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; line-height: 1.5; }
.post-detail-content { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 20px; }
.post-detail-voice-bar { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--bg-tertiary); border-radius: var(--radius-md); margin-bottom: 20px; }
.post-detail-voice-hint { font-size: 0.78rem; color: var(--text-muted); }
.post-detail-stats { display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.post-detail-action { background: none; border: none; color: var(--text-muted); font-size: 0.85rem; cursor: pointer; font-family: inherit; padding: 8px 12px; border-radius: 6px; transition: all .2s; }
.post-detail-action:hover { background: var(--bg-tertiary); color: var(--accent-gold); }

/* ========== 29. v6.0 移动端三模块 ========== */
.m-module-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.m-module-card {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; text-decoration: none;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); transition: all .2s;
}
.m-module-card:active { transform: scale(0.98); }
.m-module-icon { font-size: 2rem; flex-shrink: 0; }
.m-module-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.m-module-desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.m-post-item {
  display: flex; gap: 12px; padding: 14px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  margin-bottom: 8px; cursor: pointer;
}
.m-post-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-gold); color: var(--bg-primary); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 600; flex-shrink: 0; }
.m-post-body { flex: 1; min-width: 0; }
.m-post-author { font-size: 0.75rem; color: var(--text-muted); }
.m-post-title { font-size: 0.85rem; color: var(--text-primary); margin: 4px 0; line-height: 1.4; }
.m-post-likes { font-size: 0.72rem; color: var(--text-muted); }

/* ========== 30. v6.0 响应式 ========== */
@media (max-width: 768px) {
  .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-shortcuts { grid-template-columns: 1fr; }
  .auth-card { padding: var(--sp-5); }
  .tx-card-bubble { min-width: auto; width: 100%; }
}

/* ========== 31. v7.0 骨架屏 ========== */
.skeleton-card {
  padding: 16px; margin-bottom: 12px;
  background: var(--bg-secondary); border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.skeleton-line {
  height: 14px; border-radius: 4px; margin-bottom: 8px;
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-subtle) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-title { width: 60%; height: 20px; }
.skeleton-text { width: 100%; }
.skeleton-text.short { width: 70%; }
.skeleton-meta { width: 40%; height: 12px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
img.loaded { opacity: 1; transition: opacity .3s; }
img[data-src], img:not([src]) { opacity: 0; }
.img-error { opacity: 0.5; }

/* 加载失败兜底 */
.load-error-fallback {
  text-align: center; padding: 48px 20px;
}
.load-error-icon { font-size: 2.5rem; margin-bottom: 12px; }
.load-error-msg { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; }

/* ========== 32. v7.0 浮动AI顾问图标 ========== */
.floating-advisor-btn {
  position: fixed; bottom: 80px; right: 24px; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 14px; border-radius: 24px;
  background: var(--accent-gold); color: var(--bg-primary);
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 16px rgba(196,168,130,0.3);
  transition: all .25s; animation: floatPulse 3s ease-in-out infinite;
}
.floating-advisor-btn:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(196,168,130,0.4); }
.floating-advisor-icon { font-size: 1.3rem; line-height: 1; }
.floating-advisor-label { font-size: 0.68rem; font-weight: 600; white-space: nowrap; }
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@media (max-width: 480px) {
  .floating-advisor-btn { bottom: 72px; right: 16px; padding: 8px 12px; }
  .floating-advisor-label { display: none; }
}

/* ========== 33. v7.0 鉴权守卫弹窗 ========== */
.auth-guard-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .2s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.auth-guard-box {
  max-width: 360px; width: 100%;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 32px 24px;
  position: relative; animation: slideUp .3s;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.auth-guard-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
}
.auth-guard-icon { font-size: 2rem; text-align: center; margin-bottom: 12px; }
.auth-guard-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 6px; }
.auth-guard-desc { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-bottom: 20px; }
.auth-guard-form { margin-bottom: 16px; }
.auth-guard-input {
  width: 100%; padding: 12px 14px; margin-bottom: 10px;
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.9rem; font-family: inherit;
}
.auth-guard-input:focus { border-color: var(--accent-gold); outline: none; }
.auth-guard-actions { text-align: center; }
.btn-block { width: 100%; margin-bottom: 12px; }
.auth-guard-register { font-size: 0.82rem; color: var(--accent-gold); text-decoration: none; }
.auth-guard-hint { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }

/* ========== 34. v7.0 语音语速调节 ========== */
.voice-speed-control {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px; border-radius: 6px;
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
}
.voice-speed-btn {
  padding: 3px 8px; border: none; border-radius: 4px;
  background: none; color: var(--text-muted);
  font-size: 0.72rem; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.voice-speed-btn:hover { color: var(--text-secondary); }
.voice-speed-btn.active { background: var(--accent-gold); color: var(--bg-primary); font-weight: 600; }

/* ========== 35. v7.0 同步状态指示 ========== */
.sync-indicator {
  position: fixed; bottom: 8px; left: 8px; z-index: 70;
  padding: 4px 10px; border-radius: 12px;
  background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  font-size: 0.68rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.sync-indicator.show { opacity: 1; }
.sync-indicator.syncing .sync-dot { background: var(--accent-gold); animation: syncPulse 1s infinite; }
.sync-indicator.synced .sync-dot { background: #4CAF50; }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
@keyframes syncPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ========== 36. v8.0 验证码显示区 ========== */
.code-display {
  margin: 12px 0; padding: 16px;
  background: rgba(196,168,130,0.08); border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md); text-align: center;
}
.code-display-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; }
.code-display-value {
  font-size: 2rem; font-weight: 700; color: var(--accent-gold);
  letter-spacing: 8px; font-family: 'Courier New', monospace;
  margin: 8px 0;
}
.code-display-hint { font-size: 0.72rem; color: var(--text-muted); }

/* ========== 37. v8.0 财务健康分 ========== */
.health-score-ring {
  width: 120px; height: 120px; margin: 0 auto 16px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.health-score-ring svg { transform: rotate(-90deg); }
.health-score-ring circle { fill: none; stroke-width: 8; stroke-linecap: round; }
.health-score-ring .ring-bg { stroke: var(--border-subtle); }
.health-score-ring .ring-fg { stroke: var(--accent-gold); transition: stroke-dashoffset 1s ease; }
.health-score-num { position: absolute; font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.health-score-label { text-align: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.health-dimension {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-subtle);
}
.health-dim-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.health-dim-info { flex: 1; }
.health-dim-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.health-dim-bar { height: 6px; border-radius: 3px; background: var(--bg-tertiary); margin-top: 6px; overflow: hidden; }
.health-dim-bar-fill { height: 100%; border-radius: 3px; background: var(--accent-gold); transition: width .6s ease; }
.health-dim-score { font-size: 0.85rem; font-weight: 700; color: var(--accent-gold); flex-shrink: 0; }
.health-dim-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-secondary); }
.health-dim-fill { height: 100%; border-radius: 3px; background: var(--accent-gold); transition: width .6s ease; }

/* ========== 38. v8.0 预算管理 ========== */
.budget-card {
  padding: 16px; background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); margin-bottom: 12px;
}
.budget-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.budget-cat-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.budget-cat-amount { font-size: 0.82rem; color: var(--text-muted); }
.budget-progress { height: 8px; border-radius: 4px; background: var(--bg-tertiary); overflow: hidden; margin-bottom: 6px; }
.budget-progress-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.budget-progress-fill.normal { background: var(--accent-gold); }
.budget-progress-fill.warning { background: #E8A838; }
.budget-progress-fill.danger { background: #D84848; }
.budget-status { font-size: 0.75rem; color: var(--text-muted); }
.budget-status.over { color: #D84848; font-weight: 600; }
.budget-input-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.budget-input-row select, .budget-input-row input {
  flex: 1; padding: 8px 12px; background: var(--bg-tertiary);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.85rem; font-family: inherit;
}
.budget-input-row input:focus, .budget-input-row select:focus { border-color: var(--accent-gold); outline: none; }

/* ========== 39. v8.0 消费心理干预 ========== */
.evaluate-card {
  padding: 20px; background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); margin-bottom: 16px;
}
.evaluate-input-group { margin-bottom: 16px; }
.evaluate-label { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 6px; }
.evaluate-input {
  width: 100%; padding: 12px 14px; background: var(--bg-tertiary);
  border: 1px solid var(--border-default); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.9rem; font-family: inherit;
}
.evaluate-input:focus { border-color: var(--accent-gold); outline: none; }
.evaluate-result {
  padding: 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); margin-top: 16px;
}
.evaluate-result.buy { background: rgba(76,175,80,0.1); border-color: rgba(76,175,80,0.3); }
.evaluate-result.think { background: rgba(232,168,56,0.1); border-color: rgba(232,168,56,0.3); }
.evaluate-result.stop { background: rgba(216,72,72,0.1); border-color: rgba(216,72,72,0.3); }
.evaluate-verdict { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.evaluate-verdict.buy { color: #4CAF50; }
.evaluate-verdict.think { color: #E8A838; }
.evaluate-verdict.stop { color: #D84848; }
.evaluate-detail { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }
.trap-card {
  padding: 14px; background: var(--bg-secondary); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); margin-bottom: 10px; cursor: pointer; transition: all .2s;
}
.trap-card:hover { border-color: var(--accent-gold); }
.trap-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.trap-card-icon { font-size: 1.2rem; }
.trap-card-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.trap-card-desc { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.trap-card-detail { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; }
.trap-card.expanded .trap-card-detail { display: block; }

/* ============================================================
   v4.0 — 首页重设计 & 登录系统改造 & 移动端 & 交互增强
   ============================================================ */

/* ---------- Sticky Header ---------- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; 
  background: transparent; transition: background .3s, box-shadow .3s, padding .3s; 
  padding: 16px 24px; }
.navbar.sticky { background: rgba(28,26,24,.92); backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,.4); padding: 10px 24px; }
.navbar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 1.05rem; }
.nav-logo-icon { width: 36px; height: 36px; background: var(--accent-gold); color: #1C1A18; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; }
.nav-links { display: flex; list-style: none; gap: 32px; margin: 0; padding: 0; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: .92rem; transition: color .2s; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent-gold); border-radius: 1px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-btn { padding: 8px 18px; border-radius: 8px; font-size: .88rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.nav-btn-primary { background: var(--accent-gold); color: #1C1A18; }
.nav-btn-primary:hover { background: #B89A6E; }

/* ---------- Hamburger ---------- */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all .3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ---------- Mobile Drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; right: -300px; width: 280px; height: 100%; background: #252320; z-index: 201; padding: 80px 32px 40px; transition: right .3s; display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer.open { right: 0; }
.mobile-drawer a { display: block; padding: 14px 16px; color: var(--text-secondary); text-decoration: none; font-size: 1rem; border-radius: 8px; transition: all .2s; }
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--text-primary); background: rgba(196,168,130,.1); }
.mobile-drawer-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; color: var(--text-secondary); font-size: 1.5rem; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.mobile-drawer-close:hover { background: rgba(255,255,255,.05); }

/* 旧移动菜单隐藏 */
.mobile-menu { display: none; }

/* ---------- Hero v2 ---------- */
.hero-v2 { padding: 160px 24px 100px; text-align: center; position: relative; overflow: hidden; }
.hero-v2::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 50% 0%, rgba(196,168,130,.08) 0%, transparent 60%); pointer-events: none; }
.hero-v2-badge { display: inline-block; padding: 6px 16px; background: rgba(196,168,130,.12); border: 1px solid rgba(196,168,130,.25); border-radius: 20px; color: var(--accent-gold); font-size: .85rem; margin-bottom: 24px; }
.hero-v2 h1 { font-size: clamp(2rem,5vw,3.2rem); font-weight: 800; line-height: 1.25; color: var(--text-primary); margin: 0 0 20px; max-width: 680px; margin-left: auto; margin-right: auto; }
.hero-v2 h1 .gold { color: var(--accent-gold); }
.hero-v2 .hero-subtitle { font-size: clamp(.95rem,1.8vw,1.15rem); color: var(--text-secondary); line-height: 1.7; max-width: 540px; margin: 0 auto 36px; }
.hero-v2-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-v2-actions .btn { min-width: 180px; }

/* ---------- Three Pillars Grid ---------- */
.pillars-section { padding: 80px 24px; }
.pillars-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 1060px; margin: 0 auto; }
.pillar-card { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 36px 28px; transition: all .35s; text-decoration: none; color: var(--text-primary); display: block; position: relative; overflow: hidden; }
.pillar-card:hover { transform: translateY(-6px); border-color: var(--accent-gold); box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.pillar-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent-gold); transform: scaleX(0); transition: transform .35s; }
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-icon { font-size: 2rem; margin-bottom: 16px; }
.pillar-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.pillar-card p { font-size: .88rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.pillar-card .pillar-link { font-size: .85rem; color: var(--accent-gold); font-weight: 600; }

/* ---------- Featured Content Layout ---------- */
.featured-section { padding: 80px 24px; background: var(--bg-secondary); }
.featured-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; max-width: 1060px; margin: 0 auto; }
.featured-main { background: var(--bg-tertiary); border-radius: 16px; border: 1px solid var(--border-subtle); overflow: hidden; cursor: pointer; transition: all .3s; text-decoration: none; color: inherit; display: block; }
.featured-main:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.featured-main-img { height: 220px; background: linear-gradient(135deg, #2a2520, #1C1A18); display: flex; align-items: center; justify-content: center; font-size: 3rem; opacity: .6; }
.featured-main-body { padding: 24px; }
.featured-main-tag { display: inline-block; padding: 3px 10px; background: rgba(196,168,130,.15); color: var(--accent-gold); border-radius: 4px; font-size: .75rem; margin-bottom: 10px; }
.featured-main h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.featured-main p { font-size: .85rem; color: var(--text-secondary); line-height: 1.65; }
.featured-sidebar { display: flex; flex-direction: column; gap: 12px; }
.featured-sidebar-item { background: var(--bg-tertiary); border-radius: 12px; border: 1px solid var(--border-subtle); padding: 18px; cursor: pointer; transition: all .3s; text-decoration: none; color: inherit; display: block; }
.featured-sidebar-item:hover { border-color: var(--accent-gold); }
.featured-sidebar-item h4 { font-size: .92rem; font-weight: 600; margin-bottom: 6px; line-height: 1.4; }
.featured-sidebar-item .meta { font-size: .75rem; color: var(--text-muted); }

/* ---------- Posts Grid ---------- */
.posts-section { padding: 80px 24px; }
.posts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; max-width: 1060px; margin: 0 auto; }
.post-card-v2 { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 24px; transition: all .3s; }
.post-card-v2:hover { border-color: var(--accent-gold); transform: translateY(-2px); }
.post-card-v2-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: .85rem; color: var(--text-secondary); flex-shrink: 0; }
.post-card-v2-author { font-size: .85rem; font-weight: 600; color: var(--text-primary); }
.post-card-v2-time { font-size: .72rem; color: var(--text-muted); }
.post-card-v2 h4 { font-size: .95rem; font-weight: 600; margin-bottom: 8px; line-height: 1.45; color: var(--text-primary); }
.post-card-v2 p { font-size: .82rem; color: var(--text-secondary); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
.post-card-v2-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.post-tag-v2 { padding: 3px 10px; background: rgba(196,168,130,.1); color: var(--accent-gold); border-radius: 4px; font-size: .72rem; }

/* ---------- Clean Footer ---------- */
.footer-clean { background: #1A1A1A; padding: 48px 24px 32px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-clean-inner { max-width: 1060px; margin: 0 auto; text-align: center; }
.footer-clean-brand { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; }
.footer-clean-brand span { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.footer-clean-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.footer-clean-links { display: flex; justify-content: center; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-clean-links a { color: var(--text-muted); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-clean-links a:hover { color: var(--accent-gold); }
.footer-clean-bottom { font-size: .75rem; color: rgba(140,123,101,.5); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.05); }

/* ---------- Auth Modal (WeChat QR) ---------- */
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 300; display: none; align-items: center; justify-content: center; }
.auth-modal-overlay.open { display: flex; }
.auth-modal { background: #252320; border-radius: 20px; padding: 40px 36px; max-width: 380px; width: 90%; text-align: center; position: relative; border: 1px solid var(--border-subtle); }
.auth-modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.05); border: none; cursor: pointer; color: var(--text-secondary); font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.auth-modal-close:hover { background: rgba(255,255,255,.1); }
.auth-modal h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.auth-modal .qr-placeholder { width: 200px; height: 200px; background: #fff; border-radius: 12px; margin: 20px auto; display: flex; align-items: center; justify-content: center; color: #999; font-size: .85rem; flex-direction: column; gap: 8px; }
.auth-modal .qr-hint { font-size: .8rem; color: var(--text-muted); }

/* ---------- Auth Page v4.0 ---------- */
.auth-page { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card-v4 { background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 20px; padding: 44px 36px; max-width: 420px; width: 100%; }
.auth-header-v4 { text-align: center; margin-bottom: 32px; }
.auth-header-v4 .auth-logo { width: 56px; height: 56px; background: var(--accent-gold); color: #1C1A18; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 900; margin: 0 auto 16px; }
.auth-header-v4 h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.auth-header-v4 p { font-size: .85rem; color: var(--text-secondary); }
.auth-tabs-v4 { display: flex; border-bottom: 1px solid var(--border-subtle); margin-bottom: 28px; }
.auth-tab-v4 { flex: 1; padding: 12px 8px; background: none; border: none; color: var(--text-muted); font-size: .9rem; font-weight: 600; cursor: pointer; position: relative; transition: color .2s; }
.auth-tab-v4.active { color: var(--accent-gold); }
.auth-tab-v4.active::after { content: ''; position: absolute; bottom: -1px; left: 15%; right: 15%; height: 2px; background: var(--accent-gold); border-radius: 1px; }
.auth-panel-v4 { display: none; }
.auth-panel-v4.active { display: block; }

/* WeChat QR tab */
.btn-wechat { width: 100%; padding: 16px; background: #07C160; color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; transition: background .2s; }
.btn-wechat:hover { background: #06AD56; }
.btn-wechat .icon { font-size: 1.3rem; }
.wechat-agreement { font-size: .72rem; color: var(--text-muted); text-align: center; margin-top: 8px; }

/* Voice code hint */
.code-voice-hint { font-size: .78rem; color: var(--accent-gold); cursor: pointer; margin-top: 8px; text-align: right; }
.code-voice-hint:hover { text-decoration: underline; }

/* Form compact */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .82rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-input { width: 100%; padding: 12px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: 10px; color: var(--text-primary); font-size: .92rem; font-family: inherit; box-sizing: border-box; transition: border-color .2s; }
.form-input:focus { border-color: var(--accent-gold); outline: none; }
.form-input::placeholder { color: var(--text-muted); }
.auth-code-row { display: flex; gap: 10px; }
.auth-code-row .form-input { flex: 1; }
.auth-code-row .btn { flex-shrink: 0; white-space: nowrap; }
.auth-form-actions { margin-top: 24px; }
.auth-form-actions .btn-block { width: 100%; }
.auth-alt { text-align: center; margin-top: 16px; font-size: .82rem; color: var(--text-muted); }
.auth-alt span { color: var(--accent-gold); cursor: pointer; }
.auth-note { margin-top: 20px; text-align: center; font-size: .72rem; color: var(--text-muted); line-height: 1.6; }
.auth-note a { color: var(--accent-gold); text-decoration: none; }

/* ---------- Skeleton Screens ---------- */
.skeleton { background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
@keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-text { height: 16px; margin-bottom: 10px; }
.skeleton-text.short { width: 60%; }
.skeleton-title { height: 24px; margin-bottom: 16px; width: 75%; }
.skeleton-card { height: 200px; margin-bottom: 20px; }

/* ---------- Back to Top Enhanced ---------- */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--bg-secondary); border: 1px solid rgba(196,168,130,.3); color: var(--accent-gold); font-size: 1.3rem; cursor: pointer; z-index: 50; opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-gold); color: #1C1A18; }

/* ---------- Sections Spacing ---------- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { display: inline-block; padding: 4px 14px; background: rgba(196,168,130,.1); border-radius: 20px; color: var(--accent-gold); font-size: .8rem; font-weight: 600; margin-bottom: 12px; }
.section-title { font-size: clamp(1.4rem,2.5vw,1.8rem); font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.section-desc { font-size: .9rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto; }
.section { padding: 60px 0; }
.section-dark { background: var(--bg-tertiary); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: 10px; font-size: .92rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: all .25s; font-family: inherit; }
.btn-primary { background: var(--accent-gold); color: #1C1A18; }
.btn-primary:hover { background: #B89A6E; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--accent-gold); color: var(--accent-gold); }
.btn-outline:hover { background: rgba(196,168,130,.1); }
.btn-ghost { background: transparent; color: var(--accent-gold); padding: 6px 0; }
.btn-ghost:hover { color: #D4B88C; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-block { width: 100%; justify-content: center; }

/* Utility */
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 16px; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .82rem; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-8 { margin-top: 32px; }

/* ---------- Responsive (Mobile-first <768px) ---------- */
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero-v2 { padding: 120px 20px 80px; }
  .hero-v2 h1 { font-size: 1.6rem; }
  .hero-v2-actions { flex-direction: column; align-items: center; }
  .hero-v2-actions .btn { width: 80%; min-width: unset; }
  .pillars-grid { grid-template-columns: 1fr; }
  .featured-layout { grid-template-columns: 1fr; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-clean-links { gap: 16px; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
}

/* ---------= Toast ========== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; background: var(--bg-secondary); border: 1px solid var(--border-subtle); border-radius: 10px; color: var(--text-primary); font-size: .85rem; box-shadow: 0 8px 24px rgba(0,0,0,.4); animation: toast-in .3s ease-out; max-width: 340px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ---------= Code Display ========== */
.code-display { background: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 16px; text-align: center; margin-top: 12px; }
.code-display-label { font-size: .75rem; color: var(--text-muted); margin-bottom: 8px; }
.code-display-value { font-size: 1.6rem; font-weight: 800; color: var(--accent-gold); letter-spacing: 4px; }
.code-display-hint { font-size: .7rem; color: var(--text-muted); margin-top: 6px; }

/* ---------= Auth Guard Modal ========== */
.auth-guard-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 250; display: flex; align-items: center; justify-content: center; }
.auth-guard-box { background: #252320; border-radius: 16px; padding: 36px 28px; max-width: 380px; width: 90%; text-align: center; position: relative; border: 1px solid var(--border-subtle); }
.auth-guard-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.05); border: none; cursor: pointer; color: var(--text-secondary); }
.auth-guard-icon { font-size: 2.5rem; margin-bottom: 12px; }
.auth-guard-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.auth-guard-desc { font-size: .82rem; color: var(--text-secondary); margin-bottom: 20px; }
.auth-guard-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.auth-guard-input { padding: 10px 14px; background: var(--bg-tertiary); border: 1px solid var(--border-default); border-radius: 8px; color: var(--text-primary); font-size: .88rem; }
.auth-guard-actions { display: flex; flex-direction: column; gap: 10px; }
.auth-guard-register { font-size: .82rem; color: var(--accent-gold); text-decoration: none; }
.auth-guard-hint { font-size: .72rem; color: var(--text-muted); margin-top: 12px; }

/* ==========================================================================
   33. v8.0 Advisor 页面样式（从 style.css 迁移 + 视觉优化）
   ========================================================================== */

/* --- 顾问页布局 --- */
.advisor-page {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 64px;
}

.advisor-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.advisor-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Tab 导航 --- */
.advisor-tabs {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 24px;
  flex-shrink: 0;
}
.advisor-tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex-shrink: 0;
  padding: 0 20px;
  height: 48px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}
.tab-btn.active { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }
.tab-btn:hover { color: var(--text-primary); }

.tab-panels { flex: 1; overflow-y: auto; }
.tab-panel { display: none; padding: 24px; }
.tab-panel.active { display: block; }

/* --- 聊天界面 --- */
.chat-container {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

/* 聊天消息（匹配 advisor.js 的 chat-msg 类名） */
.chat-msg {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.chat-msg-user { flex-direction: row-reverse; }

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}
.chat-msg-bot .chat-avatar {
  background: rgba(196, 168, 130, 0.15);
  color: var(--accent-gold);
  border: 1px solid var(--border-default);
}
.chat-msg-user .chat-avatar {
  background: var(--accent-gold);
  color: #1C1A18;
}

/* 聊天气泡 */
.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.7;
  word-break: break-word;
}
.chat-msg-bot .chat-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: 0 12px 12px 12px;
}
.chat-msg-user .chat-bubble {
  background: var(--accent-gold);
  color: #1C1A18;
  border-radius: 12px 0 12px 12px;
}

/* 记账明细卡片气泡 */
.chat-bubble.tx-card-bubble {
  padding: 16px !important;
  max-width: 320px;
}

/* 打字动画 */
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 8px 0; }
.typing-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* --- 快捷按钮 --- */
.quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 0;
}
.quick-btn {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-default);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.quick-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(196, 168, 130, 0.06);
}

/* --- 聊天输入区 --- */
.chat-input-area {
  border-top: 1px solid var(--border-default);
  padding: 16px 0;
  background: var(--bg-primary);
  flex-shrink: 0;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.chat-input {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px; /* 16px 防止 iOS 自动缩放 */
  color: var(--text-primary);
  resize: none;
  min-height: 46px;
  max-height: 120px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  line-height: 1.5;
}
.chat-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.12);
}
.chat-input::placeholder {
  color: #7A6B5A; /* 比原 --text-muted 更亮，确保可见 */
  font-size: 0.937rem;
}

.chat-send {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: #1C1A18;
}
.chat-send:hover { background: var(--accent-gold-light); transform: translateY(-1px); }
.chat-send:active { transform: scale(0.95); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* --- 语音输入按钮 --- */
.voice-input-btn {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-default);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  color: var(--text-secondary);
}
.voice-input-btn:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.voice-input-btn:active { transform: scale(0.95); }
.voice-input-btn.recording {
  background: #C47B6A;
  border-color: #C47B6A;
  color: #fff;
  animation: voicePulse 1.5s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 123, 106, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(196, 123, 106, 0); }
}

/* 语音状态提示条 */
.voice-status-bar {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-primary);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

/* --- 记账明细卡片（聊天中）补充 --- */
.tx-card-bubble .tx-card-header { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); margin-bottom: 12px; }
.tx-card-bubble .tx-card-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.85rem; }
.tx-card-bubble .tx-card-label { color: var(--text-muted); }
.tx-card-bubble .tx-card-value { color: var(--text-secondary); text-align: right; max-width: 200px; word-break: break-all; }
.tx-card-bubble .tx-card-amount { color: var(--accent-gold); font-weight: 700; font-size: 1.1rem !important; }
.tx-card-bubble .tx-card-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.tx-card-btn {
  padding: 6px 14px; border-radius: 6px; font-size: 0.8rem;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.tx-card-btn-edit { border: 1px solid var(--border-default); background: var(--bg-tertiary); color: var(--text-secondary); }
.tx-card-btn-edit:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.tx-card-btn-del { border: 1px solid var(--color-danger); background: transparent; color: var(--color-danger); }
.tx-card-btn-del:hover { background: rgba(196, 123, 106, 0.1); }
.tx-card-btn-viewall { border: none; background: none; color: var(--accent-gold); width: 100%; text-align: center; padding-top: 4px; }

/* --- 记账记录列表（Tab 面板） --- */
.records-container { max-width: 720px; margin: 0 auto; }
.records-summary {
  display: flex; gap: 12px; margin-bottom: 20px;
}
.records-summary-card {
  flex: 1; padding: 16px; background: var(--bg-secondary);
  border-radius: var(--radius-md); border: 1px solid var(--border-subtle);
  text-align: center;
}
.records-summary-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.records-summary-value { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }

.records-filter {
  display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
}
.records-filter select, .records-filter input {
  background: var(--bg-tertiary); border: 1px solid var(--border-default);
  border-radius: 8px; padding: 8px 12px; color: var(--text-primary);
  font-size: 0.85rem; font-family: inherit; outline: none;
}
.records-filter select:focus, .records-filter input:focus { border-color: var(--accent-gold); }

.records-date-group { margin-bottom: 24px; }
.records-date-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--border-subtle);
}

.records-empty {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.records-empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.records-empty-text { font-size: 0.9rem; }

/* --- 编辑弹窗 --- */
.edit-modal-overlay {
  position: fixed; inset: 0; background: var(--bg-overlay);
  z-index: var(--z-modal); display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.edit-modal-box {
  background: var(--bg-secondary); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 400px;
}
.edit-modal-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 20px; }
.edit-modal-field { margin-bottom: 16px; }
.edit-modal-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; display: block; }
.edit-modal-input, .edit-modal-select {
  width: 100%; padding: 10px 14px; background: var(--bg-tertiary);
  border: 1px solid var(--border-default); border-radius: 8px;
  color: var(--text-primary); font-size: 16px; font-family: inherit; outline: none;
  box-sizing: border-box;
}
.edit-modal-input:focus, .edit-modal-select:focus {
  border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(196, 168, 130, 0.12);
}
.edit-modal-actions { display: flex; gap: 12px; margin-top: 20px; }
.edit-modal-btn { flex: 1; padding: 10px; border-radius: 8px; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.edit-modal-cancel { border: 1px solid var(--border-default); background: var(--bg-tertiary); color: var(--text-secondary); }
.edit-modal-save { border: none; background: var(--accent-gold); color: #1C1A18; font-weight: 600; }

/* --- 仪表盘网格 --- */
.dashboard-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px;
}
@media (min-width: 768px) { .dashboard-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- v8.0 移动端视觉优化 --- */
@media (max-width: 768px) {
  .advisor-page { padding-top: 56px; }
  .advisor-header { padding: 0 16px; height: 48px; }
  .advisor-tabs { padding: 0 12px; }
  .tab-btn { padding: 0 14px; height: 44px; font-size: 0.85rem; }
  .tab-panel { padding: 16px; }
  .chat-container { height: calc(100vh - 180px); }
  .chat-bubble { font-size: 0.9rem; max-width: 80%; }
  .chat-input { font-size: 16px; padding: 10px 14px; }
  .quick-btn { font-size: 0.825rem; padding: 7px 12px; }
  .records-container { max-width: 100%; }
  .records-summary { gap: 8px; }
  .records-summary-card { padding: 12px; }
  .records-summary-value { font-size: 1.1rem; }
  .tx-list-desc, .tx-record-desc { font-size: 0.85rem; }
  .tx-list-amount, .tx-record-amount { font-size: 0.95rem; }
}

@media (max-width: 374px) {
  .tab-btn { padding: 0 10px; font-size: 0.8rem; }
  .chat-bubble { font-size: 0.875rem; }
}
