﻿:root{font-family:Arial,"PingFang SC","Microsoft YaHei",sans-serif;color:#24231f;background:#f3efe7;font-synthesis:none;--paper:#f3efe7;--ink:#24231f;--clay:#d97757;--sage:#788c5d;--line:#d8d1c5;--cream:#faf7f0}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{min-width:720px;background:var(--paper)}button,input{font:inherit}[hidden]{display:none!important}.menu-view{display:flex;min-height:100vh;flex-direction:column;padding:25px 38px 20px;background:linear-gradient(115deg,transparent 63%,rgba(217,119,87,.06) 63%),var(--paper)}.menu-header,.menu-footer{display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;align-items:center;gap:10px;font-family:Georgia,serif;font-size:16px;font-weight:700;letter-spacing:.08em}.wordmark i{display:grid;width:34px;height:34px;place-items:center;border-radius:50%;background:var(--ink);color:var(--paper);font-family:Arial,sans-serif;font-size:11px;font-style:normal}.menu-meta,.menu-footer{color:#756f65;font-size:9px;font-weight:700;letter-spacing:.16em}.menu-main{display:grid;max-width:1180px;width:100%;grid-template-columns:.82fr 1.7fr;align-items:center;gap:7vw;margin:auto}.section-no,.panel small,.report-brand span{color:#7b7469;font-size:9px;font-weight:800;letter-spacing:.17em}.intro h1{margin:20px 0 18px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(44px,5.1vw,76px);font-weight:400;letter-spacing:-.045em;line-height:.94}.intro h1 em{color:var(--clay);font-style:italic}.intro p{max-width:360px;margin:0;color:#6d675e;font-family:Georgia,serif;font-size:14px;line-height:1.7}.report-grid{display:grid;grid-template-columns:1.14fr .86fr;gap:14px}.report-card{display:flex;min-height:390px;flex-direction:column;justify-content:space-between;padding:23px;border:1px solid var(--line);border-radius:3px;background:var(--cream);color:var(--ink);text-align:left}.report-card.featured{border:0;background:var(--clay);color:#211d19;box-shadow:18px 20px 0 rgba(36,35,31,.08);cursor:pointer;transition:transform .18s,box-shadow .18s}.report-card.featured:hover{transform:translate(-3px,-3px);box-shadow:22px 24px 0 rgba(36,35,31,.1)}.card-top{display:flex;align-items:center;justify-content:space-between;font-size:8px;font-weight:800;letter-spacing:.13em}.available{padding:5px 8px;border:1px solid rgba(36,35,31,.35);border-radius:999px}.card-mark{display:flex;height:95px;align-items:flex-end;justify-content:center;gap:7px;padding:14px}.card-mark span{width:18px;border:2px solid var(--ink);border-radius:50% 50% 4px 4px}.card-mark span:nth-child(1){height:35%}.card-mark span:nth-child(2){height:65%}.card-mark span:nth-child(3){height:48%}.card-mark span:nth-child(4){height:88%;background:var(--ink)}.report-card h2{margin:0 0 9px;font-family:Georgia,"Times New Roman",serif;font-size:29px;font-weight:400;letter-spacing:-.025em}.report-card p{margin:0;color:rgba(36,35,31,.72);font-size:11px;line-height:1.6}.card-action{display:flex;align-items:center;justify-content:space-between;padding-top:16px;border-top:1px solid rgba(36,35,31,.28);font-size:10px;font-weight:800;letter-spacing:.08em}.card-action b{font-size:20px}.future{background:#e7e3da;color:#706b62}.future-shape{width:110px;height:110px;align-self:center;border:2px solid #8b857a;border-radius:50%;box-shadow:inset 0 0 0 20px #e7e3da,inset 0 0 0 22px #8b857a}.menu-footer{padding-top:15px;border-top:1px solid var(--line)}.report-view{min-height:100vh;padding:14px 20px 18px;background:var(--paper)}.report-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.report-brand,.report-actions{display:flex;align-items:center}.report-brand{gap:12px}.report-brand>button{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--ink);border-radius:50%;background:transparent;color:var(--ink);font-size:18px;cursor:pointer}.report-brand h1{margin:2px 0 0;font-family:Georgia,serif;font-size:21px;font-weight:400}.report-actions{gap:10px}.report-actions button{height:32px;padding:0 13px;border:1px solid var(--ink);border-radius:999px;background:transparent;color:var(--ink);font-size:9px;font-weight:800;cursor:pointer}.data-status{padding:6px 10px;border-radius:999px;background:#e5dfd4;color:#6c665d;font-size:8px;font-weight:800}.data-status.live{background:#dce5d0;color:#4d6137}.data-status.loading{background:#f2dfb9;color:#76551d}.filters{display:grid;grid-template-columns:145px minmax(180px,1fr) 145px 100px;align-items:end;gap:9px;padding:10px 11px;border:1px solid var(--line);border-radius:3px;background:var(--cream)}.filters label{display:grid;gap:5px}.filters label span{color:#716b61;font-size:9px;font-weight:800}.filters input{height:32px;min-width:0;padding:0 10px;border:0;border-bottom:1px solid #bcb4a7;outline:none;background:transparent;color:var(--ink);font-size:10px}.filters input:focus{border-color:var(--clay)}.segments{display:grid;height:32px;grid-template-columns:1fr 1fr;padding:3px;background:#e7e1d7}.category{border:0;background:transparent;color:#766f65;font-size:9px;font-weight:800;cursor:pointer}.category.active{background:var(--ink);color:var(--paper)}.query{height:32px;border:0;background:var(--clay);color:var(--ink);font-size:9px;font-weight:900;cursor:pointer}.page-error{margin-top:8px;padding:8px 11px;border-left:3px solid #b84f3b;background:#f5ddd4;color:#873b2d;font-size:10px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:8px}.kpi,.panel{border:1px solid var(--line);border-radius:3px;background:var(--cream)}.kpi{min-width:0;padding:12px 14px;border-top:3px solid var(--accent,var(--sage))}.kpi label{color:#7b7469;font-size:8px;font-weight:800;letter-spacing:.06em}.kpi b{display:block;margin-top:6px;overflow:hidden;font-family:Georgia,serif;font-size:clamp(18px,2vw,25px);font-weight:400;text-overflow:ellipsis;white-space:nowrap}.kpi small{display:block;margin-top:5px;overflow:hidden;color:#90897e;font-size:7px;text-overflow:ellipsis;white-space:nowrap}.overview,.details{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(245px,.7fr);gap:8px;margin-top:8px}.panel{min-width:0;padding:11px 12px}.panel header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:7px}.panel h2{margin:2px 0 0;font-family:Georgia,serif;font-size:13px;font-weight:400}.panel header em{padding:4px 8px;border-radius:999px;background:#e4e9da;color:#53633f;font-size:8px;font-style:normal;font-weight:800}.chart{height:145px}.trend-svg{display:block;width:100%;height:100%}.guide{stroke:#ddd6cb;stroke-width:1;stroke-dasharray:2 5}.area{fill:url(#trendGradient)}.line{fill:none;stroke:var(--clay);stroke-linecap:round;stroke-linejoin:round;stroke-width:3}.dot{fill:var(--cream);stroke:var(--clay);stroke-width:3}.dot.current{fill:var(--ink);stroke:var(--ink)}.trend-label{fill:#7d766c;font-size:9px;font-weight:700}.trend-value{fill:#312f2b;font-family:Georgia,serif;font-size:10px}.types{display:grid;gap:12px;padding:6px 2px}.type-row{display:grid;grid-template-columns:84px 1fr 22px;align-items:center;gap:7px}.type-name{overflow:hidden;color:#5f5a52;font-size:8px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.track{height:7px;overflow:hidden;background:#e5dfd5}.fill{height:100%;background:var(--clay)}.fill.zero{background:#776a9b}.fill.yoy{background:#c69b45}.type-count{font-family:Georgia,serif;font-size:9px;text-align:right}.table-panel,.rank-panel{height:260px}.table-scroll,.ranks{height:203px;overflow:auto}table{width:100%;border-collapse:collapse;table-layout:fixed}th,td{padding:7px 6px;border-bottom:1px solid #e5dfd5;font-size:7.5px;text-align:right;vertical-align:middle}th{position:sticky;top:0;background:var(--cream);color:#837c72;font-weight:800}th:first-child,td:first-child{width:37%;text-align:left}.product strong,.product small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product strong{font-size:8.5px}.product small{margin-top:2px;color:#8c857b;font-size:7px}.tag{display:inline-block;max-width:100%;overflow:hidden;padding:3px 5px;background:#f1d7ce;color:#963f2f;font-size:7px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.tag.zero{background:#e4def0;color:#68558f}.tag.yoy{background:#efe1bf;color:#80601c}.ranks{display:grid;align-content:start;gap:10px}.rank{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:7px}.rank>i{display:grid;width:20px;height:20px;place-items:center;border:1px solid var(--ink);border-radius:50%;font-family:Georgia,serif;font-size:8px;font-style:normal}.rank-main{min-width:0}.rank-name{overflow:hidden;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.rank .track{height:5px;margin-top:4px}.rank .fill{background:var(--sage)}.rank-value{font-family:Georgia,serif;font-size:8px}.empty{padding:38px 10px;color:#8b8479;font-size:9px;text-align:center}@media(max-width:980px){.menu-view{padding-left:24px;padding-right:24px}.menu-main{grid-template-columns:.7fr 1.8fr;gap:4vw}.report-view{padding-left:13px;padding-right:13px}.filters{grid-template-columns:130px minmax(150px,1fr) 125px 90px}}@media(max-height:650px) and (orientation:landscape){.menu-view{padding-top:15px;padding-bottom:12px}.report-card{min-height:330px}.report-view{padding-top:9px}.chart{height:120px}.table-panel,.rank-panel{height:230px}.table-scroll,.ranks{height:173px}.kpi{padding-top:9px;padding-bottom:9px}}

/* 小程序 web-view 横屏优化 v2：压缩操作区，把空间和字号留给报表内容。 */
.report-view{padding:8px 16px 14px}
.report-header{min-height:38px;margin-bottom:6px}
.report-brand{gap:9px}
.report-brand>button{width:30px;height:30px;font-size:16px}
.report-brand h1{margin-top:0;font-size:18px;line-height:1.05}
.report-brand span{font-size:8px}
.report-actions{gap:7px}
.report-actions button{height:28px;padding:0 12px;font-size:9px}
.data-status{padding:5px 9px;font-size:8px}
.filters{grid-template-columns:130px minmax(220px,1fr) 135px 96px;gap:7px;padding:6px 8px}
.filters label{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px}
.filters label span{font-size:8px;white-space:nowrap}
.filters input{height:29px;padding:0 7px;font-size:10px}
.segments,.query{height:29px}
.kpis{gap:7px;margin-top:7px}
.kpi{padding:8px 12px}
.kpi label{font-size:8.5px}
.kpi b{margin-top:3px;font-size:clamp(19px,2vw,25px);line-height:1.05}
.kpi small{margin-top:3px;overflow:visible;font-size:8px;line-height:1.25;text-overflow:clip;white-space:normal}
.overview,.details{gap:7px;margin-top:7px}
.panel{padding:10px 12px}
.panel header{margin-bottom:8px}
.panel small{font-size:9px}
.panel h2{font-size:15px;line-height:1.15}
.panel header em{padding:4px 8px;font-size:8.5px}
.chart{height:132px}
.trend-label{font-size:10px}
.trend-value{font-size:11px}
.types{gap:13px;padding:7px 2px}
.type-row{grid-template-columns:minmax(94px,1.1fr) minmax(90px,1.5fr) 26px;gap:8px}
.type-name{overflow:visible;font-size:9.5px;line-height:1.2;text-overflow:clip;white-space:normal}
.type-count{font-size:10px}
.table-panel,.rank-panel{height:312px}
.table-scroll,.ranks{height:247px}
th,td{padding:8px 7px;font-size:9px;line-height:1.28}
th:first-child,td:first-child{width:42%}
th:nth-child(2),td:nth-child(2),th:nth-child(3),td:nth-child(3),th:nth-child(4),td:nth-child(4){width:12.5%}
th:last-child,td:last-child{width:20.5%}
.product strong{display:-webkit-box;overflow:hidden;font-size:10px;line-height:1.28;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.product small{margin-top:3px;overflow:visible;font-size:8.5px;line-height:1.2;text-overflow:clip;white-space:normal}
.tag{max-width:none;overflow:visible;padding:4px 6px;font-size:8.5px;line-height:1.25;text-align:left;text-overflow:clip;white-space:normal}
.ranks{gap:12px;padding-right:4px}
.rank{grid-template-columns:24px minmax(0,1fr) auto;align-items:start;gap:8px}
.rank>i{width:24px;height:24px;font-size:9px}
.rank-name{display:-webkit-box;overflow:hidden;font-size:9.5px;line-height:1.25;text-overflow:clip;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.rank .track{height:6px;margin-top:5px}
.rank-value{padding-top:1px;font-size:9.5px;white-space:nowrap}
@media(max-width:980px){.report-view{padding-right:10px;padding-left:10px}.filters{grid-template-columns:118px minmax(180px,1fr) 124px 88px}.details{grid-template-columns:minmax(0,1.85fr) minmax(280px,.8fr)}}
@media(max-height:650px) and (orientation:landscape){.report-view{padding-top:5px}.report-header{min-height:34px;margin-bottom:4px}.report-brand>button{width:28px;height:28px}.report-brand h1{font-size:17px}.filters{padding-top:4px;padding-bottom:4px}.kpi{padding-top:7px;padding-bottom:7px}.chart{height:128px}.table-panel,.rank-panel{height:300px}.table-scroll,.ranks{height:235px}}
/* 顶部月份布局 v3 */
.report-actions{align-items:center}
.header-month{display:flex;align-items:center;gap:8px;padding:3px 5px 3px 10px;border:1px solid var(--line);border-radius:999px;background:var(--cream)}
.header-month span{color:#716b61;font-size:8px;font-weight:800;white-space:nowrap}
.header-month input{width:112px;height:22px;padding:0 7px;border:0;border-left:1px solid var(--line);outline:none;background:transparent;color:var(--ink);font-size:9px}
.filters{grid-template-columns:minmax(260px,1fr) 135px 96px}
@media(max-width:980px){.filters{grid-template-columns:minmax(210px,1fr) 124px 88px}.header-month input{width:106px}}
@media(max-height:650px) and (orientation:landscape){.header-month{padding-top:2px;padding-bottom:2px}.header-month input{height:21px}.filters{grid-template-columns:minmax(210px,1fr) 124px 88px}}