.brand-logo{width:44px;height:44px;border-radius:50%;object-fit:cover;display:block;box-shadow:0 3px 12px rgba(167,79,61,.14)}
.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)}

.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)}
.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-row{grid-template-columns:58px minmax(56px,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 i.moving{background:#dd7e20}
.hexagram-panel .yao-row i.moving.yin:after{background:var(--card)}

.report-actions{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:12px;margin-top:18px}
.trend-button{background:#4c96db;color:#fff;border-color:#4c96db;min-height:54px;font-size:16px}
.trend-button:hover{box-shadow:0 12px 30px rgba(76,150,219,.2)}
.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:#5d9fda;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:#eaf4ff;font-size:13px}
.trend-hero h1{font-family:serif;color:#ffe000;font-size:30px;letter-spacing:3px;margin:5px 0}
.trend-hero p{margin:0;color:#eef7ff}
.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:#3f8fe4}
.cycle-node small{display:block;color:#2f3e49;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 #e4d9c8;border-radius:12px;padding:14px;box-shadow:0 5px 18px rgba(23,59,43,.1)}
.trend-center h3{text-align:center;color:#438ed8;font-size:14px;margin:0 0 9px}
.trend-center h3 small{font-size:11px}
.center-yaos>div{display:grid;grid-template-columns:46px 1fr 18px 18px;align-items:center;gap:5px;height:25px;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:#458ed4}
.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:#3977e9}

@media(max-width:820px){
  .brand-logo{width:38px;height:38px}
  .personality-card .section-heading h2{font-size:clamp(22px,7vw,28px);letter-spacing:2px}
  .hexagram-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin:0 -16px}
  .hexagram-panel{padding:5px 12px 24px}
  .hexagram-panel+.hexagram-panel{border-left:1px solid var(--line);border-top:0;padding-top:5px}
  .hexagram-panel .mini-heading h3{font-size:21px}
  .hexagram-panel .gua-title{font-size:18px;margin:7px 0 14px;white-space:nowrap}
  .hexagram-panel .gua-title small{font-size:8px}
  .hexagram-panel .yao-row{grid-template-columns:26px minmax(30px,42px) minmax(45px,1fr) 12px;gap:3px;font-size:9px;padding:6px 0}
  .hexagram-panel .yao-row b{font-size:10px;white-space:nowrap;min-width:0}
  .hexagram-panel .yao-row b small{font-size:8px}
  .hexagram-panel .yao-row i.yin:after{width:8px;left:calc(50% - 4px)}
  .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:7px}
  .cycle-node strong{font-size:22px}
  .trend-center{width:150px;padding:10px}
  .trend-center h3{font-size:12px}
  .center-yaos>div{grid-template-columns:39px 1fr 15px 14px;gap:3px;height:23px;font-size:10px}
}

@media(max-width:430px){
  .pillars{gap:5px}
  .pillar .ganzhi-stack b{font-size:27px}
  .ganzhi-stack{min-height:66px}
  .hexagram-panel{padding-left:9px;padding-right:9px}
  .hexagram-panel .mini-heading span{font-size:8px;letter-spacing:1.4px}
  .hexagram-panel .mini-heading h3{font-size:19px}
  .hexagram-panel .gua-title{font-size:16px}
  .hexagram-panel .yao-row{grid-template-columns:24px minmax(28px,38px) minmax(42px,1fr) 10px;gap:2px}
  .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}
}

