﻿@font-face {
  font-family: "屏显臻宋";
  src: url('屏显臻宋.ttf') format('truetype');
}

@font-face {
  font-family: "KaiXinSong";
  src: url(KaiXinSong.ttf) format('truetype');
}

@font-face {
  font-family: 'CJKtest';
  src: url('CJKtest.woff');
}

@font-face {
  font-family: 'CJKtest_b';
  src: url('CJKtestB.woff');
}

@font-face {
  font-family: hei_xdhy_py;
  src: url('./hei_xdhy_py.woff') format('woff');
}

/* 基础设置 */
body {
  font-family: /* "屏显臻宋", "KaiXinSong", "CJKtest","CJKtest_b", */ serif;
}

/* ===== 文字版相关设置 ===== */

/* 成语字头 - 已移除【】 */
cyhw, .hw {
  display: inline-block;
  font-size: 24px;
  color: #000064;
  font-weight: 600;
  line-height: 110%;
}

/* 成语拼音 */
cypy, .py {
  display: block;
  font-family: hei_xdhy_py;
  color: #800000;
  padding-left: 12px;
  line-height: 110%;
}

cypy2, .py2 {
  font-family: hei_xdhy_py;
}

.py+br {
  display: none;
}

/* 成语页码 */
cypg, .ref {
  display: inline-block;
  font-size: 90%;
  color: #717171;
  margin-left: .1em;
}

cypg::before {
  content: "第";
}

cypg::after {
  content: "页";
}

/* 分隔线 */
hr {
  border: 0;
  background: #AA8A57;
  height: 1px;
}

/* 链接样式 */
a:link {
  color: currentColor;
  text-decoration: none;
}

a:visited {
  color: currentColor;
}

a:link:hover {
  color: #b30015;
}

/* 解释 - 更新后的颜色方案 */
js {
  font-size: 12pt;
  color: #2d5016;
  display: inline-block;
  background-color: #f9fcf5; /* 弱化的浅绿色背景 */
  border: .5px solid #c8dfb6;
  padding: .2em .4em;
  border-radius: 4px;
  margin: .3em .1em;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* 后用、也作 */
hy, yz {
  display: block;
  margin: .3em;
}

hy::before, yz::before {
  content: "❑";
}

/* 见例，注疏 - 更新引导符 */
jl, zhushu {
  color: #2578B5;
  display: block;
  margin: 0 .8em;
}

jl::before, zhushu::before {
  content: "✦"; /* 更新为星星符号 */
  color: #d35400; /* 橙色 */
  margin-right: 6px;
  font-weight: bold;
}

/* 注意、来源 */
zyi, lai {
  font-size: 12pt;
  color: #000064;
  display: block;
  font-weight: normal;
  margin: .3em;
}

lai {
  font-size: 10pt;
  text-align: right;
  font-weight: normal;
}

/* 参见 */
cj {
  font-size: 13pt;
  color: #207F4C;
  display: block;
  margin: .3em;
}

cj::before {
  content: "☞";
}

/* 注 */
zhu {
  color: #000064;
  font-style: italic;
}

/* 校记 */
jiaoji {
  font-size: .8em;
  color: #c0c0c0;
}

/* 插入换行 */
hh::before {
  display: block;
  content: "";
}

/* ===== 单字反查相关设置 ===== */
cyhw>a:link, cyhw>a:visited {
  color: currentColor;
}

div[w] {
  display: block;
  line-height: 1em;
}

div[w]::before {
  content: ""attr(w)"";
  background-color: #ffe7e5;
  border: 1px solid #f9d6d2;
  border-radius: .2em;
  padding: .1em .2em;
  margin-right: .4em;
}

div[w] tilde::before {
  content: "～";
  font-weight: bold;
  color: #4d0600;
}

div[w] comma::before {
  content: "，";
  font-weight: bold;
  margin-right: -.4em;
}

div[w]>a:link, div[w]>a:visited {
  display: inline-block;
  color: currentColor;
}

div[w]>a+a:link {
  margin: 0 0 .35em .75em;
}

div[w]>a:link:hover, span a:link:hover {
  color: #b30015;
}

/* ===== 图像版相关设置 ===== */
cybar {
  display: block;
  width: 100%;
  margin: 0 0 .2em 0;
  border-radius: .1em;
  border: 1px solid #666;
}

/*
cybar::before {
  content:"本页成语"; 
  display:block; 
  padding:.1em .3em; 
  color: white; 
  background-color:#666;
}
*/

cybar>a {
  display: inline-block;
  margin: 0 .25em;
  font-size: 1.1em;
  text-align: center;
  cursor: default;
  border-radius: .25em;
  border: 1px solid transparent;
}

cybar>a:hover {
  transform: scale(1.04);
  -webkit-transform: scale(1.04);
  transform-origin: center;
}

book img, book2 img {
  width: 100%;
}

/* 图像下方上下页等 */
zm {
  display: block;
  width: 100%;
  position: relative;
  text-align: center;
  margin-top: .5em;
  font-size: .9em;
  background-color: #f0f0fa;
}

zm>a {
  margin: 0 .5em;
}

/* 目录页 */
div.cont1 {
  margin-left: .5em;
  font-weight: 700;
}