/* zi.artv.cn —— 查字官网（轻量、可抓取、PC+手机自适应） */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2b2b2b; background: #faf7f2; line-height: 1.7; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
a { color: #a0522d; text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 18px 0 8px; }
h2 { font-size: 19px; margin: 4px 0 10px; }
h3 { margin: 0 0 6px; }
.dim { color: #8a8378; font-size: 13px; }

.nav { background: #fff; border-bottom: 1px solid #eee2d6; position: sticky; top: 0; z-index: 9; }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 52px; }
.nav a { color: #5c5347; font-size: 15px; }
.logo { font-weight: 700; color: #a0522d !important; font-size: 17px !important; }
.flex { flex: 1; }
.nav-tip { font-size: 12px; color: #b0a794; }

.hero { text-align: center; padding: 34px 0 10px; }
.hero h1 { font-size: 30px; margin-bottom: 4px; }
.sub { color: #8a8378; margin-top: 0; }

.searchbar { position: relative; max-width: 520px; margin: 18px auto; }
.searchbar input { width: 100%; padding: 12px 16px; font-size: 17px;
  border: 2px solid #d8c6a8; border-radius: 12px; outline: none; background: #fff; }
.searchbar input:focus { border-color: #a0522d; }
.qres { position: absolute; left: 0; right: 0; top: 100%; background: #fff;
  border: 1px solid #eee2d6; border-radius: 0 0 10px 10px; z-index: 5;
  max-height: 300px; overflow: auto; display: none; text-align: left; }
.qres.open { display: block; }
.qres a { display: inline-block; padding: 5px 10px; font-size: 17px; }

.card { background: #fff; border: 1px solid #eee2d6; border-radius: 12px;
  padding: 16px 20px; margin: 14px 0; }
.card.three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .card.three { grid-template-columns: 1fr; } }
/* 移动端：导航条允许换行，提示语独占一行置底，避免窄屏挤压重叠 */
@media (max-width: 640px) {
  .nav .wrap { height: auto; flex-wrap: wrap; padding: 9px 0; gap: 8px 16px; }
  .logo { white-space: nowrap; }
  .nav a { white-space: nowrap; font-size: 14px; }
  .nav-tip { flex: 1 1 100%; text-align: center; padding-top: 6px;
    border-top: 1px dashed #eee2d6; }
  .hero { padding: 22px 0 6px; }
  .hero h1 { font-size: 23px; }
  h1 { font-size: 22px; }
}

.facts { background: #fff; border-radius: 12px; border: 1px solid #eee2d6;
  padding: 10px 16px; font-size: 15px; }
.facts strong { color: #a0522d; }

.steps { font-size: 17px; letter-spacing: .5px; color: #4a4238; }
.hw { width: 240px; height: 240px; margin: 10px auto; background: #fdf2f2;
  border: 1px solid #d8b0b0; position: relative; }
.hw svg { width: 100%; height: 100%; }

.fanzi { display: block; margin: 8px auto; background: #fdf2f2; border: 1px solid #d8b0b0; }
.fanzi-fallback { text-align: center; }
.teacher { background: #f6f1e7; border-left: 4px solid #d8c6a8; margin: 10px 0;
  padding: 10px 14px; color: #5c5347; font-size: 14.5px; }

.video-box { margin-top: 12px; text-align: center; }
.video-box video { width: 100%; max-width: 420px; border-radius: 10px; background: #000; }

.sheet { display: block; margin: 10px auto; max-width: 100%; }
.btn { background: #a0522d; color: #fff; border: none; border-radius: 10px;
  padding: 10px 22px; font-size: 16px; cursor: pointer; }
.btn:active { opacity: .8; }

.cta { background: #f6f1e7; border-color: #d8c6a8; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 6px 12px; background: #f6f1e7;
  border: 1px solid #e5d9c3; border-radius: 8px; font-size: 16px; color: #4a4238; }
.bigchip { display: inline-flex; flex-direction: column; align-items: center;
  padding: 10px 16px; background: #fff; border: 1px solid #e5d9c3;
  border-radius: 12px; min-width: 96px; font-size: 16px; color: #4a4238; }
.bigchip small { color: #b0a794; font-size: 12px; }
.bigchip:hover { text-decoration: none; border-color: #a0522d; }

.lesson { margin: 12px 0; }
.lesson h3 { font-size: 16px; }
.lesson h3 small { color: #b0a794; font-weight: 400; margin-left: 8px; }

.rel .chip { font-size: 15px; }

.foot { border-top: 1px solid #eee2d6; margin-top: 30px; padding: 18px 0 30px;
  color: #8a8378; font-size: 13px; text-align: center; }

/* 打印：只印练习格区（单字页） */
@media print {
  body { background: #fff; }
  .nav, .searchbar, .video-box, .btn, .cta, .rel, .foot, .hw, section:not(.card):not(.noprint) { display: none !important; }
  body > main > section:not(.print-sheet) { display: none !important; }
  .card { border: none; }
}
