/* ====== 中华文艺网 - 全局与结构样式 ====== */
/* 引入传统衬线字体营造文化氛围 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;700;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
/* 背景使用类似宣纸的浅米色，文字使用墨黑色 */
body { font-family: "Noto Serif SC", "宋体", serif; background: #fdfaf4; color: #2c2826; line-height: 1.8; }
a { text-decoration: none; color: #2c2826; transition: color 0.3s; }
/* 悬停颜色使用朱红色 */
a:hover { color: #8e2800; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }
.container { width: 1100px; margin: 0 auto; }

/* 顶部信息栏 */
.topbar { background: #efebe4; border-bottom: 1px solid #e0dbd1; color: #6e675e; font-size: 13px; height: 36px; line-height: 36px; font-family: "Microsoft YaHei", sans-serif; }
.topbar .container { display: flex; justify-content: space-between; }
.topbar-slogan { letter-spacing: 2px; }
.topbar-links a { color: #6e675e; margin-left: 20px; }
.topbar-links a:hover { color: #8e2800; }

/* 头部（Logo与古风装饰） */
.header { background: #fdfaf4; padding: 40px 0; position: relative; }
.header::after { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: double; border-bottom: 3px double #e0dbd1; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.logo a { font-size: 46px; font-weight: 900; color: #8e2800; letter-spacing: 12px; text-shadow: 2px 2px 4px rgba(142, 40, 0, 0.1); }
.logo span { font-size: 14px; color: #6e675e; letter-spacing: 8px; margin-top: 8px; font-family: "Microsoft YaHei", sans-serif; }
.header-side { width: 250px; font-size: 14px; color: #8c8277; text-align: center; border: 1px solid #e0dbd1; padding: 10px; background: #f8f4eb; }

/* 导航栏（中国风印章红与墨色结合） */
.nav-wrap { background: #2c2826; position: relative; z-index: 10; }
.nav { display: flex; justify-content: center; }
.nav li a { display: block; padding: 16px 32px; color: #efebe4; font-size: 18px; letter-spacing: 3px; position: relative; }
.nav li a:hover, .nav li.current a { background: #8e2800; color: #fff; }
.nav li.current a::after { content: "印"; position: absolute; top: 2px; right: 2px; font-size: 10px; color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.3); padding: 1px; border-radius: 2px; }

/* 搜索与快捷入口 */
.search-row { padding: 15px 0; border-bottom: 1px dashed #e0dbd1; font-family: "Microsoft YaHei", sans-serif; }
.search-row .container { display: flex; justify-content: space-between; align-items: center; }
.search-hot { color: #6e675e; font-size: 14px; }
.search-hot strong { color: #8e2800; margin-right: 15px; }
.search-hot a { margin-right: 15px; color: #6e675e; }
.search-hot a:hover { color: #8e2800; }
.search-box { display: flex; border: 1px solid #8c8277; background: #fff; }
.search-box input { width: 200px; padding: 0 15px; border: none; outline: none; height: 32px; font-family: "Microsoft YaHei", sans-serif; }
.search-box button { width: 70px; background: #8c8277; color: #fff; border: none; cursor: pointer; letter-spacing: 2px; }
.search-box button:hover { background: #8e2800; }

/* 主体通用布局 */
.main { margin-top: 35px; display: flex; gap: 30px; align-items: flex-start; margin-bottom: 60px; }
.content { width: 750px; }
.sidebar { width: 320px; flex-shrink: 0; }

/* 模块面板（带有留白和细线边框的传统画幅感） */
.panel { background: #fdfaf4; border: 1px solid #e0dbd1; padding: 25px; margin-bottom: 30px; position: relative; }
/* 边角传统回纹装饰（用简单的CSS边框模拟） */
.panel::before, .panel::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid #8e2800; }
.panel::before { top: 3px; left: 3px; border-right: none; border-bottom: none; }
.panel::after { bottom: 3px; right: 3px; border-left: none; border-top: none; }

.panel-head { padding-bottom: 15px; margin-bottom: 20px; border-bottom: 1px solid #8e2800; display: flex; justify-content: space-between; align-items: baseline; }
.panel-title { font-size: 24px; font-weight: bold; color: #2c2826; letter-spacing: 2px; }
.panel-more { font-size: 14px; color: #8c8277; font-family: "Microsoft YaHei", sans-serif; }
.panel-more:hover { color: #8e2800; }

/* 首页：大画幅画廊/焦点图 */
.hero { margin-bottom: 35px; border: 1px solid #e0dbd1; padding: 10px; background: #fff; }
.hero-inner { position: relative; overflow: hidden; }
.hero-inner img { width: 100%; height: 380px; object-fit: cover; transition: transform 2s ease; filter: contrast(0.95) sepia(1.05); /* 微微做旧感 */ }
.hero-inner:hover img { transform: scale(1.05); }
.hero-mask { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(44, 40, 38, 0.9)); color: #efebe4; padding: 40px 30px 20px; text-align: center; }
.hero-mask h2 { font-size: 26px; font-weight: normal; letter-spacing: 2px; margin-bottom: 10px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); }

/* 图文列表 (雅致版排版) */
.art-list li { display: flex; gap: 25px; padding: 25px 0; border-bottom: 1px dashed #e0dbd1; }
.art-list li:last-child { border-bottom: none; padding-bottom: 0; }
.art-img { width: 220px; height: 140px; flex-shrink: 0; overflow: hidden; border: 1px solid #e0dbd1; padding: 4px; background: #fff; }
.art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; filter: grayscale(20%); }
.art-img:hover img { transform: scale(1.08) grayscale(0%); }
.art-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.art-info h3 { font-size: 22px; font-weight: bold; margin-bottom: 12px; line-height: 1.4; }
.art-info p { font-size: 15px; color: #6e675e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.8; text-indent: 2em; }
.art-meta { display: flex; gap: 20px; font-size: 13px; color: #8c8277; font-family: "Microsoft YaHei", sans-serif; }

/* 纯文字列表 (竖线分隔风格) */
.text-list li { padding: 12px 0; font-size: 16px; border-bottom: 1px dotted #e0dbd1; display: flex; align-items: center; }
.text-list li:last-child { border-bottom: none; }
.text-list li::before { content: "✦"; color: #8c8277; font-size: 10px; margin-right: 12px; }
.text-list a { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 1px; }

/* 侧边栏：印记风格分类 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.tag-cloud a { display: inline-block; padding: 6px 15px; border: 1px solid #8e2800; color: #8e2800; font-size: 14px; letter-spacing: 2px; }
.tag-cloud a:hover { background: #8e2800; color: #fdfaf4; }

/* 侧边栏：热榜 (书法数字) */
.rank-list li { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px dashed #e0dbd1; }
.rank-list li:last-child { border-bottom: none; padding-bottom: 0; }
.rank-num { width: 28px; height: 28px; border: 1px solid #8c8277; border-radius: 50%; color: #8c8277; text-align: center; line-height: 26px; font-size: 14px; font-family: "Noto Serif SC", serif; margin-right: 15px; flex-shrink: 0; }
.rank-list li:nth-child(1) .rank-num { border-color: #8e2800; color: #8e2800; font-weight: bold; }
.rank-list li:nth-child(2) .rank-num { border-color: #a84b25; color: #a84b25; font-weight: bold; }
.rank-list li:nth-child(3) .rank-num { border-color: #c0784a; color: #c0784a; font-weight: bold; }
.rank-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; letter-spacing: 1px; }

/* 列表页专属 */
.breadcrumb { font-size: 14px; color: #8c8277; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #e0dbd1; }
.breadcrumb a { color: #2c2826; font-weight: bold; }
.breadcrumb a:hover { color: #8e2800; }
.dede_pages { margin: 40px 0; text-align: center; font-family: "Microsoft YaHei", sans-serif; }
.dede_pages ul { display: inline-flex; gap: 10px; }
.dede_pages a, .dede_pages span { display: inline-block; padding: 8px 16px; border: 1px solid #e0dbd1; background: #fff; color: #6e675e; }
.dede_pages .thisclass, .dede_pages a:hover { background: #8e2800; color: #fff; border-color: #8e2800; }

/* 内容页专属 */
.article-box { padding: 40px; background: #fff; border: 1px solid #e0dbd1; box-shadow: 0 0 20px rgba(0,0,0,0.02); }
.article-header { text-align: center; border-bottom: 3px double #e0dbd1; padding-bottom: 30px; margin-bottom: 40px; }
.article-header h1 { font-size: 34px; color: #2c2826; line-height: 1.5; margin-bottom: 20px; font-weight: 900; letter-spacing: 2px; }
.article-meta { display: flex; justify-content: center; gap: 30px; color: #8c8277; font-size: 14px; font-family: "Microsoft YaHei", sans-serif; }
.article-lead { background: #f8f4eb; border: 1px solid #e0dbd1; padding: 25px 30px; color: #5a524a; font-size: 16px; margin-bottom: 40px; font-style: italic; position: relative; }
.article-lead::before { content: "“"; font-size: 60px; color: #e0dbd1; position: absolute; top: 0px; left: 10px; font-family: Arial, sans-serif; line-height: 1; }
.article-content { font-size: 18px; line-height: 2.2; color: #2c2826; letter-spacing: 1px; }
.article-content p { margin-bottom: 30px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto; margin: 40px auto; border: 1px solid #e0dbd1; padding: 10px; background: #fff; filter: sepia(0.2); }
.article-content h2, .article-content h3 { font-size: 24px; color: #8e2800; margin: 50px 0 25px; text-align: center; position: relative; }
.article-content h2::before, .article-content h2::after { content: "〰"; margin: 0 15px; color: #e0dbd1; font-weight: normal; }
.article-prenext { margin-top: 50px; padding-top: 25px; border-top: 1px solid #e0dbd1; font-size: 15px; line-height: 2.5; font-family: "Microsoft YaHei", sans-serif; }
.article-prenext a { color: #8e2800; }

/* 底部 (水墨丹青意境) */
.footer { background: #2c2826; color: #8c8277; padding: 60px 0 40px; margin-top: 40px; position: relative; font-family: "Microsoft YaHei", sans-serif; }
.footer::before { content: ""; position: absolute; top: -10px; left: 0; width: 100%; height: 10px; background: #8e2800; }
.footer-top { display: flex; justify-content: space-between; border-bottom: 1px solid #3c3835; padding-bottom: 40px; margin-bottom: 25px; }
.footer-brand h2 { color: #efebe4; font-size: 32px; margin-bottom: 15px; font-family: "Noto Serif SC", serif; letter-spacing: 6px; }
.footer-brand p { font-size: 14px; max-width: 450px; line-height: 2; }
.footer-nav { display: flex; gap: 90px; }
.footer-nav dt { color: #efebe4; font-size: 16px; font-weight: bold; margin-bottom: 20px; letter-spacing: 2px; }
.footer-nav dd { margin-bottom: 10px; font-size: 14px; }
.footer-nav a { color: #8c8277; }
.footer-nav a:hover { color: #efebe4; }
.footer-bottom { text-align: center; font-size: 13px; color: #6e675e; letter-spacing: 1px; }
