.brand-logo{width:44px;height:44px;border-radius:50%;object-fit:contain;display:block;padding:4px;background:#fff;border:1px solid #9bc9a6;box-shadow:0 4px 14px rgba(47,111,78,.18)}
.optional-label{display:inline-block;margin-left:6px;padding:1px 7px;border-radius:999px;background:#f0ece2;color:var(--muted);font-size:10px;font-weight:500}

/* 五行颜色：木、火、土、金、水 */
.wx-wood{color:#278b4c!important}
.wx-fire{color:#e33d44!important}
.wx-earth{color:#d99a05!important}
.wx-metal{color:#7a8085!important}
.wx-water{color:#3977e9!important}

.personality-card .section-heading{align-items:flex-start}
.personality-card .section-heading>b{font-family:serif}
.ganzhi-stack{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:78px;margin:5px 0}
.pillar .ganzhi-stack b{display:block;font-family:serif;font-size:31px;line-height:1.05;margin:0}
.pillar.main .ganzhi-stack b{filter:saturate(1.2) brightness(1.15)}
.report-birth-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.report-lunar{display:inline-flex;align-items:center;padding:4px 11px;border:1px solid #9bc9a6;border-radius:999px;background:#fff;color:var(--ink)!important;font-weight:800;box-shadow:0 3px 12px rgba(47,111,78,.1)}

.combined-hexagram{padding-bottom:0;overflow:hidden}
.hexagram-pair{display:grid;grid-template-columns:1fr 1fr;margin:0 -28px}
.hexagram-panel{padding:5px 28px 28px;min-width:0}
.hexagram-panel+ .hexagram-panel{border-left:1px solid var(--line)}
.hexagram-panel .mini-heading{text-align:center}
.mini-heading span{font-size:10px;letter-spacing:2px;color:var(--gold)}
.mini-heading h3{font-family:serif;font-size:25px;margin:3px 0 10px}
.hexagram-panel .gua-title{margin:8px 0 20px}
.hexagram-panel .yao-list{width:min(100%,480px);margin:0 auto}
.hexagram-panel .yao-row{grid-template-columns:100px minmax(64px,88px) minmax(88px,1fr) 38px}
.hexagram-panel .yao-row b{display:flex;align-items:center;font-size:13px}
.hexagram-panel .yao-row b small{color:var(--muted);font-weight:400}
.hexagram-panel .yao-row .relation{font-weight:700}
.hexagram-panel .yao-row .relation-wrap{display:flex;flex-direction:column;align-items:center;text-align:center;line-height:1.2;min-width:0}
.hexagram-panel .yao-row .fu-shen{display:block;margin-top:4px;color:var(--ink-2);font-size:10px;font-weight:600;white-space:nowrap}
.hexagram-panel .yao-row i.moving{background:var(--gold)}
.hexagram-panel .yao-row i.moving.yin:after{background:var(--card)}
.mobile-hexagram-table{display:none}

.report-actions{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;margin-top:18px}
.trend-button{background:var(--gold);color:#fff;border-color:var(--gold);min-height:54px;font-size:16px}
.trend-button:hover{box-shadow:0 12px 30px rgba(47,111,78,.22)}
.ghost-light{background:var(--card);border-color:var(--line);color:var(--ink)}

/* 周期趋势独立页面 */
.trend-shell{max-width:980px;margin:0 auto}
.trend-hero{position:relative;text-align:center;color:#fff;background:var(--gold);border-radius:22px;padding:35px 28px;margin-bottom:18px;overflow:hidden}
.trend-hero:after{content:"";position:absolute;width:240px;height:240px;border-radius:50%;border:1px solid rgba(255,255,255,.2);right:-90px;top:-120px}
.trend-hero a{position:absolute;left:25px;top:23px;color:#fff7f1;font-size:13px}
.trend-hero h1{font-family:serif;color:var(--yellow);font-size:30px;letter-spacing:3px;margin:5px 0}
.trend-hero p{margin:0;color:#fff7f1}
.trend-card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:28px;margin-bottom:18px;box-shadow:var(--shadow)}
.section-heading.centered{justify-content:center;text-align:center}
.cycle-stage{position:relative;width:min(100%,680px);aspect-ratio:1/1;margin:0 auto}
.cycle-node{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);width:92px;text-align:center;color:var(--gold)}
.cycle-node small{display:block;color:var(--ink-2);font-size:9px;line-height:1.08;word-spacing:2px}
.cycle-node strong{display:block;font-family:serif;font-size:25px;line-height:1.1;margin-top:3px}
.trend-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:190px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:0 5px 18px rgba(47,111,78,.12)}
.trend-center h3{text-align:center;color:var(--gold);font-size:14px;margin:0 0 9px}
.trend-center h3 small{font-size:11px}
.center-yao-row{min-height:25px;padding:2px 0}
.center-yao-main{display:grid;grid-template-columns:46px 1fr 18px 18px;align-items:center;gap:5px;height:21px;font-size:11px}
.center-yaos i{display:block;height:5px;background:#303438;position:relative;border-radius:1px}
.center-yaos i.yin:after{content:"";position:absolute;width:8px;height:7px;left:calc(50% - 4px);top:-1px;background:#fff}
.center-yaos b{font-family:serif}.center-yaos small{color:var(--gold)}
.center-yaos .center-fu-shen{display:block;color:var(--muted);font-size:8px;line-height:1.2;padding-left:0;white-space:nowrap}
.trend-table th,.trend-table td{text-align:center}
.trend-table td:first-child{text-align:left;color:#66717a}
.trend-table td:nth-child(2),.trend-table td:nth-child(3){font-family:serif;font-size:18px;font-weight:700}
.trend-table td:last-child{color:var(--gold)}

@media(max-width:820px){
  .brand-logo{width:38px;height:38px}
  .personality-card .section-heading h2{font-size:clamp(22px,7vw,28px);letter-spacing:2px}
  .combined-hexagram{margin-inline:-4px;padding:20px 8px 8px;border-radius:14px}
  .combined-hexagram>.section-heading{justify-content:center;margin-bottom:10px;text-align:center}
  .combined-hexagram>.section-heading>div{width:100%}
  .combined-hexagram>.section-heading span{display:none}
  .combined-hexagram>.section-heading h2{margin:0;padding-bottom:8px;border-bottom:1px solid var(--line);color:#438cc5;font-family:"Microsoft YaHei","PingFang SC",sans-serif;font-size:18px;letter-spacing:5px;text-align:center}
  .hexagram-pair{display:none}
  .mobile-hexagram-table{display:block;width:100%;margin:0 auto;border:1px solid #dfd6c9;border-radius:7px;overflow:hidden;background:#fffdf9}
  .mobile-gua-summary{display:flex;align-items:center;justify-content:center;gap:10px;margin:0;padding:8px 6px;border-bottom:1px solid #e8ddd0;background:#f7f2eb;color:#37291f;font-size:13px;text-align:center}
  .mobile-gua-summary strong{font-weight:800}.mobile-gua-summary span{color:#438cc5;font-size:18px;line-height:1}
  .mobile-hexagram-header,.mobile-hexagram-row{display:grid;grid-template-columns:.82fr .98fr 1.2fr .82fr .98fr 1.2fr;align-items:stretch;width:100%;text-align:center}
  .mobile-hexagram-header{min-height:31px;border-bottom:1px solid #e2d7ca;background:#f5e9e5;color:#7c746c;font-size:11px;font-weight:700}
  .mobile-hexagram-header span{display:grid;place-items:center;padding:4px 1px}
  .mobile-hexagram-row{min-height:52px;border-bottom:1px solid #e7ded2}
  .mobile-hexagram-row:last-child{border-bottom:0}
  .mobile-hexagram-row>div{min-width:0;display:flex;align-items:center;justify-content:center;padding:5px 2px;text-align:center}
  .mobile-relation{flex-direction:column;font-size:11px;line-height:1.15}
  .mobile-relation strong{font-weight:800}.mobile-fu-shen{display:block;margin-top:3px;color:var(--muted);font-size:7px;white-space:nowrap}
  .mobile-yao-cell{position:relative;flex-direction:column;gap:2px}
  .mobile-yao-line{position:relative;display:block;width:min(86%,52px);height:6px;border-radius:1px;background:#2c211b}
  .mobile-yao-line.yin:after{content:"";position:absolute;top:-1px;left:calc(50% - 5px);width:10px;height:8px;background:#fffdf9}
  .mobile-yao-line.moving{background:#df8e20}.mobile-yao-line.moving.yin:after{background:#fffdf9}
  .moving-dot{position:static;color:#df8e20;font-size:7px;line-height:1}
  .mobile-attribute{position:relative;flex-direction:column;line-height:1.05}
  .mobile-attribute b{display:flex;justify-content:center;font-family:serif;font-size:14px}.mobile-attribute small{margin-top:2px;font-size:8px}.mobile-attribute em{position:static;margin-top:2px;color:var(--gold);font-size:8px;font-style:normal;line-height:1}
  .report-actions{grid-template-columns:1fr}
  .report-actions .button{width:100%}
  .trend-card{padding:22px 12px}
  .cycle-stage{width:100%;min-height:480px;aspect-ratio:1/1.28}
  .cycle-node{width:70px}
  .cycle-node small{font-size:9px}
  .cycle-node strong{font-size:22px}
  .trend-center{width:150px;padding:10px}
  .trend-center h3{font-size:12px}
  .center-yao-main{grid-template-columns:39px 1fr 15px 14px;gap:3px;height:21px;font-size:10px}
  .center-yaos .center-fu-shen{font-size:9px}
}

@media(max-width:430px){
  .pillars{gap:5px}
  .pillar .ganzhi-stack b{font-size:27px}
  .ganzhi-stack{min-height:66px}
  .combined-hexagram{margin-inline:-8px;padding:16px 5px 7px}
  .combined-hexagram>.section-heading h2{font-size:17px;letter-spacing:4px}
  .mobile-gua-summary{gap:6px;padding-inline:3px;font-size:12px}
  .mobile-hexagram-header{font-size:10px}
  .mobile-hexagram-row{min-height:54px}
  .mobile-hexagram-row>div{padding-inline:1px}
  .mobile-relation{font-size:10px}.mobile-fu-shen{font-size:6.5px;letter-spacing:-.3px}
  .mobile-yao-line{width:min(82%,44px);height:5px}
  .mobile-attribute b{font-size:13px}.mobile-attribute small,.mobile-attribute em{font-size:7px}
  .trend-hero{border-radius:16px;padding:42px 16px 25px}
  .trend-hero a{left:16px;top:14px}
  .trend-hero h1{font-size:23px}
  .cycle-stage{min-height:430px}
  .cycle-node{width:58px}
  .cycle-node strong{font-size:20px}
  .trend-center{width:138px}
  .trend-table{width:100%;min-width:0;table-layout:fixed}
  .trend-table th,.trend-table td{padding-left:3px;padding-right:3px;font-size:12px}
  .trend-table th:first-child,.trend-table td:first-child{width:29%}
  .trend-table th:nth-child(2),.trend-table td:nth-child(2),
  .trend-table th:nth-child(3),.trend-table td:nth-child(3){width:15%}
  .trend-table th:last-child,.trend-table td:last-child{width:41%;overflow-wrap:anywhere}
  .trend-table td:nth-child(2),.trend-table td:nth-child(3){font-size:17px}
}

