/* theme.css —— 全站统一视觉（2026-11-23，照登录页「准确率展示栏」的样子）。
 * 白底、黑字、楷体；朱砂只作强调；细灰线、回纹角、◆ 记号、渐隐分隔线、卡片悬停朱线、淡大字衬底、进场浮现。
 * 只改外观，不改结构；放在每个页面所有样式之后加载（index / admin / guide）。 */

:root {
  --ease: cubic-bezier(.22,.61,.36,1);
  /* 回纹角（灰线），四个方向 */
  --hw-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M2 44V2H44M8 44V8H38V30H16V16H30V24' fill='none' stroke='%23cfcfcf' stroke-width='2'/%3E%3C/svg%3E");
  --hw-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M44 44V2H2M38 44V8H8V30H30V16H16V24' fill='none' stroke='%23cfcfcf' stroke-width='2'/%3E%3C/svg%3E");
  --hw-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M2 2V44H44M8 2V38H38V16H16V30H30V22' fill='none' stroke='%23cfcfcf' stroke-width='2'/%3E%3C/svg%3E");
  --hw-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cpath d='M44 2V44H2M38 2V38H8V16H30V30H16V22' fill='none' stroke='%23cfcfcf' stroke-width='2'/%3E%3C/svg%3E");
}
@keyframes th-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ 顶栏 ============ */
.top { border-bottom: 0; box-shadow: 0 1px 0 var(--line2), 0 8px 22px rgba(0,0,0,.035); }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--zhu) 20%, var(--zhu) 80%, transparent); }
.brand::before { box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 0 1px var(--zhu); }
.ghost { transition: border-color .2s, color .2s, background .2s; }
.ghost:hover { border-color: var(--zhu); color: var(--zhu); }
.primary { transition: background .2s, box-shadow .2s; }
.primary:hover { box-shadow: 0 6px 16px rgba(0,0,0,.14); }

/* ============ 页面大标题 ============ */
/* 居中的（首页、录入页、登录卡、付费中心等弹层标题）：两侧渐隐线 */
.home-h h1, .intake-h, .login-card h1 { position: relative; }
.home-h h1::before, .home-h h1::after, .intake-h::before, .intake-h::after {
  content: ""; display: inline-block; width: 64px; height: 1px; vertical-align: middle; margin: 0 20px; }
.home-h h1::before, .intake-h::before { background: linear-gradient(90deg, transparent, var(--ink2)); }
.home-h h1::after, .intake-h::after { background: linear-gradient(90deg, var(--ink2), transparent); }
.home-h::before { content: "◆　山 木 命 理 师 工 具　◆"; display: block; text-align: center; font-size: 13px; letter-spacing: .5em; color: var(--zhu); margin-bottom: 6px; }
/* 靠左的分类页标题：下方一道朱砂短线 */
.pane-h h2, .gd-main h1 { position: relative; padding-bottom: 12px; }
.pane-h h2::after, .gd-main h1::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 34px; height: 2px; background: var(--zhu); }
.pane-h { padding-bottom: 6px; }
.pane-lead { margin-top: 12px; }

/* ============ 区块小标题：◆ 记号＋渐隐分隔线 ============ */
.block > h3, .recent h3, .gd-main h2, .bl-h, .sp-od h4, .mh-h, .mh-head {
  border-bottom: 0; padding-bottom: 9px;
  background: linear-gradient(90deg, var(--ink) 0, var(--line2) 45%, transparent 100%) left bottom / 100% 1px no-repeat; }
.block > h3 > span::before, .recent h3 > span:first-child::before, .bl-h::before {
  content: "◆"; color: var(--zhu); font-size: 9px; margin-right: 10px; vertical-align: 4px; }
.block { animation: th-rise .45s var(--ease) both; }
.block:nth-of-type(2) { animation-delay: .06s; } .block:nth-of-type(3) { animation-delay: .12s; } .block:nth-of-type(4) { animation-delay: .18s; }

/* ============ 框：朱砂顶边＋回纹角＋淡朱砂光 ============ */
.intake, .login-card, .mh-form, .bl-order, .lock-card, .renew-card, .ct-card, .form-card, .ad-login, .score, .bl-status {
  position: relative; border: 1px solid var(--line) !important; border-top: 3px solid var(--zhu) !important;
  background:
    var(--hw-tl) left 8px top 8px / 20px 20px no-repeat,
    var(--hw-tr) right 8px top 8px / 20px 20px no-repeat,
    radial-gradient(ellipse 55% 70% at 0% 0%, var(--zhu-soft), transparent 70%),
    #fff; }
.intake { padding: 30px 40px 34px; box-shadow: 0 10px 30px rgba(0,0,0,.04); }
.login-card { padding: 30px 32px 26px; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.lock-card { border-style: solid !important; }
.score { box-shadow: 0 6px 20px rgba(0,0,0,.035); }
.bl-status { border-top-width: 3px !important; }
.bl-status2 { border-top: 1px dotted var(--line) !important; background: #fff; }
.form-card, .mh-form { box-shadow: 0 4px 16px rgba(0,0,0,.03); }

/* ============ 卡片：悬停顶部朱线展开、淡大字衬底、进场浮现 ============ */
.tool, .sp-card, .bl-plan, .recent-i, .sp-o, .bl-m, .card, .dict-i, .pf-w {
  position: relative; overflow: hidden; }
.tool::before, .sp-card::before, .bl-plan::before, .recent-i::before, .sp-o::before, button.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--zhu); transform: scaleX(0); transition: transform .35s var(--ease); z-index: 2; }
.tool:hover::before, .sp-card:hover::before, .bl-plan:hover::before, .recent-i:hover::before, .sp-o:hover::before, button.card:hover::before { transform: scaleX(1); }
.tool, .sp-card, .recent-i, .sp-o, .card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.tool:hover, .sp-card:hover, .recent-i:hover, .sp-o:hover, button.card:hover { border-color: var(--line2); box-shadow: 0 10px 26px rgba(0,0,0,.07); transform: translateY(-2px); }
.tool { border-color: var(--line); background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--zhu-soft), transparent 70%), #fff; }
.tool::after { position: absolute; right: -10px; bottom: -34px; font-size: 150px; line-height: 1; color: rgba(20,20,20,.04); pointer-events: none; }
.tool[data-tool="bazi"]::after { content: "命"; } .tool[data-tool="meihua"]::after { content: "卦"; } .tool[data-tool="fengshui"]::after { content: "宅"; }
.tool > * { position: relative; z-index: 1; }
.tool-mark { box-shadow: 0 6px 16px rgba(179,38,30,.25), inset 0 0 0 3px rgba(255,255,255,.18); }
.tool-go { transition: background .2s, color .2s; }
.tool:hover .tool-go { background: var(--zhu); border-color: var(--zhu); }
.tool, .sp-card, .recent-i, .bl-plan, .sp-o { animation: th-rise .6s var(--ease) both; } /* 后台统计卡不做进场动画：后台每次操作都重画 */
.tools > :nth-child(2), .sp-grid > :nth-child(2), #recent-list > :nth-child(2), .bl-plans > :nth-child(2), .cards > :nth-child(2) { animation-delay: .08s; }
.tools > :nth-child(3), .sp-grid > :nth-child(3), #recent-list > :nth-child(3), .cards > :nth-child(3) { animation-delay: .16s; }
.sp-grid > :nth-child(4), #recent-list > :nth-child(4), .cards > :nth-child(4) { animation-delay: .24s; }
.sp-grid > :nth-child(5), #recent-list > :nth-child(5), .cards > :nth-child(5) { animation-delay: .32s; }
.cards > :nth-child(n+6) { animation-delay: .4s; }
.home { background: radial-gradient(ellipse 50% 30% at 50% 0%, var(--zhu-soft), transparent 70%); }

/* ============ 进度条：圆头、刻度、朱砂渐变 ============ */
.track { position: relative; height: 8px; border: 0; border-radius: 4px; background: var(--soft2); overflow: visible; }
.track .fill, .sc-bar .fill { border-radius: 4px; background: linear-gradient(90deg, #8f1f19, var(--zhu)); transition: width 1.2s var(--ease); }
.sc-num { font-size: 50px; }

/* ============ 侧栏、导航 ============ */
.side-card { border-bottom: 0; background: linear-gradient(90deg, var(--ink), var(--line2) 60%, transparent) left bottom / 100% 1px no-repeat; }
.side .tab { transition: background .2s, border-color .2s, color .2s; }
.side .tab[aria-current="page"] { background: linear-gradient(90deg, var(--zhu-soft), transparent); }
.side-act { border-top: 0; background: linear-gradient(90deg, var(--line2), transparent) left top / 100% 1px no-repeat; }
.ad-nav { border-bottom: 0; background-image: linear-gradient(90deg, var(--ink), var(--line2) 60%, transparent); background-size: 100% 1px; background-position: left bottom; background-repeat: no-repeat; }
.ad-nav button { transition: color .2s, border-color .2s; }
.ad-nav button[aria-current="page"]::before { content: "◆"; color: var(--zhu); font-size: 8px; margin-right: 6px; vertical-align: 3px; }

/* ============ 表格 ============ */
.tbl tbody tr, .lib-tbl tbody tr, .bl-tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td, .lib-tbl tbody tr:hover, .bl-tbl tbody tr:hover { background: var(--zhu-soft); }

/* ============ 管理后台：统计卡、待办 ============ */
.card { border-color: var(--line); background: radial-gradient(ellipse 70% 80% at 0% 0%, var(--zhu-soft), transparent 70%), #fff; }
.card b { font-size: 36px; }
.card.zhu { border-top: 3px solid var(--zhu); }
.todo { border-color: var(--line); border-top: 3px solid var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.03); }
.todo h3 { position: relative; padding-left: 34px !important; }
.todo h3::before { content: "◆"; position: absolute; left: 16px; top: 50%; transform: translateY(-55%); color: var(--zhu); font-size: 9px; }
.sec-h h2 { position: relative; padding-bottom: 10px; }
.sec-h h2::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 30px; height: 2px; background: var(--zhu); }

/* ============ 说明书 ============ */
.gd-main h2 { padding-bottom: 10px; }
.gd-toc { border-left: 1px solid var(--line2); }
.gd-toc a { transition: color .2s, padding-left .2s; }
.gd-toc a:hover { padding-left: 4px; }
.shot { border-color: var(--line); border-top: 3px solid var(--zhu); }

/* ============ 弹出侧栏 ============ */
.dr-head { background: radial-gradient(ellipse 60% 100% at 0% 0%, var(--zhu-soft), transparent 70%), #fff; border-top: 3px solid var(--zhu); }

/* ============ 手机、打印、减少动态 ============ */
@media (max-width: 760px) {
  .intake { padding: 24px 16px 26px; }
  .home-h h1::before, .home-h h1::after, .intake-h::before, .intake-h::after { width: 24px; margin: 0 10px; }
  .home-h::before { letter-spacing: .3em; }
}
@media print {
  .top::before, .home-h::before { display: none; }
  .block, .tool, .sp-card, .card { animation: none !important; }
  .intake, .score, .bl-status { background: #fff !important; box-shadow: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .block, .tool, .sp-card, .recent-i, .bl-plan, .card, .sp-o { animation: none !important; }
  .tool:hover, .sp-card:hover, .recent-i:hover, .sp-o:hover, button.card:hover { transform: none; }
}

/* ============ 梅花、风水：记录侧栏、小标题 ============ */
.mh-side { border-top: 3px solid var(--zhu); box-shadow: 0 4px 16px rgba(0,0,0,.03); }
.mh-side h3::before, .mh-h::before { content: "◆"; color: var(--zhu); font-size: 9px; margin-right: 10px; vertical-align: 4px; }
.mh-tri, .mh-yi, .fs-rec, .fs-spot { transition: box-shadow .25s, border-color .25s; }
.mh-tri:hover, .mh-yi:hover, .fs-rec:hover, .fs-spot:hover { border-color: var(--line2); box-shadow: 0 6px 18px rgba(0,0,0,.05); }

/* ============ 登录页首屏：左介绍、右登录，和下面准确率栏、价格表同宽 ============ */
.login { padding: 36px 16px 60px; min-height: 0; }
.login-hero { width: min(1100px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0; align-items: stretch;
  border: 1px solid var(--line); border-top: 3px solid var(--zhu); box-shadow: 0 10px 30px rgba(0,0,0,.05);
  background:
    var(--hw-tl) left 10px top 10px / 24px 24px no-repeat,
    var(--hw-bl) left 10px bottom 10px / 24px 24px no-repeat,
    radial-gradient(ellipse 50% 70% at 0% 0%, var(--zhu-soft), transparent 70%), #fff; }
.lh-intro { padding: 46px 48px 40px 52px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.lh-intro::after { content: "命"; position: absolute; right: -20px; bottom: -70px; font-size: 300px; line-height: 1; color: rgba(20,20,20,.035); pointer-events: none; }
.lh-eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .4em; color: var(--zhu); }
.lh-title { margin: 0; font-weight: normal; font-size: 42px; letter-spacing: .2em; display: flex; align-items: center; gap: 18px; color: var(--ink); }
.lh-seal { flex: none; display: inline-grid; place-items: center; width: 62px; height: 62px; background: var(--zhu); color: #fff; font-size: 38px; border-radius: 5px; letter-spacing: 0; box-shadow: 0 6px 16px rgba(179,38,30,.28), inset 0 0 0 3px rgba(255,255,255,.18); }
.lh-lead { margin: 16px 0 22px; font-size: 18px; line-height: 1.9; color: var(--ink2); max-width: 30em; }
.lh-tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.lh-tools li { display: grid; grid-template-columns: 3.4em 1fr; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.lh-tools b { font-weight: normal; font-size: 20px; letter-spacing: .2em; color: var(--zhu); }
.lh-tools span { font-size: 15px; color: var(--ink2); line-height: 1.75; }
.lh-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; border: 1px solid var(--line); background: rgba(255,255,255,.7); position: relative; z-index: 1; }
.lh-stats:empty { display: none; }
.lh-stats > div { padding: 12px 10px 10px; text-align: center; }
.lh-stats > div + div { border-left: 1px dotted var(--line2); }
.lh-stats b { display: block; font-weight: normal; font-family: var(--num); font-size: 32px; line-height: 1.1; color: var(--zhu); }
.lh-stats b small { font-family: var(--kai); font-size: 15px; color: var(--ink); margin-left: 2px; }
.lh-stats span { font-size: 14px; color: var(--mute); letter-spacing: .15em; }
.lh-links { margin: 18px 0 0; display: flex; gap: 26px; font-size: 15px; position: relative; z-index: 1; }
.lh-links a { color: var(--zhu); text-decoration: none; border-bottom: 1px solid currentColor; }
/* 右侧登录卡：贴在首屏里，左边一道细线隔开，不再单独浮着 */
.login-hero .login-card { width: auto; margin: 0; padding: 44px 40px 30px; text-align: left; border: 0 !important; border-left: 1px solid var(--line) !important; box-shadow: none;
  background: var(--hw-tr) right 10px top 10px / 24px 24px no-repeat, var(--hw-br) right 10px bottom 10px / 24px 24px no-repeat, #fff; display: flex; flex-direction: column; justify-content: center; }
.lc-h { margin: 0; font-weight: normal; font-size: 28px; letter-spacing: .4em; color: var(--ink); text-align: center; }
.lc-h::after { content: ""; display: block; width: 30px; height: 2px; background: var(--zhu); margin: 12px auto 0; }
.login-hero .login-sub { text-align: center; font-size: 15px; margin: 12px 0 22px; }
.login-hero .login-switch { text-align: center; }
.login-hero .login-note { font-size: 13px; }
.login > .proof, .login > .login-price { margin-top: 0; }
@media (max-width: 900px) {
  .login-hero { grid-template-columns: minmax(0, 1fr); }
  .login-hero .login-card { order: -1; border-left: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 30px 22px 24px; }
  .lh-intro { padding: 28px 22px 26px; }
  .lh-title { font-size: 30px; letter-spacing: .12em; gap: 12px; }
  .lh-seal { width: 46px; height: 46px; font-size: 28px; }
  .lh-intro::after { font-size: 200px; bottom: -50px; }
  .lh-stats b { font-size: 26px; }
}
