/* 趣词吧 主样式 —— 仿目标站暖色调风格 */
:root {
  --qurk-primary: #7d7065;
  --qurk-primary-dark: #665b51;
  --qurk-accent: #d25f32;
  --qurk-accent-light: #c5653e;
  --qurk-hover: #95191b;
  --qurk-bg: #ede7d9;
  --qurk-card: #f1ece1;
  --qurk-card-hover: #fff;
  --qurk-border: #d7d5bc;
  --qurk-btn: #e8e2d4;
  --qurk-title: #d25f32;
  --qurk-link: #19537d;
  --qurk-gold: #b79c06;
}

* {
  box-sizing: border-box;
}

html,
body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  letter-spacing: 0.5px;
}

body {
  background: var(--qurk-bg);
  font-size: 15px;
  color: #333;
}

a {
  text-decoration: none;
  color: #333;
}

a:hover {
  color: var(--qurk-hover);
}

/* ===== 顶部（仿目标站 .header）===== */
.site-header {
  background: linear-gradient(135deg, #6b5f55 0%, #7d7065 55%, #8a7a6d 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px !important;
  margin: 0 auto;
}

.site-header .logo {
  padding: 8px 0;
}

.site-header .logo img {
  height: 40px;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* ===== 主导航（仿目标站 nav，右对齐）===== */
.header-nav {
  text-align: right;
}

#menu_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

#menu_list li {
  display: inline-block;
}

#menu_list li a {
  color: #fff;
  text-decoration: none;
  display: inline-block;
  padding: 0 20px;
  line-height: 56px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: Helvetica, "Microsoft YaHei", sans-serif;
  transition: all 0.25s ease;
}

#menu_list li a:hover {
  color: #ED730D;
  background-color: rgba(241, 236, 225, 0.5);
}

#menu_list li.active a {
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid #ED730D;
}

/* 移动端菜单按钮 */
#menu_button_wrapper {
  display: none;
}

.header-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.6);
  background: transparent;
}

/* ===== 搜索区（仿目标站 .search）===== */
.search-section {
  padding: 15px 0;
}

.search-inner {
  max-width: 1200px !important;
  margin: 0 auto;
}

.cd-search-form {
  max-width: 1200px;
  margin: 0 auto;
}

.cd-search-text {
  display: flex;
  width: 100%;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 44px;
  position: relative;
  background: #fff;
  box-shadow: 0 1px 3px rgba(65, 69, 73, 0.1);
  border: 1px solid #d7d5bc;
}

.cd-text-input {
  border: none;
  width: 100%;
  line-height: 20px;
  padding: 10px 16px;
  position: relative;
  z-index: 5;
  font-size: 16px;
  color: #a3a3a3;
  outline: none;
}

.cd-s-btnw {
  display: inline-block;
  width: 102px;
  font-size: 16px;
  background: var(--qurk-gold);
  flex-shrink: 0;
}

.cd-s-btnw .submit {
  width: 100%;
  height: 100%;
  padding: 0 28px;
  cursor: pointer;
  text-align: center;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  background: var(--qurk-gold);
  vertical-align: middle;
  line-height: 44px;
  font-size: 16px;
  border: none;
  color: #fff;
}

.cd-s-btnw .submit:hover {
  background: #a58906;
}

/* ===== 移动端响应式 ===== */
@media (max-width: 991.98px) {
  .header-inner {
    position: relative;
  }
  #menu_button_wrapper {
    display: block;
    padding: 0.5em 0;
  }
  #menu_list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #7d7065;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  #menu_list.show {
    display: flex;
  }
  #menu_list li a {
    display: block;
    padding: 12px 20px;
    line-height: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* ===== 主容器（仿 .mainbox）===== */
.mainbox {
  background: var(--qurk-bg);
  padding-bottom: 5px;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: 20px;
}

/* ===== 卡片（仿 .item .box）===== */
.card {
  border: 1px solid var(--qurk-border);
  border-radius: 5px;
  background: var(--qurk-card);
  margin-bottom: 16px;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 2px 8px rgba(122, 122, 119, 0.12);
}

.card-header {
  border-radius: 5px 5px 0 0 !important;
  border-bottom: 1px solid var(--qurk-border);
  background: transparent;
}

.qurk-card-header {
  padding: 10px 16px;
  font-weight: bold;
  background: transparent;
  position: relative;
}

.qurk-card-header h3,
.qurk-card-header span {
  color: var(--qurk-title);
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  letter-spacing: 0.5px;
  display: inline-block;
}

.qurk-card-header span {
  font-size: 17px;
  border-left: 4px solid #808080;
  padding-left: 10px;
  line-height: 18px;
}

.qurk-card-header h3 {
  border-left: 4px solid #808080;
  padding-left: 10px;
  line-height: 20px;
}

.site-intro {
  line-height: 1.9;
  margin-bottom: 0;
  color: #333;
  font-size: 15px;
  text-align: left;
}

/* 首页简介卡片 */
.intro-card {
  border-left: 4px solid var(--qurk-accent-light);
  background: #f7f2e6;
}

.intro-card .card-body {
  padding: 18px 24px;
}

/* ===== 词条按钮列表（仿 .cbtn）===== */
ul.cbtn {
  list-style: none;
  margin: 0 -6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}

ul.cbtn li {
  box-sizing: border-box;
  position: relative;
  white-space: nowrap;
  padding: 0;
}

ul.cbtn li a {
  display: block;
  padding: 10px 4px;
  text-align: center;
  background: var(--qurk-btn);
  border: 1px solid var(--qurk-btn);
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 8px 6px 0;
  transition: all 0.2s ease;
}

ul.cbtn li a:hover {
  background: var(--qurk-card-hover);
  color: #333;
  border: 1px solid var(--qurk-accent-light);
  box-shadow: 2px 2px 10px rgba(122, 122, 119, 0.3);
}

ul.cbtn li a span {
  display: block;
  font-size: 14px;
  color: #999;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 24px;
  height: 24px;
  font-family: tahoma, arial, georgia, verdana, sans-serif;
  transition: color 0.2s ease;
}

ul.cbtn li a:hover span {
  color: var(--qurk-accent-light);
}

ul.cbtn li a em {
  font-style: normal;
  color: var(--qurk-accent);
  font-weight: bold;
}

/* 热门汉字按钮样式（仿目标站 z24 区块） */
.w10 li a {
  margin: 8px 3px 0;
  border-radius: 6px;
  background: var(--qurk-btn);
}

.w10 li a:hover {
  background: #fff;
  border-color: var(--qurk-accent-light);
  box-shadow: 2px 2px 10px rgba(122, 122, 119, 0.3);
}

/* 宽度控制（仿目标站） */
.w5 li { width: 20%; }
.w4 li { width: 20%; }
.w6 li { width: 16.6666%; }
.w10 li { width: 70px; }
.w10 li a { height: 60px; }
.w11 li { width: 9.0909%; }
.w44 li { width: 25%; }

@media (max-width: 768px) {
  ul.cbtn li a span { display: none; }
  .w5 li { width: 33.333%; }
  .w4 li { width: 50%; }
  .w6 li { width: 33.333%; }
  .w10 li { width: 25%; }
  .w10 li a { height: 60px; }
  .w11 li { width: 16.66%; }
  .w44 li { width: 50%; }
}

/* 热门汉字大字号（仿目标站 z24） */
.zi-hot li a {
  font-size: 22px;
  height: auto;
  padding: 6px 4px;
}

.zi-hot li a span {
  display: block;
  font-size: 13px;
  color: var(--qurk-accent-light);
  height: 18px;
  line-height: 18px;
}

/* 热门汉字小屏隐藏拼音 */
@media (max-width: 768px) {
  .zi-hot li a span { display: none; }
}

/* ===== 右侧链接网格（仿目标站 .zd_right）===== */
.link-grid3,
.link-grid4,
.link-grid2 {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -4px;
}

.link-grid3 a,
.link-grid4 a,
.link-grid2 a {
  padding: 0 2px;
  text-align: center;
  text-decoration: none;
  color: #555;
  border: 1px solid #DAD9D1;
  border-radius: 5px;
  margin: 6px 4px 0;
  background: transparent;
  font-size: 14px;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.link-grid3 a:hover,
.link-grid4 a:hover,
.link-grid2 a:hover {
  color: rgba(186, 119, 38, 1);
  background: rgba(250, 230, 206, 1);
  border: 1px solid rgba(230, 199, 169, 1);
}

/* 三列网格：宽度约 1/3 */
.link-grid3 a { width: calc(33.333% - 8px); }
/* 四列网格 */
.link-grid4 a { width: calc(25% - 8px); }
/* 两列网格 */
.link-grid2 a { width: calc(50% - 8px); }

@media (max-width: 768px) {
  .link-grid3 a { width: calc(33.333% - 8px); }
  .link-grid4 a { width: calc(50% - 8px); }
  .link-grid2 a { width: calc(50% - 8px); }
}

/* ===== 右侧栏 sticky ===== */
.sidebar-sticky {
  position: sticky;
  top: 10px;
}

@media (max-width: 992px) {
  .sidebar-sticky {
    position: static;
  }
}

/* ===== 近义词/反义词推荐列表（两列网格）===== */
.jy-grid-list {
  list-style: none;
  margin: 0 -4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.jy-grid-list li {
  width: 50%;
  box-sizing: border-box;
  padding: 0 4px;
}

.jy-grid-list li a {
  display: block;
  padding: 7px 6px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  border: 1px solid #DAD9D1;
  border-radius: 5px;
  background: transparent;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 6px 0 0;
  transition: all 0.2s ease;
}

.jy-grid-list li a:hover {
  color: rgba(186, 119, 38, 1);
  background: rgba(250, 230, 206, 1);
  border: 1px solid rgba(230, 199, 169, 1);
}

@media (max-width: 768px) {
  .jy-grid-list li {
    width: 33.333%;
  }
}

/* 近义词/反义词推荐列表（单行，备用） */
.jy-card-body {
  padding: 8px 12px;
}

.jy-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jy-link-list li {
  border-bottom: 1px dashed #d7d5bc;
}

.jy-link-list li:last-child {
  border-bottom: none;
}

.jy-link-list li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 4px;
  color: #444;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: all 0.2s ease;
  border-radius: 3px;
}

.jy-link-list li a:hover {
  color: rgba(186, 119, 38, 1);
  background: rgba(250, 230, 206, 1);
  padding-left: 10px;
}

.jy-link-list li a .jy-word {
  color: var(--qurk-accent);
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jy-link-list li a .jy-idx {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  background: var(--qurk-btn);
  color: #999;
  border-radius: 3px;
  font-size: 12px;
  margin-right: 8px;
}

.jy-link-list li a .jy-label {
  color: #999;
  font-size: 11px;
  flex-shrink: 0;
  margin-left: 6px;
  background: #e8e2d4;
  border-radius: 3px;
  padding: 1px 5px;
}

/* 卡片标题右侧"更多"链接 */
.more-link {
  float: right;
  font-size: 12px;
  color: #999;
  font-weight: normal;
  text-decoration: none;
  line-height: 18px;
}

.more-link:hover {
  color: var(--qurk-hover);
}

/* ===== 面包屑（仿 .mbx）===== */
.breadcrumb-nav {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 10px 0;
  font-size: 13px;
  color: #666;
  margin: 10px 0 -10px;
}

.breadcrumb-nav a {
  color: #666;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--qurk-hover);
}

.breadcrumb-nav i {
  display: inline-block;
  margin: 0 8px;
  font-style: normal;
  position: relative;
}

.breadcrumb-nav i::after {
  content: '/';
  color: #aaa;
}

/* ===== 详情页 ===== */
.kaiti {
  font-family: "Kaiti SC", STKaiti, KaiTi, KaiTi_GB2312, DFKai-SB, serif;
  font-size: 32px;
  line-height: 42px;
}

.word-title {
  font-size: 34px;
  color: #0f0f0f;
}

.word-info {
  margin: 0;
}

.word-info dt {
  display: inline-block;
  color: #7c4400;
  font-weight: bold;
  margin-right: 5px;
}

.word-info dd {
  display: inline-block;
  margin: 0 20px 8px 0;
}

.word-info dd a {
  color: var(--qurk-link);
  font-weight: bold;
}

.word-jieshi {
  line-height: 2;
  text-align: justify;
  color: #333;
}

.word-jieshi h3 {
  color: var(--qurk-accent-light);
  font-weight: normal;
  font-size: 16px;
}

/* ===== 汉字详情（仿 .zdpic/.zidian）===== */
.zi-detail-head {
  text-align: center;
}

.zi-detail-svg img {
  max-width: 150px;
  border: 1px solid var(--qurk-accent-light);
  border-radius: 8px;
  padding: 8px;
  background: #faf8f2;
}

.zi-detail-char {
  font-size: 64px;
  line-height: 1.2;
  color: #0f0f0f;
  font-family: "Kaiti SC", STKaiti, KaiTi, serif;
}

.zidian-info {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
}

.zidian-info li {
  display: flex;
  padding: 6px 0;
}

.zidian-info li em {
  width: 90px;
  flex: 0 0 90px;
  font-style: normal;
  color: #888;
  background: var(--qurk-card);
  border-radius: 3px;
  display: inline-block;
  line-height: 22px;
  margin-right: 10px;
  text-align: center;
  height: 22px;
}

.zidian-info li a {
  color: var(--qurk-link);
  text-decoration: underline;
}

.zi-jieshi {
  line-height: 2;
}

/* ===== 组词详情（仿 .zuci-intro）===== */
.zuci-intro {
  line-height: 1.8;
  padding: 15px;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #e1d4b6;
  border-left-width: 3px;
  border-left-color: #808080;
  border-radius: 4px;
  color: #333;
}

.zuci-box-zi h3,
.sub-title {
  display: block;
  overflow: hidden;
  width: 100%;
  font-weight: bold;
  border-left: 4px solid #808080;
  padding-left: 6px;
  margin-top: 15px;
  margin-bottom: 15px;
  color: #495057;
  font-size: 18px;
}

.zuci-box-zi ul {
  list-style: none;
  padding: 0;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.zuci-box-zi ul li {
  padding: 5px 0;
  float: left;
  line-height: 26px;
  padding-right: 8px;
  font-size: 16px;
}

.zuci-box-zi ul li span {
  background-color: var(--qurk-card);
  margin: 2px 10px 2px 0;
  padding: 4px 6px;
  border-radius: 5px;
}

.zuci-box-zi ul li a {
  color: #495057;
  font-weight: 700;
}

.zuci-box-zi p {
  line-height: 25px;
  color: #525252;
  margin-top: 15px;
  font-size: 16px;
}

/* ===== 表格（仿 .table-zi-list）===== */
.table-zi-list {
  margin: 15px 0;
  width: 100%;
  color: #212529;
  border-collapse: collapse;
}

.table-zi-list .zi {
  width: 100px;
  text-align: center;
  vertical-align: middle;
}

.table-zi-list .zi a {
  color: #333;
  font-size: 15px;
  font-weight: bold;
}

.table-zi-list .zi a:hover {
  color: var(--qurk-hover);
}

.table-zi-list .js {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  line-height: 1.9;
}

.table td,
.table th {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
}

.table-zi-list th {
  text-align: center;
}

.table-zi-list tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* ===== 分页（仿 .pages）===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 0;
}

.pagination .page-link {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background: var(--qurk-card);
  color: #333;
  border: none;
  text-decoration: none;
  margin: 0 3px;
  vertical-align: middle;
}

.pagination .page-link:hover {
  background: rgba(250, 230, 206, 1);
  color: rgba(186, 119, 38, 1);
}

.pagination .page-link.current {
  background: #676552;
  color: #fff;
}

.pagination .page-link.prev,
.pagination .page-link.next {
  width: auto;
  padding: 0 12px;
}

.pagination .page-ellipsis {
  padding: 6px 4px;
  color: #999;
}

/* ===== 友链（仿 .flink）===== */
.flink {
  max-width: 1200px;
  background-color: var(--qurk-card);
  overflow: hidden;
  margin: 10px auto;
  padding: 6px 18px 12px;
  border: 1px solid var(--qurk-border);
  border-radius: 6px;
}

.flink-tit {
  position: relative;
  height: 40px;
  line-height: 40px;
  border-bottom: 1px solid var(--qurk-border);
  margin-bottom: 14px;
}

.flink-tit h2 {
  font: 700 17px/40px "Microsoft YaHei";
  color: #333;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  border-left: 4px solid var(--qurk-accent);
  padding-left: 10px;
}

.flink ul {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.flink ul li {
  float: left;
  margin-bottom: 10px;
  overflow: hidden;
  margin-right: 8px;
}

.flink ul li a {
  display: inline-block;
  padding: 5px 14px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
  border: 1px solid #e3ddcd;
  border-radius: 4px;
  background: #fff;
  transition: all 0.2s ease;
}

.flink ul li a:hover {
  color: var(--qurk-accent);
  border-color: var(--qurk-accent-light);
  background: #fff6ed;
}

/* ===== 页脚（仿 .footer）===== */
.site-footer {
  clear: both;
  width: 100%;
  background: #392b20;
  margin-top: 20px;
}

.site-footer p {
  clear: both;
  width: 100%;
  line-height: 36px;
  color: #999;
  font-size: 13px;
  text-align: center;
  margin-bottom: 0;
}

.site-footer a {
  padding: 0 10px;
  color: #999;
}

.site-footer a:hover {
  color: #fff;
}

/* ===== 列表页（仿 .text-left .item）===== */
.list-group-item {
  background: transparent;
  border: none;
  border-bottom: 1px dashed #DAD9D1;
  color: #333;
  transition: all 0.2s ease;
  padding: 12px 16px;
}

.list-group-item:hover {
  background: rgba(250, 230, 206, 1) !important;
  color: rgba(186, 119, 38, 1);
}

.list-group-item .text-muted {
  color: #999 !important;
}

/* 卡片 body 内边距 */
.card-body {
  padding: 14px 16px;
}

/* 右侧栏卡片更紧凑 */
.col-lg-3 .card {
  margin-bottom: 12px;
}

.col-lg-3 .card-body {
  padding: 12px 14px;
}

/* 搜索列表徽标 */
.badge.bg-secondary {
  background: var(--qurk-primary) !important;
}

/* 返回顶部按钮调整 */
.back-top {
  background: var(--qurk-accent) !important;
}

/* ===== 最新收录词语表格 ===== */
.latest-ci-table .zi {
  width: 100px;
  white-space: nowrap;
  font-size: 15px;
}

.latest-ci-table .zi a {
  color: #1a73e8;
  font-weight: bold;
  text-decoration: underline;
}

.latest-ci-table .zi a:hover {
  color: #95191b;
  text-decoration: underline;
  background: #eef3fc;
}

.latest-ci-table .js {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #666;
}

.latest-ci-table th {
  background: #e8e2d4;
  color: #555;
  font-weight: bold;
}
