/* 财务管理（2026-12-04 起，原经营管理）：finance.js 的页面。底子是总览那一套（sales-overview.css 的 .so-*）和客户档案列表（customer-directory.css 的 .cd-*），
   这里只放另加的：时间段旁边一句「和去年同期比」、卡片右上角的小切换、两根一组的柱子、利润瀑布、报表表格、毛利表、应收表、单据列表的栏宽。
   颜色只用 logo 的蓝和金：蓝是今年、是收入；浅蓝是去年；金只用在要留意的地方（亏损的那一截、资金往来那一排的图标）。字一律深色，主次靠字号和粗细。 */

.fn-page .crm-actions { align-items: center; gap: 6px; padding-top: 0; }
.fn-vs { margin-left: 10px; padding-left: 10px; border-left: 1px solid #dfe3e8; color: var(--text); font-style: normal; }

/* 卡片右上角的小切换（看哪一样、累计还是按月），和时间段那一排同一个样子，小一号 */
.fn-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: auto; padding: 3px; border-radius: 10px; background: #eef1f4; }
.fn-tabs > button, .fn-tabs > a { min-width: 0; padding: 5px 13px; border: 0; border-radius: 8px; color: var(--text-regular); background: transparent; font: inherit; font-size: 13.5px; line-height: 20px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.fn-tabs > button:hover, .fn-tabs > a:hover { color: var(--ink); }
.fn-tabs > .on { color: var(--blue); background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgb(16 24 40 / 8%), 0 3px 10px -6px rgb(16 24 40 / 24%); }
.fn-tabs:focus-within { outline: 0; }
.fn-tabs.big { margin-left: 0; padding: 4px; border-radius: 12px; background: #eceff3; }
.fn-tabs.big > a { padding: 8px 22px; font-size: 14.5px; line-height: 22px; }

/* 图：两根一组（去年浅、今年深），负数往下长；底下一行是图例和单位 */
.fn-plot-wrap { display: flex; flex-direction: column; }
.fn-plot-foot { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.fn-legend { margin-left: 0; }
.fn-legend i.prev, .fn-legend i.now { width: 11px; height: 11px; border-radius: 3px; }
.fn-legend i.prev { background: #b7dcee; }
.fn-legend i.now { margin-left: 12px; background: var(--blue); }
.fn-unit { margin-left: auto; color: var(--text); font-size: 13px; }
.so-chart .so-bar.fn-prev { fill: #b7dcee; }
.so-col:hover .so-bar.fn-prev { fill: #8fc8e3; }
.so-chart .so-bar.neg { fill: var(--accent); transform-origin: 50% 0; }
.so-col:hover .so-bar.neg { fill: #d98526; }
.so-chart .so-bar.fn-prev.neg { fill: #f6d3a6; }
.so-grid-line.fn-zero { stroke: #cfd6de; }
.fn-month-plot { padding: 4px 26px 10px; }
.fn-month-plot .so-plot { height: 260px; }
.fn-page .fn-month-plot .so-plot svg.so-chart { height: 260px; }

/* 停在柱子、行上浮出来的小卡片：一样一行，名字在左、数在右 */
.float-card.so-float .fn-tip { min-width: 200px; }
.fn-tip p { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 5px 0 0; }
.fn-tip p span { color: var(--text); font-size: 13.5px; white-space: nowrap; }
.fn-tip p em { display: flex; flex-direction: column; align-items: flex-end; color: var(--ink); font-size: 14px; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.fn-tip p em small { color: var(--text); font-size: 13px; font-weight: 400; }

/* 利润是怎么来的：一行一项，条从上一行的位置接着画；合计行的条从零画起 */
.fn-fall { position: relative; margin: 0; padding: 0; list-style: none; }
.fn-fall li { border-top: 1px solid #f0f2f5; }
.fn-fall li:first-child { border-top: 0; }
.fn-fall a { display: grid; grid-template-columns: 7.2em minmax(60px, 1fr) 84px; align-items: center; gap: 14px; min-height: 40px; color: var(--text); font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.fn-fall a:hover .fn-fall-name { color: var(--blue); }
.fn-fall-name { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; transition: color .12s ease; }
.fn-fall li.fn-w-total .fn-fall-name, .fn-fall li.fn-w-sub .fn-fall-name { color: var(--ink); font-weight: 600; }
.fn-fall-track { position: relative; height: 14px; }
.fn-fall-track::before { content: ""; position: absolute; top: -13px; bottom: -13px; left: var(--zero); width: 1px; background: #e3e7ec; }
.fn-fall-track i { position: absolute; top: 0; height: 100%; border-radius: 4px; background: #9fd3ea; transform-origin: 0 50%; animation: so-wide .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.fn-fall li.fn-w-total .fn-fall-track i, .fn-fall li.fn-w-sub .fn-fall-track i { background: var(--blue); }
.fn-fall li.fn-w-step.fn-w-neg .fn-fall-track i { background: #d5e2ea; }
.fn-fall li.fn-w-total.fn-w-neg .fn-fall-track i, .fn-fall li.fn-w-sub.fn-w-neg .fn-fall-track i { background: var(--accent); }
.fn-fall b { color: var(--ink); font-weight: 600; text-align: right; white-space: nowrap; }
.fn-fall li.fn-w-step b { font-weight: 500; }

/* 卡片里的一行一条：品牌、区域、费用、账龄 */
.fn-brands a { grid-template-columns: 22px minmax(0, 1fr) minmax(40px, 1fr) 76px; }
.fn-brands.owner a { grid-template-columns: 22px minmax(0, 1fr) minmax(40px, 1fr) 76px 52px; }
.fn-brands li:nth-child(-n+3) .so-no { color: var(--accent-deep); font-weight: 700; }
.fn-spend a { grid-template-columns: minmax(0, 7.5em) minmax(40px, 1fr) 76px 40px; }
.fn-aging a { grid-template-columns: 6.5em minmax(40px, 1fr) 84px; }
.fn-more-line { margin: 10px 0 0; color: var(--text); font-size: 13.5px; }

/* 贴边的卡片（里面一张表，表从卡片左右边开始） */
.so-card.fn-flush { padding: 0 0 8px; }
.so-card.fn-flush > header { margin: 0; padding: 22px 26px 14px; }
.fn-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 20px 26px 4px; }
.fn-card-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: 17px; font-weight: 600; line-height: 26px; }
.fn-card-head .fn-tabs { margin-left: 0; }
.fn-chips { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.fn-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 14px 26px 16px; }
.fn-tools .pv-search.fn-search { width: clamp(220px, 22vw, 320px); height: 38px; }
.fn-tools .pv-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 14px; }
.fn-tools .pv-search svg { width: 17px; height: 17px; flex: none; color: var(--text-regular); fill: none; stroke: currentColor; stroke-width: 1.8; }
.fn-sort .xs-trigger, .fn-sort select { min-width: 168px; height: 38px; }
.fn-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid #dfe1e6; border-radius: 19px; color: var(--text); background: #fff; font: inherit; font-size: 14px; cursor: pointer; transition: border-color .12s ease, color .12s ease, background .12s ease; }
.fn-chip b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fn-chip:hover { border-color: var(--blue-line); color: var(--blue); }
.fn-chip.on { border-color: var(--blue); color: #fff; background: var(--blue); }
.fn-chip.on b { color: #fff; }
.fn-hint { margin: 0; }

/* 表：报表、毛利、应收。表头小一号，数字靠右、等宽数字；一行只放一样东西 */
.workpage .ftable.fn-table { margin: 0; border: 0; border-top: 1px solid #eef0f3; border-radius: 0; }
.workpage .ftable.fn-table table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.workpage .ftable.fn-table th { height: 44px; padding: 0 14px; background: #fafbfc; color: #5d616b; font-size: 13px; font-weight: 500; text-align: left; white-space: nowrap; }
.workpage .ftable.fn-table th::after { display: none; }
.workpage .ftable.fn-table td { height: 52px; padding: 8px 14px; border-top: 1px solid #f0f2f5; color: var(--text); font-size: 14px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.workpage .ftable.fn-table th:first-child, .workpage .ftable.fn-table td:first-child { padding-left: 26px; }
.workpage .ftable.fn-table th:last-child, .workpage .ftable.fn-table td:last-child { padding-right: 22px; }
.workpage .ftable.fn-table .r { text-align: right; }
.workpage .ftable.fn-table tbody tr { transition: background .12s ease; }
.workpage .ftable.fn-table tbody tr:hover { background: var(--row-hover); }
.workpage .ftable.fn-table tr[data-href] { cursor: pointer; }
.workpage .ftable.fn-table td.strong { color: var(--ink); font-weight: 600; }
.fn-table .cd-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fn-table .cd-name a:hover { color: var(--blue); }
.fn-table .cd-clamp { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-table-note { margin: 0; padding: 12px 26px 6px; color: var(--text); font-size: 13px; }
.fn-table .cd-go { display: inline-flex; color: #b9c0c9; }
.fn-table tr:hover .cd-go { color: var(--blue); }
.fn-table .cd-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.fn-table col.fw-go { width: 44px; }

/* 利润表：项目一列，展开的明细缩进；合计行加粗，净利润那一行再重一点 */
.fn-pl-table col:first-child { width: 30%; }
.fn-pl-table.wide { overflow-x: auto; }
.fn-pl-table.wide table { min-width: 1360px; }
.fn-pl-table.wide th:first-child, .fn-pl-table.wide td:first-child { position: sticky; left: 0; z-index: 1; width: 220px; background: #fff; box-shadow: 1px 0 0 #f0f2f5; }
.fn-pl-table.wide th:first-child { background: #fafbfc; }
.fn-pl-name { display: inline-flex; align-items: center; gap: 4px; padding-left: calc(var(--d, 0) * 22px); color: var(--text); }
.fn-table tr.item .fn-pl-name { color: var(--ink); font-weight: 500; }
.fn-table tr.sub td { color: var(--ink); font-weight: 600; background: #f8fafc; }
.fn-table tr.sub.net td { font-size: 15px; font-weight: 700; background: #eef7fc; }
.fn-table tr.kid td { height: 44px; font-size: 13.5px; }
.fn-table tr[hidden] { display: none; }
.fn-twist { width: 22px; height: 22px; display: inline-grid; place-items: center; flex: none; padding: 0; border: 0; border-radius: 6px; color: var(--text-regular); background: none; cursor: pointer; transition: background .12s ease, color .12s ease; }
.fn-twist svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.fn-twist[aria-expanded="true"] svg { transform: rotate(90deg); }
.fn-twist:hover { color: var(--blue); background: var(--blue-soft); }
.fn-twist-pad { width: 22px; flex: none; }
/* 资产负债表：两张并排，表不定最小宽度（基础样式给表定了 680，半张卡片放不下会出横向滚动条） */
.workpage .ftable.fn-bs table { min-width: 0; }
.fn-bs col.fw-n { width: 22%; }
.fn-table tr.sec td { height: 40px; color: var(--ink); font-weight: 600; background: #fff; }
.fn-bs-cols { align-items: start; }

/* 毛利表：毛利一格里一根细条 */
.fn-margin col.fw-no { width: 52px; }
.fn-margin col.fw-name { width: auto; }
.fn-margin col.fw-n { width: 11%; }
.fn-margin col.fw-gp { width: 16%; }
.fn-margin col.fw-s { width: 8%; }
.fn-table .fn-no { color: var(--text-regular); text-align: center; }
.fn-table td.fn-no { padding-left: 18px !important; }
.fn-gp { position: relative; }
.fn-gp b { position: relative; color: var(--ink); font-weight: 600; }
.fn-gp-bar { position: absolute; left: 14px; right: 104px; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: #eef1f4; overflow: hidden; }
.fn-gp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--blue); transform-origin: 0 50%; animation: so-wide .6s cubic-bezier(.2,.8,.2,1) both; }
.fn-gp.neg .fn-gp-bar i { background: var(--accent); }
.fn-margin-card .tpager, .fn-ar-card .tpager { padding: 12px 22px 6px; }

/* 应收表 */
.fn-ar col.fw-name { width: auto; }
.fn-ar col.fw-acct { width: 9%; }
.fn-ar col.fw-n { width: 10.5%; }
.fn-ar col.fw-term { width: 11%; }
.fn-ar col.fw-date { width: 108px; }

/* 金蝶单据：和客户档案的列表同一个排法，这里只定栏宽和工具栏上的合计 */
.fn-docs .fn-sum { margin-left: 6px; color: var(--text); font-size: 13.5px; }
.fn-docs .fn-sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fn-docs .fn-sum + .fn-sum::before { content: ""; display: inline-block; width: 1px; height: 12px; margin-right: 12px; vertical-align: -1px; background: #dfe3e8; }
.workpage .ftable.fn-doc-table table { table-layout: fixed; min-width: 1080px; }
.workpage .ftable.fn-doc-table td { height: 56px; }
.workpage .ftable.cd-table.fn-doc-table th, .workpage .ftable.cd-table.fn-doc-table td { padding-left: 12px; padding-right: 12px; }
.workpage .ftable.cd-table.fn-doc-table th:first-child, .workpage .ftable.cd-table.fn-doc-table td:first-child { padding-left: 20px; }
.fn-doc-table td a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fn-doc-table td a:hover { color: var(--blue); }
.fn-doc-table .cd-clamp { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 栏宽：客户名最要紧，给它剩下的全部；日期、单号按字数给够，不截 */
.fn-doc-table col.fw-date { width: 118px; }
.fn-doc-table col.fw-doc { width: 146px; }
.fn-doc-table col.fw-name { width: auto; }
.fn-doc-table col.fw-prod { width: 21%; }
.fn-doc-table col.fw-qty { width: 84px; }
.fn-doc-table col.fw-n { width: 106px; }
.fn-doc-table col.fw-who { width: 92px; }
.fn-doc-table col.fw-state { width: 86px; }
.fn-doc-table col.fw-sum { width: 20%; }
.fn-doc-ar col.fw-date { width: 112px; }
.fn-doc-card header { align-items: baseline; }
.fn-card-amount { flex: none; color: var(--ink); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .fn-page *, .fn-page *::before { animation: none !important; transition: none !important; } }
@media (max-width: 1439px) {
  .so-card.fn-flush > header, .fn-card-head { padding-left: 22px; padding-right: 22px; }
  .fn-tools { padding-left: 22px; padding-right: 22px; }
  .workpage .ftable.fn-table th:first-child, .workpage .ftable.fn-table td:first-child { padding-left: 22px; }
  .fn-month-plot { padding-left: 22px; padding-right: 22px; }
  .fn-table-note { padding-left: 22px; }
  .fn-spend a { grid-template-columns: minmax(0, 7em) minmax(30px, 1fr) 72px 36px; }
}
@media (max-width: 1100px) { .fn-margin col.fw-s:last-of-type { width: 0; } }
@media (max-width: 1000px) {
  .workpage .ftable.fn-table { overflow-x: auto; }
  .workpage .ftable.fn-table table { min-width: 760px; }
  .fn-pl-table:not(.wide) table { min-width: 640px; }
}
@media (max-width: 760px) {
  .fn-vs { display: none; }
  .fn-page .so-stat p { flex-wrap: nowrap; white-space: nowrap; }
  .fn-page .so-stat p b { font-size: 23px; line-height: 32px; }
  .fn-page .so-entries .so-stat p b { font-size: 22px; }
  .fn-tabs { margin-left: 0; }
  .fn-tabs.big { width: 100%; } .fn-tabs.big > a { flex: 1; text-align: center; padding: 8px 0; }
  .so-card.fn-flush > header, .fn-card-head { padding: 16px 14px 4px; }
  .fn-tools { padding: 12px 14px; }
  .fn-tools .pv-search.fn-search { width: 100%; }
  .workpage .ftable.fn-table th:first-child, .workpage .ftable.fn-table td:first-child { padding-left: 14px; }
  .fn-fall a { grid-template-columns: 6em minmax(40px, 1fr) 76px; gap: 10px; }
  .fn-brands a, .fn-brands.owner a { grid-template-columns: 20px minmax(0, 1fr) 72px 48px; }
  .fn-brands:not(.owner) a { grid-template-columns: 20px minmax(0, 1fr) 72px; }
  .fn-spend a { grid-template-columns: minmax(0, 1fr) 72px 40px; }
  .fn-aging a { grid-template-columns: minmax(0, 1fr) 84px; }
  .fn-plot-foot { flex-wrap: wrap; }
  .fn-month-plot { padding: 4px 10px 8px; }
  .fn-pl-table.wide th:first-child, .fn-pl-table.wide td:first-child { width: 150px; }
}

/* ---------- 客户详情、产品详情里的成本和毛利：一眼看得懂的样子（2026-12-04 晚，finance.js 的 xwxFin）----------
   一根条两段：浅灰蓝是成本、logo 的蓝是毛利；亏了的整根是成本、带金色描边。三个大数一排，主次靠字号；说明字 13px 以上深色。 */
.fn-mg { padding: 18px 22px 20px; }
.fn-mg-top { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; border: 1px solid #eef0f3; border-radius: 12px; background: #fafbfc; }
.fn-mg-big { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-left: 1px solid #eef0f3; }
.fn-mg-big:first-child { border-left: 0; }
.fn-mg-big span { color: var(--text); font-size: 13.5px; }
.fn-mg-big b { color: var(--ink); font-size: 26px; font-weight: 680; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fn-mg-big b small { margin-left: 3px; color: var(--text); font-size: 14px; font-weight: 400; }
.fn-mg-big em { color: var(--text); font-size: 13px; font-style: normal; }
.fn-mg-now { margin-bottom: 6px; }
.fn-mg-bar { display: flex; height: 16px; overflow: hidden; border-radius: 8px; background: #eef1f4; transform-origin: 0 50%; animation: so-wide .7s cubic-bezier(.2,.8,.2,1) both; }
.fn-mg-bar i { display: block; height: 100%; }
.fn-mg-bar i.c { background: #d6e3ec; }
.fn-mg-bar i.p { background: var(--blue); }
.fn-mg-bar.loss { box-shadow: inset 0 0 0 2px var(--accent); }
.fn-mg-bar.loss i.c { background: #f6e2c4; }
.fn-mg-bar.empty { background: #f1f3f6; }
.fn-mg-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 10px; color: var(--text); font-size: 14px; }
.fn-mg-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: 0; }
.fn-mg-legend i.c { background: #d6e3ec; }
.fn-mg-legend i.p { background: var(--blue); }
.fn-mg-legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.fn-mg-flag { padding: 2px 10px; border-radius: 10px; color: var(--accent-deep); background: var(--accent-soft); font-size: 13px; font-weight: 600; }
.fn-mg-yhead, .fn-mg-years li { display: grid; grid-template-columns: 76px minmax(0, 1fr) 104px 96px 64px; align-items: center; gap: 14px; }
.fn-mg-yhead { margin-top: 20px; padding: 0 0 8px; border-bottom: 1px solid #eef0f3; color: var(--text); font-size: 13px; }
.fn-mg-yhead span:first-child { grid-column: 1 / 3; }
.fn-mg-years { margin: 0; padding: 0; list-style: none; }
.fn-mg-years li { min-height: 46px; border-bottom: 1px solid #f2f3f5; }
.fn-mg-years li:last-child { border-bottom: 0; }
.fn-mg-y { color: var(--ink); font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fn-mg-y i { display: block; color: var(--text); font-size: 13px; font-style: normal; font-weight: 400; }
.fn-mg-track .fn-mg-bar { height: 12px; border-radius: 6px; }
.fn-mg-n { color: var(--text); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fn-mg-n.strong { color: var(--ink); font-weight: 600; }
.fn-mg-note { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; color: var(--text); background: #f7f8fa; font-size: 13.5px; }

/* 排名：名次、名字、细条（毛利）、毛利、毛利率、一句陪衬 */
.fn-rank-wrap { padding: 8px 22px 14px; }
.cdp-card-body > .fn-rank-wrap { padding: 0; }
.fn-rank a, .fn-rank .fn-rank-row { display: grid; grid-template-columns: 22px minmax(0, 1.3fr) minmax(40px, 1fr) 92px 58px 104px; align-items: center; gap: 14px; min-height: 46px; color: var(--text); font-size: 14px; text-decoration: none; font-variant-numeric: tabular-nums; }
.fn-rank .so-n.fn-neg { color: var(--accent-deep); font-weight: 600; }
.fn-rank .fn-rank-side { color: var(--text); font-size: 13.5px; }
.fn-rank-more { margin: 8px 0 0; color: var(--text); font-size: 13.5px; }

/* 产品：售价那根条、三个大数、售价和成本价的走势 */
.fn-pc-head { display: grid; gap: 18px; }
.fn-pc-unit { padding: 4px 2px 0; }
.fn-pc-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.fn-pc-price span { color: var(--text); font-size: 14px; }
.fn-pc-price b { color: var(--ink); font-size: 30px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fn-pc-price em { color: var(--text); font-size: 13.5px; font-style: normal; }
.fn-pc-unit .fn-mg-bar { height: 22px; border-radius: 11px; }
.fn-mg-top.fn-pc-tops { margin-bottom: 0; }
.fn-pc-plot { height: 260px; }
.fn-pc-plot svg.so-chart { display: block; width: 100%; height: 260px; overflow: visible; }
.fn-pc-chart .fn-pc-area { fill: var(--blue); fill-opacity: .13; stroke: none; opacity: 0; animation: so-fade .5s .25s ease forwards; }
.fn-pc-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: so-draw .9s cubic-bezier(.4,0,.2,1) forwards; }
.fn-pc-line.price { stroke: var(--blue); stroke-width: 2.6; }
.fn-pc-line.cost { stroke: #8f9cab; stroke-width: 2.2; }
.fn-pc-dot { stroke-width: 2; fill: #fff; opacity: 0; animation: so-fade .3s ease forwards; animation-delay: calc(.35s + var(--i, 0) * 25ms); }
.fn-pc-dot.price { stroke: var(--blue); }
.fn-pc-dot.cost { stroke: #8f9cab; }
.fn-pc-hit { fill: transparent; stroke: none; }
.fn-pc-cursor { stroke: #c9d3dd; stroke-width: 1; stroke-dasharray: 3 3; }
.so-plot.still .fn-pc-line { animation: none; stroke-dashoffset: 0; }
.so-plot.still .fn-pc-dot, .so-plot.still .fn-pc-area { animation: none; opacity: 1; }
.fn-pc-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; color: var(--text); font-size: 13.5px; }
.fn-pc-legend > span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.fn-pc-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.fn-pc-legend i.price { background: var(--blue); }
.fn-pc-legend i.cost { background: #8f9cab; }
.fn-pc-legend i.area { width: 12px; height: 12px; border-radius: 3px; background: rgb(18 116 165 / 18%); }

@media (prefers-reduced-motion: reduce) { .fn-mg-bar, .fn-pc-line, .fn-pc-dot, .fn-pc-area { animation: none !important; stroke-dashoffset: 0; opacity: 1; } }
@media (max-width: 760px) {
  .fn-mg { padding: 14px; }
  .fn-mg-top { grid-template-columns: 1fr; }
  .fn-mg-big { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; border-left: 0; border-top: 1px solid #eef0f3; }
  .fn-mg-big:first-child { border-top: 0; }
  .fn-mg-big span { width: 100%; }
  .fn-mg-big b { font-size: 22px; }
  .fn-mg-yhead, .fn-mg-years li { grid-template-columns: 52px minmax(0, 1fr) 84px 52px; gap: 10px; }
  .fn-mg-yhead > span:nth-child(2), .fn-mg-years li > span:nth-child(3) { display: none; }
  .fn-rank-wrap { padding: 6px 14px 10px; }
  .fn-rank a, .fn-rank .fn-rank-row { grid-template-columns: 20px minmax(0, 1fr) 80px 52px; gap: 10px; }
  .fn-rank .so-meter, .fn-rank .fn-rank-side { display: none; }
  .fn-pc-price b { font-size: 26px; }
  /* 手机上卡片头放不下：图例、说明换到标题下面一整行 */
  .cdp-card-head:has(> .fn-pc-legend), .cdp-card-head:has(> .fn-head-note) { flex-wrap: wrap; row-gap: 6px; }
  .cdp-card-head > .fn-pc-legend, .cdp-card-head > .fn-head-note { flex-basis: 100%; }
}
