/* V0.8: brand comparison and detail pages */
.v6-lower .compare-panel{padding:clamp(18px,1.3vw,34px)}
.compare-panel .panel-head{align-items:flex-start}
.compare-panel .panel-head h3{font-size:17px}
.compare-panel .panel-head p{font-size:12px}
.compare-panel .switch{border:1px solid #e0ebe2;border-radius:8px}
.compare-panel .switch button{font-size:12px;padding:7px 10px}
.rank-list{gap:3px;margin-top:17px}
.rank-row{grid-template-columns:26px 42px minmax(100px,150px) minmax(80px,1fr) 80px 16px;gap:12px;min-height:59px;padding:7px 11px;border-radius:8px}
.rank-row.me{background:#e8f7ed}
.rank-row:hover{background:#f0f8f2}
.rank-row.me:hover{background:#dff3e5}
.rank-index{font:600 13px DIN-Medium,sans-serif;color:#748e79}
.rank-row:first-child .rank-index{color:#087d3c}
.brand-badge{width:40px;height:40px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;flex:none;border:1px solid #e3e9e4;background:#fff;border-radius:9px}
.brand-badge img{display:block;max-width:100%;max-height:100%;object-fit:contain}
.brand-badge.logo-luckin img,.brand-badge.logo-mixue img,.brand-badge.logo-yht img{position:absolute;left:1px;top:1px;height:38px;width:auto;max-height:none;max-width:none}
.brand-badge.logo-guming img,.brand-badge.logo-chagee img,.brand-badge.logo-chapanda img{width:40px;height:40px;max-width:none;max-height:none;object-fit:cover}
.brand-badge.logo-chagee img{width:95px;height:95px;position:absolute;left:-3px;top:-24px}
.brand-badge.logo-chapanda img{width:38px;height:38px;object-fit:contain}
.brand-badge.brand-initial{background:#f1f5f2;color:#486d56;border-color:#dfe9e1;font:600 12px DIN-Medium,"PingFang SC","Microsoft YaHei",sans-serif}
.rank-name{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-name small{display:block;font-size:10px;color:#16844a;font-weight:400;margin-top:1px}
.rank-track{height:8px}
.rank-row b{font-size:18px}
.rank-arrow{font-size:16px}
@media(max-width:800px){.compare-panel .panel-head{flex-direction:column;align-items:stretch}.compare-panel .switch{align-self:flex-start}.rank-row{grid-template-columns:20px 34px minmax(60px,1fr) 60px 12px;gap:7px;padding:7px 5px}.brand-badge{width:32px;height:32px;border-radius:7px}.brand-badge.logo-luckin img,.brand-badge.logo-mixue img,.brand-badge.logo-yht img{height:30px}.brand-badge.logo-guming img,.brand-badge.logo-chagee img,.brand-badge.logo-chapanda img{width:32px;height:32px}.brand-badge.logo-chagee img{width:77px;height:77px;left:-3px;top:-19px}.brand-badge.logo-chapanda img{width:30px;height:30px}.rank-track{display:none}.rank-row b{font-size:15px}.rank-name{font-size:11px}}
.v8-page-toolbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;min-height:49px;margin:0 0 10px}
.v8-page-toolbar .back-btn{padding:0;color:#087d40;font-size:12px;white-space:nowrap}
.v8-page-toolbar .crumb{margin:0;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.v8-page-toolbar .filters label{color:#607b69}
.v8-page-toolbar .filters .text-btn{background:#fff;color:#26764b;border-color:#d3e5d7}
.v8-page-toolbar+.notice{margin:0 0 12px;padding:9px 13px;border-radius:7px}
.detail-head{min-height:146px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;border-radius:14px;padding:26px 30px;margin-bottom:14px;border:0}
.detail-head h2{font-size:clamp(23px,1.3vw,36px);margin:0 0 8px;line-height:1.2}
.detail-head h2>.ui-icon{width:27px;height:27px;flex:none}
.detail-head p{font-size:12px;line-height:1.65;max-width:850px}
.v8-risk-hero{background:linear-gradient(110deg,#084b35 0%,#0c6440 100%);color:#fff}
.v8-risk-hero h2,.v8-risk-hero h2>.ui-icon,.v8-risk-hero p{color:#fff}
.v8-risk-hero p{opacity:.82}
.v8-risk-hero .detail-score{color:#ffd2b5;border-color:#ffffff50}
.v8-risk-hero .detail-score small{color:#c7e8d2}
.v8-repute-hero{background:linear-gradient(110deg,#e8f8ed 0%,#f5fcf7 100%);color:#125237}
.v8-repute-hero .detail-score{color:#0b8843;border-color:#2d995d55}
.v8-day-hero{background:linear-gradient(110deg,#e9f4ed,#fff);color:#135337}
.detail-score{font-size:28px;text-align:left;min-width:180px;padding-left:24px;border-left:1px solid currentColor;line-height:1.15}
.detail-score small{margin-top:7px;font-size:11px}
.detail-layout{grid-template-columns:minmax(0,1.6fr) minmax(300px,.55fr);gap:14px}
.detail-layout .panel{border-color:#dce9df;border-radius:13px;padding:22px 24px}
.detail-layout>div .panel+.panel{margin-top:14px}
.detail-layout aside.panel{align-self:start;background:#f9fcfa}
.detail-layout .section-title{align-items:center}
.detail-layout .section-title h3{font-size:16px;color:#174a2f}
.detail-layout .section-title small{font-size:11px}
.metric-table{margin-top:14px;border-top:1px solid #dbe9df}
.metric-table th{background:#f1f8f3;font-size:11px;padding:10px 12px;color:#4d7159}
.metric-table td{padding:15px 12px;font-size:12px;line-height:1.6}
.metric-table td:first-child{color:#1d5535;min-width:145px}
.metric-table td:nth-child(2){color:#314e39;font-family:DIN-Medium,"PingFang SC","Microsoft YaHei",sans-serif}
.metric-table td:nth-child(3){color:#8b6e4c;font-weight:600}
.metric-table tbody tr:nth-child(2n){background:#fbfdfb}
.detail-callout{background:#edf7f0;border-top:0;border-radius:8px;padding:12px 14px;margin-top:14px;color:#516e59}
.metric-chart svg{height:clamp(205px,15vw,315px)}
.metric-chart .axis{font-size:12px}
.chart-hint{margin-top:7px}
.detail-actions button{border-radius:7px;min-height:35px}
.detail-actions button.on{background:#087f40;color:#fff;border-color:#087f40}
.source-list li{padding:12px 0;line-height:1.5}
.status-note{font-size:11px;line-height:1.6}
.metric-brief{border:0;gap:5px}
.metric-brief>div{background:#edf7f0;border-radius:7px;padding:10px}
.metric-brief>div+div{border:0}
.v8-day-context{border-top:1px solid #dce9df;margin-top:18px;padding-top:18px}
.v8-day-context .metric-chart svg{height:230px}
.day-grid{gap:8px}
.day-cell{border:1px solid #e1eee5;background:#f4faf6;padding:16px}
.day-cell b{font-size:clamp(20px,1.2vw,30px)}
.day-nav button:hover:not(:disabled){border-color:#8ac99e;background:#f3faf5}
@media(max-width:1100px){.v8-page-toolbar{grid-template-columns:auto 1fr}.v8-page-toolbar .filters{grid-column:1/-1;justify-content:flex-start}.detail-layout{grid-template-columns:1fr}.detail-layout aside.panel{display:block}}
@media(max-width:700px){.v8-page-toolbar{gap:8px}.v8-page-toolbar .crumb{font-size:10px}.v8-page-toolbar .filters{gap:5px}.v8-page-toolbar .filters label{display:none}.v8-page-toolbar .filters select{font-size:11px;min-width:95px}.v8-page-toolbar .filters .text-btn{display:flex;height:38px;padding:0 10px;font-size:11px}.detail-head{grid-template-columns:1fr;gap:14px;padding:21px 18px}.detail-head h2{font-size:22px}.detail-score{border-left:0;border-top:1px solid currentColor;padding:12px 0 0;font-size:23px}.detail-layout .panel{padding:17px}.metric-table{min-width:630px}.metric-chart svg{height:210px}.day-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.day-cell{padding:10px 7px}.day-cell span{font-size:10px}.day-cell b{font-size:16px}.metric-brief{grid-template-columns:repeat(3,minmax(0,1fr))}.metric-brief>div{padding:8px 5px}.metric-brief strong{font-size:14px}.detail-layout aside.panel{overflow-x:visible}}

@media(max-width:700px){.rank-row{grid-template-columns:20px 34px minmax(60px,1fr) 60px}}
