/* 一日吉 web —— 东方雅韵。色值来源见 miniprogram/utils/theme.js（生成期固化）。 */
* { box-sizing: border-box; margin: 0; padding: 0; }
/* ---- 站内公告条（跑马灯）---- */
.notice { position: relative; display: flex; align-items: center; max-width: 760px; margin: 10px auto 0;
  padding: 0 40px 0 14px; height: 40px; overflow: hidden;
  background: rgba(255,255,255,.6); border: 1px solid rgba(176,141,87,.35); border-radius: 999px; }
.notice-track { display: inline-flex; align-items: center; white-space: nowrap;
  animation: notice-scroll 24s linear infinite; }
.notice:hover .notice-track { animation-play-state: paused; }
.notice-item { font-size: 13px; color: #9A7B4F; padding-right: 120px; }
@keyframes notice-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .notice-track { animation: none; } }
.notice-qr { flex: none; margin-left: 8px; border-radius: 6px; border: 1px solid #E5DCC9; }
/* 移动端静态文案：桌面隐藏；移动端替换跑马灯（宽度放不下两份文案） */
.notice-static { display: none; font-size: 13px; color: #9A7B4F; }
.notice-close { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: #B8AE9D; font-size: 16px;
  padding: 6px 10px; cursor: pointer; line-height: 1; }
.notice.js .notice-close { display: block; } /* JS 接管后才显示关闭钮；无 JS 公告恒显且无无效按钮 */
body { font: 16px/1.7 "PingFang SC", "Microsoft YaHei", sans-serif; color: #3C3228;
  background: linear-gradient(180deg, #F6F1E7 0%, #EFE7D7 100%); min-height: 100vh; }
/* ---- 每日主色换肤：--accent-today 由生成期写死在 body（首页/日页 = 当日大吉色 accent），
   动态层今日刷新时重设。color-mix 不支持的内核（微信老 WebView）自动落回上面的米白底。 ---- */
@supports (background: color-mix(in srgb, red 5%, white)) {
  body { background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-today, #9C3D2E) 6%, #F6F1E7) 0%,
    color-mix(in srgb, var(--accent-today, #9C3D2E) 14%, #EFE7D7) 100%); }
}
@font-face { font-family: WuxingSerif; src: url(/fonts/wuxing-serif.woff2) format("woff2"); font-display: swap; }
.serif { font-family: WuxingSerif, "Songti SC", SimSun, serif; }
a { color: #5A4A38; text-decoration: none; }
a:hover { color: var(--accent-today, #9A7B4F); }
/* 正文内联强调链接：细下划线跟随当日主色，和纯导航链接区分开 */
.u { text-decoration: underline; text-decoration-color: var(--accent-today, #B8A165);
  text-decoration-thickness: 1px; text-underline-offset: 3px; }
.u:hover { text-decoration-thickness: 2px; }
.site-nav { display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; max-width: 760px; margin: 0 auto; }
.brand img { width: 88px; height: 88px; border-radius: 50%; display: block;
  box-shadow: 0 2px 10px rgba(60,50,40,.18); }
.nav-links a { margin-left: 18px; font-size: 15px; }
.page { max-width: 760px; margin: 0 auto; padding: 0 20px 48px; }
.crumb { font-size: 13px; color: #8A857C; margin-bottom: 10px; }
h1 { font-size: 26px; margin: 6px 0 18px; }
h2 { font-size: 19px; margin: 26px 0 10px; }
.hero { border-left: 4px solid var(--accent, #9C3D2E); background: rgba(255,255,255,.55);
  padding: 14px 16px; border-radius: 0 8px 8px 0; margin-bottom: 16px; }
@supports (background: color-mix(in srgb, red 5%, white)) {
  .hero { background: linear-gradient(90deg,
    color-mix(in srgb, var(--accent, #9C3D2E) 12%, #FFFFFF) 0%, rgba(255,255,255,.55) 70%); }
}
.hero-ganzhi { font-size: 22px; color: var(--accent, #9C3D2E); }
.hero-qian { font-size: 15px; color: var(--accent, #9C3D2E); margin-top: 2px; letter-spacing: .5px; }
/* 吉色猫：hero 右上角圆角小图 */
.hero-cat { float: right; width: 96px; height: 96px; border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06); margin: -4px -4px 4px 10px; }
.hero-date { font-size: 14px; color: #6B5E4E; }
.tier-list { list-style: none; }
.tier { display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: rgba(255,255,255,.55); border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.tier-badge { margin-left: auto; font-size: 12px; color: #F6F1E7; border-radius: 999px;
  padding: 2px 10px; }
.tier-badge.good { background: #9C3D2E; }
.tier-badge.warn { background: #3B5066; }
.tier-label { width: 84px; font-size: 15px; }
.tier-el { font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 13px;
  background: rgba(255,255,255,.7); border-radius: 999px; padding: 2px 10px 2px 4px; }
.chip i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.personal { padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,.6); margin: 12px 0; }
.personal.ji { border-left: 4px solid #9C3D2E; }
.personal.zhong { border-left: 4px solid #BD9A3E; }
.personal.xu { border-left: 4px solid #3B5066; }
.personal.ping { border-left: 4px solid #B8AE9D; }
.zodiac-pick { background: rgba(255,255,255,.55); border-radius: 12px;
  padding: 14px; margin-bottom: 14px; }
.zodiac-tip { font-size: 13px; color: #6B5E4E; margin-bottom: 10px; background: transparent; padding: 0; }
.zodiac-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.zodiac-chip { min-height: 44px; border-radius: 10px; border: 1px solid #D8CDB8;
  background: #FBF7EE; color: #3C3228; font-size: 17px; cursor: pointer; padding: 0; }
.zodiac-chip.sel { background: var(--accent-today, #9C3D2E); border-color: var(--accent-today, #9C3D2E);
  color: #F6F1E7; font-weight: 700; }
.prefs-actions { display: flex; gap: 10px; margin: 14px 0; }
.prefs-actions button { flex: 1; padding: 12px 0; font-size: 15px; min-height: 46px; }
button, .btn { border: 1px solid var(--accent-today, #9C3D2E); color: var(--accent-today, #9C3D2E);
  background: transparent; border-radius: 8px; padding: 6px 14px; font-size: 14px; cursor: pointer;
  display: inline-block; }
button:hover, .btn:hover { background: var(--accent-today, #9C3D2E); color: #F6F1E7; }
.advice p, .zodiac-sec p, .page > main > p { background: rgba(255,255,255,.55); border-radius: 8px; padding: 14px; }
.page .crumb, .page p.more { background: transparent; padding: 0; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head { margin-bottom: 6px; }
.cal-head span { text-align: center; font-size: 12px; color: #8A857C; }
.cell { aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; border-radius: 8px; background: rgba(255,255,255,.55);
  font-size: 14px; color: #3C3228; }
.cell.blank { background: transparent; }
.cell .dot { width: 8px; height: 8px; border-radius: 50%; margin: 2px 0; }
.cell .el { font-size: 11px; color: #8A857C; }
.more { margin-top: 14px; }
.insp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.insp-item img { width: 100%; border-radius: 8px; display: block; }
.insp-item figcaption { font-size: 13px; padding: 6px 2px; color: #6B5E4E; }
/* 灵感筛选：色系/风格/季节三组片，组内多选（同组 OR），可一键清除 */
.insp-filter { background: rgba(255,255,255,.55); border-radius: 8px; padding: 4px 12px 8px; margin-bottom: 8px; }
.fhead { display: flex; justify-content: flex-end; }
.fclear { border: 1px solid #E5DCC9; background: #FBF7EE; color: var(--accent-today, #9C3D2E);
  font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.fclear:hover { text-decoration: underline; }
.fclear[hidden] { display: none; } /* 全站 button 有 display:inline-block，会压过 [hidden] 的 UA 默认值 */
.fgroup { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 0; }
.flabel { font-size: 13px; color: #8A857C; width: 28px; flex: none; }
.fchip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #D8CDB8;
  background: #FBF7EE; color: #3C3228; border-radius: 999px; padding: 5px 12px;
  font-size: 13px; cursor: pointer; }
.fchip i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fchip.sel { background: var(--accent-today, #9C3D2E); border-color: var(--accent-today, #9C3D2E);
  color: #F6F1E7; font-weight: 700; }
.fchip:hover { background: #FBF7EE; color: #3C3228; border-color: #C9B98F; } /* 免得桌面 hover 被误认成选中 */
.fchip.sel:hover { background: var(--accent-today, #9C3D2E); border-color: var(--accent-today, #9C3D2E);
  color: #F6F1E7; }
.insp-count { font-size: 12px; color: #8A857C; margin: 0 0 12px; }
.element-table { border-collapse: collapse; background: rgba(255,255,255,.55); border-radius: 8px; }
.element-table td, .element-table th { padding: 8px 14px; font-size: 14px; text-align: left; }
.month-intro, .next-preview { background: rgba(255,255,255,.55); border-radius: 8px;
  padding: 12px 14px; font-size: 14px; color: #6B5E4E; margin-bottom: 14px; }
.next-preview { margin: 14px 0; }
.faq p { background: rgba(255,255,255,.55); border-radius: 8px; padding: 12px 14px; font-size: 15px; }
.faq h3 { font-size: 16px; margin: 18px 0 8px; }
.day-nav { display: flex; justify-content: space-between; margin: 26px 0 10px; font-size: 14px; }
/* 建议信箱表单：沿用站点按钮/边框语言 */
.fb-form { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.fb-form textarea, .fb-form input { width: 100%; border: 1px solid #D8CDB8; border-radius: 8px;
  background: rgba(255,255,255,.7); color: #3C3228; padding: 12px; font: inherit; }
.fb-form textarea:focus, .fb-form input:focus { outline: 2px solid var(--accent-today, #9C3D2E); outline-offset: -1px; }
.fb-form button { align-self: flex-start; min-width: 120px; padding: 10px 20px; }
.fb-form #fb-msg { font-size: 14px; color: #6B5E4E; }
/* 小程序宣传图：整宽圆角卡，可点击看大图 */
.mp-promo { display: block; width: 100%; height: auto; border-radius: 12px;
  border: 1px solid #E5DCC9; }
.site-footer { max-width: 760px; margin: 0 auto; padding: 18px 20px 40px;
  font-size: 12px; color: #8A857C; text-align: center; }
.footer-qr img { width: 72px; height: 72px; border-radius: 8px; padding: 5px;
  background: #FFFFFF; border: 1px solid #E5DCC9; }
.footer-qr p { margin-top: 4px; background: transparent; padding: 0; }
@media (min-width: 720px) { .insp-grid { grid-template-columns: repeat(3, 1fr); } h1 { font-size: 30px; } }

/* ---- 移动端（<720px）：底部标签栏接管导航，格子与字号按手机密度重排 ---- */
.tabbar { display: none; }
@media (max-width: 719px) {
  .nav-links { display: none; }
  .site-nav { justify-content: center; padding: 10px 20px 6px; }
  .brand img { width: 64px; height: 64px; }
  .page { padding: 0 14px 40px; }
  h1 { font-size: 22px; margin: 4px 0 14px; }
  h2 { font-size: 18px; margin: 22px 0 8px; }
  /* 月历格：手机上去掉五行字，只留日号 + 大吉色点（点色即五行） */
  .cell { border-radius: 6px; }
  .cell .el { display: none; }
  .cell b { font-size: 16px; }
  .cell .dot { width: 7px; height: 7px; }
  /* 生肖 12 牌：6 列在手机上每牌不足 50px，改 4 列 */
  .zodiac-grid { grid-template-columns: repeat(4, 1fr); }
  .zodiac-chip { min-height: 46px; }
  /* 灵感筛选片加大触摸区 */
  .fchip { padding: 8px 14px; }
  .fclear { padding: 10px 12px; }
  /* 公告条：手机上不跑马灯，显示静态单行（ellipsis 截断），无码 */
  .notice { margin: 8px 14px 0; padding: 0 40px 0 18px; }
  .notice-track { display: none; }
  .notice-static { display: block; flex: 1; min-width: 0; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
  .element-table td, .element-table th { padding: 7px 8px; font-size: 13px; }
  .day-nav a { padding: 8px 10px; }
  .more .btn { display: block; text-align: center; padding: 12px 0; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex;
    background: rgba(250, 246, 238, .96); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid #E5DCC9; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; text-align: center; padding: 11px 0 9px; font-size: 13px; color: #6B5E4E; }
  .tabbar a.act { color: var(--accent-today, #9C3D2E); font-weight: 700; }
}
