/* 首页首屏以下：只精选。只有首页加载这一份（layouts/_partials/head.html）。
   块的先后在内容文件 bands 里：手机单列照那个先后排，电脑按 desk.order / desk.span 另排 */
.ofv-under{max-width:1220px;margin:0 auto;padding:4px 24px 28px;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:48px;align-items:start}
.ofv-u-band{grid-column:1/-1;min-width:0;border-top:2px solid var(--ofv-ink-1);padding-top:18px;margin-top:40px}
.ofv-u-h{font-size:24px;line-height:1.3;margin:0 0 4px}
.ofv-under a:not(.ofv-tryit){color:var(--ofv-ink-1);text-decoration-line:underline;text-decoration-color:color-mix(in oklab,var(--ofv-ink-1) 52%,transparent);text-decoration-thickness:1px;text-underline-offset:.24em}
.ofv-under a:not(.ofv-tryit):hover{color:var(--ofv-acc);text-decoration-color:currentColor}

/* 对照表 */
.ofv-cmp-asof{margin:0 0 12px;font-size:14px;line-height:1.6;color:var(--ofv-ink-3)}
.ofv-cmp-box{border:1px solid var(--ofv-line-2);border-radius:var(--ofv-r2);background:var(--ofv-bg-2);overflow-x:auto;overflow-y:hidden}
.ofv-cmp table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.ofv-cmp th,.ofv-cmp td{padding:12px 16px;text-align:start;vertical-align:baseline;border-bottom:1px solid var(--ofv-line-1)}
.ofv-cmp td{line-height:26px}
.ofv-cmp tbody th,.ofv-cmp td{vertical-align:top}
.ofv-cmp tbody tr:last-child>*{border-bottom:0}
.ofv-cmp thead th{background:var(--ofv-bg-3);font-size:14px;font-weight:700;line-height:1.4;vertical-align:bottom}
.ofv-cmp thead small{display:block;font-weight:400;font-size:12.5px;color:var(--ofv-ink-2)}
.ofv-cmp tbody th{font:700 18px/26px var(--ofv-face);white-space:nowrap}
.ofv-cmp td b{font:700 18px/1 var(--ofv-face);white-space:nowrap}
.ofv-cmp td small{font-size:13.5px;line-height:1.5;color:var(--ofv-ink-3);margin-inline-start:8px}
.ofv-cmp td.ofv-cmp-words{font-size:15px;color:var(--ofv-ink-2)}
.ofv-cmp-where{font-size:15px;color:var(--ofv-ink-2);white-space:nowrap}
.ofv-cmp-where--no{color:var(--ofv-bad);font-weight:600}
.ofv-cmp-where--part{color:var(--ofv-warn);font-weight:600}
.ofv-cmp-read{margin:14px 0 0;font-size:17px;line-height:1.7;color:var(--ofv-ink-1);max-width:34em}
.ofv-cmp-notes .ofv-try-go{margin-top:10px}
.ofv-cmp-foot{margin:10px 0 0;font-size:13px;line-height:1.65;color:var(--ofv-ink-3);max-width:44em}

/* 工具入口：描边圆角条加「小工具」小签，和文章的文字链分开；工具算出的结果放浅底块里 */
.ofv-try{background:var(--ofv-bg-2);border:1px solid var(--ofv-line-1);border-radius:var(--ofv-r2);padding:16px 18px 18px;margin-top:10px}
.ofv-try h3{font-size:18px;line-height:1.4;margin:0 0 6px}
.ofv-try-go{display:flex;align-items:center;gap:14px;margin:0}
.ofv-try-go .ofv-tryit{flex:none}
.ofv-try-src{font-size:13px;line-height:1.55;color:var(--ofv-ink-3)}
.ofv-tryit{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:0 18px 0 6px;border-radius:999px;border:1.5px solid var(--ofv-ink-1);background:transparent;color:var(--ofv-ink-1);font:600 15px/1.2 var(--ofv-text);text-decoration:none;transition:background-color .2s}
.ofv-tryit:hover{background:var(--ofv-bg-3);color:var(--ofv-ink-1)}
.ofv-tryit-tag{display:inline-flex;align-items:center;height:30px;padding:0 11px;border-radius:999px;background:var(--ofv-ink-1);color:var(--ofv-bg-2);font-size:12.5px;font-weight:600;white-space:nowrap}

/* 三条路：到手数，加少掉的那一截。灰条等长（左端淡出，表示它只是整笔钱的末尾一段），右端橙色是少掉的；满条代表多少钱写在这一块的小注里 */
.ofv-routes{list-style:none;margin:6px 0 12px;padding:0;border-bottom:1px solid var(--ofv-line-1)}
.ofv-routes li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;align-items:center;padding:9px 0 10px;border-top:1px solid var(--ofv-line-1)}
.ofv-routes-n{font-size:15.5px;line-height:24px;font-weight:600}
.ofv-routes-v{font:800 22px/28px var(--ofv-face);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.ofv-routes-cut{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:13px;line-height:20px;color:var(--ofv-ink-3);font-variant-numeric:tabular-nums}
.ofv-routes-cut i{flex:none;display:block;position:relative;width:72px;height:8px;border-radius:999px;background:linear-gradient(to right,transparent,var(--ofv-line-3) 55%)}
.ofv-routes-cut i::after{content:"";position:absolute;inset-block:0;inset-inline-end:0;min-width:4px;border-radius:999px;background:var(--ofv-copper);box-shadow:-2px 0 0 var(--ofv-bg-2)}
.ofv-wd5 i::after{width:5%}.ofv-wd10 i::after{width:10%}.ofv-wd15 i::after{width:15%}.ofv-wd20 i::after{width:20%}.ofv-wd25 i::after{width:25%}.ofv-wd30 i::after{width:30%}.ofv-wd35 i::after{width:35%}.ofv-wd40 i::after{width:40%}.ofv-wd45 i::after{width:45%}.ofv-wd50 i::after{width:50%}
.ofv-wd55 i::after{width:55%}.ofv-wd60 i::after{width:60%}.ofv-wd65 i::after{width:65%}.ofv-wd70 i::after{width:70%}.ofv-wd75 i::after{width:75%}.ofv-wd80 i::after{width:80%}.ofv-wd85 i::after{width:85%}.ofv-wd90 i::after{width:90%}.ofv-wd95 i::after{width:95%}.ofv-wd100 i::after{width:100%}

/* 文章：重的。配封面的：小图在右侧只占标题那一行，那句话在下面通栏排，小图下面不留空；
   配数的：标题在最上面，下面一行是数和它的说明，再下面是那句话 */
.ofv-major{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:start}
.ofv-major-t{grid-column:1;grid-row:1;align-self:center;margin:0;font:700 20px/1.4 var(--ofv-face)}
.ofv-major-t a{display:inline-flex;flex-wrap:wrap;align-items:center;min-height:44px}
.ofv-nb{white-space:nowrap}
.ofv-major-s{grid-column:1/-1;grid-row:2;margin:4px 0 0;font-size:15px;line-height:1.7;color:var(--ofv-ink-2)}
.ofv-major-fig{grid-column:2;grid-row:1;width:96px;margin:4px 0 0}
.ofv-major-fig img{display:block;width:100%;height:auto;border-radius:var(--ofv-r3);background:var(--ofv-bg-3)}
.ofv-major--num{grid-template-columns:minmax(0,1fr)}
.ofv-major--num .ofv-major-fig{grid-column:1;grid-row:2;width:auto;margin:0;display:flex;align-items:center;gap:10px}
.ofv-major--num .ofv-major-s{grid-row:3;margin-top:6px}
.ofv-major-num{flex:none;font:800 38px/1 var(--ofv-face);letter-spacing:-.02em;color:var(--ofv-copper-ink)}
.ofv-major-cap{font-size:13px;line-height:1.5;color:var(--ofv-ink-3)}
@media (prefers-color-scheme:dark){:root:not([data-tone=light]) .ofv-major-fig img{filter:brightness(.88)}}
:root[data-tone=dark] .ofv-major-fig img{filter:brightness(.88)}

/* 文章：轻的，只有短标题；最新那一处带日期；去全部文章的文字链紧跟在文章后面 */
.ofv-also{list-style:none;margin:0;padding:0}
.ofv-also a{display:flex;align-items:center;min-height:48px;font-size:16.5px;font-weight:600;line-height:1.4}
.ofv-fresh h3{margin:0;font:600 13px/1.5 var(--ofv-text);color:var(--ofv-copper-ink)}
.ofv-fresh ul{list-style:none;margin:0;padding:0}
.ofv-fresh li{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;min-height:48px}
.ofv-fresh a{display:inline-flex;align-items:center;min-height:44px;font-size:16.5px;font-weight:600;line-height:1.4}
.ofv-fresh time{font-size:13px;line-height:1.4;color:var(--ofv-ink-3);font-variant-numeric:tabular-nums;white-space:nowrap}
.ofv-allnotes{margin:0;font-size:15px;line-height:1.5}
.ofv-allnotes a{display:inline-flex;align-items:center;min-height:44px;color:var(--ofv-acc)!important;text-decoration-color:currentColor!important}

/* 问答 */
.ofv-ask{margin:0}
.ofv-ask dt{margin:14px 0 2px;font:700 17px/1.5 var(--ofv-face)}
.ofv-ask dd{margin:0;font-size:15px;line-height:1.7;color:var(--ofv-ink-2)}

/* 平板和电脑：三条路每条排成一行；轻条目横着排，不让短标题后面空一大截 */
@media (min-width:641px){
  .ofv-routes li{grid-template-columns:minmax(0,12.5em) minmax(0,1fr) auto;gap:2px 18px;padding:11px 0 12px}
  /* 条通栏，「少 4.00…」那行字靠右排在橙色那截下面，不落在灰色那段底下 */
  .ofv-routes-cut{grid-column:2;grid-row:1;display:block;text-align:end}
  .ofv-routes-cut i{width:100%;margin-bottom:4px}
  .ofv-routes-v{grid-column:3}
  .ofv-also{display:flex;flex-wrap:wrap;gap:0 36px;border-top:1px solid var(--ofv-line-1)}
  .ofv-fresh{display:flex;flex-wrap:wrap;align-items:center;gap:0 28px;border-top:1px solid var(--ofv-line-1)}
  .ofv-fresh ul{display:flex;flex-wrap:wrap;gap:0 36px}
}

/* 电脑：各块自己另排 */
@media (min-width:961px){
  .ofv-cmp-asof .ofv-cmp-mid{display:none}
  .ofv-u-o1{order:1;margin-top:8px}.ofv-u-o2{order:2}.ofv-u-o3{order:3}.ofv-u-o4{order:4}
  .ofv-u-s5{grid-column:span 5}.ofv-u-s6{grid-column:span 6}.ofv-u-s7{grid-column:span 7}.ofv-u-s12{grid-column:1/-1}
  .ofv-u-o1:not(.ofv-u-s12)~.ofv-u-o2{margin-top:8px}

  .ofv-u-compare{display:grid;grid-template-columns:minmax(0,6.4fr) minmax(0,5.6fr);grid-template-areas:"cmp cmp" "notes major" "foot foot";column-gap:48px}
  .ofv-cmp{grid-area:cmp}
  .ofv-cmp thead th{white-space:nowrap}
  .ofv-cmp-notes{grid-area:notes;margin-top:18px}
  .ofv-cmp-read{margin-top:0}
  .ofv-cmp-foot{grid-area:foot;margin-top:14px;max-width:none}
  /* 右边的重条目比左栏矮时竖向居中，空白上下各一半，不全堆在它下面 */
  .ofv-u-compare>.ofv-major{grid-area:major;margin-top:18px;align-self:center;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:18px}
  .ofv-u-compare>.ofv-major .ofv-major-fig{grid-column:1;grid-row:1/span 2;width:128px;margin-top:8px}
  .ofv-u-compare>.ofv-major .ofv-major-t,.ofv-u-compare>.ofv-major .ofv-major-s{grid-column:2}
  .ofv-u-compare>.ofv-major .ofv-major-t{align-self:start}
  .ofv-u-compare>.ofv-major .ofv-major-s{margin-top:0}

  /* 工具算例和问答并排：两边一样高，算例里的三行把多出来的高度匀开 */
  .ofv-u-routes,.ofv-u-ask{align-self:stretch}
  .ofv-u-routes{display:flex;flex-direction:column}
  .ofv-u-routes>.ofv-u-h{margin-bottom:4px}
  .ofv-try{flex:1;display:flex;flex-direction:column}
  .ofv-routes{flex:1;display:grid;grid-auto-rows:1fr}

  /* 文章块：两条重条目并排（配数的窄、配封面的宽），两条都从顶上排起，标题在一条线上；轻条目一行排在下面，去全部文章的文字链靠右 */
  .ofv-u-reads{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:48px}
  .ofv-u-reads>*{grid-column:1/-1}
  .ofv-u-reads>.ofv-u-h{margin-bottom:10px}
  .ofv-u-reads>.ofv-major{grid-row:2;grid-column:1/span 7}
  .ofv-u-reads.has-two>.ofv-major{grid-column:1/span 5;align-self:start}
  .ofv-u-reads.has-two>.ofv-major~.ofv-major{grid-column:6/-1}
  .ofv-major-t{font-size:21px}
  .ofv-major-s{font-size:16px}
  .ofv-major--num .ofv-major-fig{gap:12px}
  .ofv-major--wide{grid-template-columns:320px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:24px}
  .ofv-major--wide .ofv-major-fig{grid-column:1;grid-row:1/span 2;width:320px;margin:0}
  .ofv-major--wide .ofv-major-fig img{border-radius:var(--ofv-r2)}
  .ofv-major--wide .ofv-major-t{grid-column:2;align-self:start}
  .ofv-major--wide .ofv-major-s{grid-column:2;margin-top:0}
  .ofv-u-reads>.ofv-also{grid-row:3;margin-top:20px;padding-inline-end:19em}
  .ofv-u-reads>.ofv-allnotes{grid-row:3;justify-self:end;align-self:end}
  .ofv-u-reads>.ofv-fresh{grid-row:4}
}
@media (min-width:961px) and (max-width:1139px){
  .ofv-under,.ofv-u-compare,.ofv-u-reads{column-gap:32px}
  .ofv-major--wide{grid-template-columns:240px minmax(0,1fr)}
  .ofv-major--wide .ofv-major-fig{width:240px}
  .ofv-cmp td small{display:block;margin-inline-start:0}
}

/* 手机和平板：单列，照 bands 的先后 */
@media (max-width:960px){
  .ofv-under{display:block}
  .ofv-u-band:first-child{margin-top:8px}
  .ofv-cmp td small{display:block;margin-inline-start:0}
  /* 表头小字只在电脑上出现：平板宽度下它会把表头折成三四行 */
  .ofv-cmp thead small{display:none}
  .ofv-u-compare>.ofv-major{margin-top:16px;padding-top:10px;border-top:1px solid var(--ofv-line-1)}
  .ofv-u-reads>.ofv-u-h{margin-bottom:6px}
  .ofv-u-reads>.ofv-also{margin-top:12px}
  .ofv-u-reads>.ofv-major~.ofv-major{padding-top:10px;border-top:1px solid var(--ofv-line-1)}
  .ofv-u-reads>.ofv-allnotes{margin-top:12px;border-top:1px solid var(--ofv-line-1);padding-top:2px}
}
/* 平板：配封面的把图放大一档，放在文字左边，不把标题和图拉到两头；配数的照手机那样从上到下排 */
@media (min-width:641px) and (max-width:960px){
  .ofv-major:not(.ofv-major--num){grid-template-columns:200px minmax(0,34em);grid-template-rows:auto 1fr;column-gap:22px}
  .ofv-major:not(.ofv-major--num) .ofv-major-t{grid-column:2;align-self:start}
  .ofv-major:not(.ofv-major--num) .ofv-major-s{grid-column:2;margin-top:0}
  .ofv-major:not(.ofv-major--num) .ofv-major-fig{grid-column:1;grid-row:1/span 2;width:200px;margin-top:8px}
  .ofv-major--num .ofv-major-s{max-width:34em}
  .ofv-u-reads>.ofv-major~.ofv-major{margin-top:14px;padding-top:16px}
}
@media (max-width:700px){
  .ofv-cmp .ofv-cmp-wide{display:none}
}
@media (max-width:640px){
  .ofv-under{padding-inline:16px;padding-bottom:18px}
  .ofv-u-band{margin-top:26px;padding-top:12px}
  .ofv-u-band:first-child{margin-top:4px}
  .ofv-u-h{font-size:21px}
  .ofv-ask dt{margin-top:12px}
  .ofv-cmp-asof{font-size:13px;margin-bottom:10px}
  .ofv-cmp th,.ofv-cmp td{padding:10px 6px}
  .ofv-cmp th:lang(en),.ofv-cmp td:lang(en){padding-inline:4px}
  .ofv-cmp th:first-child{padding-inline-start:12px}
  .ofv-cmp td:last-child,.ofv-cmp th:last-child{padding-inline-end:10px}
  .ofv-cmp thead th{font-size:13px}
  .ofv-cmp tbody th,.ofv-cmp td b{font-size:16px}
  .ofv-cmp td.ofv-cmp-words,.ofv-cmp-where{font-size:14px}
  .ofv-cmp td.ofv-cmp-words:lang(en),.ofv-cmp-where:lang(en){font-size:13px}
  .ofv-cmp-read{font-size:16px;margin-top:12px}
  .ofv-try{padding:14px 14px 16px}
  .ofv-try-go{display:block}
  .ofv-try-go .ofv-try-src{display:block;margin-top:8px}
  .ofv-also li{border-top:1px solid var(--ofv-line-1)}
  .ofv-fresh{border-top:1px solid var(--ofv-line-1);margin-top:12px;padding-top:8px}
  .ofv-major-t{font-size:19px}
  .ofv-major-num{font-size:34px}
}
/* 再窄就收掉「提币每次扣」一列。四列最少要的宽度：中文 306px（视口 340），英文 312px（视口 346）；各留 6px 余量 */
@media (max-width:345px){
  .ofv-cmp .ofv-cmp-mid{display:none}
}
@media (max-width:351px){
  .ofv-cmp .ofv-cmp-mid:lang(en){display:none}
}
