﻿/* ==========================================================================
   Oxford Business English Dictionary, 2nd ed. (英漢雙解)
   dict.css  ·  "Paper & Ink" 排版主题
   --------------------------------------------------------------------------
   为欧路 / MDict 的自定义标签体系重写。设计取向：衬线词头、
   赤陶色单一强调色、克制的细线与留白，不用阴影、不用高饱和色、不用大圆角。
   词条记录自带 <link rel="stylesheet" href="dict.css">，替换本文件即生效。
   v2：不使用 CSS 变量（欧路内嵌引擎不支持），背景透明以透出宿主底色。
   调整字号：搜 1.5rem（词头）、x 规则里的 1.15em（英文例句）、x chn 里的 .8em（翻译）。
   注意：x chn 是 x 的后代，em 会连乘（.8 x 1.15 = .92em 基准，约 13.8px，
   略小于中文释义的 .95em）；单独改英文例句字号时，翻译要同比回调。
   所有颜色与线条均为字面值或半透明 rgba，不使用 CSS 变量（欧路内嵌引擎不解析）。
   ========================================================================== */

:root {
    --paper:        #FAF9F6;
    --paper-2:      #F4F1E9;
    --ink:          #26241F;
    --ink-2:        #4A463E;
    --muted:        #736E64;
    --faint:        #9B958A;
    --cn:           #5F5A50;
    --accent:       #B45B3E;
    --accent-soft:  #CE957C;
    --line:         #E7E2D8;
    --line-2:       #D8D1C3;
    --highlight:    #F6E7C6;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
            "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    --ipa: "Segoe UI", "Lucida Sans Unicode", "Charis SIL", "Doulos SIL", sans-serif;
    --radius: 3px;
}

/* --------------------------------------------------------------------------
   1. 基础 / 纸面
   -------------------------------------------------------------------------- */
html, body { background: transparent; }

body {
    margin: 0;
    padding: 1.35rem 1.5rem 2.5rem;
    color: inherit;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

entry {
    display: block;
    max-width: 52rem;
    margin: 0 auto;
}

html { color-scheme: light dark; }

::selection { background: rgba(184, 95, 64, .24); color: inherit; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(120, 110, 92, .40);
    border: 2px solid transparent;
    border-radius: 9px;
}

a {
    color: #B85F40;
    text-decoration: none;
    border-bottom: 1px solid rgba(180, 91, 62, .32);
}

/* 标准 HTML 标签在这套数据里被借作语义标记，需先复原 */
i, cite, em, var, address, dfn { font-style: normal; }
s, strike, del, u, ins { text-decoration: none; }
b, strong { font-weight: 600; }
br { display: none; }               /* 换行交给 chn 的块级规则，避免双换行 */
q { font-style: normal; }
label { font-weight: normal; }
ol, ul { margin: 0; padding: 0; list-style: none; }

/* 无视觉意义的空标记 / 检索用字段 */
template, hsrch, side-g, .xritems,
m-g, mn-g, msd, mxh, mxp, mxr, mxs, mxsd, xmm, xpg { display: none; }

[hidden="y"] { display: none; }

/* xhtml:* 前缀在部分渲染器里会被剥离，两种写法都覆盖 */
xhtml\:br { display: inline; }
xhtml\:ol, ol { display: block; list-style: none; margin: 0; padding: 0; }
xhtml\:li, li { display: block; }
xhtml\:table, table { display: table; width: 100%; border-collapse: collapse; }
xhtml\:tr, tr { display: table-row; }
xhtml\:td, td {
    display: table-cell;
    padding: .45rem .8rem .45rem 0;
    border-bottom: 1px solid rgba(120, 110, 92, .26);
    vertical-align: top;
    text-align: left;
}
xhtml\:img, img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

highlight, [highlight="y"] {
    background: rgba(216, 172, 84, .30);
    color: inherit;
    padding: 0 .15em;
    border-radius: 2px;
}
content[highlight="y"] { background: transparent; }

/* --------------------------------------------------------------------------
   2. 词头区：衬线大标题 + 一条赤陶短线 + 元信息行
   -------------------------------------------------------------------------- */
h {
    display: block;
    margin: 0 0 .1rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.025em;
    color: inherit;
}
h:after {
    content: "";
    display: block;
    width: 1.7rem;
    height: 2px;
    margin: .4rem 0 .55rem;
    background: #B85F40;
}
h2, hs, hcomma {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.15em;
    font-weight: 400;
    color: inherit;
}
hm, hkey, hawl, xhm { font-size: .7em; vertical-align: super; }

i-g {
    display: inline;
    margin-right: .85rem;
    font-family: "Segoe UI", "Lucida Sans Unicode", "Charis SIL", "Doulos SIL", sans-serif;
    font-size: .9em;
    color: #736E64;
    letter-spacing: .01em;
}
i-g:before, i-g:after { color: #918B80; }
i { font-style: normal; }

p-blk, p-g { display: inline; margin-right: .85rem; }
p, p-g p, xrnewline p {
    display: inline;
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: .92em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: .02em;
    color: #B85F40;
}

gr-blk, gr, pt { display: inline; color: #918B80; font-weight: normal; }
gr-blk { margin-right: .4rem; font-size: .84em; letter-spacing: .02em; }
gr { white-space: normal; }

label, brelabel, namelabel, uslabel, graylabel, ab-label, sym-label {
    color: #736E64;
    font-size: .84em;
    font-weight: normal;
    font-style: normal;
    letter-spacing: .02em;
}
label chn, u chn, gr label chn, pt label chn {
    display: inline;
    color: inherit;
    font-size: 1em;
}
namelabel, uslabel { color: #918B80; }
i-g label, i-g-nobrk label { color: #736E64; }

/* 变体拼法、词形变化、学科标签 */
v, ve, vs, alt, co, h, he, pv, sym, xp, xw, zd, if, id, ab {
    color: inherit;
}
v, ve, vs, if, alt, co {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: .96em;
    font-style: italic;
}
vscomma, ptcomma, vbar, spunc, nostyle, ucparen, uoparen, nocolor {
    color: #918B80;
    font-style: normal;
    font-weight: normal;
}
ifs-g, if-g-blk { display: block; margin: .25rem 0; color: #736E64; font-size: .88em; }
ifs-g i-g, ifs-g-nobrk, i-g-nobrk { display: inline; }
il { color: #918B80; font-style: italic; }
cm, dc, dst, eph, etym, ff, fm, gl, help, u, ud, wfp, xh, xp, xw, xrlabel {
    font-weight: normal;
}
cm { color: #918B80; font-style: italic; }
gl { color: #918B80; font-size: .9em; font-style: italic; }
r, gem, ffcm, igcm, ei-blk { color: #918B80; font-style: italic; }
nostyle { color: inherit; }

s-blk { display: block; margin: .45rem 0 .2rem; }
s, s-blk s { display: inline; font-size: .84em; color: #736E64; }
s label { font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
ff, ff-no-newline, dff, ff-no-newline {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: .98em;
    font-weight: 600;
    color: inherit;
}
dhb, eb, ebi, aaa, uneb, unebi, uncl, arbd1, unfm, ebi {
    font-weight: 600;
    font-style: normal;
}
eb, ebi { color: #B85F40; }
aaa { color: inherit; font-style: normal; }
audio { display: inline; color: inherit; }

/* --------------------------------------------------------------------------
   3. 义项骨架
   -------------------------------------------------------------------------- */
n-blk {
    display: block;
    position: relative;
    margin-top: 1.15rem;
    padding-left: 1.9rem;
}
n-blk + n-blk {
    margin-top: 1.2rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(120, 110, 92, .26);
}
number {
    position: absolute;
    left: 0;
    top: .1rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.05rem;
    line-height: 1.55;
    color: #B85F40;
    font-variant-numeric: tabular-nums;
}
n-g, id-g, pv-g, dr-g, cl-g, para-g, help-blk, etym-blk { display: block; }
n-g { font-weight: normal; color: inherit; }
id-g, pv-g, help-blk, etym-blk { line-height: 1.7; }

d {
    display: block;
    margin: .4rem 0 0;
    color: inherit;
    font-weight: normal;
}
d[newline="y"] { margin-top: .7rem; }

/* 中文释义：整行独立、略小、偏暖灰，靠它完成英中换行 */
chn {
    display: inline;
    color: #5F5A50;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    font-size: .95em;
    font-style: normal;
    font-weight: normal;
}
d chn, x chn, cl chn, help chn, id chn, pv chn, dr chn {
    display: block;
    margin-top: .22rem;
    line-height: 1.72;
}
x chn, cl chn { margin-top: .14rem; }
fthzmark { color: inherit; font-style: normal; }  /* 自闭合容器，切勿 display:none */
xhtml\:br { color: inherit; }
xhtml\:br chn { color: #5F5A50; }

/* --------------------------------------------------------------------------
   4. 例句 / 搭配
   -------------------------------------------------------------------------- */
x-blk {
    display: block;
    margin: .6rem 0 0;
    padding-left: .95rem;
    border-left: 2px solid rgba(120, 110, 92, .40);
    line-height: 1.7;
}
x, x g, x r, x s {
    display: inline;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.15em;
    font-style: italic;
    color: inherit;
}
x chn {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    font-size: .8em;
    font-style: normal;
    color: #736E64;
}
x g label, x r label, x s label { color: #918B80; }
wx, unwx, unwxp { text-decoration: line-through; color: #918B80; }

/* ◆ → 一枚小小的赤陶圆点 */
xsymb {
    font-size: 0;
    margin-right: .55rem;
    white-space: nowrap;
}
xsymb:before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #C98B72;
    vertical-align: .2em;
}
syn-diamond { color: #C98B72; font-size: .6em; }

cl-g {
    display: block;
    margin: 1rem 0 .4rem;
    padding: .7rem 1rem .75rem;
    background: rgba(126, 110, 84, .055);
    border-left: 2px solid #C98B72;
    border-radius: 3px;
}
cl-blk { display: block; }
cl-blk + cl-blk {
    margin-top: .45rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(120, 110, 92, .26);
}
cl {
    display: inline;
    font-size: 1em;
    color: inherit;
}
cl chn {
    font-size: .96em;
    color: #736E64;
}
clsymb {
    font-size: 0;
    margin-right: .55rem;
}
clsymb:before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 1px;
    background: #C98B72;
    vertical-align: .25em;
}

/* --------------------------------------------------------------------------
   5. 参见 / 交叉引用 / 小标签
   -------------------------------------------------------------------------- */
xrnewline { display: block; margin-top: .75rem; }
xrtag, xr-seea-blk, xr-seeae-blk, xr-list, xr-item, xr-blk { display: block; margin-top: .35rem; }
seealso {
    color: #918B80;
    font-size: .84em;
    font-style: italic;
    letter-spacing: .01em;
}
arrow { font-size: 0; }
arrow:before {
    content: "\2192";
    font-size: .95rem;
    color: #B85F40;
    padding: 0 .15em;
}
xr {
    display: inline;
    font-size: .9em;
    color: #B85F40;
}
xr xh, xh {
    color: #B85F40;
    font-weight: 500;
    border-bottom: 1px solid rgba(180, 91, 62, .28);
}
/* see.c 是本词典附带的复合词索引列表（几十条），非释义内容，按原版处理隐藏 */
xr[xt="see.c"] { display: none; }
xr[xt="eq"] xh { font-style: italic; }
xr xp, xr xs, xr xw, xrex, xp { font-style: italic; color: #736E64; }
xrnewline p { color: #918B80; }
xrtag { color: #918B80; font-size: .85em; }
cf, cc { color: #B85F40; font-weight: 500; }

boxtag, boxtag[type="awl"], boxtag[type="cp"] {
    display: inline-block;
    margin-right: .5rem;
    padding: 0 .45em;
    border: 1px solid #C98B72;
    border-radius: 2px;
    background: transparent;
    color: #B85F40;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .1em;
    text-transform: uppercase;
    vertical-align: .12em;
}

/* 图标 + 一条延长细线，作为板块分隔标题 */
boxblock {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.6rem 0 .7rem;
}
boxblock boxtag {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    line-height: 1;
}
boxblock boxtag xhtml\:img, boxblock boxtag img { height: 1.15em; width: auto; max-height: 1.15em; }
/* 未剥离前缀时 xhtml:img 不是真图片，隐藏空占位，文字板块标题照常显示 */
boxblock boxtag xhtml\:img { display: none; }
boxblock:after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(120, 110, 92, .26);
}
boxblock:has(img[src="idioms.svg"]):before,
boxblock:has(xhtml\:img[src="idioms.svg"]):before {
    content: "IDIOMS";
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: #918B80;
}
boxblock:has(img[src="pvs.svg"]):before,
boxblock:has(xhtml\:img[src="pvs.svg"]):before {
    content: "PHRASAL VERBS";
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    color: #918B80;
}

/* --------------------------------------------------------------------------
   6. 派生词 / 习语 / 短语动词
   -------------------------------------------------------------------------- */
dr-g-blk {
    display: block;
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(120, 110, 92, .26);
}
dr-g { display: block; padding-top: .2rem; }
drtri { font-size: 0; margin-right: .5rem; }
drtri:before { content: "\2192"; font-size: .9rem; color: #B85F40; }
dr, dre {
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
}
dr-g i-g { font-size: .85em; }
dr-g p-blk { font-size: .9em; }

id-g-blk, pv-g-blk { display: block; margin-top: .4rem; }
id-blk, pv-blk, sd-blk {
    display: block;
    margin-top: .8rem;
    padding-left: 0;
}
id, pv {
    display: inline;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.18rem;
    font-weight: 600;
    letter-spacing: -.01em;
    color: inherit;
}
sd {
    display: inline;
    color: #B85F40;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-bottom: 1px solid #C98B72;
}
sdsymb, clsymb, xsymb { font-style: normal; }

/* --------------------------------------------------------------------------
   7. 用法说明 / 专题框
   -------------------------------------------------------------------------- */
help, help[type="note"], olect help[type="isym"], obedec help[type="isym"],
help[helptype="help"], help[helptype="note"] {
    display: block;
    margin: 1rem 0;
    padding: .75rem 1rem;
    background: rgba(126, 110, 84, .055);
    border-left: 2px solid rgba(120, 110, 92, .40);
    border-radius: 3px;
    color: inherit;
    font-size: .92em;
    line-height: 1.7;
}
help-head {
    display: inline;
    margin-right: .3rem;
    color: #B85F40;
    font-size: 1em;
    font-weight: 600;
}
help en { text-transform: uppercase; letter-spacing: .06em; font-size: .85em; color: #918B80; }
help x-blk { border-left-color: rgba(120, 110, 92, .26); }

unbox, unbox[type="which_word"], unbox[type="vocab"],
unbox[type="grammar"], unbox[type="more_about"], wf-g-blk {
    display: block;
    margin: 1.5rem 0;
    padding: 1.15rem 1.35rem 1.25rem;
    background: rgba(126, 110, 84, .055);
    border: 1px solid rgba(120, 110, 92, .26);
    border-left: 2px solid #C98B72;
    border-radius: 3px;
}
title, subhead, langbanksubhead, collsubhead, althead, patterns {
    display: block;
    color: inherit;
}
title {
    margin: 0 0 .7rem;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", "Songti SC", "STSong", serif;
    font-size: 1.22rem;
    font-weight: 400;
    letter-spacing: -.01em;
}
subheada, subheadb, althead {
    margin: 1rem 0 .35rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #B85F40;
}
subheada:before, subheadb:before, para[type="firstflush"]:before,
para[type="flush"]:before { content: none; }
para-g { display: block; }
para {
    display: block;
    margin: .3rem 0;
    line-height: 1.75;
    color: inherit;
}
para[outdent="y"]:before, para[above="1"]:before, para[above="2"]:before,
para[above="3"]:before, patterns > para:before, para[type="bullet"]:before {
    content: "\2014\00a0";
    color: #C98B72;
    background: none;
}
para[outdent="n"]:before, td para:before { content: none; }
und, uneb, unebi, uncl, ungl, unei, unx, unxp, unwxp, unsyn, unxh, ungi, arit1, arbd1 {
    font-weight: normal;
    font-style: normal;
    color: inherit;
}
unfm, uneb, unebi, unxh, unsyn { font-weight: 600; color: inherit; }
unsyn { color: #B85F40; }
unxp, unwxp, obedec-unbox td unx { display: block; }
unxp:before, unwxp:before, obedec-unbox td unx:before { content: none; }
und chn, unxp chn, title chn, subheada chn { display: inline; color: #5F5A50; }
piclink { display: block; color: #B85F40; text-decoration: none; }
unbox-list, unbox-list-item { display: block; }
unbox-list-item { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: #B85F40; text-transform: uppercase; }
typetitle { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #918B80; }
rule { display: block; border-top: 1px solid rgba(120, 110, 92, .26); }
wfh, wfp, wfw { background: none; color: #B85F40; font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
wordbox { display: block; float: none; margin: 1rem 0; padding: .8rem 1rem; border: 1px solid rgba(120, 110, 92, .26); border-radius: 3px; }

/* --------------------------------------------------------------------------
   8. 杂项：跨词典遗留标签统一收敛到本主题
   -------------------------------------------------------------------------- */
colloc, olect, obedec, oalecd8, un, unbox-list { color: inherit; }
cl, cl-g, cl-blk, clsymb, cl-header, sl-g-head, sl-g-blk, sl-g-list, sl-g-preview,
n-blk, n-g, gr-blk, gr, g-blk, r-blk, s-blk, x-blk, sd-blk, id-blk, pv-blk { color: inherit; }
cl-header, sl-g-head {
    display: inline-block;
    margin: 1rem .4rem .3rem 0;
    padding: .1rem .55rem;
    border-radius: 2px;
    background: transparent;
    border: 1px solid rgba(120, 110, 92, .40);
    color: #736E64;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
heading, hh, rsh, sh, subhead, title { font-weight: 400; }
morecolloc {
    display: block;
    margin: 1rem -1.5rem;
    padding: .4rem 1.5rem;
    background: rgba(126, 110, 84, .055);
    color: #736E64;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
dian, syn-diamond, xrarr { color: #C98B72; }
ar { display: inline; margin: 0 .2em; }
ar:before { content: "\25C6"; color: #C98B72; font-size: .55em; margin-right: .25em; }
rightarr { float: right; color: #918B80; }
ill-g[thumb="y"] { float: right; max-width: 25%; margin: .3rem 0 .6rem 1rem; }
scale { display: block; margin-top: .5rem; border-top: 1px solid rgba(120, 110, 92, .26); }
boxtag[type="syn"], boxtag[xt="syn"] { border-color: #C98B72; }
num, n-num, number { font-variant-numeric: tabular-nums; }
n-num { color: #B85F40; margin-right: .35em; }
ill-g img, ill-g xhtml\:img { max-width: 100%; }
img.thumb, xhtml\:img.thumb { display: inline; max-width: 100%; }
