/* 汉语词典网 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", Arial, sans-serif; background: #f2f3f7; color: #333; font-size: 14px; line-height: 1.6; }

a { color: #2b5da8; text-decoration: none; }
a:hover { color: #e23434; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }

/* 头部 */
.header { background: #1f5fa6; }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 18px 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo a { display: flex; align-items: center; color: #fff; }
.logo-icon { display: inline-block; width: 44px; height: 44px; line-height: 44px; text-align: center; background: #e23434; color: #fff; font-size: 26px; font-weight: bold; border-radius: 6px; margin-right: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.logo-text { font-size: 26px; font-weight: bold; letter-spacing: 2px; }

.search form { display: flex; }
.search input[type=text] { width: 360px; max-width: 60vw; height: 40px; padding: 0 12px; border: 2px solid #fff; border-right: none; border-radius: 4px 0 0 4px; font-size: 15px; outline: none; }
.search button { height: 40px; padding: 0 22px; border: none; background: #e23434; color: #fff; font-size: 15px; border-radius: 0 4px 4px 0; cursor: pointer; }
.search button:hover { background: #c71f1f; }

.nav { background: #17497f; }
.nav ul { display: flex; list-style: none; flex-wrap: wrap; }
.nav ul li a { display: block; padding: 11px 20px; color: #dce9f5; font-size: 15px; }
.nav ul li a:hover { color: #fff; background: #0f3760; }
.nav ul li.on a { color: #fff; background: #0f3760; font-weight: bold; }

/* 主体 */
.wrap { display: flex; gap: 18px; margin-top: 16px; margin-bottom: 30px; align-items: flex-start; }
.main { display: flex; gap: 18px; width: 100%; }
.content { flex: 1; min-width: 0; }

/* 盒子 */
.box { background: #fff; border-radius: 6px; padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.box h3 { font-size: 18px; color: #1f5fa6; border-left: 4px solid #e23434; padding-left: 10px; margin-bottom: 12px; }
.box h3 a { color: #1f5fa6; }
.intro p { color: #555; }
.intro strong { color: #e23434; font-size: 18px; margin: 0 3px; }

/* 词语列表 */
.wordlist { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.wordlist li { min-width: 0; }
.wordlist li a { display: inline-block; padding: 6px 12px; background: #f7f9fc; border: 1px solid #e4e8f0; border-radius: 4px; color: #333; }
.wordlist li a:hover { background: #fff; border-color: #2b5da8; color: #2b5da8; }
.wordlist li a span { display: block; font-size: 12px; color: #999; }
.wordlist li a em { display: block; font-style: normal; font-size: 12px; color: #b07a2e; }
.wordlist li a:hover span, .wordlist li a:hover em { color: inherit; }
.wordlist.cols2 li { width: calc(50% - 14px); }
.wordlist.cols3 li { width: calc(33.333% - 10px); }
.wordlist.cols4 li { width: calc(25% - 11px); }
.wordlist.chars li a { font-size: 18px; padding: 6px 14px; color: #2b5da8; font-weight: bold; }
.wordlist li.more a { background: transparent; border: none; color: #e23434; font-weight: normal; }
.wordlist li.more a:hover { background: transparent; }

/* 面包屑 */
.crumb { font-size: 13px; color: #888; margin-bottom: 10px; }
.crumb a { color: #2b5da8; }
.crumb a:hover { color: #e23434; }

/* 详情页 */
.word-head { border-bottom: 1px dashed #ddd; padding-bottom: 14px; margin-bottom: 14px; }
.word-head h1 { font-size: 30px; color: #222; margin-bottom: 8px; }
.word-head .pinyin b { color: #e23434; font-size: 22px; }
.word-head .meta-line { margin: 4px 0; color: #555; }
.word-head .meta-line a { color: #2b5da8; margin-right: 6px; }
.tag { display: inline-block; background: #e23434; color: #fff; font-size: 12px; padding: 1px 8px; border-radius: 3px; margin-right: 6px; }
.tagline a { margin-right: 6px; }

.word-content { font-size: 15px; color: #333; }
.word-content h2 { font-size: 18px; color: #1f5fa6; border-left: 4px solid #e23434; padding-left: 10px; margin: 16px 0 8px; }
.word-content h3 { font-size: 16px; color: #222; margin: 12px 0 6px; }
.word-content p { margin: 6px 0; text-indent: 2em; }
.word-content p.indent { text-indent: 2em; }
.word-content p.ind2 { text-indent: 0; margin: 4px 0; }
.word-content .f14 { font-size: 14px; color: #888; }
.word-content .attr_tag { display: inline-block; min-width: 30px; color: #e23434; font-weight: bold; margin-right: 6px; }
.word-content .attr_ext { color: #333; }
.word-content .tip { color: #e23434; margin-right: 6px; }
.word-content br { line-height: 2.2; }

/* 字母导航 */
.letter-nav { margin: 10px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.letter-nav a, .letter-nav span { display: inline-block; min-width: 32px; text-align: center; padding: 5px 8px; border: 1px solid #e4e8f0; border-radius: 4px; background: #f7f9fc; color: #333; }
.letter-nav a:hover { border-color: #2b5da8; color: #2b5da8; }
.letter-nav span.cur { background: #1f5fa6; color: #fff; border-color: #1f5fa6; font-weight: bold; }

/* 侧栏 */
.sidebar { width: 260px; flex-shrink: 0; }
.sidebar .box h3 { font-size: 16px; }
.btns { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.btns li a { display: inline-block; padding: 5px 14px; background: #f7f9fc; border: 1px solid #e4e8f0; border-radius: 4px; color: #333; }
.btns li a:hover { background: #fff; border-color: #2b5da8; color: #2b5da8; }
.btns.letters li a { min-width: 30px; text-align: center; font-weight: bold; color: #2b5da8; }

/* 分页 */
.pagebar { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagebar .pg { display: inline-block; padding: 5px 11px; border: 1px solid #e4e8f0; border-radius: 4px; background: #f7f9fc; color: #333; font-size: 13px; }
.pagebar .pg:hover { border-color: #2b5da8; color: #2b5da8; }
.pagebar .pg.cur { background: #1f5fa6; color: #fff; border-color: #1f5fa6; }
.pagebar .pg.info { background: transparent; border: none; color: #888; }

/* 页脚 */
.footer { background: #1f3a5c; color: #aebfd6; padding: 22px 0; margin-top: 20px; text-align: center; font-size: 13px; }
.footer a { color: #d5e3f5; }
.footer a:hover { color: #fff; }
.footer p { margin: 4px 0; }

.tip-text { color: #888; margin: 8px 0; }
.center-box { text-align: center; padding: 60px 20px; }
.btn { display: inline-block; padding: 8px 22px; background: #1f5fa6; color: #fff !important; border-radius: 4px; margin: 6px; }
.btn:hover { background: #e23434; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .wrap { display: block; }
  .wordlist.cols4 li, .wordlist.cols3 li, .wordlist.cols2 li { width: calc(50% - 7px); }
  .logo-text { font-size: 20px; }
  .search input[type=text] { width: 220px; }
}