/* ============================================================
   拾历 Shili v7.0 — 新中式水墨设计系统（完整版）
   参考：每日故宫 / Slow Ink Clock / 岁时寻味 / 365传统色
   设计原则：宣纸为底 · 留白主动 · 书法点睛 · 朱砂印章
   普通模式：水墨风（书法字 + 宣纸 + 朱砂印章 + 非对称留白）
   适老模式：朱红老日历风（高饱和 + 米黄宣纸 + 大字号）
   v7.0 新增：统一 page-header / 通用印章 / 错落入场 / 兰草装饰
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700;900&family=ZCOOL+XiaoWei&display=swap');

:root {
  /* === 主色 — 朱砂（仅印章/CTA）=== */
  --color-primary: #B54A3A;
  --color-primary-light: #C9665A;
  --color-primary-dark: #8C2A20;
  --color-primary-bg: #F5E8E4;
  --color-seal: #A52924;          /* 印章专用深朱砂 */

  /* === 水墨主色 === */
  --color-ink: #1A1A1A;
  --color-ink-blue: #1B2B3A;       /* 黛青（主标题）*/
  --color-ink-gray: #4A4A4A;
  --color-ink-light: #9CA3AF;
  --color-ink-faded: #5C544A;

  /* === 辅色 === */
  --color-secondary: #1B2B3A;
  --color-accent: #8B6F47;
  --color-success: #3D5C48;       /* 松烟墨绿（宜事色）*/
  --color-success-bg: #EDF2EE;
  --color-warning: #8B6F47;
  --color-danger: #B54A3A;

  /* === 底色 — 宣纸米白 === */
  --color-bg-page: #F7F3EC;
  --color-bg-alt: #EDE6D6;
  --color-bg-surface: #FDFAF3;
  --color-bg-card: #FAF6EC;
  --color-bg-subtle: #F0E9DC;
  --color-bg-translucent: rgba(253, 250, 243, 0.92);

  /* === 文字 === */
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #3D3D3D;
  --color-text-tertiary: #5C544A;
  --color-text-inverse: #FDFAF3;

  /* === 边框 === */
  --color-border: #DDD4C0;
  --color-border-strong: #B8A880;
  --color-border-dashed: #C5C0B8;

  /* === 间距 === */
  --space-xs: 6px;
  --space-sm: 10px;
  --space-md: 14px;
  --space-lg: 20px;
  --space-xl: 28px;
  --space-2xl: 36px;
  --space-3xl: 48px;

  /* === 圆角 === */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* === 阴影 === */
  --shadow-sm: 0 1px 6px rgba(60, 50, 30, 0.04);
  --shadow-md: 0 2px 10px rgba(60, 50, 30, 0.06);
  --shadow-lg: 0 6px 24px rgba(60, 50, 30, 0.10);
  --shadow-cta: 0 4px 14px rgba(165, 41, 36, 0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
  --shadow-float: 0 6px 20px rgba(60, 50, 30, 0.18), 0 0 0 1px rgba(165, 41, 36, 0.10);

  /* === 字体 ===
     --font-brush: 书法/装饰用（标题、宜忌大字、节气名），Noto Serif SC 700+ 为主，
                  回退到系统宋体，保证清晰可读
     --font-serif: 正文宋体（段落、详情），Noto Serif SC 400-600
     --font-sans:  UI 无衬线（按钮、导航、标签），优先系统字体
  */
  --font-brush: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'SimSun', serif;
  --font-sans: -apple-system, 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-kai: 'KaiTi', 'STKaiti', 'Noto Serif SC', serif;

  /* === 字号 === */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 32px;
  --text-3xl: 44px;
  --text-4xl: 56px;

  /* === 动效 === */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-normal: 300ms;
  --dur-slow: 500ms;
}

/* === 全局 === */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg-page);
  color: var(--color-text-primary);
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.02em;
}

/* 宣纸纹理 + 暖色渐变 — 多层叠加营造手工宣纸质感 */
body {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(120, 100, 60, 0.05) 1px, transparent 0),
    radial-gradient(circle at 12px 8px, rgba(160, 130, 80, 0.025) 0.5px, transparent 0),
    linear-gradient(180deg, #F9F5ED 0%, #F3ECDD 50%, #EDE4D0 100%);
  background-size: 22px 22px, 18px 18px, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 左侧水墨边框装饰（贯穿全高）*/
body::before {
  content: '';
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(60, 50, 40, 0.18) 8%,
      rgba(80, 70, 50, 0.12) 30%,
      rgba(60, 50, 40, 0.20) 55%,
      rgba(50, 40, 30, 0.10) 80%,
      transparent 100%);
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: multiply;
}

/* 底部远山背景装饰 — 精致水墨远山 v8 */
body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 42vh;
  background-image: url('deco-ink-mountains-v8.jpg');
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.15) 80%, transparent 100%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.95) 30%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.15) 80%, transparent 100%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
}

/* 右侧兰草装饰元素 — 在宽屏页面内插入 <div class="deco-orchid"></div> */
.deco-orchid {
  position: fixed;
  right: 0;
  bottom: 10vh;
  width: 140px;
  height: 60vh;
  background-image: url('deco-ink-orchid-v8.jpg');
  background-size: contain;
  background-position: bottom right;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 85%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  display: none;
}
@media (min-width: 768px) {
  .deco-orchid { display: block; }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === 容器 === */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  padding-bottom: 96px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  animation: pageIn 0.5s var(--ease-out);
}

@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 卡片 === */
.card {
  background: var(--color-bg-translucent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-flat {
  background: var(--color-bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
}

/* === 标题 === */
.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-ink-blue);
  margin: var(--space-2xl) 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: 0.12em;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, var(--color-ink-blue), var(--color-ink-light));
  border-radius: 1px;
}

/* === 水墨分隔线（横向笔触）=== */
.ink-divider {
  height: 3px;
  background:
    radial-gradient(ellipse 30% 100% at 15% 50%, rgba(26, 26, 26, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 60% 100% at 50% 50%, rgba(26, 26, 26, 0.35) 0%, transparent 80%),
    radial-gradient(ellipse 40% 100% at 85% 50%, rgba(26, 26, 26, 0.20) 0%, transparent 70%);
  margin: var(--space-lg) 0;
  border: none;
  border-radius: 1px;
  opacity: 0.7;
}

.ink-divider-fade {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-border-dashed) 20%, var(--color-border-dashed) 80%, transparent 100%);
  margin: var(--space-md) 0;
  border: none;
}

/* === 印章 === */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-seal);
  color: #FDFAF3;
  font-family: var(--font-serif);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 3px;
  transform: rotate(-2deg);
  font-size: var(--text-xs);
  letter-spacing: 2px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.18);
  opacity: 0.95;
}

/* 右上角朱砂印章 — 真实印泥图片素材 */
.seal-corner {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-md);
  width: 48px;
  height: 48px;
  background-image: url('deco-seal-today.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 1px 2px 4px rgba(165, 41, 36, 0.25);
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  text-indent: -9999px;
  overflow: hidden;
}

/* date-header 内的印章用 flex 布局，避免与标题重叠 */
.date-header .seal-corner {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
  margin-top: 4px;
}

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 600;
  min-height: 48px;
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: 0.06em;
  font-family: var(--font-serif);
}

.btn-primary {
  background: var(--color-seal);
  color: #FDFAF3;
  box-shadow: var(--shadow-cta);
}
.btn-primary:active { background: var(--color-primary-dark); transform: scale(0.97); }

.btn-secondary {
  background: transparent;
  color: var(--color-ink-blue);
  border: 1.5px solid var(--color-ink-blue);
}
.btn-secondary:active { opacity: 0.7; }

.btn-ghost { color: var(--color-text-secondary); }

/* === 标签 === */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
}
.tag-yi { background: var(--color-success-bg); color: var(--color-success); }
.tag-ji { background: var(--color-primary-bg); color: var(--color-primary); }
.tag-level-good { background: var(--color-success-bg); color: var(--color-success); }
.tag-level-bad { background: var(--color-primary-bg); color: var(--color-primary); }
.tag-level-mid { background: var(--color-bg-alt); color: var(--color-accent); }

/* === 顶部日期区 — 左对齐书法标题 + 右上印章 + 水墨分隔线 === */
.date-header {
  text-align: left;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.date-header-main {
  flex: 1;
  min-width: 0;
}

.date-header .solar {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  font-weight: 400;
  letter-spacing: 0.12em;
  margin: 0 0 var(--space-xs);
}

.date-header .lunar {
  font-family: var(--font-brush);
  font-size: 52px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 var(--space-sm);
  letter-spacing: 4px;
  line-height: 1.2;
}

.date-header .ganzhi {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  color: var(--color-ink-faded);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 0 var(--space-md);
}

/* 主标题下方水墨笔触分隔线 — 真实笔触图片 */
.date-header-main::after {
  content: '';
  display: block;
  height: 18px;
  width: 72%;
  background-image: url('deco-brush-stroke-horizontal.jpg');
  background-size: 100% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.95) 55%, transparent 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.95) 55%, transparent 100%);
  opacity: 0.9;
  margin-top: var(--space-md);
}

/* === 宜忌 — 无卡片，宣纸直接文字 + 墨点 === */
.yiji-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  padding: var(--space-md) 0;
  margin: var(--space-md) 0;
}

/* 中间虚线分隔 */
.yiji-grid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-border-dashed) 0,
    var(--color-border-dashed) 3px,
    transparent 3px,
    transparent 7px
  );
}

.yiji-card {
  padding: var(--space-md) var(--space-lg);
  background: transparent;
  position: relative;
}

.yiji-card.yi { padding-left: 0; }
.yiji-card.ji { padding-right: 0; }

.yiji-title {
  font-family: var(--font-brush);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1;
  margin-bottom: var(--space-md);
  letter-spacing: 6px;
  display: inline-block;
}
.yiji-card.yi .yiji-title { color: var(--color-success); }
.yiji-card.ji .yiji-title { color: var(--color-seal); }

.yiji-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-primary);
  font-weight: 500;
  line-height: 2;
  font-family: var(--font-serif);
}

/* 宜忌可点击标签 */
.yiji-tag {
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: var(--color-bg-subtle);
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
}
.yiji-tag:hover { background: var(--color-bg-alt); }
.yiji-tag:active { transform: scale(0.94); }
.yiji-card.yi .yiji-tag:hover { border-color: var(--color-success); color: var(--color-success); }
.yiji-card.ji .yiji-tag:hover { border-color: var(--color-seal); color: var(--color-seal); }

/* 墨点装饰（宜忌项前）*/
.yiji-items::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  left: var(--space-lg);
  top: calc(var(--space-md) + 44px);
}
.yiji-card.yi .yiji-items::before { background: var(--color-ink); }
.yiji-card.ji .yiji-items::before { background: var(--color-seal); }

/* === 时辰网格 === */
.shichen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.shichen-cell {
  border-radius: var(--radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: var(--text-xs);
  background: var(--color-bg-translucent);
  border: 1px solid var(--color-border);
  transition: all var(--dur-fast);
}
.shichen-cell .zhi {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-ink-blue);
}
.shichen-cell .time { color: var(--color-text-tertiary); font-size: 10px; }
.shichen-cell.good { background: var(--color-success-bg); border-color: transparent; }
.shichen-cell.good .result { color: var(--color-success); }
.shichen-cell.bad { background: var(--color-primary-bg); border-color: transparent; }
.shichen-cell.bad .result { color: var(--color-primary); }
.shichen-cell.mid .result { color: var(--color-accent); }
.shichen-cell.current {
  box-shadow: 0 0 0 2px var(--color-ink-blue);
}

/* === 底部导航 === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 0.5px solid var(--color-border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 62px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--color-text-tertiary);
  font-size: 10px;
  font-weight: 500;
  transition: color var(--dur-fast);
  min-height: 48px;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}
.nav-item.active { color: var(--color-ink-blue); font-weight: 700; }
.nav-item.active::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--color-ink-blue);
  border-radius: 1px;
  margin-top: 2px;
}
.nav-item svg { width: 22px; height: 22px; }

/* === 功能网格 — 无背景 + 线描图标 + 圆点装饰 === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg) 4px;
  margin-bottom: var(--space-xl);
  position: relative;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--space-xs) 4px;
  background: transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.feature-card:active {
  transform: scale(0.94);
}
.feature-card:hover {
  background: rgba(165, 41, 36, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--color-ink-blue) !important;
  border: none;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke-width: 1.2;
}
.feature-name {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  font-weight: 500;
  text-align: center;
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
}

/* === 运势雷达 === */
.radar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) 0;
}

.fortune-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.score-item { text-align: center; }
.score-item .label {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  font-family: var(--font-serif);
}
.score-item .value {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink-blue);
}
.score-item .bar {
  height: 3px;
  background: var(--color-bg-alt);
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
}
.score-item .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-ink-blue), var(--color-ink-light));
  border-radius: 2px;
  transition: width 0.6s var(--ease);
}

/* === 签文 === */
.sign-poem {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 2;
  text-align: center;
  color: var(--color-text-primary);
  padding: var(--space-xl) 0;
  letter-spacing: 4px;
}

.sign-detail {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* === 签筒动画 === */
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(8deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(5deg); }
}

@keyframes stick-fly {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  50% { transform: translateY(-60px) rotate(15deg); opacity: 1; }
  100% { transform: translateY(-40px) rotate(0); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.shake { animation: shake 0.8s ease-in-out; }
.fade-in-up { animation: fadeInUp 0.5s var(--ease) both; }

/* === AI 卡片 === */
.ai-card {
  background: var(--color-bg-translucent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ai-card .ai-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-ink-blue);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.1em;
  font-family: var(--font-serif);
}
.ai-card .ai-label::before {
  content: '◆';
  color: var(--color-seal);
  margin-right: 2px;
  font-size: 8px;
}
.ai-card .ai-content {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.85;
  font-family: var(--font-serif);
}
.ai-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-tertiary);
  font-size: var(--text-sm);
}
.ai-loading .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ink-blue);
  animation: pulse-soft 1.2s ease-in-out infinite;
}
.ai-loading .dot:nth-child(2) { animation-delay: 0.2s; }
.ai-loading .dot:nth-child(3) { animation-delay: 0.4s; }

/* === 诗词 === */
.poem-block {
  text-align: center;
  padding: var(--space-xl) 0;
}
.poem-block .poem-text {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  line-height: 2;
  letter-spacing: 3px;
}
.poem-block .poem-meta {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: var(--space-sm);
  font-family: var(--font-serif);
}

/* === 解梦 === */
.dream-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.dream-item:last-child { border-bottom: none; }
.dream-keyword {
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 4px;
  font-family: var(--font-serif);
}
.dream-meaning {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* === 输入框 === */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: inherit;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--dur-fast);
}
.input:focus { border-color: var(--color-seal); }

/* === 列表项 === */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.list-item:last-child { border-bottom: none; }

/* === 免责声明 === */
.disclaimer {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  line-height: 1.8;
  text-align: center;
}

/* === 节气 === */
.term-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.term-card {
  background: var(--color-bg-translucent);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-ink-blue);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.term-card .term-name {
  font-family: var(--font-brush);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-ink-blue);
}
.term-card .term-date {
  font-size: var(--text-xs);
  color: var(--color-text-tertiary);
  margin-top: 4px;
  font-family: var(--font-serif);
}

/* === 骨架屏 === */
.skeleton {
  background: linear-gradient(90deg, #ECE3D2 25%, #F5EFE0 50%, #ECE3D2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 触摸反馈 === */
.card, .btn, .nav-item, .term-card, .dream-item, .list-item, .yiji-card, .shichen-cell {
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.card:active, .term-card:active, .yiji-card:active { transform: scale(0.98); }
.btn:active { transform: scale(0.96); }
.nav-item:active { opacity: 0.6; }

/* === 下拉刷新 === */
.pull-indicator {
  text-align: center;
  padding: 12px;
  color: var(--color-text-tertiary);
  font-size: var(--text-xs);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease);
}
.pull-indicator.active { max-height: 50px; }
.pull-indicator .spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-seal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === AI 重试按钮 === */
.ai-retry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  margin-top: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg-surface);
  cursor: pointer;
  transition: all var(--dur-fast);
}
.ai-retry:active { background: var(--color-bg-alt); }

/* === 分享模态框 === */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: var(--space-lg);
}
.share-modal.active { display: flex; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.share-modal-content {
  background: var(--color-bg-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 360px;
  width: 100%;
}
.share-modal img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}
.share-modal-actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

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

/* === 语音播报按钮 — 右下角圆形悬浮 === */
.voice-btn-elder,
.voice-btn-compact,
.voice-btn {
  position: fixed;
  right: 20px;
  bottom: 88px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-seal);
  color: #FDFAF3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  z-index: 99;
  padding: 0;
  margin: 0;
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}

.voice-btn-elder:active,
.voice-btn-compact:active,
.voice-btn:active {
  background: var(--color-primary-dark);
  transform: scale(0.92);
}

.voice-btn-elder svg,
.voice-btn-compact svg,
.voice-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* 隐藏文字标签（圆形悬浮只显示图标）*/
.voice-btn-elder span,
.voice-btn-compact span,
.voice-btn span {
  display: none;
}

/* 呼吸动效 — 轻柔吸引注意力 */
@keyframes voice-pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(165, 41, 36, 0.30), 0 0 0 0 rgba(165, 41, 36, 0.20);
  }
  50% {
    box-shadow: 0 6px 24px rgba(165, 41, 36, 0.45), 0 0 0 8px rgba(165, 41, 36, 0);
  }
}
.voice-btn-elder:not(.speaking),
.voice-btn-compact:not(.speaking),
.voice-btn:not(.speaking) {
  animation: voice-pulse 3s ease-in-out infinite;
}

/* 播报中状态 — 黛青 + 声波动画 */
.voice-btn-elder.speaking,
.voice-btn-compact.speaking,
.voice-btn.speaking {
  background: var(--color-ink-blue);
  animation: voice-pulse 1.3s ease-in-out infinite;
}

@keyframes sound-wave {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.voice-btn-elder.speaking svg,
.voice-btn-compact.speaking svg,
.voice-btn.speaking svg {
  animation: sound-wave 0.7s ease-in-out infinite;
}

/* === 倒数日大卡片 === */
.countdown-featured {
  background: linear-gradient(135deg, var(--color-ink-blue) 0%, #0F1A24 100%);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: #FDFAF3;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-lg);
  position: relative;
  overflow: hidden;
}
.countdown-featured::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(165, 41, 36, 0.4);
  border-radius: 4px;
  transform: rotate(15deg);
}
.countdown-featured .featured-days {
  font-family: var(--font-brush);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
.countdown-featured .featured-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.countdown-featured .featured-label,
.countdown-featured .featured-unit {
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  color: rgba(253, 250, 243, 0.7);
  letter-spacing: 0.15em;
}
.countdown-featured .featured-date {
  font-size: var(--text-xs);
  color: rgba(253, 250, 243, 0.6);
  margin-top: 12px;
  font-family: var(--font-serif);
}

/* === 响应式 === */
@media (min-width: 768px) {
  .app-container {
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, rgba(247, 243, 236, 0.6) 0%, rgba(237, 230, 214, 0.6) 100%);
    min-height: 100vh;
  }
  body {
    background: linear-gradient(135deg, #EDE6D6 0%, #D8CFB8 100%);
  }
}

/* ============================================================
   适老化模式（长辈版）— 朱红老日历风
   参考：工信部《适老化通用设计规范》
   ============================================================ */

:root.elder-mode {
  font-size: 19px;
  --text-xs: 15px;
  --text-sm: 17px;
  --text-base: 19px;
  --text-lg: 24px;
  --text-xl: 30px;
  --text-2xl: 42px;
  --text-3xl: 54px;
  --text-4xl: 64px;

  /* 朱红老日历风配色 */
  --color-primary: #B8332A;
  --color-primary-light: #D9655C;
  --color-primary-dark: #8C241D;
  --color-primary-bg: #FFF0EE;
  --color-seal: #8C241D;
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-accent: #B8860B;

  /* 米黄宣纸 */
  --color-bg-page: #F5ECD7;
  --color-bg-alt: #EFE3C8;
  --color-bg-surface: #FFFBF2;
  --color-bg-card: #FFFBF2;
  --color-bg-subtle: #F0E6D0;
  --color-bg-translucent: rgba(255, 251, 242, 0.95);

  --color-text-primary: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-text-tertiary: #6B6B6B;

  --color-border: #D4C5A0;
  --color-border-strong: #B8A880;
  --color-border-dashed: #C5B890;

  --shadow-sm: 0 2px 4px rgba(139, 105, 20, 0.10);
  --shadow-md: 0 4px 16px rgba(139, 105, 20, 0.14);
  --shadow-lg: 0 8px 32px rgba(139, 105, 20, 0.18);
  --shadow-cta: 0 4px 14px rgba(184, 51, 42, 0.35);
  --shadow-float: 0 6px 20px rgba(139, 105, 20, 0.20);
}

/* 适老模式 body：米黄宣纸 */
.elder-mode body,
body.elder-mode {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(139, 105, 20, 0.06) 1px, transparent 0),
    linear-gradient(180deg, #F5ECD7 0%, #EFE3C8 100%);
  background-size: 24px 24px, 100% 100%;
}
body.elder-mode::before { display: none; }
body.elder-mode::after { display: none; }

/* 适老模式字号 */
body.elder-mode { font-size: 18px; }
body.elder-mode .text-xl { font-size: 26px !important; }
body.elder-mode .text-2xl { font-size: 34px !important; }
body.elder-mode .text-3xl { font-size: 46px !important; }

/* 适老模式卡片：实色 + 强边框 */
.elder-mode .card,
.elder-mode .ai-card,
.elder-mode .term-card {
  background: var(--color-bg-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1.5px solid var(--color-border);
}
.elder-mode .card { padding: 24px; }

/* 适老模式标题：朱红 */
.elder-mode .section-title {
  font-size: 24px;
  color: var(--color-primary);
}
.elder-mode .section-title::before { background: var(--color-primary); }

/* 适老模式顶部日期区 — 朱红老日历红底 + 手撕锯齿 */
.elder-mode .date-header {
  background: var(--color-primary-dark);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  color: #fff;
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  margin: 0 calc(var(--space-lg) * -1) var(--space-lg);
  position: relative;
  overflow: visible;
}
.elder-mode .date-header-main::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(135deg, var(--color-primary-dark) 25%, transparent 25%) -6px 0,
              linear-gradient(225deg, var(--color-primary-dark) 25%, transparent 25%) -6px 0;
  background-size: 12px 12px;
  background-repeat: repeat-x;
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 0;
  opacity: 1;
  margin: 0;
}
.elder-mode .date-header .solar {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.elder-mode .date-header .lunar {
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: var(--font-serif);
  font-weight: 700;
}
.elder-mode .date-header .ganzhi {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.elder-mode .date-header .seal-corner { display: none; }

/* 适老模式宜忌 — 红绿顶部色块 + 实色卡片 */
.elder-mode .yiji-grid {
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 0;
}
.elder-mode .yiji-grid::before { display: none; }
.elder-mode .yiji-card {
  background: transparent;
  padding: var(--space-lg);
}
.elder-mode .yiji-card.yi {
  border-right: 1.5px dashed var(--color-border-strong);
  border-top: 5px solid var(--color-success);
  background: linear-gradient(180deg, var(--color-success-bg) 0%, var(--color-bg-surface) 50%);
}
.elder-mode .yiji-card.ji {
  border-top: 5px solid var(--color-primary);
  background: linear-gradient(180deg, var(--color-primary-bg) 0%, var(--color-bg-surface) 50%);
}
.elder-mode .yiji-title {
  font-family: var(--font-serif);
  font-weight: 700;
}
.elder-mode .yiji-items::before { display: none; }

/* 适老模式底部导航：实色 + 朱红激活 */
.elder-mode .bottom-nav {
  background: var(--color-bg-surface);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1.5px solid var(--color-border-strong);
  box-shadow: 0 -2px 12px rgba(139, 105, 20, 0.10);
}
.elder-mode .nav-item.active { color: var(--color-primary); }
.elder-mode .nav-item.active::after { background: var(--color-primary); }

/* 适老模式功能网格 — 2列大卡片 */
.elder-mode .feature-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.elder-mode .feature-card {
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
}
.elder-mode .feature-icon {
  width: 56px;
  height: 56px;
  background: var(--color-primary-bg) !important;
  color: var(--color-primary) !important;
  border: none;
}
.elder-mode .feature-icon svg {
  width: 30px;
  height: 30px;
  stroke-width: 2;
}
.elder-mode .feature-name {
  font-size: 16px;
  color: var(--color-text-primary);
}

/* 适老模式语音按钮 — 满宽胶囊大按钮 */
.elder-mode .voice-btn-elder,
.elder-mode .voice-btn-compact,
.elder-mode .voice-btn {
  position: relative;
  right: auto;
  bottom: auto;
  width: calc(100% - var(--space-lg) * 2);
  height: auto;
  min-height: 56px;
  border-radius: var(--radius-md);
  margin: var(--space-md) var(--space-lg);
  padding: 18px 24px;
  font-size: 19px;
  font-weight: 600;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  display: flex;
  z-index: 9;
}
.elder-mode .voice-btn-elder span,
.elder-mode .voice-btn-compact span,
.elder-mode .voice-btn span {
  display: inline;
}
.elder-mode .voice-btn-elder svg,
.elder-mode .voice-btn-compact svg,
.elder-mode .voice-btn svg {
  width: 24px;
  height: 24px;
}

/* 适老模式时辰 */
.elder-mode .shichen-cell {
  background: var(--color-bg-surface);
  border: 1.5px solid var(--color-border);
}
.elder-mode .shichen-cell.current {
  box-shadow: 0 0 0 2px var(--color-primary);
}

/* 适老模式按钮 */
.elder-mode .btn {
  padding: 16px 28px;
  font-size: 18px;
  min-height: 56px;
}
.elder-mode .btn-primary { background: var(--color-primary); }

/* 适老模式语音按钮在 date-header 内的位置 */
.elder-mode .date-header .voice-btn-elder,
.elder-mode .date-header .voice-btn-compact,
.elder-mode .date-header .voice-btn {
  width: calc(100% - var(--space-lg) * 2);
  margin: var(--space-md) var(--space-lg) 0;
}

/* ============================================================
   v7.0 通用增强 — 统一子页面标题/通用印章/错落入场/卡片悬停
   ============================================================ */

/* 通用朱砂方印 — 各子页面右上角可用 */
.seal-corner.generic {
  background-image: url('deco-seal-generic-v7.jpg');
}

/* 子页面印章变体 — 不同页面可用不同文字印章 */
.seal-corner[data-seal-text] {
  background-image: url('deco-seal-today.jpg');
}

/* 统一子页面标题 — 左对齐书法字 + 右上印章 + 笔触分隔 */
.page-header {
  position: relative;
  text-align: left;
  padding: var(--space-2xl) 0 var(--space-lg);
  margin: 0 0 var(--space-md);
}
.page-header .page-title {
  font-family: var(--font-brush);
  font-size: 44px;
  font-weight: 400;
  color: var(--color-ink);
  margin: 0 0 var(--space-xs);
  letter-spacing: 6px;
  line-height: 1.1;
}
.page-header .page-subtitle {
  font-size: var(--text-sm);
  color: var(--color-ink-faded);
  font-weight: 500;
  letter-spacing: 0.18em;
  margin: 0;
  font-family: var(--font-serif);
}
/* 子页面标题下方水墨笔触分隔 */
.page-header::after {
  content: '';
  display: block;
  height: 16px;
  width: 64%;
  background-image: url('deco-brush-stroke-horizontal.jpg');
  background-size: 100% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.95) 55%, transparent 100%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.95) 55%, transparent 100%);
  opacity: 0.9;
  margin-top: var(--space-md);
}

/* 错落入场 — 容器内子元素依次淡入上移 */
.staggered > * {
  animation: stagger-in 0.6s var(--ease-out) both;
}
.staggered > *:nth-child(1) { animation-delay: 0.05s; }
.staggered > *:nth-child(2) { animation-delay: 0.12s; }
.staggered > *:nth-child(3) { animation-delay: 0.19s; }
.staggered > *:nth-child(4) { animation-delay: 0.26s; }
.staggered > *:nth-child(5) { animation-delay: 0.33s; }
.staggered > *:nth-child(6) { animation-delay: 0.40s; }
.staggered > *:nth-child(7) { animation-delay: 0.47s; }
.staggered > *:nth-child(8) { animation-delay: 0.54s; }

@keyframes stagger-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 卡片悬停 — 桌面端微抬升 */
@media (hover: hover) {
  .card, .term-card, .ai-card, .countdown-featured {
    transition: transform var(--dur-normal) var(--ease), box-shadow var(--dur-normal) var(--ease);
  }
  .card:hover, .term-card:hover, .ai-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
}

/* 水墨笔触分隔 — 可复用块 */
.ink-stroke-divider {
  height: 14px;
  background-image: url('deco-brush-stroke-horizontal.jpg');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.9) 12%, rgba(0,0,0,0.9) 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.9) 12%, rgba(0,0,0,0.9) 88%, transparent 100%);
  margin: var(--space-lg) 0;
  opacity: 0.85;
}

/* 大字诗句展示 */
.verse-block {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  position: relative;
}
.verse-block .verse-text {
  font-family: var(--font-brush);
  font-size: 38px;
  color: var(--color-ink);
  line-height: 1.5;
  letter-spacing: 8px;
}
.verse-block .verse-meta {
  font-size: var(--text-xs);
  color: var(--color-ink-faded);
  margin-top: var(--space-md);
  letter-spacing: 0.2em;
  font-family: var(--font-serif);
}

/* 节气大字标题(详情页) */
.term-hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-lg);
  position: relative;
}
.term-hero .term-big {
  font-family: var(--font-brush);
  font-size: 88px;
  color: var(--color-ink);
  letter-spacing: 12px;
  line-height: 1;
  margin: 0;
}
.term-hero .term-meta {
  font-size: var(--text-sm);
  color: var(--color-ink-faded);
  letter-spacing: 0.25em;
  margin-top: var(--space-sm);
  font-family: var(--font-serif);
}

/* 三候分隔(虚线 + 序号) */
.hou-list { padding: var(--space-md) 0; }
.hou-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px dashed var(--color-border-dashed);
}
.hou-item:last-child { border-bottom: none; }
.hou-item .hou-num {
  font-family: var(--font-brush);
  font-size: var(--text-xl);
  color: var(--color-seal);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}
.hou-item .hou-text {
  flex: 1;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  line-height: 1.8;
  font-family: var(--font-serif);
}
.hou-item .hou-text .hou-title {
  font-weight: 600;
  color: var(--color-ink-blue);
  margin-bottom: 2px;
}

/* 生肖大字圆牌 */
.zodiac-emblem {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  border: 2px solid var(--color-seal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brush);
  font-size: 48px;
  color: var(--color-seal);
  box-shadow: 0 4px 16px rgba(165, 41, 36, 0.18);
}

/* 签筒(每日一签) */
.sign-tube {
  width: 80px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--color-ink-blue) 0%, #0F1A24 100%);
  border-radius: 8px 8px 4px 4px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.sign-tube::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 10px;
  background: var(--color-seal);
  border-radius: 4px;
}

/* 适老模式下隐藏兰草与精致装饰 */
.elder-mode .deco-orchid { display: none !important; }
.elder-mode .ink-stroke-divider { display: none; }
.elder-mode .verse-block .verse-text { font-size: 28px; letter-spacing: 4px; }
.elder-mode .term-hero .term-big { font-size: 56px; letter-spacing: 6px; }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  .staggered > *, .app-container, .fade-in-up,
  .reveal, .seal-corner {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .voice-btn-elder:not(.speaking),
  .voice-btn-compact:not(.speaking),
  .voice-btn:not(.speaking) {
    animation: none !important;
  }
}

/* ============================================================
   v7.1 交互增强 — 页面转场 / 滚动渐显 / 印章落印
   ============================================================ */

/* 页面转场：离开时淡出 */
body.page-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
  pointer-events: none;
}
body {
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

/* 滚动渐显：元素进入视口时淡入上移 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 印章落印动效：盖印瞬间缩放+旋转落下 */
.seal-corner {
  animation: seal-stamp 0.5s var(--ease-out) both;
}
@keyframes seal-stamp {
  0% {
    opacity: 0;
    transform: rotate(-3deg) scale(1.8);
    filter: blur(3px);
  }
  60% {
    opacity: 1;
    transform: rotate(-3deg) scale(0.92);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: rotate(-3deg) scale(1);
    filter: blur(0);
  }
}

/* 笔触分隔绘制动画 */
.ink-stroke-divider,
.date-header-main::after,
.page-header::after {
  animation: stroke-draw 0.8s var(--ease-out) both;
}
@keyframes stroke-draw {
  from { opacity: 0; transform: scaleX(0); transform-origin: left center; }
  to { opacity: 0.9; transform: scaleX(1); }
}

/* 粒子画布层级确保 */
#shili-ink-canvas { z-index: 1; }
.app-container, .bottom-nav, .voice-btn-elder,
.voice-btn-compact, .voice-btn, .deco-orchid,
.seal-corner, .share-modal {
  position: relative;
  z-index: 2;
}
