/* ========== 1. 基础重置 & 全局 ========== */
@import url('public.css');

html, body { height: 100%; font-family: "Microsoft YaHei","微软雅黑","PingFang SC",sans-serif; }
.web_notice::before { content: '书法字典平台，搜集书法资料百万+,力争头部工具应用，欢迎投资合作，微信号：wfhbwlj'; }
body { background-color: #f5f0e8; color: #333; display: flex; flex-direction: column; }
.wrapper { flex: 1; }

/* ========== 2. 公告 & 顶栏 ========== */
.notice { background: linear-gradient(135deg, #d9c8b2, #c4ad93); font-size: 0.8rem; color: #7a6a5a; padding: 10px 0; border-bottom: 1px solid #b9afa0; }
.noticeR span { border-right: 1px solid #7a6a5a; padding: 0 10px; }
.noticeR span, .noticeR span a { font-size: 14px !important; }
.links { padding: 20px 0; }
.links a { color: #f60; display: inline-block; margin-right: 10px; }
.topNav { background-color: #efefef; line-height: 35px; }

/* ========== 3. 导航 ========== */
.mainMenu { background: linear-gradient(291deg, #838383, #060606); margin-top: 10px; line-height: 50px; }
.mainMenu a { display: inline-block; font-weight: bold; width: 90px; color: #eee; font-size: 1rem; text-decoration: none; text-align: center; position: relative; transition: all 0.5s ease-in-out; }
.mainMenu a::before { content: ""; height: 3px; width: 0; position: absolute; left: 0; right: 0; margin: auto; bottom: 8px; background-color: #fff; transition: width 0.3s ease-in-out; }
.mainMenu a:hover { color: #fff; }
.mainMenu a:hover::before { width: 80%; }
.navBtn { display: none; }

/* ========== 4. 迷你菜单（首页宫格） ========== */
.minMenu { display: flex; flex-wrap: wrap; gap: 1rem; width: 100%; max-width: 1200px; margin: 0 auto 2vh; text-align: center; }
.minMenu a { flex: 1 1 0; display: block; text-decoration: none; font-size: 16px; background: linear-gradient(95deg, #f5ede4, #faf6f0); border-radius: 0.75rem; padding: 1.5rem 0.5rem; box-shadow: 0 10px 16px rgba(120, 90, 60, 0.08); text-align: center; font-weight: 500; color: #4a3728; border: 1px solid #e8ddd0; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; box-sizing: border-box; }
.minMenu a:hover { background: linear-gradient(0deg, #f5ede4, #ffffff); border-color: #c4a88a; box-shadow: 0 8px 28px rgba(120, 90, 60, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.8); transform: translateY(-3px); }
.minMenu a span { display: inline-block; margin: 10px; font-size: 35px; color: #fff; border-radius: 45px; height: 55px; width: 55px; background: linear-gradient(45deg, #648bff, #fbaa58 100%); }
.minMenu a:nth-child(1) span { background: linear-gradient(45deg, #ed0000, #feffcf); }
.minMenu a:nth-child(2) span { background: linear-gradient(45deg, #142ff3, #3abfff); }
.minMenu a:nth-child(3) span { background: linear-gradient(45deg, #04751c, #b6d700); }
.minMenu a:nth-child(4) span { background: linear-gradient(45deg, #003df1, #7840ff); }
.minMenu a i { display: block; font-style: normal; }

/* 响应式：迷你菜单 */
@media screen and (max-width: 767px) {
.minMenu { gap: 0.6rem; }
.minMenu a { flex: 0 0 calc((100% - 0.6rem * 3) / 4); max-width: calc((100% - 0.6rem * 3) / 4); padding: 0.9rem 0.1rem; border-radius: 0.5rem; }
.minMenu a .emoji { font-size: 1.6rem; }
.minMenu a .label { font-size: 0.75rem; }
}
@media screen and (max-width: 480px) {
.minMenu { gap: 0.4rem; }
.minMenu a { flex: 0 0 calc((100% - 0.4rem * 3) / 4); max-width: calc((100% - 0.4rem * 3) / 4); padding: 0.6rem 0.1rem; border-radius: 0.4rem; }
.minMenu a .emoji { font-size: 1.4rem; }
.minMenu a .label { font-size: 0.65rem; }
}

/* ========== 5. 搜索区域 ========== */
.searchForm { padding: 10vh 0 4vh; max-width: 1280px; }
.search-container form { background-color: #bdaf95; padding: 15px; border-radius: 8px; box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1); max-width: 920px; margin: 0 auto; }
.search-container .input-group { display: flex; border-radius: 6px; overflow: hidden; }
.search-container input[type="text"], .search-container select, .search-container button { border: none; outline: none; padding: 10px; }
.search-container input[type="text"] { flex: 3; }
.search-container select { flex: 1.2; background-color: #f2e0c9; }
.search-container button { flex: 1; background-color: #8b5e3b; color: #fff; transition: background 0.3s; }
.search-container button:hover { background-color: #6d4428; }
.search-container .input-group .title-input { flex: 6; }
.search-container .input-group .ziti-select { flex: 1.5; }
.search-container .input-group .author-input { flex: 1.5; }
.search-container .input-group .search-btn { flex: 1; }
.lastSearch a { display: inline-block; margin-right: 10px; padding: 2px 5px; }
.chgSt { cursor: pointer; color: #600; }
.wb { margin-top: 20px; }

/* ========== 6. 大师/书法家列表 ========== */
.masterMenu { margin-left: 5px; }
.masterMenu span { display: inline-block; padding: 5px 15px; border: 1px solid #d3d3d3; border-radius: 5px 5px 0 0; border-bottom: none; background: linear-gradient(5deg, #e7e7e7, #ffffff); margin-right: 10px; }
.masterMenu span.active { color: #a70609; }
.masterList { line-height: 45px; background-color: #fff; border-radius: 5px 5px 0 0; }
.masterList p:nth-child(even) { background-color: #fff6ec; }
.masterList span { margin-right: 10px; width: 45px; height: 45px; text-align: center; display: inline-block; background-color: #960; color: #fff; }
.masterList a { margin-right: 10px; line-height: 25px; padding: 2px 8px; display: inline-block; border: 1px solid #bebdbd; margin-bottom: 5px; border-radius: 5px; text-decoration: none; }
.masterList a:hover { color: #f00; background-color: #eed7a8; }
.masterShufa > div { margin-bottom: 10px; }
.master { overflow: auto; }
.master_avatar img { padding: 5px; width: 300px; max-width: 100%; }
.master_avatar p { font-size: 12px; color: #999; text-align: center; }
.master_meta p { border-bottom: 1px dotted #666; }
.master_meta p:last-child { color: #999; }
.master_info { padding: 20px 0 0; }
.index_master a { border: 1px solid #e8ddd0; display: block; padding: 5px; border-radius: 5px; }
.index_master .avatar { width: 100%; aspect-ratio: 3 / 4; overflow: hidden; }
.index_master img { width: 100%; }
.index_master p { line-height: 2; text-align: center; font-family: "华文楷体","STKaiti","KaiTi","楷体",serif; }

/* ========== 7. 面包屑 ========== */
.breadcrumb { background-color: #f1f1f1; height: 54px; padding: 0 15px; display: flex; align-items: center; gap: 10px; color: #8b7765; font-size: 0.95rem; border-bottom: 1px solid #e8dfd4; }
.breadcrumb a { color: #6d5947; text-decoration: none; transition: 0.2s; }
.breadcrumb a:hover { color: #b38b6b; }
.breadcrumb i { font-size: 0.8rem; color: #b38b6b; margin-right: 5px; }
.breadcrumb span { color: #cbbba8; }
.breadcrumb strong { font-weight: 400; color: #2f2419; }

/* ========== 8. 文章卡片 ========== */
article { background: #fff; padding: 1.2rem 1.8rem; border: 1px solid #efebe6; border-radius: 16px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04); transition: 0.25s; margin-bottom: 10px; }
article:hover { transform: translateY(-2px); border-color: #d6c9b8; box-shadow: 0 8px 28px rgba(120, 80, 50, 0.08); }
article h4 { font-family: "华文楷体","STKaiti","KaiTi","楷体",serif; font-size: 1.35rem; font-weight: 400; color: #2f2419; letter-spacing: 0.5px; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 10px; }
article h4 i, .meta i { color: #b38b6b; }
.new { font-size: 0.55rem; font-weight: 600; color: #fcf3e5; background: #b38b6b; padding: 0.05rem 0.8rem; border-radius: 40px; letter-spacing: 1px; }
article > p:first-of-type { font-size: 0.92rem; line-height: 1.6; color: #5a4a3a; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; align-items: center; gap: 12px; margin-top: 1rem; }
.meta span { white-space: nowrap; background: #f3ede6; border-radius: 40px; padding: 0.05rem 1rem; font-size: 0.75rem; color: #7a6450; }
.meta span:nth-child(2) { font-size: 0.7rem; }
.meta span:nth-child(3) { font-size: 0.6rem; color: #a58d78; background: none; border: 1px solid #dacfc0; padding: 0.05rem 0.6rem; letter-spacing: 0.5px; }

@media (max-width: 640px) {
article { padding: 1.2rem; }
.meta { justify-content: flex-start; flex-wrap: wrap; padding-top: 0.6rem; border-top: 1px solid #f0e9e0; }
article h4 { font-size: 1.2rem; }
}

/* ========== 9. 书法展示框 ========== */
.calligraphy-box { margin: 0 auto; position: relative; max-width: 920px; padding: 35px 40px; background: #faf7ee; border: 2px solid #d8b77a; color: #5a2618; font-size: 14px; box-sizing: border-box; }
.calligraphy-box::before { content: ""; position: absolute; inset: 10px; border: 1px solid #d8b77a; pointer-events: none; }
.calligraphy-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#d8b77a,#d8b77a) left 0 top 0 / 18px 2px no-repeat, linear-gradient(#d8b77a,#d8b77a) left 0 top 0 / 2px 18px no-repeat, linear-gradient(#d8b77a,#d8b77a) right 0 top 0 / 18px 2px no-repeat, linear-gradient(#d8b77a,#d8b77a) right 0 top 0 / 2px 18px no-repeat, linear-gradient(#d8b77a,#d8b77a) left 0 bottom 0 / 18px 2px no-repeat, linear-gradient(#d8b77a,#d8b77a) left 0 bottom 0 / 2px 18px no-repeat, linear-gradient(#d8b77a,#d8b77a) right 0 bottom 0 / 18px 2px no-repeat, linear-gradient(#d8b77a,#d8b77a) right 0 bottom 0 / 2px 18px no-repeat; }
.tagline { font-size: 15px; color: #7a6a5a; letter-spacing: 2px; margin-bottom: 18px; font-weight: 300; }

/* ========== 10. 简繁切换 ========== */
.zh-switch { width: 110px; height: 38px; background: #cbb28b; border-radius: 22px; position: relative; cursor: pointer; user-select: none; border: 1px solid #a88b60; margin-bottom: 30px; transition: 0.3s; }
.zh-switch span { position: absolute; width: 48px; height: 32px; top: 2px; left: 3px; background: #fffaf0; border-radius: 20px; line-height: 32px; text-align: center; font-size: 13px; color: #5b4636; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); transition: 0.35s; }
.zh-switch.active { background: #59412b; }
.zh-switch.active span { left: 57px; color: #59412b; }
.zh-switch::before { content: "简"; position: absolute; left: 15px; top: 7px; font-size: 13px; color: #fff; }
.zh-switch::after { content: "繁"; position: absolute; right: 15px; top: 7px; font-size: 13px; color: #fff; }

/* ========== 11. 字体选择按钮 ========== */
.font-select { display: flex; gap: 8px; flex-wrap: wrap; }
.font-btn { border: 1px solid #ddd; background: #f8f8f8; padding: 6px 16px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: 0.2s; }
.font-btn:hover { border-color: #8b0000; color: #8b0000; }
.font-btn.active { background: #8b0000; border-color: #8b0000; color: #fff; }

/* ========== 12. 作品展示 ========== */
.works a { background: linear-gradient(352deg, #f5edda, #fffdf8); transition: all 0.5s ease-in-out; display: block; border-radius: 5px; border: 1px solid #e8ddd0; }
.works a:hover { background: linear-gradient(152deg, #f5edda, #fffdf8); }
.cover { height: 360px; background: linear-gradient(90deg, #efe6d8, #e6dcc9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); transition: all 0.3s ease-in-out; position: relative; border-radius: 8px; border: 1px solid #efefef; }
.cover:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); border-color: #afa393; }
.title { position: absolute; right: 60px; top: 20px; bottom: 20px; writing-mode: vertical-rl; text-orientation: upright; font-size: 38px; color: #111; letter-spacing: 6px; font-family: "Zhi Mang Xing", serif; background: #b98c5d; }
.author { position: absolute; right: 30px; top: 30px; writing-mode: vertical-rl; text-orientation: upright; font-size: 14px; color: rgba(0, 0, 0, 0.6); }
.seal { position: absolute; right: 20px; bottom: 60px; width: 60px; height: 60px; background: #b91c1c; color: #fff8f0; font-size: 22px; display: flex; align-items: center; justify-content: center; opacity: 0.5; transform: rotate(-6deg); border-radius: 6px; font-family: "Noto Serif SC", serif; letter-spacing: 2px; }

/* ========== 13. 分页 ========== */
.pagination { --bs-pagination-color: #795548; --bs-pagination-bg: var(--bs-body-bg); --bs-pagination-border-width: var(--bs-border-width); --bs-pagination-border-color: var(--bs-border-color); --bs-pagination-border-radius: var(--bs-border-radius); --bs-pagination-hover-color: #666; --bs-pagination-hover-bg: var(--bs-tertiary-bg); --bs-pagination-hover-border-color: var(--bs-border-color); --bs-pagination-focus-color: #ffc107; --bs-pagination-focus-bg: var(--bs-secondary-bg); --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(181, 146, 53, 0.35); --bs-pagination-active-color: #751440; --bs-pagination-active-bg: #cfc091; --bs-pagination-active-border-color: #b5925f; --bs-pagination-disabled-color: var(--bs-secondary-color); --bs-pagination-disabled-bg: var(--bs-secondary-bg); --bs-pagination-disabled-border-color: var(--bs-border-color); display: flex; padding-left: 0; list-style: none; }

/* ========== 14. 文章详情 ========== */
.articleShow img { max-width: 100%; }

/* ========== 15. 登录弹窗 ========== */
.login_div { position: fixed; inset: 0; z-index: 2020; margin: auto; display: none; background-color: rgba(0, 0, 0, 0.4); }
.login_div > div { padding: 30px; width: 320px; background-color: rgba(255, 255, 255, 0.9); margin: 0 auto; border-radius: 5px; position: relative; top: 30vh; }
.login_div > div > span { width: 25px; height: 25px; position: absolute; right: 5px; top: 0; z-index: 2021; font-size: 22px; cursor: pointer; }

/* ========== 16. 页脚 ========== */
.footer { padding: 50px 0 30px; background-color: #000; text-align: center; font-family: "KaiTi", serif; color: #4e3c31; position: relative; box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1); }
.footer::before { content: ""; position: absolute; top: 0; left: 50%; height: 10px; background: linear-gradient(to right, #d6ad70, #f5f1e3); opacity: 0.3; transform: translateX(-50%); }
.footer a { color: #4e3c31; text-decoration: none; font-family: "SimHei", sans-serif; font-weight: bold; margin: 0 15px; padding: 5px 10px; border-radius: 5px; transition: all 0.3s ease; }
.footer a:hover { background-color: #d6ad70; color: #fff; transform: translateY(-2px); }
.footer p { margin: 5px 0; }
.footer .social-icons { margin-top: 20px; }
.footer .social-icons a { font-size: 20px; margin: 0 10px; }
.footer .social-icons a:hover { color: #d6ad70; }

/* ========== 17. 杂项工具类 ========== */
.desk_page { display: inline-block; width: 500px !important; }
.adminAside { /* 预留 */ }

/* ========== 18. 旧版响应式兼容 ========== */
@media all and (max-width: 980px) {
.minMenu a { display: block; text-decoration: none; font-size: 3.5vw; margin-bottom: 20px; }
.minMenu span { margin: 10px; font-size: 9vw; display: block; color: #fff; border-radius: 8vw; height: 13vw; width: 13vw; }
}