:root {
  color-scheme: light;
  --ink: #16231f;
  --muted: #63716c;
  --line: #dce5e1;
  --surface: #ffffff;
  --background: #f3f7f5;
  --green: #12382f;
  --green-2: #1b5949;
  --mint: #e8f3ee;
  --gold: #b57b27;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --shadow: 0 18px 50px rgba(18, 56, 47, 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Price selector panels are portalled outside clipped cards and scroll tables. */
.price-select-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;min-width:96px;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:white;color:var(--green);font:inherit;font-size:15px;cursor:pointer;white-space:nowrap}
.price-select-trigger::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);flex-shrink:0}
.price-select-trigger:disabled{opacity:.55;cursor:default}
.price-select-trigger:focus-visible,.price-select-panel button:focus-visible{outline:3px solid #8abbab;outline-offset:2px}
.price-select-panel{position:fixed;z-index:100;padding:12px;border:1px solid var(--line);border-radius:14px;background:white;color:var(--green);box-shadow:var(--shadow);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}
.price-select-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;font-size:15px}
.price-select-heading button{width:36px;height:36px;border:0;border-radius:8px;background:var(--mint);color:var(--green);font-size:22px;cursor:pointer}
.price-select-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.price-select-grid button{min-width:0;min-height:44px;padding:8px 3px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green);font-size:14px;white-space:nowrap;cursor:pointer}
.price-select-grid button[aria-selected="true"]{color:white;background:var(--green);border-color:var(--green);font-weight:700}
.price-select-grid button:disabled{opacity:.35;cursor:default}
.grid-price-filters label{min-width:0}
/* Guest workbench: no new branding, retain the established green palette. */
.auth-dialog { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 30px; border: 1px solid var(--line); border-radius: 22px; color: var(--ink); box-shadow: var(--shadow); }
.auth-dialog::backdrop { background: rgba(13,35,29,.45); backdrop-filter: blur(3px); }
.auth-dialog .login-card { width: 100%; padding: 0; margin: 12px 0 0; border: 0; border-radius: 0; box-shadow: none; }
.auth-close { display: block; margin-left: auto; width: 36px; height: 36px; border: 0; border-radius: 50%; font-size: 26px; background: var(--mint); color: var(--green); cursor: pointer; }
.auth-reason { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 10px 0 20px; }
.grid-price-page { max-width: 1000px; margin: 16px auto 0; }
.price-page-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.price-page-heading h1 { margin: 4px 0 0; font-size: 26px; }
.price-page-heading .price-back-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border: 1px solid #9abeb0; border-radius: 12px; background: #e6f2ed; color: var(--green-2); font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.price-back-button:hover { background: #d5e9e0; }
.price-back-button:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }
.grid-price-content { padding: 16px 20px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.price-scope { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.price-scope span { white-space: nowrap; }
.price-overview-heading h2 { margin: 0 0 14px; font-size: 17px; }
.price-panels { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; } /* 2026-11-07 删了左边单月价格小窗 */
.price-month-view { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.price-month-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 14px; }
.price-month-heading h2 { margin: 0; font-size: 17px; white-space: nowrap; }
.price-month-heading label { font-size: 13px; color: var(--muted); }
.price-month-heading select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: white; color: var(--green); font-size: 16px; font-weight: 650; }
.price-month-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.price-month-cards > div { min-width: 0; padding: 10px; border: 1px solid #d5e5dd; border-radius: 12px; background: #f2f8f5; }
.price-month-cards span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.price-month-cards strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.grid-price-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.grid-price-filters label { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.grid-price-filters select { min-height: 42px; min-width: 76px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--green); }
.price-filter-actions { display: flex; gap: 8px; }
.price-filter-actions .secondary-button { min-height: 42px; padding: 8px 12px; font-size: 13px; white-space: nowrap; }
.price-filter-actions .price-export { border: 1px solid #c8dbd3; background: white; }
.price-export:disabled { opacity: .5; cursor: not-allowed; }
.grid-price-status { padding: 8px 10px; background: var(--mint); border-radius: 8px; font-size: 13px; line-height: 1.6; }
.grid-price-overview { width: 100%; }
.price-pending { color: #7d8580; }
.grid-price-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-bottom: 0; }
.price-policy { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.7; }
.price-policy h3 { margin: 0 0 6px; color: var(--green); font-size: 13px; }
.price-policy p { margin: 5px 0 0; }
.report-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; margin: 20px 0; }
.report-actions .primary-button { width: 100%; margin: 0; min-height: 52px; padding: 12px 14px; font-size: 16px; }
.page-switch { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 12px; color: var(--green); border: 1px solid #c8dbd3; border-radius: 12px; background: white; font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.page-switch svg { width: 16px; height: 16px; fill: none; stroke: var(--green-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-switch:hover { background: var(--mint); }
.page-switch:focus-visible { outline: 3px solid #b7d8cb; outline-offset: 2px; }
.mobile-account-name { display: none; }
#headerAuthButton { white-space: nowrap; min-height: 44px; }

/* Promotion UI is scoped; existing report and account layouts are unchanged. */
.promotion-dialog { width: min(560px, calc(100vw - 28px)); }
.promotion-dialog form { display: grid; gap: 12px; }
.promotion-dialog input, .promotion-admin input { min-width: 0; max-width: 100%; }
.promotion-dialog p, .promotion-records article, .promotion-admin article, .promotion-admin p { overflow-wrap: anywhere; line-height: 1.7; }
.promotion-records article, .promotion-admin article { margin: 12px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.promotion-records p { margin-bottom: 0; }
.promotion-pagination { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: center; margin-top: 16px; }
.promotion-pagination span { white-space: nowrap; }
.promotion-pagination button { min-width: 0; padding: 10px 6px; }
.promotion-admin { min-width: 0; }
.promotion-admin input { width: 100%; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 0%, rgba(34, 117, 93, 0.12), transparent 32rem),
    var(--background);
  min-height: 100vh;
}

button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: relative;
  z-index: 30;
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 56, 47, 0.1);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: calc(100% - 48px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-actions { display: flex; align-items: center; gap: 10px; max-width: 100%; }
.account-summary { display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 12px; font-weight: 700; }
.account-summary button { border: 1px solid #c8dbd3; border-radius: 8px; background: #fff; color: var(--green); padding: 7px 10px; cursor: pointer; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; height: 44px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; line-height: normal; padding: 0 12px; border: 1px solid #c8dbd3; border-radius: 12px; background: #fff; }
.account-menu summary::-webkit-details-marker { display: none; }
.province-control::after, .account-menu summary::after {
  content: ""; width: 24px; height: 24px; flex: 0 0 24px; pointer-events: none;
  background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%231b5949' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.province-control::after { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.account-menu[open] summary::after { transform: rotate(180deg); }
.account-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(260px, calc(100vw - 28px)); padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.account-menu-panel{max-height:calc(100dvh - 160px);overflow-y:auto;overscroll-behavior:contain}
.price-menu{position:relative;min-width:0}
.price-menu summary{list-style:none;cursor:pointer}
.price-menu summary::-webkit-details-marker{display:none}
.price-menu[open] #functionControl svg{transform:translateY(-50%) rotate(180deg)}
.price-menu-panel{position:absolute;left:0;top:calc(100% + 8px);z-index:40;width:min(180px,calc(100vw - 28px));padding:6px;border:1px solid var(--line);border-radius:12px;background:white;box-shadow:var(--shadow)}
.price-menu-panel a{display:block;padding:12px;border-radius:8px;color:var(--green);text-decoration:none;font-size:14px}
.price-menu-panel a:hover{background:var(--mint)}
.market-price-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px}
#marketPricePage{max-width:1120px}
#marketPricePage .grid-price-table{width:max-content;min-width:100%;table-layout:auto}
#marketPricePage .grid-price-table th,#marketPricePage .grid-price-table td{width:auto;min-width:82px;padding:10px 8px;white-space:nowrap;font-size:13px}
#marketPricePage .grid-price-table th:first-child,#marketPricePage .grid-price-table td:first-child{min-width:110px;width:110px;position:sticky;left:0;background:#fff;z-index:1;box-shadow:1px 0 0 var(--line)}
#marketPricePage .grid-price-table th:first-child{background:#e8f3ee}
#marketPricePage input{width:100px;min-height:42px;border:1px solid var(--line);border-radius:9px;padding:8px}
.market-weighted-section{margin-top:24px}.market-weighted-section h2{font-size:18px}
#marketPricePage table{border-collapse:collapse}
#marketPricePage th,#marketPricePage td{border:1px solid #82998f}
#marketPricePage tfoot td{background:#e8f3ee;font-weight:700;color:var(--green)}
#marketPricePage tfoot td:first-child{white-space:normal;min-width:110px;background:#e8f3ee}
#marketPricePage .grid-price-table tfoot td:first-child{background:#e8f3ee}
#marketPricePage .market-weighted-table{display:table;width:min(100%,560px);font-size:14px}
#marketPricePage .market-weighted-table thead{display:table-header-group}
#marketPricePage .market-weighted-table tbody{display:table-row-group}
#marketPricePage .market-weighted-table tfoot{display:table-footer-group}
#marketPricePage .market-weighted-table tr{display:table-row;border:0;border-radius:0;padding:0;background:none}
#marketPricePage .market-weighted-table th,#marketPricePage .market-weighted-table td{display:table-cell;width:auto;padding:12px;text-align:right;white-space:nowrap}
#marketPricePage .market-weighted-table td::before{display:none;content:none}
#marketPricePage .market-weighted-table th{background:#e8f3ee;text-align:center}
#marketPricePage .market-weighted-table td:first-child{text-align:left}
#marketImportPreview{overflow-x:auto;max-width:100%;margin-top:16px}
#marketImportPreview table{display:table;width:max-content;min-width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}
#marketImportPreview tbody{display:table-row-group}
#marketImportPreview tr{display:table-row;border:0;border-radius:0;padding:0;background:none}
#marketImportPreview th,#marketImportPreview td{display:table-cell;min-width:110px;white-space:nowrap;border:1px solid #82998f;padding:8px}
#marketImportPreview td::before{display:none;content:none}
#marketImportPreview th{background:#e8f3ee}
.market-import-tools{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.market-import-tools input[type=number]{width:110px;max-width:100%}
.market-import-tools input[type=file]{max-width:100%}
@media(max-width:640px){#marketPriceFilters input{width:100%;min-width:0}#marketPriceFilters label{min-width:0}#marketPriceFilters button{padding-left:8px;padding-right:8px;white-space:nowrap}#marketPriceExport{grid-column:span 2}#marketPricePage .market-weighted-table th,#marketPricePage .market-weighted-table td{padding:10px 7px;font-size:12px}}
.analysis-download-card{flex:1;min-width:min(240px,100%);padding:16px;border:1px solid var(--line);border-radius:14px;background:#f7fbf9;color:var(--ink)}
.analysis-download-card h3{font-size:16px;margin:0 0 8px}
.analysis-download-card p{font-size:13px;line-height:1.6;margin:0 0 12px;color:var(--muted)}
.market-admin-hours{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.market-admin-hours label{display:grid;gap:6px}
.account-information { padding: 10px 12px; border-radius: 8px; background: var(--mint); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.account-information span { display: block; }
.account-menu-panel button, .account-menu-link { width: 100%; box-sizing: border-box; border: 0; text-align: left; background: transparent; display: block; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: 8px; font: inherit; }
.account-menu-panel button:hover, .account-menu-link:hover { background: var(--mint); }
.remaining-badge {
  display: inline-flex; align-items: center; height: 44px; padding: 0 12px;
  border: 1px solid #c8dbd3; border-radius: 12px; background: var(--mint);
  color: var(--green); font-size: 12px; font-weight: 800; white-space: nowrap;
}
.account-summary .remaining-badge { min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--mint); font-size: 14px; font-weight: 800; font-family: inherit; }
.remaining-badge:hover, .remaining-badge[aria-expanded="true"] { border-color: var(--green-2); box-shadow: 0 0 0 2px #d5e8df; }
.quota-popover { position: fixed; z-index: 120; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 20px; border: 1px solid #b4d0c3; border-radius: 16px; background: white; color: var(--ink); box-shadow: 0 12px 36px rgba(18,56,47,.18); }
.quota-popover h2 { margin: 0 0 12px; font-size: 17px; color: var(--green); }
.quota-popover dl { margin: 0; }
.quota-popover dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.4; }
.quota-popover dt { color: #455c52; }
.quota-popover dd { margin: 0; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.quota-popover p { margin: 14px 0 0; color: #52675e; font-size: 13px; line-height: 1.7; }
.trial-toast {
  position: fixed; z-index: 100; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  width: min(560px, calc(100% - 28px)); margin: 0;
  padding: 10px 12px; border: 1px solid #b9d5ca; border-radius: 12px; color: var(--green);
  background: rgba(255,255,255,.97); box-shadow: 0 10px 30px rgba(18,56,47,.16);
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
.trial-toast span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.trial-toast button { flex: 0 0 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--green); font-size: 22px; cursor: pointer; }
.trial-toast button:hover { background: var(--mint); }

.brand { display: flex; align-items: center; gap: 11px; color: inherit; cursor: default; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; color: #fff; background: var(--green);
  font-weight: 800; box-shadow: 0 6px 16px rgba(18, 56, 47, 0.18);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 16px; letter-spacing: 0.03em; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }

.province-control select {
  height: 44px; width: 150px; max-width: 100%; min-width: 0; border: 1px solid #c8dbd3; background: #fff; color: var(--green);
  border-radius: 12px; padding: 0 42px 0 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.province-control { min-width: 0; position: relative; display: block; }
.province-control select:disabled { cursor: wait; opacity: .65; }
button:focus-visible, summary:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--green-2); outline-offset: 3px; }
.province-unavailable { margin: 36px 0; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.province-unavailable h2 { margin-top: 0; }
.province-unavailable p { color: var(--muted); line-height: 1.7; }
.floating-contact { position: fixed; left: calc(100% - 88px); top: 55vh; z-index: 20; visibility: hidden;
  width: 76px; min-height: 70px; display: grid; justify-items: center; align-content: center; gap: 3px;
  padding: 8px 6px; border: 1px solid #b9d5ca; border-radius: 14px; background: #fff; color: var(--green);
  box-shadow: 0 5px 18px rgba(18,56,47,.14); font-size: 12px; font-weight: 700; cursor: grab;
  touch-action: none; user-select: none; -webkit-user-select: none; }
.floating-contact svg { width: 30px; height: 30px; fill: var(--mint); stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.floating-contact svg circle { fill: currentColor; stroke: none; }
.floating-contact.dragging { cursor: grabbing; }
.feedback-service-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

main { width: min(1000px, calc(100% - 40px)); margin: 0 auto 80px; }
/* Dedicated desktop side rails keep the draggable contact outside all main content. */
.platform-page > main { width: min(1600px, calc(100% - 208px)); }
.login-card { width: min(480px, 100%); margin: 76px auto; padding: 34px; border: 1px solid rgba(18, 56, 47, .1); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; font-size: 27px; line-height: 1.35; }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 22px; padding: 5px; border-radius: 12px; background: #edf4f1; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 750; cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--green); box-shadow: 0 3px 10px rgba(18, 56, 47, .1); }
.login-card form { display: grid; gap: 16px; margin-top: 24px; }
.login-card label > span:first-child, .login-card .field-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.login-card input { width: 100%; min-height: 48px; border: 1px solid #cbd8d3; border-radius: 11px; padding: 0 13px; outline: none; }
.login-card input:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(27, 89, 73, .1); }
.login-card .primary-button { margin-top: 0; }
.password-field { position: relative; display: block; min-width: 0; }
.password-field input { padding-right: 50px; }
.password-field input[aria-describedby] { padding-right: 84px; }
.password-status { position: absolute; right: 54px; top: 4px; height: 40px; width: 24px; display: grid; place-items: center; font-size: 22px; font-weight: 700; pointer-events: none; }
.password-status[data-state="valid"] { color: #18764c; }
.password-status[data-state="invalid"], .password-hint[data-state="invalid"] { color: #b42c27; }
.password-hint, .sms-status { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.password-toggle { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.password-toggle:hover, .password-toggle:focus-visible { background: var(--mint); color: var(--green); outline: none; }
.password-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.registration-trial-note { margin: -2px 0 0; padding: 11px 13px; border: 1px solid #c8dbd3; border-radius: 10px; background: #f0f7f4; color: var(--green); font-size: 13px; line-height: 1.6; }
.verification-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.verification-actions .secondary-button { white-space: normal; padding: 8px 12px; }
.mock-tip { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.upload-permission { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.agreement-check { display: flex !important; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.agreement-check input { width: 18px; min-height: 18px; margin-top: 2px; }
.agreement-check span { margin: 0 !important; }
.agreement-check a, footer a, .login-contact a, .legal-page a { color: var(--green-2); }
.auth-help-button { justify-self: center; padding: 8px; }
.login-contact { margin: 20px 0 0 !important; text-align: center; font-size: 12px; }
.intro { padding: 64px 0 34px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }
.intro h1 { margin: 0; font-size: clamp(31px, 5vw, 50px); letter-spacing: -0.045em; line-height: 1.15; }
.intro h1 span { display: inline-block; }
.intro h1 span + span { margin-left: .55em; }
.intro > p:last-child { max-width: 630px; margin: 17px auto 0; color: var(--muted); line-height: 1.8; font-size: 16px; }

.workflow-card, .results {
  background: var(--surface); border: 1px solid rgba(18, 56, 47, 0.1);
  border-radius: 22px; padding: 32px; box-shadow: var(--shadow);
}

.section-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.section-heading.compact { margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 21px; }
.section-heading p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.step {
  flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800;
}

.drop-zone {
  position: relative; min-height: 230px; border: 1.5px dashed #9dbcb0; border-radius: 17px;
  background: linear-gradient(145deg, #f9fcfb, #f0f7f4); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 28px; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.drop-zone:hover, .drop-zone.dragging { border-color: var(--green-2); background: #edf7f2; transform: translateY(-1px); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgba(18, 56, 47, .1); margin-bottom: 15px; }
.upload-icon svg { width: 25px; fill: none; stroke: var(--green-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 17px; color: var(--green); }
.drop-zone span { color: var(--muted); font-size: 14px; margin-top: 6px; }
.drop-zone small { color: #85918d; font-size: 12px; margin-top: 12px; }
.drop-zone .drop-hint { margin: 10px 0 0; max-width: 420px; color: #8c5a15; font-size: 12px; line-height: 1.6; text-align: center; }
.drop-zone .drop-hint b { font-weight: 600; }
/* 2026-10-30：“怎么下载？”放在文件选择层上面，点它只展开下载路径，不弹出选文件 */
.drop-zone .drop-hint-more { position: relative; z-index: 2; margin-left: 4px; padding: 0; border: 0; background: none; color: var(--green-2); font: inherit; text-decoration: underline; cursor: pointer; }
.drop-zone .drop-hint-path { position: relative; z-index: 2; margin: 6px 0 0; max-width: 460px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

.file-panel { margin-top: 16px; border: 1px solid var(--line); border-radius: 15px; padding: 16px; }
.file-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-item { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 10px; background: #f6f9f8; }
.file-info { min-width: 0; display: flex; align-items: center; gap: 10px; }
.file-meta { min-width: 0; overflow: hidden; }
.pdf-tag { flex: 0 0 auto; padding: 4px 6px; border-radius: 5px; background: #fce7e5; color: #a62b24; font-size: 10px; font-weight: 800; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.file-size { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.remove-file, .text-button, .add-more { border: 0; background: none; cursor: pointer; color: var(--green-2); }
.remove-file { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 8px; font-size: 20px; }
.remove-file:hover { background: #e9f1ee; }
.text-button { font-size: 13px; }
.add-more { margin-top: 10px; padding: 8px 0; font-weight: 700; font-size: 13px; }

.primary-button, .secondary-button {
  border: 0; border-radius: 12px; min-height: 48px; padding: 0 24px; cursor: pointer;
  font-weight: 750; transition: transform .15s, opacity .15s, box-shadow .15s;
}
.primary-button { display: block; width: 100%; margin-top: 24px; background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(18, 56, 47, .18); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(18, 56, 47, .22); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.secondary-button { background: var(--mint); color: var(--green); min-height: 42px; }

.notice { margin-top: 18px; border-radius: 11px; padding: 12px 14px; line-height: 1.55; font-size: 14px; }
.notice.error { color: var(--danger); background: var(--danger-bg); border: 1px solid #fecdca; }
.notice.info { color: var(--green); background: #f0f7f4; border: 1px solid #c8dbd3; }
.upload-trial-notice { margin-top: 22px; }
.working { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); padding-top: 18px; font-size: 14px; }
.spinner { width: 18px; height: 18px; border: 2px solid #d1ddd8; border-top-color: var(--green-2); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results { margin-top: 26px; }
.result-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.result-title h2 { margin: 6px 0 0; font-size: 24px; }
.success-line { margin: 0; color: #237a5e; font-weight: 750; font-size: 13px; }
.success-line span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #2f9b76; margin-right: 5px; }

.summary-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 12px; }
.summary-card { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfb; min-width: 0; overflow: hidden; }
.summary-card.wide { grid-column: span 2; }
.summary-card.highlight { border-color: #e8d4ae; background: #fff9ed; }
.summary-card span, .summary-card strong { display: block; }
.summary-card span { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.summary-card strong { overflow-wrap: anywhere; font-size: 17px; }
#summaryCompany { max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.summary-card em { font-style: normal; font-size: 22px; }
.summary-card.highlight strong { color: #8c5a15; }
.result-mode-switch { margin-top: 20px; padding: 18px; border: 1px solid #c8dbd3; border-radius: 14px; background: #f4faf7; }
.result-mode-intro strong, .result-mode-intro span { display: block; }
.result-mode-intro strong { color: var(--green); font-size: 15px; }
.result-mode-intro span { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.result-mode-buttons { width: 100%; margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-mode-buttons button { min-width: 0; min-height: 82px; padding: 14px 16px; border: 1.5px solid #c8dbd3; border-radius: 11px; background: #fff; color: var(--green); cursor: pointer; text-align: left; transition: .2s; }
.result-mode-buttons button:hover { border-color: var(--green-2); }
.result-mode-buttons button.active { border-color: var(--green-2); background: #e8f3ee; box-shadow: inset 0 0 0 1px var(--green-2), 0 4px 12px rgba(18,56,47,.09); }
.result-mode-option-title, .result-mode-option-detail { display: block; overflow-wrap: anywhere; }
.result-mode-option-title { font-size: 15px; line-height: 1.4; }
.result-mode-option-detail { margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.55; }

.table-card { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.table-heading { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table-heading h3 { margin: 0; font-size: 17px; }
.table-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.data-disclosure > summary { list-style: none; cursor: pointer; transition: background-color .15s ease; }
.data-disclosure > summary::-webkit-details-marker { display: none; }
.data-disclosure > summary:hover { background: #f5faf8; }
.data-disclosure > summary:focus-visible { outline: 3px solid rgba(31, 111, 86, .3); outline-offset: -3px; }
.disclosure-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.disclosure-copy { min-width: 0; }
.disclosure-copy strong, .disclosure-copy small { display: block; }
.disclosure-copy strong { font-size: 17px; }
.disclosure-copy small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.disclosure-when-open { display: none; }
.data-disclosure[open] .disclosure-when-closed { display: none; }
.data-disclosure[open] .disclosure-when-open { display: inline; }
.disclosure-chevron {
  flex: 0 0 auto; margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid #b8d6ca; border-radius: 50%; background: #dff0e9; color: var(--green);
  font-size: 28px; font-weight: 800; line-height: 1; transition: transform .2s ease;
}
.data-disclosure[open] .disclosure-chevron { transform: rotate(180deg); }
.data-disclosure:not([open]) .table-heading { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
.usage-table { min-width: 1180px; table-layout: auto; }
.usage-table th, .usage-table td { padding: 12px 10px; font-variant-numeric: tabular-nums; }
.usage-table th:first-child, .usage-table td:first-child {
  width: 190px; min-width: 190px; white-space: normal; overflow-wrap: anywhere;
}
.usage-table th:not(:first-child), .usage-table td:not(:first-child) { white-space: nowrap; }
th, td { padding: 14px 16px; border-bottom: 1px solid #e8eeeb; text-align: right; white-space: nowrap; font-size: 13px; }
th { background: #f5f8f7; color: #5c6965; font-size: 12px; font-weight: 700; }
th:first-child, td:first-child { text-align: left; }
tbody tr:last-child td { border-bottom: 0; }
td.saving-positive { color: #16825d; font-weight: 750; }
td.saving-negative { color: var(--danger); font-weight: 750; }
.time-detail { color: var(--muted); line-height: 1.7; font-size: 11px; }
.usage-table .total-row td { background: #fff8e9; color: #65491c; font-weight: 750; }

.download-card { margin-top: 20px; border-radius: 16px; padding: 20px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.download-card strong { font-size: 17px; }
.download-card p { margin: 6px 0 0; color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.5; }
.download-card .primary-button { width: auto; min-width: 200px; margin: 0; background: #fff; color: var(--green); box-shadow: none; }
.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.quick-action-item { min-width: 0; }
.quick-actions .download-card { height: 100%; margin-top: 0; flex-direction: column; align-items: stretch; }
.quick-actions .download-card .primary-button { width: 100%; }
.quick-action-item .notice { margin-top: 10px; }

footer { width: min(1000px, calc(100% - 40px)); margin: -48px auto 36px; color: #77827f; text-align: center; font-size: 12px; line-height: 1.7; }
.feedback-dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; box-shadow: var(--shadow); }
.feedback-dialog::backdrop { background: rgba(13,35,29,.42); }
.feedback-dialog form { display: grid; gap: 15px; padding: 24px; }
.feedback-dialog label span { display: block; margin-bottom: 7px; color: var(--muted); font-weight: 700; }
.feedback-dialog select, .feedback-dialog textarea { width: 100%; border: 1px solid #cbd8d3; border-radius: 11px; padding: 11px; resize: vertical; }
.feedback-heading { padding: 18px 24px 0; }
.feedback-tabs { display: flex; gap: 10px; padding: 8px 24px; flex-wrap: wrap; }
.feedback-tabs button { flex: 1; min-height: 44px; }
.feedback-tabs [aria-pressed="true"] { background: #dceee5; border-color: #195d49; }
.feedback-history { padding: 12px 24px 24px; }
.feedback-history article, .feedback-message { border: 1px solid #cbd8d3; border-radius: 12px; padding: 12px; margin: 12px 0; overflow-wrap: anywhere; }
.feedback-message p { white-space: pre-wrap; margin-bottom: 0; }
.feedback-message.admin-reply { background: #e8f3ee; border-color: #80a895; }
.feedback-pagination { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.feedback-pagination button { min-height: 44px; }
.feedback-thread { min-width: 0; overflow-wrap: anywhere; }
.feedback-thread h3 { font-size: 17px; }
.feedback-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.feedback-dialog input:not([type="checkbox"]), .admin-page input, .admin-page select { display: block; width: 100%; min-height: 44px; margin-top: 6px; border: 1px solid #cbd8d3; border-radius: 11px; padding: 10px; }
.admin-page label { display: block; margin: 14px 0; }
.admin-page td { overflow-wrap: anywhere; }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; }
.dialog-heading h2 { margin: 0; }
.dialog-heading button { border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.legal-page { width: min(800px, calc(100% - 32px)); margin: 50px auto; padding: 34px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); line-height: 1.8; }
.legal-page h1 { margin-top: 0; }
.legal-page h2 { margin-top: 28px; font-size: 19px; }

@media (max-width: 720px) {
  .site-header { height: auto; min-height: 64px; }
  .header-inner, main, footer { width: min(100% - 28px, 1000px); }
  .platform-page > main { width: min(100% - 28px, 1000px); }
  .floating-contact { width: 52px; min-height: 52px; padding: 4px 2px; gap: 1px; border-radius: 12px; font-size: 10px; }
  .floating-contact svg { width: 24px; height: 24px; }
  .header-inner { flex-wrap: wrap; gap: 8px; padding: 10px 0; }
  .brand { flex: 1 0 100%; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .province-control select { width: 142px; font-size: 12px; }
  .header-actions { gap: 8px; margin-left: auto; }
  .account-summary { position: static; flex: 0 0 auto; }
  .account-menu summary { min-width: 44px; max-width: 108px; padding: 0 9px; text-align: center; font-size: 12px; }
  .remaining-badge { padding: 0 9px; }
  .account-summary button { padding: 7px 8px; }
  /* Main platform only: compact mobile branding and a full-width control row. */
  .platform-page .brand-mark { display: none; }
  .platform-page .header-inner { gap: 10px; }
  .platform-page .header-actions { width: 100%; margin-left: 0; flex-wrap: wrap; justify-content: space-between; }
  .platform-page .province-control { flex: 1 1 80px; max-width: 100px; }
  .platform-page .province-control select { width: 100%; }
  .platform-page .account-summary { max-width: 100%; min-width: 0; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
  .platform-page .account-menu { min-width: 0; max-width: 100%; }
  .platform-page .account-menu summary { max-width: 100%; height: auto; min-height: 44px; line-height: 20px; padding: 9px 9px; white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
  .login-card { margin: 44px auto; padding: 26px 20px; border-radius: 18px; }
  .login-card h1 { font-size: 23px; }
  .verification-actions { grid-template-columns: 1fr; }
  .auth-tabs { margin-top: 18px; }
  .auth-tabs button { min-width: 0; min-height: 46px; }
  .password-field { width: 100%; }
  .result-mode-switch { padding: 15px; }
  .result-mode-buttons { width: 100%; }
  .result-mode-buttons { grid-template-columns: 1fr; }
  .result-mode-buttons button { min-width: 0; min-height: 78px; padding: 13px 14px; }
  .intro { padding: 44px 0 26px; text-align: left; }
  .eyebrow { font-size: 9px; }
  .intro h1 { font-size: 31px; }
  .intro h1 span { display: block; }
  .intro h1 span + span { margin-left: 0; margin-top: .12em; }
  .intro > p:last-child { font-size: 14px; margin-top: 12px; }
  .workflow-card, .results { border-radius: 18px; padding: 20px 16px; }
  .section-heading { gap: 11px; }
  .section-heading h2 { font-size: 18px; }
  .step { width: 32px; height: 32px; border-radius: 9px; }
  .drop-zone { min-height: 205px; padding: 20px; }
  .file-name {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .primary-button { min-height: 52px; }
  .result-title { align-items: flex-start; }
  .result-title h2 { font-size: 21px; }
  .secondary-button { min-height: 40px; padding: 0 14px; white-space: nowrap; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card, .summary-card.wide { grid-column: auto; padding: 15px; }
  .summary-card.wide { grid-column: 1 / -1; }
  .summary-card strong { font-size: 15px; }
  .summary-card em { font-size: 19px; }
  .quick-actions { grid-template-columns: 1fr; gap: 12px; }
  .table-wrap { overflow: visible; padding: 10px; }
  table, thead, tbody, tr, th, td { display: block; min-width: 0; }
  .usage-table { width: 100%; min-width: 0; table-layout: auto; }
  .usage-table th:first-child, .usage-table td:first-child { width: auto; min-width: 0; }
  .usage-table td:not(:first-child) { white-space: normal; }
  thead { display: none; }
  tbody { display: grid; gap: 10px; }
  tbody tr { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
  .usage-table tbody tr.total-row { background: #fff8e9; border-color: #e8d4ae; }
  .usage-table .total-row td { background: transparent; }
  td, td:first-child { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; text-align: right; white-space: normal; padding: 9px 0; border-bottom: 1px dashed #e5ebe8; font-size: 13px; }
  td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: 12px; }
  td:last-child { border-bottom: 0; }
  .time-detail { max-width: 62%; text-align: right; }
  .download-card { flex-direction: column; align-items: stretch; padding: 18px; }
  .download-card .primary-button { width: 100%; }
}

@media (max-width: 380px) {
  .summary-grid { grid-template-columns: 1fr; }
  .summary-card.wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
/* Local billing shares the existing dialog and typography; no header expansion. */
.billing-dialog { width: min(640px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); overflow-y: auto; overflow-wrap: anywhere; box-sizing: border-box; padding: 20px; }
.billing-dialog p { line-height: 1.6; }
.billing-dialog form { padding: 0; }
.billing-package-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid #c8dbd3; border-radius: 16px; background: #f5faf7; }
.billing-package-card .billing-package-price { margin: 0 0 12px; color: var(--green); font-size: 30px; line-height: 1.2; }
.billing-package-card p { margin: 4px 0; }
.billing-package-validity { color: var(--muted); font-size: 14px; }
.billing-package-card .primary-button { margin: 20px 0 0; min-height: 48px; width: 100%; }
.billing-count-note { color: var(--muted); font-size: 13px; }
@media (max-width: 620px) { .billing-dialog .billing-packages { grid-template-columns: minmax(0, 1fr); } .billing-package-card { padding: 18px; } }
.promotion-dialog { width: min(560px, calc(100vw - 28px)); padding: 20px; max-height: calc(100dvh - 40px); overflow-y: auto; }
.promotion-dialog form { padding: 0; }
.billing-mock-label { padding: 12px; background: #fff4d6; color: #654400; border-radius: 10px; font-weight: 700; }
.billing-packages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.billing-packages button { min-height: 56px; white-space: normal; margin-top: 0; }
.billing-orders article { padding: 12px 0; border-bottom: 1px solid #cee0da; }
.billing-orders button { margin: 4px 8px 4px 0; min-height: 44px; }
.billing-qr { display: block; width: min(220px, 100%); height: auto; margin: 12px auto; background: white; }
.billing-terms { display: block; padding: 12px; border: 2px solid transparent; border-radius: 12px; scroll-margin: 16px; }
#billingTermsHint { display: block; margin-top: 8px; font-weight: 650; color: var(--danger); }
#billingTermsLabel.needs-consent { border-color: var(--danger); background: var(--danger-bg); animation: consent-highlight 1.1s ease-in-out 3; }
#billingTermsAccepted:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; }
@keyframes consent-highlight { 50% { box-shadow: 0 0 0 4px #f1c7bc; } }
.billing-channel-note { padding: 12px; border: 1px solid #c8dbd3; border-radius: 10px; background: var(--mint); font-weight: 600; }
.billing-channel-note.unavailable { border-color: #cfad63; background: #fff4d6; color: #654400; }
#billingQrState { padding: 10px; background: var(--mint); border-radius: 10px; }
#billingPayment { scroll-margin: 12px; }
.billing-quick { background: var(--green); color: white; border-color: var(--green); }
.billing-quick:hover { background: var(--green-2); }
@media (max-width: 720px) { .workspace-nav .billing-quick { padding: 0 8px; min-height: 40px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { #billingTermsLabel.needs-consent { animation: none; } }
.billing-access-panel { padding: 16px; border: 1px solid #bdd9cf; border-radius: 16px; margin: 16px 0; background: #f1f8f5; }
.billing-admin { margin-top: 24px; overflow-wrap: anywhere; }
.billing-admin input, .billing-admin select { max-width: 100%; box-sizing: border-box; }
@media (max-width: 360px) { .billing-packages { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .auth-dialog { padding: 20px; }
  .header-inner { flex-wrap: wrap; }
  .site-header { height: auto; min-height: 72px; padding: 12px 0; }
  .header-actions { flex-wrap: wrap; }
  .grid-price-content { padding: 16px 10px; }
  .grid-price-filters select { min-width: 76px; }
}

/* Isolated tabular semantics at EVERY viewport. Legacy settlement card rules
   above must never turn this component's rows/cells/caption into mobile cards. */
.grid-price-page .grid-price-table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.grid-price-page .grid-price-table caption { display: table-caption; text-align: right; white-space: nowrap; color: var(--muted); margin: 0 0 8px; font-size: 12px; }
.grid-price-page .grid-price-table thead { display: table-header-group; }
.grid-price-page .grid-price-table tbody { display: table-row-group; }
.grid-price-page .grid-price-table tfoot { display: table-footer-group; }
.grid-price-page .grid-price-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
.grid-price-page .grid-price-table th, .grid-price-page .grid-price-table td { display: table-cell; width: 20%; min-width: 0; padding: 6px 4px; text-align: center; white-space: nowrap; border: 0; border-bottom: 1px solid var(--line); border-right: 1px solid #edf2ef; font-size: inherit; }
.grid-price-page .grid-price-table td::before { display: none; content: none; }
.grid-price-page .grid-price-table thead, .grid-price-page .grid-price-table tfoot { color: var(--green); background: var(--mint); }
.grid-price-page .grid-price-table tfoot small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; font-weight: 400; }
.grid-price-page .grid-price-table tbody tr:nth-child(even) { background: #f8faf9; }
.price-month-suffix { display: none; }
@media (max-width: 960px) {
  .price-panels { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 721px) and (max-width: 960px) {
  .platform-page .site-header { height: auto; min-height: 72px; }
  .platform-page .header-inner { flex-wrap: wrap; padding: 12px 0; }
  .platform-page .brand { flex: 1 0 100%; }
  .platform-page .header-actions { width: 100%; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 720px) {
  .platform-page .header-actions { justify-content: flex-start; }
  #headerAuthButton { margin-left: auto; min-height: 40px; }
  .grid-price-page { margin-top: 20px; }
  .price-page-heading { align-items: flex-end; gap: 8px; }
  .price-page-heading h1 { font-size: 21px; }
  .price-month-view { display: block; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }
  .price-overview-heading { display: block; }
  .price-month-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 14px; }
  .price-month-heading h2 { margin: 0; font-size: 17px; }
  .price-month-heading label { font-size: 13px; color: var(--muted); }
  .price-month-heading select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; background: white; color: var(--green); font-size: 16px; font-weight: 650; }
  .price-month-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .price-month-cards > div { padding: 14px; border: 1px solid #d5e5dd; border-radius: 12px; background: #f2f8f5; }
  .price-month-cards span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
  .price-month-cards strong { font-size: 21px; font-variant-numeric: tabular-nums; }
  .grid-price-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
  .grid-price-filters select { min-width: 0; width: 100%; padding: 8px; }
  .price-filter-actions { grid-column: 1 / -1; }
  .price-filter-actions button { flex: 1; }
  .grid-price-page .grid-price-table { font-size: 13px; }
  .grid-price-page .price-year { display: none; }
  .grid-price-page .price-month-suffix { display: inline; }
  .grid-price-page .grid-price-table th, .grid-price-page .grid-price-table td { padding: 10px 1px; }
  .grid-price-page .grid-price-table tfoot strong { font-size: 12px; }
  .grid-price-page .grid-price-table tfoot small { font-size: 12px; }
  .report-actions { grid-template-columns: 1fr; gap: 8px; margin: 16px 0; }
  .report-actions .primary-button { font-size: 16px; min-height: 48px; }
  .platform-page:has(.workspace-nav) .site-header { padding: 0; }
  .platform-page:has(.workspace-nav) .header-inner { padding: 12px 0; gap: 8px; }
  .platform-page .workspace-nav { flex-wrap: wrap; gap: 6px; align-items: center; }
  .platform-page .workspace-nav .province-control { flex: 0 0 66px; max-width: 66px; }
  .platform-page .workspace-nav .province-control select { height: 40px; padding: 0 24px 0 8px; font-size: 13px; }
  .platform-page .workspace-nav .province-control::after { right: 4px; width: 16px; height: 16px; background-size: 16px 16px; }
  .workspace-nav .page-switch { min-height: 40px; padding: 0 8px; gap: 4px; }
  .workspace-nav .page-switch svg { width: 14px; height: 14px; }
  .workspace-nav #headerAuthButton { margin-left: auto; min-height: 40px; padding: 0 10px; font-size: 13px; }
  .platform-page .workspace-nav .account-summary { flex: 0 0 auto; flex-wrap: nowrap; }
  .workspace-nav .desktop-account-name { display: none; }
  .workspace-nav .remaining-badge { display: inline-flex; }
  .platform-page .workspace-nav .account-summary { margin-left: auto; }
  .workspace-nav .account-summary .remaining-badge { padding: 0 9px; font-size: 13px; }
  .workspace-nav .mobile-account-name { display: inline; }
  .platform-page .workspace-nav .account-menu summary { display: flex; align-items: center; padding: 0 8px; min-height: 40px; height: 40px; font-size: 13px; white-space: nowrap; gap: 4px; }
  .workspace-nav .account-menu summary::after { width: 16px; height: 16px; flex-basis: 16px; background-size: 16px 16px; }
}

/* Purchase is deliberately separate from account history and technical detail. */
.billing-dialog .dialog-heading h2 { margin: 0; font-size: 22px; }
.billing-dialog .dialog-heading { margin-bottom: 18px; }
.billing-dialog:not(.billing-history-dialog) .billing-packages { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 0 0 14px; }
.billing-dialog:not(.billing-history-dialog) .billing-package-card { padding: 16px 12px; border-radius: 14px; }
.billing-package-card .billing-package-price { font-size: 28px; margin-bottom: 10px; }
.billing-dialog:not(.billing-history-dialog) .billing-package-card .primary-button { margin-top: 14px; min-height: 44px; }
.billing-dialog .billing-terms { font-size: 14px; padding: 10px; }
.billing-dialog .billing-channel-note { font-size: 14px; padding: 10px; margin: 0 0 16px; font-weight: 500; }
.billing-resume { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.billing-dialog .text-button { min-height: 40px; }
#billingPayment { text-align: center; }
#billingOrderTitle { margin: 0 0 8px; font-size: 21px; }
#billingOrderInfo { color: var(--muted); font-size: 13px; margin: 6px 0; }
#billingPaymentStatus { font-size: 14px; }
#billingQrState { font-size: 14px; }
#billingHistoryDetail { padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; background: #f6faf8; }
#billingHistoryDetail h3 { margin: 0 0 12px; font-size: 18px; }
.billing-detail-fields { margin: 0; }
.billing-detail-fields > div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 10px; margin: 10px 0; font-size: 14px; line-height: 1.6; }
.billing-detail-fields dt { color: var(--muted); }
.billing-detail-fields dd { margin: 0; overflow-wrap: anywhere; }
.billing-history-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.billing-orders article { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; }
.billing-orders article h3 { margin: 0 0 6px; font-size: 16px; }
.billing-orders article p { margin: 0; font-size: 13px; color: var(--muted); }
#billingSupportPolicy { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 720px) {
  .platform-page .workspace-nav { width: 100%; flex-wrap: nowrap; gap: 4px; }
  .platform-page .workspace-nav .province-control { flex: 0 0 54px; max-width: 54px; }
  .platform-page .workspace-nav .province-control select { padding-left: 5px; padding-right: 19px; font-size: 12px; }
  .workspace-nav .page-switch { padding: 0 5px; font-size: 12px; gap: 2px; }
  .workspace-nav #functionControl svg { display: block; width: 12px; height: 12px; flex: 0 0 12px; }
  .platform-page .workspace-nav .account-summary { margin-left: auto; min-width: 0; flex: 0 1 auto; gap: 4px; }
  .workspace-nav .account-summary .remaining-badge { min-width: 0; max-width: 152px; padding: 0 6px; display: block; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .platform-page .workspace-nav .account-menu summary { padding: 0 5px; font-size: 12px; gap: 2px; }
  .workspace-nav .account-menu summary::after { width: 12px; height: 12px; flex-basis: 12px; background-size: 12px 12px; }
  .billing-dialog:not(.billing-history-dialog) .billing-packages { grid-template-columns: minmax(0,1fr); }
  .billing-dialog:not(.billing-history-dialog) .billing-package-card { display: grid; grid-template-columns: 82px minmax(0,1fr) 62px; column-gap: 8px; align-items: center; padding: 14px 12px; }
  .billing-package-card .billing-package-price { grid-column: 1; grid-row: 1 / 3; font-size: 25px; margin: 0; white-space: nowrap; }
  .billing-package-card .billing-package-benefit { grid-column: 2; grid-row: 1; font-size: 14px; }
  .billing-package-card .billing-package-validity { grid-column: 2; grid-row: 2; font-size: 12px; }
  .billing-dialog:not(.billing-history-dialog) .billing-package-card .primary-button { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 8px; font-size: 14px; }
}
@media (max-width: 360px) {
  .workspace-nav .account-summary .remaining-badge { max-width: 118px; padding: 0 4px; }
  .billing-dialog { padding: 16px; }
  .billing-dialog:not(.billing-history-dialog) .billing-package-card { grid-template-columns: 76px minmax(0,1fr) 54px; padding: 12px 10px; column-gap: 6px; }
  .billing-package-card .billing-package-price { font-size: 22px; }
}
.billing-inline-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; }
.billing-resume { flex-wrap: wrap; }
.billing-resume .billing-inline-actions { justify-content: flex-start; }
.billing-resume .text-button { padding: 0 6px; font-size: 13px; }
.billing-pagination { padding-top: 12px; text-align: center; font-size: 13px; }
.billing-page-buttons, #billingOrdersNumbers { display: flex; gap: 4px; justify-content: center; align-items: center; flex-wrap: wrap; }
.billing-page-buttons { margin-top: 6px; }
#billingOrdersNumbers button { min-width: 36px; padding: 0 8px; }
#billingOrdersNumbers button[aria-current="page"] { background: var(--green); color: white; border-radius: 8px; }
@media (max-width: 720px) {
  .billing-orders article { gap: 8px; }
  .billing-orders article h3 { font-size: 14px; }
  .billing-orders article p { font-size: 12px; }
  .billing-orders article button { margin: 0; padding: 8px; font-size: 12px; }
}
@media (max-width: 360px) {
  .workspace-nav .page-switch { padding: 0 4px; gap: 1px; }
  .workspace-nav .account-summary .remaining-badge { max-width: 108px; }
}
.contact-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:16px 0}
.contact-actions a,.legal-update-note a{overflow-wrap:anywhere}
.legal-update-note{font-size:.85rem;color:var(--muted,#536c61)}
#contactEmail{width:100%;min-width:0}
#contactDialog{padding:24px;color:var(--green);line-height:1.7;overflow-wrap:anywhere}
#contactDialog .dialog-heading{margin-bottom:18px}
#contactDialog h2{font-size:22px}
#contactDialog a{color:var(--green-2)}
.contact-actions a{font-size:14px;text-underline-offset:3px}
.billing-package-validity{white-space:normal;overflow-wrap:anywhere}
.wechat-pay-heading{display:flex;align-items:center;justify-content:center;gap:9px;margin:4px 0 16px;color:#07894b;font-size:18px;font-weight:750}
.wechat-pay-heading svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wechat-cashier{background:#fff;border:1px solid #cce6d7;border-radius:18px;padding:22px 16px 12px;box-shadow:0 8px 25px rgba(7,125,68,.05)}
.wechat-cashier #billingOrderTitle{margin:0 0 10px;color:#12382f;font-size:25px;overflow-wrap:anywhere}
.wechat-cashier #billingOrderInfo{font-size:13px;line-height:1.6;color:#637b70;margin:0 0 14px}
.wechat-qr-frame{display:flex;justify-content:center;background:#fff;border:1px solid #e1efe7;border-radius:12px;padding:12px;margin:12px auto;max-width:272px}
.wechat-qr-frame:has(img[hidden]){display:none}
.wechat-qr-frame .billing-qr{display:block;max-width:100%;width:220px;height:auto;padding:0;margin:0;border:0;border-radius:0;box-shadow:none}
.wechat-qr-frame .billing-qr[hidden]{display:none}
.wechat-cashier #billingPaymentStatus{font-size:14px;line-height:1.6;color:#345d49;margin:12px 0 6px}
@media(max-width:360px){.wechat-cashier{padding:16px 10px 10px}.wechat-cashier #billingOrderTitle{font-size:22px}.wechat-qr-frame{padding:8px}}

/* One navigation specification; compact text changes, never clipped controls. */
.platform-page .workspace-nav{display:grid;grid-template-columns:repeat(4,140px);gap:8px;align-items:center}
.platform-page .workspace-nav .account-summary{display:contents}
.platform-page .workspace-nav .province-control{width:auto;max-width:none;min-width:0}
.platform-page .workspace-nav .province-control select,.platform-page .workspace-nav .page-switch,
.platform-page .workspace-nav #headerAuthButton,.platform-page .workspace-nav .remaining-badge,
.platform-page .workspace-nav .account-menu summary{box-sizing:border-box;width:100%;max-width:none;min-width:0;height:44px;min-height:44px;margin:0;border:1px solid #c8dbd3;border-radius:12px;font-size:13px;font-weight:700;line-height:1.2;padding:0 10px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;overflow:visible;text-overflow:clip}
.platform-page .workspace-nav .province-control select{display:block;padding-right:28px;text-align:center}
.platform-page .workspace-nav .province-control::after{right:7px}
.platform-page .workspace-nav #functionControl svg{display:block;width:14px;height:14px;flex:0 0 14px}
.account-menu{position:relative}
.account-menu summary{position:relative}
.feedback-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:22px;min-width:22px;height:22px;padding:0;box-sizing:border-box;border-radius:999px;background:#d93241;color:#fff;font:700 12px/1 system-ui,sans-serif;letter-spacing:0;text-indent:0;border:2px solid #fff;white-space:nowrap}
.feedback-count[data-wide="true"]{width:auto;min-width:30px;padding:0 4px}
.feedback-count.account-count{position:absolute;top:-8px;right:-6px;z-index:2}
#feedbackMenuButton{display:flex;align-items:center;justify-content:space-between;gap:8px}
.feedback-bubble{position:fixed;right:16px;top:78px;z-index:45;display:flex;align-items:center;gap:6px;padding:8px 8px 8px 12px;border:1px solid #d5e3dc;border-radius:14px;background:#fff;box-shadow:0 7px 22px #12382f20;max-width:calc(100vw - 24px);animation:feedback-appear .18s ease-out}
.feedback-bubble::before{content:'';position:absolute;right:22px;top:-5px;width:8px;height:8px;background:#fff;border-left:1px solid #d5e3dc;border-top:1px solid #d5e3dc;transform:rotate(45deg)}
.feedback-bubble button{border:0;background:transparent;color:#244c3e;min-height:30px;padding:0 4px;display:flex;align-items:center;gap:8px;font-size:13px}
#feedbackBubbleClose{font-size:20px;width:30px;justify-content:center}
#feedbackThread form{padding:12px 0}
@keyframes feedback-appear{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.feedback-bubble{animation:none}}
@media(max-width:1000px){.platform-page .workspace-nav{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}}
@media(max-width:720px){
 .platform-page .workspace-nav{gap:4px;flex-wrap:nowrap}
 .platform-page .workspace-nav .page-switch,.platform-page .workspace-nav #headerAuthButton,.platform-page .workspace-nav .remaining-badge,.platform-page .workspace-nav .account-menu summary,.platform-page .workspace-nav .province-control select{font-size:12px;padding-left:3px;padding-right:3px;gap:2px}
 .platform-page .workspace-nav .province-control{flex:none;max-width:none}
 .platform-page .workspace-nav .province-control select{padding-right:19px}
 .platform-page .workspace-nav .province-control::after{right:3px;width:12px;height:12px;background-size:12px}
 .platform-page .workspace-nav #functionControl svg{width:10px;height:10px;flex-basis:10px}
 .platform-page .workspace-nav .remaining-badge{font-size:0}
 .platform-page .workspace-nav .remaining-badge::before{content:attr(data-compact);font-size:12px}
 .platform-page .workspace-nav .account-menu summary::after{width:12px;height:12px;flex-basis:12px}
}

/* Lists and a single conversation are separate views, never stacked. */
#feedbackDialog[open]{display:flex;flex-direction:column;height:min(720px,calc(100dvh - 32px));overflow:hidden}
#feedbackDialog .feedback-heading{flex:0 0 auto;padding:18px 24px 8px;margin:0}
#feedbackDialog .feedback-heading h2{margin:0;font-size:24px}
#feedbackDialog .feedback-tabs{flex:0 0 auto}
#feedbackDialog #feedbackForm,#feedbackHistory{min-height:0;overflow-y:auto;overscroll-behavior:contain}
#feedbackHistory article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:center}
#feedbackHistory article strong,#feedbackHistory article p{grid-column:1;margin:0}
#feedbackHistory article p{font-size:12px;line-height:1.6;color:var(--muted)}
#feedbackHistory article button{grid-column:2;grid-row:1 / 3;font-size:13px;padding:8px 10px;min-height:40px}
.feedback-detail{display:flex;flex-direction:column;flex:1;min-height:0;padding:8px 24px 20px}
.feedback-detail-toolbar{display:flex;flex:0 0 auto;justify-content:space-between;gap:8px}
.feedback-detail-toolbar button{min-height:44px;padding:8px 12px;font-size:14px}
#feedbackDetailTitle{flex:0 0 auto;font-size:17px;margin:14px 0 8px;overflow-wrap:anywhere}
#feedbackThreadError{flex:0 0 auto;margin:0 0 8px}
#feedbackThread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px;scroll-padding:8px}
#feedbackThread .feedback-message:first-child{margin-top:4px}
#feedbackFollowupForm textarea{display:block;font-size:16px}

/* One chevron family: down for selectors, right for navigation. */
.platform-page .workspace-nav{--nav-arrow-size:18px;--nav-arrow-right:8px}
.platform-page .workspace-nav #functionControl,.platform-page .workspace-nav .account-menu summary{position:relative;padding-right:28px}
.platform-page .workspace-nav #functionControl svg,.platform-page .workspace-nav .province-control::after,.platform-page .workspace-nav .account-menu summary::after{position:absolute;right:var(--nav-arrow-right);top:50%;width:var(--nav-arrow-size);height:var(--nav-arrow-size);flex:0 0 var(--nav-arrow-size);background-size:var(--nav-arrow-size) var(--nav-arrow-size);transform:translateY(-50%);pointer-events:none}
.platform-page .workspace-nav #functionControl svg{fill:none;stroke:#1b5949;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.platform-page .workspace-nav .account-menu[open] summary::after{transform:translateY(-50%) rotate(180deg)}
@media(max-width:720px){
 .platform-page .workspace-nav{--nav-arrow-size:14px;--nav-arrow-right:3px}
 .platform-page .workspace-nav #functionControl,.platform-page .workspace-nav .account-menu summary,.platform-page .workspace-nav .province-control select{padding-right:19px}
 #feedbackDialog .feedback-heading{padding:16px 16px 8px}
 #feedbackDialog .feedback-tabs{padding:8px 16px}
 #feedbackHistory{padding:10px 16px 16px}
  .feedback-detail{padding:8px 16px 16px}
}

/* One task structure, with independent disclosure and export controls. */
.usage-card { min-width: 0; }
.usage-heading { display: flex; align-items: stretch; gap: 8px; padding: 8px 12px; }
.usage-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; justify-content: space-between; border: 0; border-radius: 10px; padding: 10px 8px; background: transparent; color: var(--green); font: inherit; text-align: left; cursor: pointer; }
.usage-toggle strong { font-size: 17px; }
.usage-toggle-action { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--green-2); }
.usage-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.usage-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.usage-toggle:hover { background: #f2f8f5; }
.usage-toggle:focus-visible,.usage-export:focus-visible,.usage-scroll:focus-visible { outline: 3px solid #8abbab; outline-offset: -3px; }
.usage-heading .usage-export { flex: 0 0 106px; align-self: center; min-height: 44px; margin: 0; padding: 8px; font-size: 14px; border: 1px solid #b8d6ca; box-shadow: none; white-space: normal; }
.usage-title-note { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.usage-rule { margin: 0; padding: 0 20px 14px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.usage-scroll { overflow-x: auto; overscroll-behavior-x: contain; padding: 0; border-top: 1px solid var(--line); }
.usage-card .usage-table { display: table; width: 100%; min-width: 1300px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.usage-data-caption { margin: 0; padding: 12px; text-align: left; font-size: 13px; line-height: 1.6; font-weight: 600; color: var(--green); overflow-wrap: anywhere; }
.usage-card .usage-table thead { display: table-header-group; }
.usage-card .usage-table tbody { display: table-row-group; }
.usage-card .usage-table tr { display: table-row; padding: 0; border: 0; border-radius: 0; }
.usage-card .usage-table th,.usage-card .usage-table td { display: table-cell; padding: 10px 8px; border: 0; border-right: 1px solid #505b56; border-bottom: 1px solid #505b56; border-radius: 0; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; vertical-align: middle; white-space: nowrap; }
.usage-card .usage-table th { background: #e8f3ee; color: var(--green); text-align: center; border-top: 1px solid #505b56; white-space: normal; }
.usage-card .usage-table th:first-child,.usage-card .usage-table td:first-child { position: sticky; left: 0; z-index: 1; width: 136px; min-width: 136px; text-align: center; border-left: 1px solid #505b56; background: white; overflow-wrap: normal; white-space: normal; }
.usage-card .usage-table th:first-child { z-index: 2; background: #e8f3ee; }
.usage-card .usage-table th:nth-child(2),.usage-card .usage-table td:nth-child(2) { width: 200px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.usage-card .usage-table .total-row td { background: #e8f3ee; color: var(--green); font-weight: 750; }
.usage-card .usage-table .total-row td:first-child { white-space: pre-line; }
.usage-card .usage-table td::before { display: none; content: none; }
.usage-card > .notice { margin: 0 16px 14px; }
/* 2026-10-30 第十三轮：24小时用电结构预览（竖向柱状图 + 两栏小表） */
#hourlyContent { padding: 0 20px 16px; }
#hourlyContent .usage-data-caption { padding: 0; margin: 0 0 6px; }
.hourly-missing { margin: 0 0 8px; font-size: 12px; color: #9a5b12; }
.hourly-summary { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.hourly-chart { margin: 0 0 14px; }
.hourly-legend { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.hourly-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.hourly-legend .hi::before { background: #d9822b; }
.hourly-legend .lo::before { background: #c9cdcb; }
.hourly-legend .avg::before { width: 14px; height: 0; border-top: 1px dashed #7d8a85; border-radius: 0; vertical-align: 3px; }
.hourly-plot { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 160px; border-bottom: 1px solid var(--rule); }
.hourly-col { position: relative; z-index: 1; display: flex; align-items: flex-end; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.hourly-col i { display: block; width: 100%; min-height: 1px; background: #cfe3da; border-radius: 3px 3px 0 0; transition: filter .15s; }
.hourly-col.hi i { background: #d9822b; }
.hourly-col.lo i { background: #c9cdcb; }
.hourly-col:hover i, .hourly-col:focus-visible i { filter: brightness(.9); }
.hourly-col:focus-visible { outline: 2px solid var(--green-2); outline-offset: 1px; }
.hourly-avg { position: absolute; left: 0; right: 0; z-index: 2; border-top: 1px dashed #7d8a85; pointer-events: none; }
.hourly-axis { position: relative; height: 18px; font-size: 11px; color: var(--muted); }
.hourly-axis span { position: absolute; top: 2px; transform: translateX(-50%); }
.hourly-tip { margin: 2px 0 0; min-height: 20px; font-size: 13px; color: var(--green); font-variant-numeric: tabular-nums; }
.hourly-tables { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.hourly-table { width: 100%; min-width: 0; table-layout: auto; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.hourly-table th, .hourly-table td { padding: 5px 8px; border-bottom: 1px solid var(--rule); text-align: right; }
.hourly-table th { background: #e8f3ee; color: var(--green); font-weight: 600; text-align: right; }
.hourly-table th:first-child, .hourly-table td:first-child { text-align: left; }
.hourly-table { table-layout: fixed; }
.hourly-table tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
.hourly-table th:nth-child(1) { width: 40%; }
.hourly-table th:nth-child(2) { width: 34%; }
.hourly-table tr.hi td { background: #fbefe2; color: #8a4b12; font-weight: 600; }
.hourly-table tr.lo td { background: #f2f3f2; color: #6b7570; }
@media (max-width: 640px) {
  #hourlyContent { padding: 0 12px 12px; }
  .hourly-plot { gap: 1px; height: 130px; }
  .hourly-tables { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* 手机上通用表格会变成卡片，这张小表保持普通表格 */
  .hourly-table { display: table; }
  .hourly-table thead { display: table-header-group; }
  .hourly-table tbody { display: table-row-group; }
  .hourly-table tr, .hourly-table tbody tr { display: table-row; padding: 0; border: 0; border-radius: 0; background: none; }
  .hourly-table th, .hourly-table td, .hourly-table td:first-child { display: table-cell; padding: 5px 6px; border-bottom: 1px solid var(--rule); font-size: 13px; }
  .hourly-table td:first-child { text-align: left; }
  .hourly-table td::before { display: none; content: none; }
  .hourly-tables .hourly-table + .hourly-table thead { display: table-header-group; visibility: collapse; }
  .hourly-tables .hourly-table + .hourly-table th { padding: 0; border: 0; line-height: 0; }
}
@media (max-width: 720px) {
 .usage-heading { gap: 6px; padding: 6px; }
 .usage-toggle { gap: 6px; padding: 10px 6px; }
 .usage-toggle strong { font-size: 14px; white-space: nowrap; }
 .usage-title-note { display: block; margin: 2px 0 0; font-size: 12px; }
 .usage-toggle-action { gap: 2px; font-size: 12px; }
 .usage-toggle svg { width: 16px; height: 16px; }
 .usage-heading .usage-export { flex-basis: 86px; font-size: 13px; }
 .usage-rule { padding: 0 12px 12px; }
}

/* ======================================================================
   免费版（2026-10-27）新增样式
   1. 隐藏额度徽章和购买入口（HTML/JS 代码保留，打开 PAYMENT_PURCHASE_ENTRY_ENABLED 即恢复）
   2. 四个栏目导航：电脑在顶部，手机（宽度≤720px）固定在底部
   3. 电价查询里的“国网 / 市场”切换
   4. 政策解读（列表、搜索、原文、思维导图）
   5. 我的
   ====================================================================== */
body.has-main-tabs #remainingBadge, body.has-main-tabs #quotaPopover, body.has-main-tabs #billingQuickButton,
body.has-main-tabs #priceMenu { display: none !important; }

/* ---- 2. 四个栏目导航（电脑：顶部） ---- */
.main-tabs { display: flex; flex: 1; justify-content: center; gap: 4px; min-width: 0; }
.main-tabs[hidden] { display: none; }
.main-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.main-tabs svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.main-tabs a:hover { color: var(--green); background: var(--background); }
.main-tabs a[aria-current="page"] { color: var(--green); background: var(--mint); }
.main-tabs a:focus-visible { outline: 3px solid #8abbab; outline-offset: 2px; }
.has-main-tabs .brand { flex: 0 0 auto; }
@media (min-width: 721px) and (max-width: 1000px) {
  .main-tabs a { padding: 0 10px; font-size: 14px; }
  .main-tabs svg { display: none; }
}
/* 手机：底部固定导航 */
@media (max-width: 720px) {
  .main-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 0; justify-content: space-around;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(18,56,47,.06); backdrop-filter: blur(12px); }
  .main-tabs a { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 4px 0; font-size: 11px; border-radius: 10px; }
  .main-tabs svg { width: 24px; height: 24px; }
  .main-tabs a[aria-current="page"] { background: transparent; }
  .main-tabs a[aria-current="page"] svg { stroke-width: 2.4; }
  body.has-main-tabs { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  /* 顶部栏的毛玻璃效果会让里面的 position:fixed 跟着顶部栏走，手机上关掉它，底部导航才能贴住屏幕底部 */
  body.has-main-tabs .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
  /* 手机上账号、客服入口都在“我的”里，顶部和浮动按钮不再重复显示 */
  body.has-main-tabs .account-summary, body.has-main-tabs .floating-contact { display: none !important; }
  body.has-main-tabs footer { margin-top: 24px; }
}

/* ---- 3. 电价查询：国网 / 市场 切换 ---- */
.price-subnav { display: flex; gap: 4px; width: fit-content; max-width: 1000px; margin: 20px auto 0; padding: 4px; border-radius: 12px; background: #e6efeb; }
.price-subnav[hidden] { display: none; }
.price-subnav a { padding: 9px 18px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; text-align: center; }
.price-subnav a[aria-current="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(18,56,47,.08); }
@media (max-width: 720px) { .price-subnav { width: 100%; } .price-subnav a { flex: 1; padding: 9px 6px; } }

/* ---- 4. 政策解读 ---- */
.policy-page, .me-page { max-width: 1000px; margin: 20px auto 0; }
.policy-page[hidden], .me-page[hidden], .policy-detail[hidden], #policyListView[hidden], #meMain[hidden], .me-reports[hidden] { display: none; }
.policy-intro { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.policy-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.policy-search:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px #d5e8df; }
.policy-search svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.policy-search input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
/* 搜索框和年份下拉放一行（2026-11-08） */
.policy-filters { display: flex; gap: 8px; align-items: stretch; margin-bottom: 4px; }
.policy-filters .policy-search { flex: 1 1 auto; min-width: 0; }
.policy-year-pick { flex: 0 0 118px; display: flex; }
.policy-year-pick .price-select-trigger { min-height: 48px; border-radius: 12px; min-width: 0; font-weight: 700; }
.policy-status { margin: 8px 0 10px; color: var(--muted); font-size: 13px; }
.policy-list { display: grid; gap: 14px; }
.policy-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 6px 24px rgba(18,56,47,.05); }
.policy-card h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.policy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.policy-badge { padding: 1px 8px; border-radius: 99px; background: #fdf3e2; color: #8a5a12; font-size: 12px; font-weight: 700; }
.policy-summary { margin: 0; color: #3d4b47; font-size: 14px; line-height: 1.75; }
.policy-hits { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.policy-hit { width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: var(--background); color: #3d4b47; font-size: 13px; line-height: 1.7; text-align: left; cursor: pointer; }
.policy-hit:hover { background: var(--mint); }
.policy-more { color: var(--muted); font-size: 12px; padding-left: 4px; }
.policy-page mark { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; }
.policy-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.policy-actions .primary-button, .policy-actions .secondary-button { width: auto; margin: 0; min-height: 42px; padding: 0 18px; font-size: 14px; }
.policy-back { padding: 6px 0; font-size: 14px; }
.policy-detail-title { margin: 8px 0 6px; font-size: 22px; line-height: 1.45; }
.policy-tabs { display: flex; gap: 4px; width: fit-content; margin: 10px 0 16px; padding: 4px; border-radius: 12px; background: #e6efeb; }
.policy-tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.policy-tabs button[aria-selected="true"] { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(18,56,47,.08); }
.policy-loading { color: var(--muted); }
.policy-text { padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: 15px; line-height: 1.95; color: #26332f; }
.policy-text p { margin: 0 0 10px; text-indent: 2em; }
.policy-text h3 { margin: 18px 0 8px; font-size: 16px; color: var(--green); }
.policy-text .policy-focus { background: #fff8d6; border-radius: 6px; box-shadow: 0 0 0 6px #fff8d6; }
.policy-table { margin: 14px 0; }
.policy-table figcaption { margin-bottom: 8px; font-weight: 700; color: var(--green); }
.policy-table-scroll { overflow-x: auto; }
.policy-table table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: 13px; line-height: 1.6; }
.policy-table th, .policy-table td { padding: 8px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { background: var(--background); }
.policy-foot { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-indent: 0 !important; }
@media (max-width: 720px) {
  .policy-card { padding: 16px; border-radius: 16px; }
  .policy-card h2 { font-size: 16px; }
  .policy-actions > * { flex: 1; }
  .policy-detail-title { font-size: 18px; }
  .policy-tabs { width: 100%; } .policy-tabs button { flex: 1; }
  .policy-text { padding: 16px 14px; font-size: 15px; }
}

/* 思维导图：电脑横向树；手机竖向缩进（不会横着挤成一团） */
.pmap { --line-c: #b9c6c2; }
.pmap-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.pmap-tools .secondary-button { min-height: 38px; padding: 0 14px; font-size: 13px; }
.pmap-hint { color: var(--muted); font-size: 12px; }
.pmap-frame { overflow-x: auto; padding: 14px 10px 18px; border: 1px solid var(--line); border-radius: 18px; background: #fbfdfc; -webkit-overflow-scrolling: touch; }
.pmap-tree { display: flex; align-items: center; width: max-content; min-width: 100%; }
.pmap-node { display: flex; align-items: center; }
.pmap-kids { display: flex; flex-direction: column; position: relative; padding-left: 26px; }
.pmap-kids[hidden] { display: none !important; }
.pmap-kids > .pmap-node { position: relative; padding: 5px 0 5px 18px; }
.pmap-kids > .pmap-node::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; border-top: 1.5px solid var(--line-c); }
.pmap-kids > .pmap-node::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; border-left: 1.5px solid var(--line-c); }
.pmap-kids > .pmap-node:first-child::after { top: 50%; }
.pmap-kids > .pmap-node:last-child::after { bottom: 50%; }
.pmap-kids > .pmap-node:only-child::after { display: none; }
.pmap-kids::before { content: ""; position: absolute; left: 0; top: 50%; width: 26px; border-top: 1.5px solid var(--line-c); }
.pmap-lbl { position: relative; display: block; max-width: 280px; padding: 6px 11px; border: 1.5px solid var(--line-c); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.5; text-align: left; }
button.pmap-lbl { padding-right: 26px; cursor: pointer; }
button.pmap-lbl::before { content: "−"; position: absolute; right: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: ui-monospace, Menlo, monospace; }
button.pmap-lbl[aria-expanded="false"]::before { content: "+"; }
button.pmap-lbl:focus-visible { outline: 3px solid #8abbab; outline-offset: 2px; }
.pmap-lbl small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.pmap-lbl .n { font-family: ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; font-size: 12.5px; font-weight: 600; color: var(--hue, var(--ink)); }
.pmap-root { max-width: 150px; padding: 14px 16px; border-color: var(--green); background: var(--green); color: #fff; font-size: 18px; font-weight: 900; text-align: center; line-height: 1.35; }
.hue-A { --hue: #0f6b5c; --soft: #dcefea; } .hue-B { --hue: #9a5b00; --soft: #f7e9d2; } .hue-C { --hue: #3b4fa8; --soft: #e2e6f7; }
.pmap-lbl.trunk { background: var(--soft); border-color: var(--hue); font-size: 15px; font-weight: 700; }
.pmap-lbl.trunk small { font-weight: 400; }
.pmap-lbl.br { border-color: var(--hue); border-left-width: 4px; font-weight: 700; }
.pmap-lbl.hot { border-color: #b3261e; }
.pmap-lbl.hot::after { content: " 重点"; color: #b3261e; font-size: 11px; font-weight: 700; }
/* 宽度不足1024px（手机、平板、小窗口）用竖向缩进导图，避免左右来回拖 */
@media (max-width: 1023px) {
  .pmap-frame { overflow: visible; padding: 12px 10px 14px; }
  .pmap-tree, .pmap-node { display: block; width: auto; min-width: 0; }
  .pmap-root { max-width: none; text-align: left; font-size: 17px; padding: 10px 14px; }
  .pmap-root br { display: none; }
  .pmap-kids { display: block; margin-left: 12px; padding-left: 0; border-left: 1.5px solid var(--line-c); }
  .pmap-kids::before, .pmap-kids > .pmap-node::after { display: none; }
  .pmap-kids > .pmap-node { padding: 6px 0 0 14px; }
  .pmap-kids > .pmap-node::before { top: 24px; width: 12px; }
  .pmap-lbl { display: inline-block; max-width: 100%; font-size: 14px; }
}

/* ---- 5. 我的 ---- */
.me-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--green); color: #fff; }
.me-avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.me-avatar svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; }
.me-who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.me-who strong { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-who span { color: #cfe3da; font-size: 13px; }
.me-card .secondary-button { min-height: 40px; padding: 0 14px; white-space: nowrap; }
.me-card .secondary-button[hidden] { display: none; }
.me-list { display: grid; margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.me-list > button, .me-list > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 15px; text-decoration: none; text-align: left; cursor: pointer; }
.me-list > :last-child { border-bottom: 0; }
.me-list > [hidden] { display: none; }
.me-list > button:hover, .me-list > a:hover { background: var(--background); }
.me-list i { font-style: normal; color: var(--muted); font-size: 20px; }
.me-list .needs-login > span::after { content: "需登录"; margin-left: 8px; padding: 1px 7px; border-radius: 99px; background: var(--background); color: var(--muted); font-size: 11px; }
.me-logout { width: 100%; min-height: 50px; margin-top: 14px; border: 1px solid #f1c7c2; border-radius: 14px; background: #fff; color: var(--danger); font: inherit; font-weight: 700; cursor: pointer; }
.me-logout[hidden] { display: none; }
.me-subhead { display: flex; align-items: center; gap: 10px; }
.me-subhead h2 { margin: 0; font-size: 20px; }
.me-reports-note { color: var(--muted); font-size: 13px; line-height: 1.7; }
.me-reports-list { display: grid; gap: 10px; }
.me-report { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.me-report-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.me-report-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-report-info span { color: var(--muted); font-size: 13px; }
.me-report-info .me-report-saving { color: var(--green-2); font-weight: 700; }
.me-report .secondary-button { min-height: 40px; padding: 0 16px; }
.me-empty { color: var(--muted); text-align: center; padding: 24px 0; }
.me-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.me-pagination .secondary-button { min-height: 38px; padding: 0 14px; }

/* ======================================================================
   设计改版（2026-10-27）：行业工具感
   - 米白纸色底、细线分隔、小圆角、去掉漂浮阴影；深绿主色 + 琥珀色只用于重点
   - 全部限定在前台页面（body.platform-page），管理后台不受影响
   ====================================================================== */
.platform-page {
  --paper: #f5f4ef; --rule: #dedbd2; --amber: #a8691b;
  --line: #dedbd2; --background: #f5f4ef; --mint: #ecefe8; --shadow: none;
  background: var(--paper);
}
.platform-page main { background: transparent; }

/* 顶部：文字标识；电脑导航用下划线表示当前栏目 */
.platform-page .site-header { height: 60px; background: #fff; border-bottom: 1px solid var(--rule); -webkit-backdrop-filter: none; backdrop-filter: none; }
.platform-page .brand strong { font-size: 17px; letter-spacing: .02em; color: var(--green); }
.platform-page .brand-tag { margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--rule); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (min-width: 721px) {
  .platform-page .main-tabs a { min-height: 59px; margin: 0 10px; padding: 0 4px; border-radius: 0; background: none; border-bottom: 2px solid transparent; color: var(--muted); }
  .platform-page .main-tabs a:hover { background: none; color: var(--ink); }
  .platform-page .main-tabs a[aria-current="page"] { background: none; color: var(--ink); border-bottom-color: var(--green); }
  .platform-page .main-tabs svg { display: none; }
}
@media (min-width: 721px) and (max-width: 1000px) { .platform-page .brand-tag { display: none; } .platform-page .main-tabs a { margin: 0 6px; } }
.platform-page .account-menu summary, .platform-page .province-control select, .platform-page #headerAuthButton { border-radius: 6px; border-color: var(--rule); box-shadow: none; }

/* 通用：卡片改为平面细线 */
.platform-page .workflow-card, .platform-page .results, .platform-page .table-card, .platform-page .summary-card,
.platform-page .file-panel, .platform-page .grid-price-content, .platform-page .price-panel, .platform-page .policy-text,
.platform-page .pmap-frame, .platform-page .me-list, .platform-page .me-report, .platform-page .analysis-download-card {
  border-radius: 8px; box-shadow: none; border-color: var(--rule);
}
.platform-page .summary-card { background: #fff; }
.platform-page .summary-card.highlight { background: #fffaf0; border-color: #e6d2ad; }
.platform-page .price-month-cards > div { border-radius: 6px; border-color: var(--rule); background: #fff; }
.platform-page .primary-button { border-radius: 6px; box-shadow: none; }
.platform-page .secondary-button { border-radius: 6px; }
.platform-page .notice { border-radius: 6px; }
.platform-page .notice.info { background: #fff; border-color: var(--rule); color: var(--ink); }
.platform-page .login-card input, .platform-page .feedback-dialog select, .platform-page .feedback-dialog textarea { border-radius: 6px; }
.platform-page .auth-dialog, .platform-page .feedback-dialog { border-radius: 10px; box-shadow: 0 20px 60px rgba(20,28,24,.18); }
.platform-page .auth-close { border-radius: 6px; background: var(--paper); }
.platform-page .auth-tabs, .platform-page .price-subnav, .platform-page .policy-tabs { border-radius: 8px; background: #e9e7df; }
.platform-page .auth-tabs button, .platform-page .price-subnav a, .platform-page .policy-tabs button { border-radius: 6px; }
.platform-page .price-select-trigger, .platform-page .price-select-panel, .platform-page .price-select-grid button { border-radius: 6px; }
.platform-page .floating-contact { border-radius: 8px; box-shadow: 0 4px 14px rgba(20,28,24,.1); }
.platform-page .price-page-heading h1 { font-size: 24px; }

/* 首页：左边说用途，右边放真实数据 */
.home-hero { max-width: 1000px; margin: 28px auto 18px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.home-hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); }
.home-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.home-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 0; }
.home-entry-card { display: grid; gap: 6px; align-content: start; min-height: 132px; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.home-entry-card b { font-size: 19px; color: var(--green); }
.home-entry-card span { font-size: 15px; line-height: 1.7; color: var(--ink); }
.home-entry-card em { margin-top: auto; font-style: normal; font-size: 15px; font-weight: 600; color: var(--green-2); }
.home-entry-card:hover { border-color: var(--green-2); background: #fcfbf8; }
.home-entry-card:focus-visible { outline: 3px solid #8abbab; outline-offset: 1px; }
.home-entry-card[hidden] { display: none; }
.home-side { display: grid; gap: 14px; }
.home-panel { background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.home-panel h2 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.home-panel h2 a { font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; }
.home-panel h2 a:hover { color: var(--green); }
.home-prices { display: grid; grid-template-columns: repeat(4, 1fr); }
.home-prices div { min-width: 0; padding: 12px 16px; border-right: 1px solid var(--rule); }
.home-prices div:last-child { border-right: 0; }
.home-prices span { display: block; font-size: 12px; color: var(--muted); }
.home-prices strong { font: 600 19px/1.4 ui-monospace, "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.home-prices .peak strong { color: var(--amber); }
.home-source { margin: 0; padding: 8px 16px; border-top: 1px solid var(--rule); font-size: 11px; color: var(--muted); }
.home-news { list-style: none; margin: 0; padding: 4px 0; }
.home-news a { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 7px 16px; color: var(--ink); text-decoration: none; font-size: 13px; line-height: 1.55; }
.home-news a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-news-new { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; background: var(--green); color: #fff; font-style: normal; font-size: 11px; line-height: 17px; vertical-align: 1px; }
.home-news a:hover { background: var(--paper); }
.home-news time { color: var(--muted); font: 12px/1.9 ui-monospace, Menlo, monospace; }

/* 上传区 */
.platform-page .workflow-card { padding: 22px 24px; }
.platform-page .workflow-card .section-heading .step { display: none; }
.platform-page .workflow-card .section-heading h2 { font-size: 16px; }
.platform-page .drop-zone { border: 1.5px dashed #c9c5b8; border-radius: 8px; background: #fcfbf8; }
.platform-page .drop-zone:hover, .platform-page .drop-zone.dragging { background: #f7f6f0; border-color: var(--green-2); transform: none; }
.platform-page .upload-icon { border-radius: 8px; box-shadow: none; border: 1px solid var(--rule); }
.platform-page .upload-trial-notice { margin-top: 10px; padding: 0; background: transparent; border: 0; color: var(--muted); font-size: 13px; }

/* 政策：公告列表式 */
.platform-page .policy-intro { display: none; }
.platform-page .policy-search { border-radius: 6px; border-color: var(--rule); }
.platform-page .policy-year { border-radius: 4px; border-color: var(--rule); min-height: 32px; }
.platform-page .policy-list { gap: 0; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.platform-page .policy-card { padding: 16px 18px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: transparent; box-shadow: none; }
.platform-page .policy-card:last-child { border-bottom: 0; }
.platform-page .policy-card h2 { margin-bottom: 4px; font-size: 16px; }
.platform-page .policy-summary { font-size: 13px; color: var(--muted); }
.platform-page .policy-badge { border-radius: 3px; background: transparent; border: 1px solid #d9b77f; color: var(--amber); }
.platform-page .policy-hit { border-radius: 4px; }
.platform-page .policy-actions { margin-top: 8px; gap: 18px; }
.platform-page .policy-actions .primary-button, .platform-page .policy-actions .secondary-button { flex: 0 0 auto; min-height: 0; height: auto; padding: 0; border: 0; background: none; color: var(--green); font-weight: 600; }
.platform-page .policy-actions .primary-button::after, .platform-page .policy-actions .secondary-button::after { content: " →"; }
.platform-page .policy-actions button:hover { text-decoration: underline; }
.platform-page .pmap-lbl { border-radius: 6px; }

/* 我的：清爽资料头 */
.platform-page .me-card { background: #fff; color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; }
.platform-page .me-avatar { background: var(--paper); }
.platform-page .me-avatar svg { stroke: var(--green); }
.platform-page .me-who span { color: var(--muted); }
.platform-page .me-card .secondary-button { background: var(--green); color: #fff; }
.platform-page .me-list > button, .platform-page .me-list > a { min-height: 52px; }
.platform-page .me-logout { border-radius: 8px; border-color: var(--rule); color: var(--muted); }

@media (max-width: 720px) {
  .platform-page .site-header { height: auto; }
  .platform-page .brand-tag { display: none; }
  .home-hero { grid-template-columns: 1fr; gap: 16px; margin: 18px 0 12px; }
  .home-hero h1 { font-size: 24px; }
  .home-entry { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
  .home-entry-card { min-height: 0; padding: 14px 16px; }
  .home-prices div { padding: 10px; }
  .home-prices strong { font-size: 15px; }
  .home-news-panel { display: none; }
  .platform-page .workflow-card { padding: 16px; }
  .platform-page .policy-card { padding: 14px; }
}
.platform-page .brand > span { display: flex; align-items: center; }
/* 中等宽度（平板/小窗口）：顶部栏会换成两行，高度自动；首页改单列，电价四格不挤 */
@media (max-width: 960px) { .platform-page .site-header { height: auto; min-height: 60px; } }
@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; gap: 16px; }
}
/* 电价数字始终不挤：窄时字号和留白自动缩小 */
.home-prices div { padding-left: clamp(8px, 1.4vw, 16px); padding-right: clamp(8px, 1.4vw, 16px); }
.home-prices strong { font-size: clamp(14px, 1.6vw, 19px); }

/* ======================================================================
   第二轮（2026-10-27）：Word/PDF 两个下载按钮、报告署名
   ====================================================================== */
/* 2026-10-29：PDF 为深色主按钮（下面一行小字），Word 为浅色边框次要按钮 */
.platform-page .report-actions { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; align-items: start; }
.platform-page .report-actions .primary-button { margin: 0; }
.report-main { display: grid; gap: 6px; min-width: 0; }
.report-main small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.platform-page .report-actions .report-pdf:disabled { color: var(--muted); background: #f2f1ec; border: 1.5px solid var(--rule); cursor: not-allowed; }
.platform-page .report-actions .report-word { width: 100%; margin: 0; min-height: 52px; padding: 12px 14px; font-size: 15px;
  background: #fff; color: var(--green); border: 1.5px solid #c8d3cd; }
.platform-page .report-actions .report-word:hover { border-color: var(--green-2); }
.platform-page .report-actions .report-word:disabled { color: var(--muted); cursor: not-allowed; }
.result-mode-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--green-2);
  color: #fff; font-size: 11px; font-style: normal; font-weight: 600; vertical-align: 2px; }
.saving-hint { display: block; margin-top: 8px; color: #8c5a15; font-size: 12px; line-height: 1.5; }
.saving-hint[hidden] { display: none; }
/* 汇总卡片：企业名称+统计周期一行，电量+节约金额一行，不留空位 */
.summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.summary-grid .summary-card { grid-column: span 3; }
.summary-grid .summary-card.wide { grid-column: span 4; }
.summary-grid .summary-card.wide + .summary-card { grid-column: span 2; }
@media (max-width: 720px) {
  .summary-grid .summary-card { grid-column: span 3; }
  .summary-grid .summary-card.wide, .summary-grid .summary-card.wide + .summary-card { grid-column: 1 / -1; }
  .platform-page .report-actions .report-word { min-height: 48px; }
}
@media (max-width: 380px) { .summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 330px) {
  .summary-grid .summary-card, .summary-grid .summary-card.wide, .summary-grid .summary-card.wide + .summary-card { grid-column: 1 / -1; }
}
.report-signature { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.report-signature[hidden] { display: none; }
.report-signature strong { color: var(--ink); }
.report-signature .text-button { padding: 0; font-size: 13px; }
.report-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.me-signature { display: grid; gap: 12px; }
.me-signature[hidden] { display: none; }
.sig-field { display: grid; gap: 6px; position: relative; font-size: 14px; color: var(--ink); }
.sig-field small, .sig-logo small { color: var(--muted); font-weight: 400; }
.sig-field input, .sig-field textarea { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); }
.sig-field textarea { resize: vertical; min-height: 96px; }
.sig-field input:focus, .sig-field textarea:focus { outline: none; border-color: var(--green-2); box-shadow: 0 0 0 3px #d5e8df; }
.sig-field em { position: absolute; right: 0; top: 0; font-style: normal; font-size: 12px; color: var(--muted); }
.sig-logo { display: grid; gap: 8px; font-size: 14px; }
.sig-intro > label { font-size: 14px; color: var(--ink); }
.sig-intro .sig-intro-fill { position: absolute; right: 64px; top: -2px; font-size: 13px; }
.sig-intro em { top: 0; }
.sig-logo-tip { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.sig-logo-tip strong { color: var(--ink); }
.sig-logo-examples { display: flex; gap: 12px; flex-wrap: wrap; }
.sig-logo-examples figure { margin: 0; display: grid; gap: 4px; justify-items: center; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.sig-logo-examples img { height: 40px; width: auto; }
.sig-logo-examples figcaption { font-size: 12px; }
.sig-logo-examples .ok figcaption { color: #1b7a4f; }
.sig-logo-examples .bad { opacity: .75; }
.sig-logo-examples .bad figcaption { color: #b3412e; }
.sig-logo-row { display: flex; align-items: center; min-height: 64px; padding: 8px 12px; border: 1px dashed var(--rule); border-radius: 6px; background: #fcfbf8; color: var(--muted); }
.sig-logo-row img { max-height: 56px; max-width: 100%; }
.sig-logo-actions { display: flex; gap: 14px; align-items: center; }
.sig-logo-actions .secondary-button { min-height: 38px; padding: 0 14px; }
.sig-confirm { font-size: 13px; line-height: 1.6; }
.sig-status { margin: 0; min-height: 1em; color: var(--green); font-size: 13px; }
.me-list small#meSignatureState { color: var(--muted); font-weight: 400; margin-left: 4px; }
@media (max-width: 720px) { .platform-page .report-actions { grid-template-columns: 1fr; } }

/* 2026-10-29：政策解读防转载——导图和原文上铺一层淡淡的斜向水印（截图里也会带上），不影响点击和阅读 */
.pmap-tree, .policy-text { position: relative; }
.pmap-tree::after, .policy-text::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27260%27%20height%3D%27160%27%3E%3Ctext%20x%3D%27130%27%20y%3D%2788%27%20text-anchor%3D%27middle%27%20transform%3D%27rotate%28-24%20130%2080%29%27%20font-family%3D%27PingFang%20SC%2CMicrosoft%20YaHei%2Csans-serif%27%20font-size%3D%2715%27%20fill%3D%27%2312382f%27%20fill-opacity%3D%270.075%27%3E%E5%BA%A6%E7%9C%81%20%C2%B7%20dianfeice.com%3C%2Ftext%3E%3C%2Fsvg%3E"); background-repeat: repeat; background-size: 260px 160px;
}
.policy-copyright { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
/* 2026-10-29：政策卡片显示简称和文号；导图未完成的提示 */
.policy-docno { margin: 4px 0 6px; color: #1b5949; font-size: 13px; font-weight: 600; letter-spacing: .2px; }
.policy-detail-title + .policy-docno { margin: -4px 0 8px; font-size: 14px; }
.policy-pending { align-self: center; color: var(--muted); font-size: 12px; }

/* 2026-11-01：各月企业名称不一致时的确认弹窗、曾用名 */
.company-name-dialog { padding: 24px; color: var(--green); line-height: 1.7; overflow-wrap: anywhere; }
.company-name-dialog .dialog-heading { margin-bottom: 12px; }
.company-name-dialog h2 { font-size: 22px; }
.company-name-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3ebe8; }
.company-name-list li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 4px 12px; padding: 10px 2px; border-bottom: 1px solid #e3ebe8; font-size: 14px; }
.company-name-list .months { color: var(--muted); white-space: nowrap; }
.company-name-list .name { overflow-wrap: anywhere; }
.company-name-list li.is-latest .name { font-weight: 700; color: var(--green); }
@media (max-width: 480px) { .company-name-list li { grid-template-columns: 1fr; } }
.company-name-note { color: var(--muted); font-size: 14px; }
.company-name-actions { display: flex; gap: 12px; margin-top: 18px; }
.company-name-actions button { flex: 1; margin: 0; }
.former-names { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; }
@media (max-width: 480px) { .company-name-actions { flex-direction: column; } }

/* 电价查询：一度电由哪几部分组成 + 每月变化（2026-11-05） */
.tariff-public{margin-top:16px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:white}
.tariff-public h2{margin:0;font-size:17px}
.tariff-public-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:12px}
.tariff-public-head .price-select-trigger{min-width:150px}
.tariff-public-scope{margin:10px 0 12px;color:var(--muted);font-size:12px;line-height:1.6}
.tariff-public .up{color:#b5472f}.tariff-public .down{color:#1f7a55}
.tariff-public .c0{--c:#1b5949}.tariff-public .c1{--c:#8fb8a8}.tariff-public .c2{--c:#d39b3a}.tariff-public .c3{--c:#c0603f}.tariff-public .c4{--c:#9aa5a1}
.tariff-bar{display:flex;height:16px;border-radius:8px;overflow:hidden;gap:2px;margin-bottom:8px}
.tariff-bar span{background:var(--c);flex-basis:0}
.tariff-parts{list-style:none;margin:0;padding:0}
.tariff-parts>li{display:grid;grid-template-columns:minmax(0,1fr) 90px 44px;align-items:center;gap:4px 10px;padding:10px 0;border-bottom:1px solid var(--line)}
.tariff-parts>li>b{text-align:right;font-variant-numeric:tabular-nums;font-size:16px}
.tariff-parts>li>em{text-align:right;font-style:normal;color:var(--muted);font-size:13px}
.tariff-part-name{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;min-width:0}
.tariff-part-name i{width:10px;height:10px;border-radius:3px;background:var(--c);align-self:center}
.tariff-part-name strong{font-size:15px}
.tariff-part-name span{color:var(--muted);font-size:12px}
.tariff-sysop{grid-column:1/-1;margin:2px 0 0 18px;font-size:13px}
.tariff-sysop summary{cursor:pointer;color:var(--green-2);font-weight:600;min-height:32px;display:flex;align-items:center}
.tariff-sysop ul{list-style:none;margin:4px 0 0;padding:6px 12px;border-radius:10px;background:#f6f8f7}
.tariff-sysop li{display:grid;grid-template-columns:96px minmax(0,1fr) 70px;gap:8px;padding:5px 0;align-items:baseline}
.tariff-sysop li span{color:var(--muted);font-size:12px}
.tariff-sysop li b{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.tariff-parts .tariff-total{grid-template-columns:minmax(0,1fr) 90px 44px;border-bottom:0;color:var(--green)}
.tariff-parts .tariff-total strong{font-size:16px}
.tariff-parts .tariff-total b{font-size:20px}
.tariff-extra{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;margin-top:6px}
.tariff-chips{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:8px;align-content:start;padding:12px;border-radius:14px;background:#f2f8f5}
.tariff-chips h3{grid-column:1/-1;margin:0 0 2px;font-size:14px;color:var(--green)}
.tariff-chips>div{min-width:0;padding:8px;border-radius:10px;background:white;border:1px solid #d5e5dd}
.tariff-chips span{display:block;font-size:12px;color:var(--muted)}
.tariff-chips strong{font-size:15px;font-variant-numeric:tabular-nums}
.tariff-chips small{display:block;font-size:11px;color:var(--muted)}
.tariff-tip{grid-column:1/-1;margin:2px 0 0;font-size:12px;color:var(--muted)}
/* 电价组成改以附加费用为主（2026-11-08）：线损单列、填自己的购电价算到户电价 */
.tariff-parts .tariff-loss{border-top:1px dashed var(--line);border-bottom:0}
.tariff-parts .tariff-loss b{font-size:15px;color:var(--muted)}
.tariff-calc{display:grid;gap:6px;align-content:start;padding:12px;border-radius:14px;background:#f2f8f5}
.tariff-calc h3{margin:0;font-size:14px;color:var(--green)}
.tariff-calc label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--muted);font-size:14px}
.tariff-calc input{width:110px;min-height:40px;padding:6px 8px;border:1px solid var(--line);border-radius:8px;background:white;font:inherit;font-size:16px;color:var(--green)}
.tariff-calc strong{font-size:16px;color:var(--green);font-variant-numeric:tabular-nums}
.tariff-calc small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.tariff-calc .tariff-tip{margin:0}
.tariff-change-title{margin-top:24px!important}
.tariff-notes{margin:0 0 10px;padding:0;list-style:none}
.tariff-notes li{margin:4px 0;padding:7px 10px;border-radius:8px;background:#fff7e6;color:#7a5410;font-size:13px;line-height:1.5}
.tariff-change-scroll{overflow-x:auto}
.tariff-change{width:100%;min-width:720px;border-collapse:collapse;font-size:13px;font-variant-numeric:tabular-nums}
.tariff-change th,.tariff-change td{text-align:center;padding:7px 6px;border-bottom:1px solid var(--line);white-space:nowrap}
.tariff-change thead th{background:var(--mint);color:var(--green);font-weight:650}
.tariff-change tbody th{color:var(--green)}
.tariff-change th:first-child{position:sticky;left:0;background:white;z-index:1;box-shadow:1px 0 0 var(--line)}
.tariff-change thead th:first-child{background:var(--mint)}
.tariff-change td span{display:block}
.tariff-change td small{display:block;font-size:11px;margin-top:1px}
.tariff-change td.total{background:#f2f8f5;font-weight:650}
@media (max-width:720px){
 .tariff-public{padding:14px 12px}
 .tariff-public-head .grid-price-filters{width:100%}
 .tariff-public-head .grid-price-filters label{flex:1 1 30%}
 .tariff-public-head .price-select-trigger{min-width:0}
 .tariff-parts>li,.tariff-parts .tariff-total{grid-template-columns:minmax(0,1fr) 78px 40px;gap:4px 6px}
 .tariff-sysop{margin-left:0}
 .tariff-extra{grid-template-columns:minmax(0,1fr)}
 .tariff-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
 .tariff-parts .tariff-total b{font-size:17px}
 .tariff-parts>li>b{font-size:15px}
 .tariff-chart{gap:3px}
 .tariff-col{flex-basis:26px}
 .tariff-col b{font-size:9px}
 .tariff-sysop li{grid-template-columns:80px minmax(0,1fr) 60px}
}
.tariff-chart{display:flex;align-items:flex-end;gap:6px;height:220px;padding:8px 0 0;margin-bottom:6px;overflow-x:auto}
.tariff-col{flex:1 0 40px;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;height:100%;padding:0;border:0;background:none;cursor:pointer;font:inherit;color:var(--green)}
.tariff-col b{font-size:11px;font-weight:600;text-align:center;font-variant-numeric:tabular-nums;margin-bottom:3px}
.tariff-col>span{font-size:12px;text-align:center;margin-top:4px;color:var(--muted)}
.tariff-track{flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-height:0}
.tariff-stack{display:flex;flex-direction:column;border-radius:6px 6px 0 0;overflow:hidden;opacity:.55}
.tariff-stack span{background:var(--c);flex-basis:0}
.tariff-col.on .tariff-stack,.tariff-col:hover .tariff-stack{opacity:1}
.tariff-col.on>span{color:var(--green);font-weight:700}
.tariff-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin:6px 0 0;font-size:12px;color:var(--muted)}
.tariff-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--c);margin-right:4px;vertical-align:-1px}
/* 每月变化表在手机上也保持表格（旧的手机样式会把表格变成卡片） */
.tariff-change{display:table}.tariff-change thead{display:table-header-group}.tariff-change tbody{display:table-row-group}
.tariff-change tr{display:table-row;padding:0;border:0;border-radius:0;background:none}
.tariff-change th,.tariff-change td{display:table-cell}
.tariff-change td::before{display:none;content:none}
@media (max-width:720px){
 .tariff-chart{gap:3px;overflow:visible}
 .tariff-col{flex:1 1 0;min-width:0}
 .tariff-col b{font-size:9px}
 .tariff-col>span{font-size:11px}
}

/* 电价组成页（2026-11-07） */
.tariff-filters{margin:0 0 6px}
.tariff-filters label{flex:0 1 150px}
.tariff-filters label:nth-child(-n+3){flex-basis:100px}
#tariffPricePage .tariff-public{margin-top:12px}
#tariffPricePage .tariff-public h2{margin-bottom:4px}
.tariff-public .same{color:var(--muted)}
.tariff-summary{margin:10px 0 14px;padding:14px 16px;border-radius:14px;background:#f2f8f5;border:1px solid #d5e5dd}
.tariff-summary-head{display:grid;gap:3px}
.tariff-summary-head>span{font-size:13px;color:var(--muted)}
.tariff-summary-head>strong{font-size:19px}
.tariff-summary-head>small{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.tariff-summary-lists{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-top:12px}
.tariff-summary-col{padding:10px 12px;border-radius:10px;background:white}
.tariff-summary-col h3{margin:0 0 6px;font-size:13px}
.tariff-summary-col.up h3{color:#b5472f}.tariff-summary-col.down h3{color:#1f7a55}.tariff-summary-col.same h3{color:var(--muted)}
.tariff-summary-col p{display:flex;justify-content:space-between;gap:8px;margin:3px 0;font-size:13px}
.tariff-summary-col b{font-variant-numeric:tabular-nums}
.tariff-summary-col.up b{color:#b5472f}.tariff-summary-col.down b{color:#1f7a55}
.tariff-money{margin:14px 0 0;font-size:15px;line-height:1.7;color:var(--ink)}
.tariff-money strong{font-size:16px}
.tariff-money strong.up{color:#b5472f}.tariff-money strong.down{color:#1f7a55}
.tariff-summary-note{margin:8px 0 0;font-size:14px;color:var(--muted);line-height:1.7}
.tariff-how{margin-left:6px;padding:0;border:0;background:none;color:var(--green-2);font:inherit;text-decoration:underline;cursor:pointer}
.tariff-how-text{margin:6px 0 0;padding:10px 12px;border-radius:8px;background:#fff;font-size:14px;line-height:1.7;color:var(--muted)}
.tariff-change tfoot th,.tariff-change tfoot td{background:var(--mint);color:var(--green);font-weight:650}
.tariff-change tfoot th:first-child{background:var(--mint)}
.tariff-change tfoot small{font-size:13px;font-weight:700}
.tariff-change tbody tr.on th,.tariff-change tbody tr.on td{background:#fffbe9}
.tariff-change{display:table}.tariff-change tfoot{display:table-footer-group}
@media (max-width:720px){
 .tariff-filters label,.tariff-filters label:nth-child(-n+3){flex:1 1 30%}
 .tariff-filters label:nth-child(n+4){flex-basis:45%}
 .tariff-summary{padding:12px}
 .tariff-summary-head>strong{font-size:17px}
}

/* 2026-11-07 第二轮：组成卡片右上角选月份；去掉柱状图；最右列“和上月比” */
.tariff-card-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:8px 12px;margin-bottom:10px}
.tariff-card-head label{display:grid;gap:6px;font-size:12px;color:var(--muted);min-width:110px}
.tariff-table-title{margin:18px 0 0;font-size:15px;color:var(--green)}
.tariff-change td.tariff-vs{font-weight:700;font-size:14px}
.tariff-change td.tariff-vs .up{color:#b5472f}.tariff-change td.tariff-vs .down{color:#1f7a55}.tariff-change td.tariff-vs .same{color:var(--muted);font-weight:400}
.tariff-change tbody tr.on td.tariff-vs{background:#fffbe9}
.tariff-money input{width:120px}
.tariff-kind-tip{margin:4px 0 8px;font-size:12px;line-height:1.7;color:var(--muted)}
.tariff-kind-tip b{color:var(--green)}

/* 2026-11-07 第三轮：逐月对比表头冻结（单独一张表钉在顶上，左右滑动同步）；到户电价大数字 */
.tariff-change-wrap{position:relative}
.tariff-head-scroll{position:sticky;top:0;z-index:4;overflow-x:auto;scrollbar-width:none;background:var(--mint);box-shadow:0 2px 4px rgba(18,56,47,.08)}
.tariff-head-scroll::-webkit-scrollbar{display:none}
.tariff-change-wrap .tariff-change{table-layout:fixed;min-width:0}
.tariff-change-wrap .tariff-change th,.tariff-change-wrap .tariff-change td{white-space:normal;overflow-wrap:anywhere}
.tariff-head-scroll th{line-height:1.3}
.tariff-sr-head{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.tariff-sr-head tr,.tariff-sr-head th{padding:0!important;border:0!important}
.tariff-change-wrap .tariff-change-scroll{overflow-x:auto;overscroll-behavior-x:contain}
.tariff-hero{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:6px 16px;margin:0 0 12px;padding:14px 16px;border-radius:14px;background:var(--green);color:white}
.tariff-hero>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.tariff-hero span{font-size:14px;opacity:.85;flex-basis:100%}
.tariff-hero strong{font-size:32px;line-height:1.1;font-variant-numeric:tabular-nums}
.tariff-hero strong small{font-size:14px;font-weight:500;opacity:.85}
.tariff-hero em{font-style:normal;font-size:14px;font-weight:700;padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.16)}
.tariff-public .tariff-hero .up{color:#ffd3c4}.tariff-public .tariff-hero .down{color:#c8f0dc}.tariff-public .tariff-hero .same{color:white}
.tariff-hero p{margin:0;font-size:13px;opacity:.9;font-variant-numeric:tabular-nums}
@media (max-width:720px){.tariff-hero strong{font-size:28px}}

/* 2026-11-09：首页上传区切换“结算单 / 电费账单”，电费账单出用电诊断报告 */
.upload-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 16px; padding: 4px; border-radius: 14px; background: var(--mint); }
.upload-kind button { display: grid; gap: 1px; min-height: 52px; padding: 6px 8px; border: 0; border-radius: 11px; background: transparent; color: var(--green-2); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.upload-kind button small { font-size: 12px; font-weight: 400; color: var(--muted); }
.upload-kind button[aria-selected="true"] { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(18,56,47,.18); }
.upload-kind button[aria-selected="true"] small { color: #d6e8e0; }
.upload-kind button:focus-visible { outline: 3px solid #8abbab; outline-offset: 1px; }
.bill-home .drop-zone { min-height: 200px; }
.bill-home .drop-zone[hidden], .bill-home .file-panel[hidden] { display: none; }
.bill-status { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.bill-status:empty { display: none; }
.bill-accounts { display: grid; gap: 10px; margin-top: 10px; }
.bill-accounts:empty { display: none; }
.bill-accounts > p { margin: 0; }
.bill-account { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #f7fbf9; }
.bill-account-head { display: flex; align-items: center; gap: 10px; }
.bill-account-head strong { overflow-wrap: anywhere; color: var(--green); font-size: 18px; }
.bill-badge { flex-shrink: 0; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.bill-badge.market { background: #dcefe6; color: var(--green-2); }
.bill-badge.agency { background: #fbecd6; color: #8a5a14; }
.bill-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 20px; margin: 12px 0 0; }
.bill-facts div { min-width: 0; }
.bill-facts dt { color: var(--muted); font-size: 12px; }
.bill-facts dd { margin: 2px 0 0; color: var(--ink); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.bill-account > p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.bill-account p.bill-ok { color: var(--green-2); }
.bill-account p.bill-warn { color: #9a5b00; }
.bill-account p.bill-alert-head { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: #7d4d06; font-weight: 700; }
.bill-account p.bill-alert-head.severe { color: #b42318; }
.bill-alerts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.bill-alert { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #fff4e0; color: #7d4d06; font-size: 13px; line-height: 1.5; }
.bill-alert strong { font-size: 14px; }
.bill-alert.severe { background: #fdecea; color: #b42318; }
.bill-purpose { margin-top: 18px; }
.bill-purpose h3 { margin: 0 0 10px; font-size: 17px; color: var(--green); }
.bill-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bill-option { display: grid; align-content: start; gap: 4px; text-align: left; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.bill-option strong { font-size: 15px; color: var(--green); }
.bill-option small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.bill-option:hover:not(:disabled) { border-color: #9fc3b4; }
.bill-option.picked { border-color: var(--green-2); background: #f0f8f4; box-shadow: inset 0 0 0 1px var(--green-2); }
.bill-option:disabled { cursor: not-allowed; opacity: .5; }
.bill-option:focus-visible { outline: 3px solid #8abbab; outline-offset: 1px; }
.bill-offer { display: grid; gap: 6px; margin-top: 14px; }
.bill-offer label { font-weight: 700; color: var(--green); }
.bill-offer label small { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--mint); color: var(--green-2); font-size: 12px; font-weight: 600; }
.bill-offer > small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.bill-unit { display: flex; max-width: 260px; }
.bill-unit input { flex: 1; min-width: 0; min-height: 44px; padding: 10px; border: 1px solid #cbd8d3; border-radius: 11px 0 0 11px; font: inherit; }
.bill-unit em { display: grid; place-items: center; padding: 0 12px; border: 1px solid #cbd8d3; border-left: 0; border-radius: 0 11px 11px 0; background: #f7fbf9; font-style: normal; font-size: 13px; color: var(--muted); }
.bill-result:empty { display: none; }
.bill-done { margin-top: 18px; padding: 20px; border: 1.5px solid #bcd8cb; border-radius: 16px; background: #f4faf7; }
.bill-done h3 { margin: 8px 0 0; font-size: 19px; color: var(--green); overflow-wrap: anywhere; }
.bill-done .bill-done-sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.bill-done .report-actions { display: grid; grid-template-columns: 3fr 2fr; gap: 10px; align-items: start; margin: 16px 0 0; }
.bill-done .report-actions .primary-button { margin: 0; }
.bill-done .report-word { width: 100%; margin: 0; min-height: 52px; padding: 12px 14px; font-size: 15px; background: #fff; color: var(--green); border: 1.5px solid #c8d3cd; }
.bill-done .report-word:hover { border-color: var(--green-2); }
.bill-tips { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.bill-alert-dialog { padding: 24px; color: var(--green); line-height: 1.7; }
.bill-alert-dialog.severe h2 { color: #b42318; }
.bill-alert-dialog > p { color: var(--muted); font-size: 14px; }
.bill-alert-lines { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bill-alert-lines li { padding: 10px 12px; border-radius: 12px; background: #fff4e0; color: #7d4d06; font-size: 14px; }
.bill-alert-lines li.severe { background: #fdecea; color: #b42318; font-weight: 700; }
.bill-switch { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-weight: 700; cursor: pointer; }
.bill-switch input { width: 22px; height: 22px; accent-color: var(--green-2); }
@media (max-width: 720px) { .bill-done .report-actions { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .bill-unit { max-width: none; }
  .bill-account { padding: 14px; }
}

/* 2026-11-09 小程序审核通过前：网页在小程序里打开时不显示“电费账单”（服务器开关打开后 html 带 data-mp-bill="on"） */
html.in-mp:not([data-mp-bill="on"]) .upload-kind,
html.in-mp:not([data-mp-bill="on"]) .home-entry-card[data-upload-kind="bill"] { display: none; }
html.in-mp:not([data-mp-bill="on"]) .home-entry { grid-template-columns: 1fr; }

/* ======================================================================
   2026-11-09 第3项：全站字太小太密 → 统一规矩（只管前台页面 .platform-page，后台不变）
   - 正文 15—16px，行距约 1.7；灰色说明小字电脑最小 13px、手机最小 14px；段落和卡片之间多留空。
   - 顶部/底部栏目按钮不在这里放大（手机一排四个按钮，放大会挤）。
   ====================================================================== */
.platform-page main p, .platform-page main li, .platform-page main dd { line-height: 1.7; }
/* 正文 */
.platform-page .home-copy p { font-size: 16px; }
.platform-page .home-news a { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.platform-page .policy-summary { font-size: 15px; }
.platform-page .notice { font-size: 15px; line-height: 1.7; }
.platform-page .price-scope, .platform-page .tariff-summary-col p, .platform-page .tariff-notes li,
.platform-page .bill-account > p, .platform-page .bill-option small, .platform-page .bill-tips { font-size: 14px; line-height: 1.7; }
.platform-page .bill-tips { font-size: 14px; }
/* 灰色说明小字：最小 13px */
.platform-page .home-source, .platform-page .home-panel h2 a, .platform-page .home-prices span, .platform-page .home-news time,
.platform-page .brand-tag, .platform-page .grid-price-filters label, .platform-page .grid-price-note, .platform-page .price-policy,
.platform-page .upload-permission, .platform-page .drop-zone small, .platform-page .drop-zone .drop-hint, .platform-page .drop-zone .drop-hint-path,
.platform-page .file-size, .platform-page .summary-card span, .platform-page .result-mode-intro span, .platform-page .result-mode-option-detail,
.platform-page .table-heading p, .platform-page .disclosure-copy small, .platform-page .time-detail, .platform-page footer,
.platform-page .grid-price-page .grid-price-table caption, .platform-page .grid-price-page .grid-price-table tfoot small,
.platform-page .policy-badge, .platform-page .policy-more, .platform-page .policy-foot, .platform-page .policy-meta, .platform-page .policy-docno,
.platform-page .pmap-hint, .platform-page .pmap-lbl small, .platform-page .report-main small, .platform-page .saving-hint, .platform-page .report-note,
.platform-page .sig-field em, .platform-page .sig-logo-examples figcaption, .platform-page .usage-rule, .platform-page .hourly-missing,
.platform-page .hourly-legend, .platform-page .upload-kind button small, .platform-page .tariff-kind-tip, .platform-page .tariff-public-scope,
.platform-page .tariff-tip, .platform-page .tariff-summary-head > small, .platform-page .tariff-summary-head > span, .platform-page .tariff-calc small,
.platform-page .legal-update-note, .platform-page .account-information, .platform-page .password-hint, .platform-page .agreement-check,
.platform-page .login-contact, .platform-page .usage-title-note, .platform-page #meSignatureState, .platform-page #meNote,
.platform-page .bill-badge, .platform-page .bill-facts dt, .platform-page .bill-offer > small, .platform-page .bill-done .bill-done-sub,
.platform-page .upload-trial-notice, .platform-page .bill-status, .platform-page th, .platform-page .account-menu-panel button,
.platform-page .account-menu-panel a { font-size: 13px; line-height: 1.7; }
.platform-page .drop-zone .drop-hint, .platform-page .upload-trial-notice, .platform-page .upload-notes { font-size: 14px; }
.platform-page .home-news-new, .platform-page .tariff-change small, .platform-page .tariff-change .up, .platform-page .tariff-change .down { font-size: 12px; }
.platform-page footer button, .platform-page footer a { font-size: inherit; }
/* 多留空 */
.platform-page .home-hero { margin-top: 36px; margin-bottom: 28px; gap: 32px; }
.platform-page .workflow-card { padding: 28px 30px; }
.platform-page .workflow-card .section-heading { margin-bottom: 18px; }
.platform-page .drop-zone .drop-hint { margin-top: 14px; }
.platform-page .tariff-public { margin-top: 20px; }
.platform-page .policy-card { padding: 20px 22px; }
.platform-page .policy-card h2 { margin-bottom: 8px; font-size: 17px; }
/* 首页上传区：额度说明和授权提示合成一行，详细的点开才显示（和“怎么下载？”一样） */
.upload-notes { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }
.upload-notes .upload-trial-notice { display: inline; margin: 0; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.upload-notes .drop-hint-more { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--green-2); font: inherit; text-decoration: underline; cursor: pointer; }
.platform-page .upload-notes + .upload-permission { margin-top: 6px; }
@media (max-width: 720px) {
  .platform-page .home-source, .platform-page .home-panel h2 a, .platform-page .home-prices span, .platform-page .home-news time,
  .platform-page .grid-price-filters label, .platform-page .grid-price-note, .platform-page .price-policy,
  .platform-page .upload-permission, .platform-page .drop-zone small, .platform-page .drop-zone .drop-hint-path,
  .platform-page .file-size, .platform-page .summary-card span, .platform-page .result-mode-intro span, .platform-page .result-mode-option-detail,
  .platform-page .table-heading p, .platform-page .disclosure-copy small, .platform-page footer,
  .platform-page .policy-meta, .platform-page .policy-docno, .platform-page .policy-foot, .platform-page .pmap-hint,
  .platform-page .report-main small, .platform-page .saving-hint, .platform-page .report-note, .platform-page .usage-rule,
  .platform-page .tariff-kind-tip, .platform-page .tariff-public-scope, .platform-page .tariff-tip, .platform-page .tariff-summary-head > span,
  .platform-page .tariff-summary-head > small, .platform-page .legal-update-note, .platform-page .password-hint, .platform-page .agreement-check,
  .platform-page #meSignatureState, .platform-page #meNote, .platform-page .bill-facts dt, .platform-page .bill-offer > small,
  .platform-page .bill-done .bill-done-sub, .platform-page .bill-status, .platform-page .upload-kind button small { font-size: 14px; }
  .platform-page .home-hero { margin-top: 22px; margin-bottom: 18px; gap: 18px; }
  .platform-page .workflow-card { padding: 20px 16px; }
  .platform-page .policy-card { padding: 16px; }
}
/* 电价组成页的灰色说明 */
.platform-page .tariff-part-name span, .platform-page .tariff-chips span, .platform-page .tariff-chips small, .platform-page .tariff-card-head label,
.platform-page .tariff-sysop li span, .platform-page .tariff-calc small, .platform-page .tariff-hero p, .platform-page .tariff-parts > li > em,
.platform-page .tariff-sysop, .platform-page .tariff-summary-col h3, .platform-page .tariff-summary-col p { font-size: 13px; line-height: 1.6; }
@media (max-width: 720px) {
  .platform-page .tariff-part-name span, .platform-page .tariff-card-head label, .platform-page .tariff-sysop li span, .platform-page .tariff-calc small,
  .platform-page .tariff-hero p, .platform-page .tariff-sysop, .platform-page .tariff-summary-col h3, .platform-page .tariff-summary-col p,
  .platform-page .policy-badge, .platform-page #policyStatus, .platform-page .price-policy h3 { font-size: 14px; }
  .platform-page .price-scope span { white-space: normal; }
}
.tariff-kind-tip summary { cursor: pointer; color: var(--green-2); font-weight: 600; text-decoration: underline; list-style: none; }
.tariff-kind-tip summary::-webkit-details-marker { display: none; }
.tariff-kind-tip[open] summary { margin-bottom: 4px; }
/* 结算单结果页 */
.platform-page .report-signature, .platform-page .usage-toggle-action, .platform-page .usage-title-note { font-size: 14px; }
.platform-page .results .table-card, .platform-page .results .summary-grid { margin-top: 20px; }

/* ======================================================================
   2026-11-10 首页重排（用户定稿草图“首页草图（待定）/”）：
   左边标题＋上传区（一打开就能上传），右边本月电价、最新政策；手机：标题→上传区→本月电价
   ====================================================================== */
.platform-page .home-hero { max-width: 1120px; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; margin-top: 40px; }
.platform-page .home-hero h1 { font-size: 34px; margin-bottom: 10px; }
.platform-page .home-copy > p { margin-bottom: 22px; font-size: 17px; }
.platform-page .home-copy .workflow-card { padding: 20px; border-radius: 12px; }
.platform-page .home-copy .upload-kind { margin-bottom: 16px; }
.platform-page .home-copy .drop-zone { min-height: 0; padding: 30px 16px; }
.platform-page .home-copy .upload-icon { margin-bottom: 12px; }
.platform-page .drop-zone .drop-button { display: inline-block; padding: 12px 34px; border-radius: 8px; background: var(--green); color: #fff; font-size: 17px; font-weight: 700; }
.platform-page .drop-zone .drop-button + span { margin-top: 12px; font-size: 14px; }
.platform-page .home-copy .upload-notes { margin: 14px 2px 0; font-size: 14px; }
.platform-page .home-copy .upload-notes .drop-hint-more { margin-left: 12px; }
.platform-page .home-side { gap: 16px; }
/* 右边电价、政策和左边上传区一样高度起步 */
.platform-page .home-side { margin-top: 0; }
@media (max-width: 900px) {
  .platform-page .home-hero { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 720px) {
  .platform-page .home-hero { margin-top: 22px; }
  .platform-page .home-hero h1 { font-size: 26px; }
  .platform-page .home-copy > p { font-size: 16px; margin-bottom: 16px; }
  .platform-page .home-copy .workflow-card { padding: 14px; }
  .platform-page .home-copy .drop-zone { padding: 24px 12px; }
}
/* 还没选文件时不显示灰色的“识别并核对数据”按钮 */
.platform-page #filePanel[hidden] ~ #previewButton { display: none; }
.platform-page #billFilePanel[hidden] ~ #billAnalyze { display: none; }

/* 2026-11-10 各页说明精简：政策摘要最多两行；“说明”类点开才显示 */
.platform-page .policy-list .policy-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.platform-page .price-policy.tariff-kind-tip { margin-top: 14px; padding-top: 10px; }
.platform-page .price-policy.tariff-kind-tip p { margin: 6px 0 0; }
.platform-page .tariff-extra > .tariff-kind-tip { grid-column: 1 / -1; margin: 0 0 8px; }
.platform-page .tariff-extra > .tariff-kind-tip p { margin: 6px 0 0; }

/* 2026-11-09：首页右边“本月电价”四格，窗口缩小时数字跟着格子宽度缩小，不再超出边框；太窄就改成两行两列 */
.home-panel:has(#homePrices) { container-type: inline-size; }
.platform-page .home-prices div { padding-left: clamp(6px, 3cqi, 16px); padding-right: clamp(6px, 3cqi, 16px); }
.platform-page .home-prices strong { display: block; font-size: clamp(13px, 4cqi, 19px); overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 380px) {
  .platform-page .home-prices { grid-template-columns: repeat(2, 1fr); }
  .platform-page .home-prices div:nth-child(2) { border-right: 0; }
  .platform-page .home-prices div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .platform-page .home-prices strong { font-size: 17px; }
}
/* 2026-11-09：电脑窗口中等宽度时顶部栏目被挤压、和省份框叠在一起：栏目不再被压缩，挤的时候先藏“陕西工商业电费”小字 */
@media (min-width: 721px) { .platform-page .main-tabs { flex: 1 0 auto; } }
@media (min-width: 721px) and (max-width: 1240px) { .platform-page .brand-tag { display: none; } }
/* 右边“省份＋登录/我的”原来固定4列×140px（未登录也占584px），窗口中等宽度时把页面撑出横向滚动：改成有几个按钮占几列、可以缩到96px */
@media (min-width: 1001px) {
  .platform-page .workspace-nav { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(96px, 140px); min-width: 0; }
}
/* 2026-11-09：“联系客服”拖过正文时半透明（松手后自动靠边） */
.floating-contact.over-content { opacity: .75; }
.floating-contact:not(.dragging) { transition: left .18s ease, top .18s ease; }

/* ======================================================================
   2026-11-10 识别完成后换画面（result-step.js，草图“结果页草图（待定）/”）：
   结果出来后收起首页大标题、上传框、右边电价和政策，只留步骤条＋结果
   ====================================================================== */
.result-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.result-steps li { display: flex; align-items: center; gap: 6px; }
.result-steps li + li::before { content: ""; width: 28px; height: 1px; background: var(--line, #dedbd2); margin-right: 2px; }
.result-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line, #dedbd2); background: #fff; font-size: 13px; }
.result-steps .done i { background: #e4efe9; border-color: #e4efe9; color: #237a5e; }
.result-steps .on { color: var(--ink); font-weight: 700; }
.result-steps .on i { background: var(--green); border-color: var(--green); color: #fff; }
#restartButton::before, #billRestart::before { content: "← "; }
.bill-result-head { display: none; }
.bill-result-head .result-title { margin-bottom: 18px; }
.bill-result-head .success-line b { font-weight: inherit; }
/* 结算单结果画面：整块首页（标题、上传、电价、政策）收起 */
#workspacePage.step-result-settlement .home-hero { display: none; }
#workspacePage.step-result-settlement .results { margin-top: 28px; }
/* 电费账单结果画面：上传框所在卡片留着放结果，其余收起 */
#workspacePage.step-result-bill .home-hero { grid-template-columns: minmax(0, 1fr); }
#workspacePage.step-result-bill .home-side,
#workspacePage.step-result-bill .home-copy > h1,
#workspacePage.step-result-bill .home-copy > p,
#workspacePage.step-result-bill .upload-kind,
#workspacePage.step-result-bill #billDrop,
#workspacePage.step-result-bill #billFilePanel,
#workspacePage.step-result-bill #billStatus,
#workspacePage.step-result-bill #billPane .upload-notes { display: none; }
#workspacePage.step-result-bill .bill-result-head { display: block; }
@media (max-width: 720px) {
  .result-steps { font-size: 13px; gap: 6px; }
  .result-steps li + li::before { width: 12px; }
  .result-steps .done, .result-steps li:not(.on) { font-size: 0; }
  .result-steps li:not(.on) i { font-size: 13px; }
}

/* ======================================================================
   2026-11-10 电价查询改版（草图“电价查询草图（待定）/”）：
   本月一眼看＋表格＋走势图；市场价先选一个月看24小时柱状图；电价组成筛选进卡片、合计列提前
   ====================================================================== */
.platform-page .grid-price-page { max-width: 1120px; }
.platform-page .price-page-heading h1 { font-size: 26px; }
.price-unit { display: inline-block; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--rule, #dedbd2); border-radius: 20px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 400; vertical-align: 4px; }
.platform-page .grid-price-page .price-scope { font-size: 15px; margin: 4px 0 16px; }
/* 本月一眼看 */
.price-glance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); margin-bottom: 16px; background: #fff; border: 1px solid var(--rule, #dedbd2); border-radius: 12px; overflow: hidden; }
.price-glance[hidden] { display: none; }
.price-glance > div { min-width: 0; padding: 16px 18px; border-right: 1px solid var(--rule, #dedbd2); }
.price-glance > div:last-child { border-right: 0; }
.price-glance span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.price-glance strong { display: block; font: 600 22px ui-monospace, Menlo, monospace; color: var(--ink); }
.price-glance em { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-style: normal; }
.price-glance .peak strong { color: var(--amber, #a8691b); }
.price-glance .tip { background: #f3f7f2; }
.price-glance .tip strong { font-family: inherit; font-size: 18px; color: var(--green-2); }
.price-glance .up, .price-two .up, #marketHourBody .up, #marketWeightedMonths .up { color: #b0452f; }
.price-glance .down, .price-two .down, #marketHourBody .down, #marketWeightedMonths .down { color: #237a5e; }
.price-glance strong.cheap, #marketHourBody td.cheap { color: #237a5e; }
.price-glance strong.dear { color: #b0452f; }
/* 两栏：左表右图 / 左明细右加权均价 */
.price-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.price-two > * { min-width: 0; }
#marketPricePage > .grid-price-content { margin-bottom: 16px; }
.price-panel h2 { margin: 0 0 12px; font-size: 17px; }
.platform-page .grid-price-page .grid-price-content { padding: 18px 20px; border-radius: 12px; }
.platform-page .grid-price-page .grid-price-filters { margin-bottom: 14px; }
.platform-page .grid-price-page .price-filter-actions { margin-left: auto; }
/* 图 */
.price-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.price-legend[hidden], .price-legend span[hidden] { display: none; }
.price-legend b { font-weight: 400; }
.price-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; vertical-align: -1px; }
.price-legend .c-peak { background: #a8691b; } .price-legend .c-flat { background: #1b5949; } .price-legend .c-valley { background: #3d6f8f; } .price-legend .c-sharp { background: #b0452f; }
.price-legend .c-cheap { background: #8fbfa6; } .price-legend .c-compare { height: 0; border-top: 2px dashed #9c9686; border-radius: 0; vertical-align: 3px; } .price-legend .c-avg { height: 0; border-top: 2px dashed #a8691b; border-radius: 0; vertical-align: 3px; }
.price-chart { display: block; width: 100%; height: auto; }
.price-chart text { font-size: 11px; fill: #63716c; }
.price-chart .grid { stroke: #ecebe6; }
.price-chart .line { fill: none; stroke-width: 2.5; }
.price-chart .line.c-peak { stroke: #a8691b; } .price-chart .line.c-flat { stroke: #1b5949; } .price-chart .line.c-valley { stroke: #3d6f8f; }
.price-chart .dot.c-peak { fill: #a8691b; } .price-chart .dot.c-flat { fill: #1b5949; } .price-chart .dot.c-valley { fill: #3d6f8f; } .price-chart .dot.c-sharp { fill: #b0452f; }
.price-chart .bar { fill: #1b5949; } .price-chart .bar.cheap { fill: #8fbfa6; }
.price-chart .compare { fill: none; stroke: #9c9686; stroke-width: 2; stroke-dasharray: 4 3; }
.price-chart .avg { stroke: #a8691b; stroke-dasharray: 6 4; }
.price-chart .avg-label-bg { fill: #fff; opacity: .9; }
.price-chart text.avg-label { fill: #a8691b; font-size: 12px; }
.price-chart-title { margin-top: 4px !important; }
/* 国网表：数字右对齐、最新月高亮 */
#gridPricePage .grid-price-table th, #gridPricePage .grid-price-table td { text-align: right; padding: 8px 10px; }
#gridPricePage .grid-price-table th:first-child { text-align: left; }
#gridPricePage .grid-price-table tbody tr:last-child { background: #fffaf0; }
/* 市场价：两张新表 */
#marketPricePage .market-hour-table, #marketPricePage .market-weighted-table { display: table; width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
#marketPricePage .market-hour-table thead, #marketPricePage .market-weighted-table thead { display: table-header-group; }
#marketPricePage .market-hour-table tbody, #marketPricePage .market-weighted-table tbody { display: table-row-group; }
#marketPricePage .market-hour-table tfoot, #marketPricePage .market-weighted-table tfoot { display: table-footer-group; }
#marketPricePage .market-hour-table tr, #marketPricePage .market-weighted-table tr { display: table-row; border: 0; padding: 0; background: none; }
#marketPricePage .market-hour-table th, #marketPricePage .market-hour-table td,
#marketPricePage .market-weighted-table th, #marketPricePage .market-weighted-table td { display: table-cell; width: auto; padding: 7px 10px; border: 0; border-bottom: 1px solid var(--rule, #dedbd2); text-align: right; white-space: nowrap; font-weight: 400; color: var(--ink); background: none; }
#marketPricePage .market-hour-table th:first-child, #marketPricePage .market-weighted-table th:first-child { text-align: left; }
#marketPricePage .market-hour-table thead th, #marketPricePage .market-weighted-table thead th { background: #faf9f5; color: var(--muted); font-size: 13px; text-align: right; }
#marketPricePage .market-hour-table thead th:first-child, #marketPricePage .market-weighted-table thead th:first-child { text-align: left; }
#marketPricePage .market-hour-table tfoot th, #marketPricePage .market-hour-table tfoot td,
#marketPricePage .market-weighted-table tfoot th, #marketPricePage .market-weighted-table tfoot td { background: #f3f7f2; font-weight: 700; color: var(--green); }
#marketPricePage .market-hour-table tr.cheap-row th, #marketPricePage .market-hour-table tr.cheap-row td { background: #f3f8f4; }
#marketPricePage .market-weighted-table tr.on th, #marketPricePage .market-weighted-table tr.on td { background: #fffaf0; }
#marketPricePage .market-weighted-table td::before, #marketPricePage .market-hour-table td::before { display: none; content: none; }
.market-weighted-note { font-size: 14px !important; line-height: 1.7; margin: -4px 0 12px !important; padding: 10px 12px; border-radius: 8px; background: #fff7e6; color: #6b4b12 !important; }
.market-weighted-note b { color: #6b4b12; }
#marketPriceStatus:empty { display: none; }
#marketPricePage .market-hour-table td.up, #marketPricePage .market-weighted-table td.up { color: #b0452f; }
#marketPricePage .market-hour-table td.down, #marketPricePage .market-weighted-table td.down, #marketPricePage .market-hour-table td.cheap { color: #237a5e; }
#marketPricePage .market-hour-table td.cheap { font-weight: 650; }
/* 电价组成：筛选放进卡片 */
.price-filter-card { margin-bottom: 16px; }
.price-filter-card .grid-price-filters { margin-bottom: 8px !important; }
@media (max-width: 1000px) {
  .price-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-glance > div { border-right: 0; border-bottom: 1px solid var(--rule, #dedbd2); }
  .price-glance > div:nth-child(odd):not(:last-child) { border-right: 1px solid var(--rule, #dedbd2); }
  .price-glance .tip { grid-column: 1 / -1; border-bottom: 0; }
  .price-two { grid-template-columns: minmax(0, 1fr); }
  #gridChartPanel { order: -1; }
}
@media (max-width: 720px) {
  .platform-page .price-page-heading h1 { font-size: 22px; }
  .price-unit { display: block; width: max-content; margin: 6px 0 0; }
  .price-glance > div { padding: 12px 14px; }
  .price-glance strong { font-size: 19px; }
  .platform-page .grid-price-page .grid-price-content { padding: 14px 12px; }
  .platform-page .grid-price-page .grid-price-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #gridPriceFilters, #marketPriceFilters { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .platform-page .grid-price-page .grid-price-filters label { min-width: 0; }
  .platform-page .grid-price-page .price-select-trigger { min-width: 0; }
  .platform-page .grid-price-page .price-filter-actions { grid-column: 1 / -1; margin: 0; }
  .platform-page .grid-price-page .price-filter-actions button { width: 100%; }
  #marketPricePage .market-hour-table th, #marketPricePage .market-hour-table td { padding: 7px 6px; font-size: 13px; }
}

/* ---------- 2026-11-10 “我的”改版（草图“我的页面草图（待定）/”）：电脑左账号＋菜单、右内容；手机从上往下 ---------- */
.me-page { max-width: 1080px; }
.me-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "card pane" "nav pane" "out pane"; grid-template-rows: auto auto 1fr; gap: 16px 20px; align-items: start; }
.me-side { display: contents; }
.me-layout .me-card { grid-area: card; }
.me-layout .me-list { grid-area: nav; margin-top: 0; }
.me-layout .me-logout { grid-area: out; margin-top: 0; }
.me-pane { grid-area: pane; min-width: 0; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.me-guest .me-layout { grid-template-areas: "card nav"; grid-template-rows: auto; }
.me-guest .me-pane, .me-guest .me-logout { display: none; }
.platform-page .me-card { display: grid; gap: 0; padding: 0; align-items: stretch; }
.me-card-top { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.me-quota { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; padding: 14px 20px 16px; border-top: 1px solid var(--rule); }
.me-quota span { display: block; color: var(--muted); font-size: 13px; }
.me-quota b { color: var(--green); font-size: 22px; }
.me-quota p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.platform-page .me-card .me-login { width: auto; margin: 0 20px 18px; min-height: 44px; }
.me-card .me-login[hidden], .me-who span[hidden] { display: none; }
.me-group { margin: 0; padding: 12px 18px 4px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--rule); }
.me-group:first-child { border-top: 0; }
.me-group[hidden], .me-list > [hidden] { display: none; }
.platform-page .me-list > button, .platform-page .me-list > a { min-height: 46px; border-bottom: 0; }
.me-list > button > span { flex: 1; }
.me-list > button small { max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.me-list > button.on { background: var(--paper); box-shadow: inset 3px 0 0 var(--green); font-weight: 700; }
.me-legal { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 18px; }
.me-legal a { color: var(--ink); text-decoration: none; }
.me-legal a:hover { color: var(--green); }
.me-legal em { font-style: normal; color: var(--muted); }
.me-legal i { margin-left: auto; font-style: normal; color: var(--muted); font-size: 20px; }
.me-pane .me-subhead h2 { font-size: 21px; }
.me-pane .me-reports-note { margin: 6px 0 14px; }
.me-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.me-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.me-chips button { min-height: 38px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.me-chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.me-search { flex: 1; min-width: 160px; min-height: 38px; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; font: inherit; font-size: 14px; }
.me-pane .me-reports-list { gap: 0; }
.platform-page .me-pane .me-report { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 16px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.me-tag { align-self: start; margin-top: 2px; padding: 2px 8px; border-radius: 4px; font-size: 13px; white-space: nowrap; }
.me-tag.settlement { background: #e6f1ec; color: var(--green-2); }
.me-tag.bill { background: #fbefd9; color: #9a5b00; }
.me-pane .me-report-info strong { font-size: 16px; white-space: normal; }
.me-report-actions { display: flex; align-items: center; gap: 8px; }
.me-pane .me-report-actions button { width: auto; flex: 0 0 auto; margin: 0; height: 36px; min-height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.me-pane .me-report-actions .secondary-button { border: 1px solid var(--rule); background: #fff; color: var(--green); }
.me-pane .me-report-actions .secondary-button:hover { border-color: var(--green-2); }
.me-pane .me-pagination { gap: 16px; color: var(--muted); }
.me-pagination[hidden] { display: none; }
.me-pane #meDevices .me-report { border: 1px solid var(--rule); border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
@media (min-width: 761px) {
  .me-pane .me-subhead .text-button { display: none; }   /* 电脑上左边菜单一直在，不用“返回” */
}
@media (max-width: 760px) {
  /* 手机：“我的”首页只有账号＋菜单＋退出；报告记录、署名、设备点进去单独一屏 */
  .me-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "card" "nav" "out" "pane"; gap: 14px; }
  .me-guest .me-layout { grid-template-areas: "card" "nav"; }
  .me-page:not(.me-sub) .me-pane { display: none; }
  .me-pane { padding: 18px 16px; }
  .me-sub .me-card, .me-sub .me-list, .me-sub .me-logout { display: none; }
  .me-sub .me-layout { grid-template-areas: "pane"; }
  .me-list > button.on { background: #fff; box-shadow: none; font-weight: inherit; }
  .me-search { display: none; }
  .me-chips button { padding: 0 12px; }
  .platform-page .me-pane .me-report { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }
  .me-tag { justify-self: start; margin: 0; }
  .me-report-actions { gap: 8px; }
  .me-pane .me-report-actions button { height: 34px; min-height: 34px; padding: 0 12px; font-size: 14px; }
}

/* ---------- 2026-11-10 政策解读改版（草图“政策解读草图（待定）/”） ---------- */
.policy-page { max-width: 1180px; }
.policy-sub { margin: 4px 0 16px; color: var(--muted); font-size: 15px; }
.policy-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.policy-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.policy-chips button { min-height: 36px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.policy-chips button i { margin-left: 4px; font-style: normal; opacity: .6; }
.policy-chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.platform-page .policy-list { display: block; background: none; border: 0; border-radius: 0; }
.policy-year-head { margin: 18px 0 8px; color: var(--muted); font-size: 15px; }
.policy-year-head:first-child { margin-top: 4px; }
.policy-group { background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.platform-page .policy-group .policy-card { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 18px 20px; }
.policy-date { padding-top: 2px; text-align: center; color: var(--muted); font-size: 13px; line-height: 1.4; }
.policy-date b { display: block; color: var(--ink); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.policy-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.policy-nick { padding: 2px 8px; border-radius: 4px; background: #e6f1ec; color: var(--green-2); font-size: 13px; font-weight: 600; }
.policy-area { padding: 2px 8px; border-radius: 4px; background: var(--paper); color: var(--muted); font-size: 13px; }
.platform-page .policy-tags .policy-badge { padding: 2px 8px; border: 0; border-radius: 4px; background: #fbefd9; color: #8a5a12; font-size: 13px; font-weight: 400; }
.platform-page .policy-card .policy-meta { margin: 0 0 4px; }
.policy-side-card { padding: 16px 18px; margin-bottom: 14px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.policy-side-card h2, .policy-info summary { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.policy-side-card[hidden] { display: none; }
.policy-open { display: block; width: 100%; padding: 10px 0; border: 0; border-top: 1px solid var(--rule); background: none; color: var(--ink); font: inherit; font-size: 14px; line-height: 1.6; text-align: left; cursor: pointer; }
.policy-side-card h2 + .policy-open, .policy-side-card h2 + div .policy-open:first-child { border-top: 0; padding-top: 0; }
.policy-open:hover { color: var(--green); }
.policy-open em { display: block; font-style: normal; color: #b0452f; font-size: 13px; }
.policy-related .policy-open { font-weight: 600; }
.policy-related .policy-open em { color: var(--muted); font-weight: 400; }
.policy-side-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.policy-hot { display: flex; flex-wrap: wrap; gap: 8px; }
.policy-hot button { padding: 5px 12px; border: 1px solid var(--rule); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.policy-hot button:hover { border-color: var(--green-2); color: var(--green); }
.policy-notice { display: none; }
/* 导图要整宽（窄了会被截成半截），文件信息、相关政策放在导图下面并排两块 */
.policy-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 6px; }
.policy-detail-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.policy-detail-side .policy-side-card { margin: 0; }
.policy-detail-main .policy-detail-title { margin-top: 0; }
.policy-detail-main > .policy-meta { margin: 6px 0 14px; }
.policy-one { margin-bottom: 14px; padding: 14px 18px; border: 1px solid #e6d2ad; border-radius: 8px; background: #fffaf0; }
.policy-one b { display: block; margin-bottom: 4px; color: #8a5a12; font-size: 14px; }
.policy-one p { margin: 0; font-size: 16px; line-height: 1.75; }
.policy-info summary { list-style: none; cursor: default; }
.policy-info summary::-webkit-details-marker { display: none; }
.policy-info dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 14px; }
.policy-info dt { color: var(--muted); }
.policy-info dd { margin: 0; }
@media (max-width: 760px) {
  .policy-layout, .policy-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .policy-detail-side { grid-template-columns: minmax(0, 1fr); }
  .policy-side { display: none; }
  .policy-notice { display: block; width: 100%; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #e8d4ae; border-radius: 8px; background: #fff7e6; color: #7a5410; font: inherit; font-size: 14px; line-height: 1.6; text-align: left; cursor: pointer; }
  .policy-notice[hidden] { display: none; }
  .policy-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .policy-chips button { padding: 0 11px; }
  .platform-page .policy-group .policy-card { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px; }
  .policy-date { display: flex; gap: 6px; text-align: left; padding: 0; }
  .policy-date b { display: inline; color: var(--muted); font-size: 13px; font-weight: 400; }
  .policy-date b::after { content: " ·"; }
  .policy-one { padding: 12px 14px; }
  .policy-info summary { display: flex; justify-content: space-between; margin: 0; cursor: pointer; }
  .policy-info summary::after { content: "点开 ▾"; color: var(--muted); font-weight: 400; font-size: 14px; }
  .policy-info[open] summary { margin-bottom: 10px; }
  .policy-info[open] summary::after { content: "收起 ▴"; }
}
/* 2026-11-10：电脑窗口缩小时横向导图放不下（会被截成半截），自动换成和手机一样的竖向导图（policies.js fitMap） */
.pmap-frame.pmap-narrow { overflow: visible; padding: 12px 10px 14px; }
.pmap-narrow .pmap-tree, .pmap-narrow .pmap-node { display: block; width: auto; min-width: 0; }
.pmap-narrow .pmap-root { max-width: none; text-align: left; font-size: 17px; padding: 10px 14px; }
.pmap-narrow .pmap-root br { display: none; }
.pmap-narrow .pmap-kids { display: block; margin-left: 12px; padding-left: 0; border-left: 1.5px solid var(--line-c); }
.pmap-narrow .pmap-kids::before, .pmap-narrow .pmap-kids > .pmap-node::after { display: none; }
.pmap-narrow .pmap-kids > .pmap-node { padding: 6px 0 0 14px; }
.pmap-narrow .pmap-kids > .pmap-node::before { top: 24px; width: 12px; }
.pmap-narrow .pmap-lbl { display: inline-block; max-width: 100%; font-size: 14px; }
/* 2026-11-18 政策列表简化（草图“政策原文下载与列表简化草图（待定）/”方案甲）：一份三行，整行点进详情；详情可下载原文件 */
.platform-page .policy-group .policy-row { grid-template-columns: 56px minmax(0, 1fr) 16px; align-items: center; gap: 14px; padding: 13px 18px; cursor: pointer; }
.platform-page .policy-group .policy-row:hover { background: #f8faf7; }
.policy-row .policy-date b { font-size: 17px; }
.platform-page .policy-row h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.policy-row-link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.policy-row-link:focus-visible { outline: 2px solid var(--green-2); outline-offset: 2px; }
.policy-line { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.policy-dot { font-style: normal; }
.policy-line-date, .policy-line-date + .policy-dot { display: none; }
.policy-line-nick { color: var(--green-2); font-weight: 600; }
.policy-line-draft { color: #9a5f14; font-weight: 600; }
.policy-arrow { color: #b5bdb9; font-size: 20px; line-height: 1; }
.policy-row .policy-hits { margin-top: 8px; }
.policy-tabrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.policy-tabrow .policy-tabs { margin: 0; }
.policy-download { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.policy-download::before { content: "⬇"; }
.policy-download small { font-size: 13px; font-weight: 400; opacity: .8; }
.policy-download:hover { background: var(--green-2); }
.policy-filebar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; }
.policy-file-icon { flex: none; display: flex; align-items: flex-end; justify-content: center; width: 36px; height: 44px; padding-bottom: 6px; border-radius: 5px; background: #c0392b; color: #fff; font-size: 11px; font-weight: 700; }
.policy-file-icon.is-word { background: #2b5797; }
.policy-file-info { min-width: 0; }
.policy-file-info b { display: block; font-size: 15px; line-height: 1.5; word-break: break-all; }
.policy-file-info span { color: var(--muted); font-size: 13px; }
.policy-file-actions { display: flex; gap: 8px; margin-left: auto; flex: none; }
.policy-file-actions a, .policy-file-actions button { width: auto; min-height: 38px; margin: 0; padding: 0 14px; display: inline-flex; align-items: center; font-size: 14px; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) {
  .platform-page .policy-group .policy-row { grid-template-columns: minmax(0, 1fr) 12px; gap: 8px; padding: 12px 14px; }
  .policy-row .policy-date { display: none; }
  .policy-line { font-size: 14px; }
  .policy-line-date, .policy-line-date + .policy-dot { display: inline; }
  .policy-download { order: -1; width: 100%; justify-content: center; margin-left: 0; }
  .policy-filebar { flex-wrap: wrap; }
  .policy-file-actions { width: 100%; margin-left: 0; }
  .policy-file-actions a, .policy-file-actions button { flex: 1; justify-content: center; }
}

/* ---------- 2026-11-18 市场价“24小时明细”：不对比时列出全年各月（整块占满一行，放不下左右滑、时段列不动）；对比时两个月＋百分比 ---------- */
#marketPricePage .price-two.hour-wide { grid-template-columns: minmax(0, 1fr); }
.market-hour-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
#marketHourPanel.all-months .market-hour-table th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
#marketHourPanel.all-months .market-hour-table thead th:first-child { background: #faf9f5; }
#marketHourPanel.all-months .market-hour-table tfoot th:first-child { background: #f3f7f2; }
#marketPricePage .market-hour-table thead th.on { color: var(--green); font-weight: 700; background: #fdf3e1; }
#marketPricePage .market-hour-table tbody td.on { background: #fffaf0; }
#marketPricePage .market-hour-table tfoot td.on { background: #f8eed8; }
.market-hour-sum { margin: -4px 0 12px; padding: 10px 12px; border-radius: 8px; background: #f3f7f2; font-size: 15px; color: var(--ink); }
.market-hour-sum b { margin: 0 4px; font-size: 17px; }
.market-hour-sum b.up { color: #b0452f; }
.market-hour-sum b.down { color: #237a5e; }
.market-hour-sum span:last-child { color: var(--muted); font-size: 13px; }
.price-filter-actions .price-show-all { border: 1px solid #c8dbd3; background: #f3f7f2; color: var(--green); }
.price-filter-actions .price-show-all[hidden] { display: none; }
#marketPricePage .price-two.hour-wide .market-weighted-table, #marketPricePage .price-two.hour-wide .market-weighted-note { max-width: 640px; }

/* ---------- 2026-11-18 市场价柱状图：鼠标碰、手指点或滑动显示该小时价格（像交易中心那样） ---------- */
.price-chart-box { position: relative; }
#marketChart { cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#marketChart:focus { outline: none; }
#marketChart:focus-visible { outline: 2px solid #8fbfa6; outline-offset: 4px; border-radius: 4px; }
.price-chart .bar.on { fill: #0f3f33; } .price-chart .bar.cheap.on { fill: #5f9d80; }
.price-chart .hover-guide { stroke: #63716c; stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.price-chart .hover-dot { fill: #fff; stroke: #7d776a; stroke-width: 2; pointer-events: none; }
.chart-tip { position: absolute; top: 8px; z-index: 3; min-width: 168px; padding: 10px 12px; border: 1px solid #dedbd2; border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: 0 6px 20px rgba(23,48,40,.12); font-size: 14px; line-height: 1.6; color: var(--ink); pointer-events: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-tip[hidden] { display: none; }
.chart-tip .tip-time { font-weight: 700; color: var(--green); margin-bottom: 2px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip .tip-row b { margin-left: auto; padding-left: 16px; font-weight: 650; }
.chart-tip .tip-row i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.chart-tip .tip-row i.c-cur { background: #1b5949; }
.chart-tip .tip-row i.c-other { border: 2px dashed #9c9686; border-radius: 50%; width: 9px; height: 9px; box-sizing: border-box; }
.chart-tip .tip-diff { margin-top: 4px; padding-top: 5px; border-top: 1px solid #ecebe6; display: flex; gap: 8px; }
.chart-tip .tip-diff span { color: var(--muted); }
.chart-tip .tip-diff b { margin-left: auto; padding-left: 12px; }
.chart-tip .tip-diff.up b { color: #b0452f; }
.chart-tip .tip-diff.down b { color: #237a5e; }
.chart-tip .tip-unit { margin-top: 2px; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .chart-tip { top: 4px; min-width: 150px; padding: 8px 10px; font-size: 14px; } }

/* ---------- 2026-11-18 国网代理购电价：走势图碰着看数（复用 .chart-tip），框里写各时段价格和比上月 ---------- */
#gridChart { cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#gridChart:focus { outline: none; }
#gridChart:focus-visible { outline: 2px solid #8fbfa6; outline-offset: 4px; border-radius: 4px; }
.price-chart .hover-mark { fill: #fff; stroke-width: 2.5; pointer-events: none; }
.price-chart .hover-mark.m-sharp { stroke: #b0452f; } .price-chart .hover-mark.m-peak { stroke: #a8691b; }
.price-chart .hover-mark.m-flat { stroke: #1b5949; } .price-chart .hover-mark.m-valley { stroke: #3d6f8f; }
.chart-tip .tip-row i.c-sharp { background: #b0452f; } .chart-tip .tip-row i.c-peak { background: #a8691b; }
.chart-tip .tip-row i.c-flat { background: #1b5949; } .chart-tip .tip-row i.c-valley { background: #3d6f8f; }
#gridChartTip .tip-row b { padding-left: 14px; }
#gridChartTip .tip-chg { min-width: 62px; padding-left: 8px; text-align: right; font-style: normal; font-size: 13px; color: var(--muted); }
#gridChartTip .tip-chg.up { color: #b0452f; } #gridChartTip .tip-chg.down { color: #237a5e; }
@media (max-width: 720px) {
  #gridChartTip .tip-chg { min-width: 56px; font-size: 12px; }
}

/* 2026-11-18：首页“陕西最新电价”三个数（国网平段｜交易电价24小时平均｜附加费用），整格可点进详细页 */
.home-panel h2 #homePriceTitle small { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.home-prices.home-prices-3 { grid-template-columns: repeat(3, 1fr); }
.home-prices-3 a { display: block; min-width: 0; padding: 12px 16px; border-right: 1px solid var(--rule); color: inherit; text-decoration: none; }
.home-prices-3 a:last-child { border-right: 0; }
.home-prices-3 a:hover { background: #f6f8f5; }
.home-prices-3 a:hover strong { color: var(--green); }
.home-prices-3 em { display: block; font-style: normal; font-size: 12px; line-height: 1.5; color: var(--muted); }
.home-prices-3 em i { display: block; font-style: normal; white-space: nowrap; }
.home-prices-3 em .sep { display: none; }
.platform-page .home-prices-3 a { padding-left: clamp(8px, 3cqi, 16px); padding-right: clamp(8px, 3cqi, 16px); }
.platform-page .home-prices-3 span, .platform-page .home-prices-3 em { font-size: 13px; }
.platform-page .home-prices-3 strong { display: block; font-size: clamp(16px, 4.6cqi, 22px); }
@container (max-width: 380px) {
  .platform-page .home-prices.home-prices-3 { grid-template-columns: repeat(3, 1fr); }
  .platform-page .home-prices-3 a { padding: 10px 8px; border-bottom: 0; }
  .platform-page .home-prices-3 a:nth-child(2) { border-right: 1px solid var(--rule); }
  .platform-page .home-prices-3 strong { font-size: 17px; }
}
@media (max-width: 720px) { .platform-page .home-prices-3 span, .platform-page .home-prices-3 em { font-size: 14px; } }

/* 2026-12-01 下载报告前：是否计入结算调整 */
.platform-page .refund-option { margin: 18px 0 -4px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }
.platform-page .refund-option[hidden], .platform-page .refund-unread[hidden] { display: none; }
.platform-page .refund-option label { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; }
.platform-page .refund-option input { flex: 0 0 auto; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--green-2); }
.platform-page .refund-option strong { font-size: 16px; }
.platform-page .refund-option small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.platform-page .refund-unread { margin: 16px 0 0; color: #8c5a15; font-size: 14px; line-height: 1.6; }
.me-pane .me-refund { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 14px; cursor: pointer; }
.me-pane .me-refund input { width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; accent-color: var(--green-2); }
.platform-page .compare-option { min-width: 0; }
.platform-page .compare-option legend { float: left; width: 100%; margin: 0 0 8px; padding: 0; font-size: 16px; font-weight: 700; }
.platform-page .compare-option div { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.platform-page .compare-option input { border-radius: 50%; }
@media (max-width: 720px) { .platform-page .compare-option div { grid-template-columns: 1fr; } }
.platform-page .refund-option .drop-hint-more { margin: 0; padding: 4px 0; border: 0; background: none; color: var(--green-2); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.platform-page .refund-more { margin: 2px 0 0 30px; }
.platform-page .refund-tip { margin: 6px 0 0 30px !important; color: var(--muted); font-size: 13px; line-height: 1.6; }
.platform-page .bill-feb .refund-tip { margin: 0 0 8px !important; }
.platform-page .refund-tip[hidden] { display: none; }
@media (max-width: 720px) { .platform-page .refund-tip { font-size: 14px; } }
.platform-page .bill-feb { margin: 12px 0 0 30px; padding-top: 12px; border-top: 1px solid var(--rule); }
.platform-page .bill-feb[hidden], .platform-page .bill-feb [hidden] { display: none; }
.platform-page .bill-feb p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; }
.platform-page .bill-feb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.platform-page .bill-feb-row span { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
@media (max-width: 720px) { .platform-page .refund-option small { font-size: 14px; } }
