/* 德福字典网 首页 v2 水墨夜色 */
:root{
  --ink:#0b1418;
  --ink2:#101d23;
  --mist:#e9ecea;
  --card:#ffffff;
  --text:#1d2529;
  --text2:#3e474b;
  --muted:#7b8483;
  --gold:#c0a068;
  --red:#b0392e;
  --line:#e0e5e2;
}
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  overflow-x:hidden;
  background:var(--mist);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Source Han Sans SC",sans-serif;
  font-size:15px;line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
li{list-style:none}
input,button,select{font-family:inherit;outline:none}
.nm-wrap{max-width:1200px;margin:0 auto;padding:0 24px}

/* ---------- 顶栏 ---------- */
.nm-head{
  position:sticky;top:0;z-index:50;
  background:var(--ink);
  border-bottom:1px solid rgba(255,255,255,.07);
}
.nm-head-in{display:flex;align-items:center;justify-content:space-between;height:72px}
.nm-logo{display:flex;align-items:center;gap:12px}
.nm-seal{
  width:38px;height:38px;flex:0 0 38px;
  display:flex;align-items:center;justify-content:center;
  background:var(--red);color:#fff;border-radius:2px;
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;font-size:21px;line-height:1;
}
.nm-logo-t{
  font-family:"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",serif;
  font-size:20px;font-weight:700;letter-spacing:3px;color:#f2efe7;
  display:flex;flex-direction:column;line-height:1.2;
}
.nm-logo-t em{font-style:normal;font-size:10.5px;letter-spacing:3px;color:#7d8b90;font-weight:400;margin-top:5px}
.nm-nav{display:flex;align-items:center;gap:32px}
.nm-nav a{font-size:15px;color:#a9b5b9;position:relative;padding:6px 0;letter-spacing:1px}
.nm-nav a:hover{color:#fff}
.nm-nav a:first-child{color:#fff}
.nm-nav a:first-child::after{
  content:"";position:absolute;left:50%;bottom:-2px;transform:translateX(-50%);
  width:18px;height:2px;background:var(--gold);
}

/* ---------- 首屏 ---------- */
.nm-hero{
  position:relative;overflow:hidden;background:var(--ink);
  border-bottom:1px solid rgba(0,0,0,.3);
}
.nm-hero-bg{
  position:absolute;inset:0;
  background:url(../image/hero-dark.jpg) center right/cover no-repeat;
}
.nm-hero::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,#081014 0%,rgba(8,16,20,.97) 26%,rgba(8,16,20,.82) 46%,rgba(8,16,20,.35) 68%,rgba(8,16,20,.05) 88%);
}
.nm-hero-in{position:relative;z-index:2;padding:74px 24px 62px}
.nm-eyebrow{
  display:inline-block;font-size:11.5px;letter-spacing:5px;color:var(--gold);
  border:1px solid rgba(192,160,104,.5);padding:5px 14px;margin-bottom:26px;
}
.nm-hero h1{
  font-family:"Songti SC","STSong","Noto Serif CJK SC","Source Han Serif SC",serif;
  font-size:62px;line-height:1.16;letter-spacing:4px;color:#f4f1e8;font-weight:700;
}
.nm-hero h1 span{color:var(--gold)}
.nm-sub{margin-top:16px;font-size:14.5px;color:#93a2a7;letter-spacing:.6px}

/* 搜索 */
.nm-search{max-width:700px;margin-top:32px}
.nm-sbar{
  display:flex;align-items:center;background:#fff;
  border-radius:8px;padding:7px 7px 7px 4px;
  box-shadow:0 26px 60px rgba(0,0,0,.45),0 2px 0 rgba(255,255,255,.06) inset;
}
.nm-sel{position:relative;display:flex;align-items:center;padding-left:12px}
.nm-sel::after{
  content:"";width:1px;height:26px;background:#e6e9e6;margin-left:6px;
}
.nm-sel select{
  -webkit-appearance:none;appearance:none;border:0;background:transparent;
  font-size:16px;color:#1d2529;height:54px;padding:0 26px 0 8px;cursor:pointer;letter-spacing:1px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa3a1' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 6px center;
}
.nm-sbar input[type=text]{
  flex:1;min-width:0;border:0;height:54px;font-size:17px;color:#101a1e;background:transparent;padding-left:16px;
}
.nm-sbar input[type=text]::placeholder{color:#a7aeac;font-size:15.5px}
.nm-sbar button{
  flex:0 0 auto;display:flex;align-items:center;gap:8px;border:0;cursor:pointer;
  height:52px;padding:0 30px;border-radius:5px;
  background:var(--red);color:#fff;font-size:16px;letter-spacing:3px;
  transition:.18s;
}
.nm-sbar button svg{width:17px;height:17px}
.nm-sbar button:hover{background:#8f2c23}
.nm-hot{margin-top:16px;font-size:13px;color:#849399;line-height:2.1}
.nm-hot b{font-weight:400;color:#6d7c82;margin-right:8px;letter-spacing:1px}
.nm-hot a{margin-right:16px;color:#b9c3c6;border-bottom:1px solid transparent}
.nm-hot a:hover{color:var(--gold);border-color:var(--gold)}

/* ---------- 四大入口 ---------- */
.nm-quick{padding:54px 0 6px}
.nm-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.nm-card{
  background:var(--card);border:1px solid var(--line);
  padding:28px 24px 22px;position:relative;transition:.22s;display:flex;flex-direction:column;
}
.nm-card::before{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--ink);opacity:0;transition:.22s}
.nm-card:hover{transform:translateY(-3px);box-shadow:0 16px 34px rgba(17,29,35,.09);border-color:#cfd6d3}
.nm-card:hover::before{opacity:1}
.nm-card h3{
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-size:21px;letter-spacing:2px;color:var(--ink);font-weight:700;
}
.nm-card .num{
  font-family:"Songti SC","STSong",serif;font-size:12.5px;color:#a2854f;
  margin-top:5px;letter-spacing:1.5px;
}
.nm-card p{font-size:13px;color:var(--muted);margin-top:12px;line-height:1.85;flex:1}
.nm-card .go{display:inline-block;margin-top:14px;font-size:13px;color:var(--ink2);letter-spacing:1px}
.nm-card .go::after{content:" →";color:var(--red)}

/* ---------- 内容区 ---------- */
.nm-sec{padding:50px 0}
.nm-sec-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px}
.nm-sec-head h2{
  font-family:"Songti SC","STSong","Noto Serif CJK SC",serif;
  font-size:27px;letter-spacing:3px;color:var(--ink);font-weight:700;
  display:flex;align-items:center;gap:12px;
}
.nm-sec-head h2::before{content:"";width:5px;height:25px;background:var(--red);display:inline-block}
.nm-sec-head .more{font-size:13px;color:#8b9492;letter-spacing:1px}
.nm-sec-head .more:hover{color:var(--red)}
.nm-panels{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.nm-panel{background:var(--card);border:1px solid var(--line);padding:24px;display:flex;flex-direction:column}
.nm-panel h3{
  font-family:"Songti SC","STSong",serif;font-size:18px;letter-spacing:2px;
  color:var(--ink);padding-bottom:14px;border-bottom:1px solid var(--line);
  display:flex;justify-content:space-between;align-items:baseline;
}
.nm-panel h3 em{font-style:normal;font-size:11.5px;color:#98a19f;letter-spacing:1px}
.nm-words{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px;min-height:326px;align-content:start}
.nm-words a{
  display:flex;flex-direction:column-reverse;align-items:flex-start;gap:0;
  padding:7px 10px;background:#f4f7f5;border:1px solid transparent;
  font-size:16px;line-height:1.35;color:var(--text);transition:.16s;overflow:hidden;min-width:0;
}
.nm-words a i{font-style:normal;font-size:10.5px;color:#9fa8a6;letter-spacing:.2px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5}
.nm-words a:hover{background:#fff;border-color:#b9c2bd;color:var(--red)}
.nm-more{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);font-size:13px;color:#8b9492;letter-spacing:1px}
.nm-more:hover{color:var(--red)}

/* 部首 / 笔画 */
.nm-tools{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.nm-tool{background:var(--card);border:1px solid var(--line);padding:24px}
.nm-tool h3{
  font-family:"Songti SC","STSong",serif;font-size:18px;letter-spacing:2px;color:var(--ink);
  margin-bottom:16px;display:flex;justify-content:space-between;align-items:baseline;
}
.nm-tool h3 em{font-style:normal;font-size:11.5px;color:#98a19f;letter-spacing:1px}
.nm-chips{display:flex;flex-wrap:wrap;gap:9px}
.nm-chips a{
  min-width:46px;height:37px;padding:0 10px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid #e3e8e5;font-size:14px;color:var(--text2);background:#fafcfb;transition:.16s;
}
.nm-chips a:hover{border-color:var(--ink);background:var(--ink);color:#f2efe7}

/* 简介 */
.nm-about{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:50px 0}
.nm-about h2{font-family:"Songti SC","STSong",serif;font-size:23px;letter-spacing:3px;color:var(--ink);margin-bottom:16px}
.nm-about p{color:#5a6367;font-size:14.5px;line-height:2;margin-bottom:10px;max-width:1000px}

/* ---------- 页脚 ---------- */
.nm-foot{background:var(--ink);color:#8c979b;padding:52px 0 0}
.nm-foot-top{display:grid;grid-template-columns:1.7fr 1fr 1fr 1fr;gap:34px;padding-bottom:38px}
.nm-foot h4{color:#e8e4d8;font-size:15px;letter-spacing:2px;margin-bottom:15px;font-weight:600}
.nm-foot a{color:#8c979b;font-size:13.5px;display:block;margin-bottom:9px}
.nm-foot a:hover{color:#e8e4d8}
.nm-foot-about p{font-size:13.5px;line-height:2;color:#7e898d;max-width:320px}
.nm-foot-logo{display:flex;align-items:center;gap:10px;margin-bottom:13px}
.nm-foot-logo .nm-seal{width:32px;height:32px;flex:0 0 32px;font-size:18px}
.nm-foot-logo span{font-family:"Songti SC","STSong",serif;font-size:18px;color:#e8e4d8;letter-spacing:2px}
.nm-foot-bot{
  border-top:1px solid rgba(255,255,255,.08);padding:19px 0 25px;
  display:flex;flex-wrap:wrap;gap:8px 20px;align-items:center;justify-content:space-between;
  font-size:13px;color:#717d81;
}
.nm-foot-bot .icp a{color:#b3bdb9;display:inline;margin:0}
.nm-foot-bot .icp a:hover{color:#fff}
.nm-foot-bot .sep{color:#455053;margin:0 9px}
.nm-gotop{
  position:fixed;right:26px;bottom:34px;width:42px;height:42px;z-index:60;
  background:rgba(11,20,24,.88);color:#e8e4d8;border:0;cursor:pointer;border-radius:2px;
  font-size:15px;display:none;align-items:center;justify-content:center;
}
.nm-gotop.show{display:flex}

/* ---------- 响应式 ---------- */
@media (max-width:1024px){
  .nm-hero h1{font-size:46px}
  .nm-grid4{grid-template-columns:repeat(2,1fr)}
  .nm-panels{grid-template-columns:1fr}
  .nm-words{min-height:0}
  .nm-foot-top{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .nm-wrap{padding:0 16px}
  .nm-nav{display:none}
  .nm-head-in{height:60px}
  .nm-logo-t{font-size:17px;letter-spacing:2px}
  .nm-logo-t em{display:none}
  .nm-hero-in{padding:38px 16px 38px}
  .nm-hero::after{background:linear-gradient(180deg,rgba(8,16,20,.94) 0%,rgba(8,16,20,.86) 46%,rgba(8,16,20,.55) 100%)}
  .nm-hero h1{font-size:30px;letter-spacing:1px;line-height:1.3}
  .nm-sub{font-size:12.5px;margin-top:10px}
  .nm-eyebrow{font-size:10px;letter-spacing:3px;padding:4px 10px;margin-bottom:18px}
  .nm-search{margin-top:22px}
  .nm-sbar{padding:5px;border-radius:7px}
  .nm-sel{padding-left:6px}
  .nm-sel select{height:46px;font-size:15px;padding-right:22px}
  .nm-sel::after{height:22px}
  .nm-sbar input[type=text]{height:46px;font-size:15px;padding-left:10px}
  .nm-sbar input[type=text]::placeholder{font-size:13px}
  .nm-sbar button{height:44px;padding:0 16px;font-size:15px;letter-spacing:1px}
  .nm-sbar button svg{display:none}
  .nm-hot{font-size:12px;line-height:2}
  .nm-hot a{margin-right:12px}
  .nm-grid4{grid-template-columns:1fr 1fr;gap:10px}
  .nm-card{padding:16px 14px}
  .nm-card h3{font-size:17px}
  .nm-card p{font-size:12px;margin-top:8px}
  .nm-sec{padding:34px 0}
  .nm-sec-head h2{font-size:20px}
  .nm-tools{grid-template-columns:1fr}
  .nm-foot-top{grid-template-columns:1fr;gap:22px}
  .nm-foot-bot{flex-direction:column;align-items:flex-start}
}

/* ---------- v2.1 可读性增强（2026-12-04）---------- */
:root{
  --muted:#5f6a6c;
}
body{font-size:16px}
.nm-logo-t em{font-size:11.5px;color:#a3b1b5;letter-spacing:2px}
.nm-nav a{font-size:15.5px;color:#c2cdd0}
.nm-nav a:hover,.nm-nav a.on{color:#fff}
.nm-eyebrow{font-size:12px;color:#d9bd85}
.nm-hero h1{color:#fbf9f3}
.nm-sub{font-size:16px;color:#c4d0d4;letter-spacing:.4px}
.nm-sbar input[type=text]::placeholder{color:#8d9694;font-size:16px}
.nm-hot{font-size:14.5px;color:#c9d5d9}
.nm-hot a{color:#dbe5e8}
.nm-hot a:hover{color:#e8c98d}
.nm-card h3{font-size:22px}
.nm-card .pin{font-size:13px;color:#8a6f3d}
.nm-card p{font-size:14.5px;color:#4f595b;line-height:1.9}
.nm-card .go{font-size:14px;color:#1b2a30;font-weight:600}
.nm-sec-head h2{font-size:28px}
.nm-sec-head .more{font-size:14px;color:#5f6a6c}
.nm-panel h3{font-size:19px}
.nm-panel h3 em{font-size:12.5px;color:#6f7a7a}
.nm-words a{font-size:17px;color:#141d21}
.nm-words a:hover{color:var(--red)}
.nm-words a i{font-size:12.5px;color:#77817f;letter-spacing:.1px}
.nm-more{font-size:14px;color:#5f6a6c}
.nm-tool h3{font-size:19px}
.nm-tool h3 em{font-size:12.5px;color:#6f7a7a}
.nm-tool a{font-size:15px;color:#2b3639}
.nm-about h2{font-size:24px}
.nm-about p{font-size:15.5px;color:#414b4e;line-height:2.05}
.nm-foot h4{font-size:15.5px}
.nm-foot a{font-size:14.5px;color:#b0bcc0}
.nm-foot-about p{font-size:14.5px;color:#9fabb0}
.nm-foot-bot{font-size:14px;color:#94a0a4}
.nm-foot-bot .icp a{color:#a7b3b7}
@media (max-width:640px){
  body{font-size:16px}
  .nm-sub{font-size:14.5px;color:#c8d4d8;line-height:1.7}
  .nm-eyebrow{font-size:11px;letter-spacing:2px;padding:5px 11px}
  .nm-sbar input[type=text]{font-size:16px}
  .nm-sbar input[type=text]::placeholder{font-size:14.5px}
  .nm-hot{font-size:13.5px;line-height:2.2}
  .nm-card h3{font-size:18px}
  .nm-card p{font-size:13.5px;line-height:1.85;color:#4f595b}
  .nm-card .go{font-size:13.5px}
  .nm-sec-head h2{font-size:21px}
  .nm-words a{font-size:16.5px}
  .nm-words a i{font-size:12.5px}
  .nm-about p{font-size:15px;line-height:2}
  .nm-foot a{font-size:14.5px}
  .nm-foot-about p{font-size:14.5px}
  .nm-foot-bot{font-size:13.5px}
}
