/* 安徽美术网 · anhui2 · 宣纸墨韵 */
/* 静态资源统一走 http://www.caanets.com/statics/anhui2/ */

* { margin: 0; padding: 0; }
body {
  background: #f6f4ee;
  color: #2b2824;
  font: 14px/1.7 "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #a32b25; }
img { border: 0; display: block; max-width: 100%; }
ul, ol { list-style: none; }
i, em { font-style: normal; }
.wrap { width: 1200px; max-width: 94%; margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.topbar { background: #2a2723; color: #c6c0b4; font-size: 12px; height: 34px; line-height: 34px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #d7d1c5; }
.topbar a:hover { color: #fff; }
.topbar-right i { margin: 0 10px; color: #6e685e; }

/* ---------- 报头 ---------- */
.masthead { background: #fdfcf9; border-bottom: 1px solid #e3ded2; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-seal {
  width: 58px; height: 58px; background: #a32b25; color: #fff;
  font: 30px/58px "STKaiti", "KaiTi", "SimSun", serif; text-align: center;
  border-radius: 3px; box-shadow: inset 0 0 0 3px #a32b25, inset 0 0 0 4px #e8c9bf;
}
.brand-name strong { display: block; font: 700 30px/1.2 "STSong", "SimSun", serif; letter-spacing: 5px; color: #201e1b; }
.brand-name em { display: block; margin-top: 5px; font: 10px/1.2 Arial, sans-serif; letter-spacing: 3px; color: #9a9388; }
.masthead-slogan { font: 14px/1.5 "STKaiti", "KaiTi", serif; color: #8b8377; letter-spacing: 2px; }
.searchbox { display: flex; height: 34px; border: 1px solid #d8d2c5; background: #fff; }
.search-input { width: 190px; border: 0; padding: 0 10px; outline: none; color: #6b655c; font-size: 12px; background: transparent; }
.search-btn { width: 62px; border: 0; background: #a32b25; color: #fff; cursor: pointer; font-size: 13px; }
.search-btn:hover { background: #86211d; }

/* ---------- 主导航 ---------- */
.nav-wrap { background: #24221e; border-bottom: 3px solid #a32b25; }
.main-nav { display: flex; }
.main-nav li { position: relative; }
.main-nav li a { display: block; padding: 0 30px; height: 48px; line-height: 48px; color: #ded8cd; font-size: 15px; letter-spacing: 1px; }
.main-nav li a:hover { color: #fff; background: #34312b; }
.main-nav li.on a { color: #fff; background: #a32b25; }

/* ---------- 首页 · 头条与幻灯同行（幻灯 1/3，头条 2/3） ---------- */
.home-wrap { padding-top: 20px; }
.top-grid { display: flex; gap: 18px; align-items: stretch; }
.top-grid .slide-section { flex: 1 1 0; min-width: 0; display: flex; }
.top-grid .toutiao { flex: 2 1 0; min-width: 0; }
.toutiao { background: #fff; border: 1px solid #e4dfd4; min-height: 362px; }
.tt-topbar { display: flex; align-items: baseline; gap: 10px; padding: 8px 16px; background: #a32b25; color: #fff; }
.tt-topbar strong { font: 700 20px/1.3 "STSong", "SimSun", serif; letter-spacing: 3px; }
.tt-topbar span { font: 9px/1 Arial, sans-serif; letter-spacing: 2px; color: #f0cdc6; }
.tt-body { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; align-content: start; padding: 14px 18px 16px; }
.tt-entry { padding: 7px 0; border-bottom: 1px dotted #e7e2d8; font-size: 13px; line-height: 1.5; }
.tt-entry a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-entry a:before { content: "·"; color: #a32b25; margin-right: 6px; }
.tt-entry:first-child { grid-column: 1 / -1; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px solid #e7e1d5; }
.tt-entry:first-child a { white-space: normal; font: 900 30px/1.4 "SimHei", "Microsoft YaHei", sans-serif; }
.tt-entry:first-child a:before { content: ""; margin-right: 0; }
.tt-entry:first-child a:hover { color: #a32b25; }

/* ---------- 首页 · 幻灯 ---------- */
.slide-section { display: flex; }
.slider { position: relative; flex: 1; height: 360px; overflow: hidden; background: #e8e3d9; }
.slider-stage, .slide { position: relative; height: 100%; }
.slider-stage li.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slider-stage li.slide.active { opacity: 1; z-index: 2; }
.slide > a { display: block; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-noimg { display: flex; align-items: center; justify-content: center; background: linear-gradient(120deg, #4a453d, #797166); height: 100%; }
.slide-noimg span { color: #fff; font: 700 34px/1.5 "STSong", "SimSun", serif; padding: 0 12%; text-align: center; }
.slide-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 24px 22px 18px; background: linear-gradient(transparent, rgba(20,18,16,.78)); color: #fff; }
.slide-cap a { font: 700 18px/1.5 "STSong", "SimSun", serif; }
.slide-cap a:hover { color: #ffd9d3; }
.slider-arrow { position: absolute; z-index: 5; top: 50%; margin-top: -26px; width: 40px; height: 52px; background: rgba(20,18,16,.4); color: #fff; font: 38px/48px Arial, sans-serif; text-align: center; }
.slider-arrow:hover { background: #a32b25; color: #fff; }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; z-index: 5; right: 20px; bottom: 18px; display: flex; gap: 8px; }
.slider-dots a { display: block; width: 20px; height: 4px; background: rgba(255,255,255,.5); cursor: pointer; }
.slider-dots a.on { background: #a32b25; }

/* ---------- 首页 · 栏目图文区 ---------- */
.home-cols { margin-top: 30px; }
.cols-intro { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid #2b2824; padding-bottom: 8px; margin-bottom: 18px; }
.cols-intro h2 { font: 700 24px/1.3 "STSong", "SimSun", serif; }
.cols-intro span { font: 10px/1 Arial, sans-serif; letter-spacing: 2px; color: #a0998d; }
.cols-grid:after { content: ""; display: block; clear: both; }
.col-box { float: left; width: 32%; margin: 0 2% 20px 0; box-sizing: border-box; background: #fff; border: 1px solid #e4dfd4; padding: 14px 16px 8px; }
.col-box:nth-child(3n) { margin-right: 0; }
.col-hd { display: flex; align-items: baseline; border-bottom: 1px solid #eae5db; padding-bottom: 9px; margin-bottom: 10px; }
.col-hd h3 { font: 700 19px/1.3 "STSong", "SimSun", serif; position: relative; padding-left: 12px; }
.col-hd h3:before { content: ""; position: absolute; left: 0; top: 5px; width: 4px; height: 16px; background: #a32b25; }
.col-hd > span { margin-left: 10px; font: 9px/1 Arial, sans-serif; letter-spacing: 1px; color: #aaa399; }
.col-more { margin-left: auto; font-size: 12px; color: #8d867b; }
/* 首条：图片 + 标题 + 摘要 */
.col-entry:first-child { display: flex; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px dashed #e3ddd1; }
.cf-img { flex: 0 0 126px; height: 86px; overflow: hidden; }
.cf-img img { width: 100%; height: 100%; object-fit: cover; }
.cf-noimg { display: block; background: #f2efe8; border: 1px solid #e6e0d4; }
.cf-img:hover img { transform: scale(1.04); }
.cf-text { flex: 1; min-width: 0; }
.cf-text h4 { font: 700 15px/1.5 "STSong", "SimSun", serif; margin-bottom: 5px; }
.cf-text p { font-size: 12px; line-height: 1.65; color: #867f74; }
/* 其余：纯文字标题 */
.col-entry:not(:first-child) { display: block; padding: 7px 0; border-bottom: 1px dotted #ebe6dc; font-size: 13px; }
.col-entry:last-child { border-bottom: 0; }
.col-entry:not(:first-child) .cf-img,
.col-entry:not(:first-child) .cf-text p { display: none; }
.col-entry:not(:first-child) .cf-text h4 { font: 13px/1.5 "Microsoft YaHei", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-entry:not(:first-child) .cf-text h4 a:before { content: "·"; color: #a32b25; margin-right: 7px; }
/* 栏目内没有带图文章时：第一条也按纯文字标题显示，不占图文位 */
.col-bd.no-feature .col-entry:first-child { display: block; padding: 7px 0; margin-bottom: 0; border-bottom: 1px dotted #ebe6dc; font-size: 13px; }
.col-bd.no-feature .col-entry:first-child .cf-img,
.col-bd.no-feature .col-entry:first-child .cf-text p { display: none; }
.col-bd.no-feature .col-entry:first-child .cf-text h4 { font: 13px/1.5 "Microsoft YaHei", sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-bd.no-feature .col-entry:first-child .cf-text h4 a:before { content: "\25AA"; color: #a32b25; margin-right: 7px; }

/* ---------- 内页通用 ---------- */
.inner-wrap { padding-bottom: 40px; }
.breadcrumb { padding: 18px 0 16px; font-size: 12px; color: #8c857a; }
.breadcrumb i { margin: 0 8px; color: #c4bdb1; }
.breadcrumb a:hover { color: #a32b25; }
.channel-layout, .detail-layout { display: flex; gap: 26px; align-items: flex-start; }
.channel-main, .detail-main { flex: 1; min-width: 0; background: #fff; border: 1px solid #e4dfd4; padding: 22px 26px 30px; }
.channel-side, .detail-side { flex: 0 0 320px; }
.channel-hd { display: flex; align-items: baseline; gap: 14px; border-bottom: 3px solid #2b2824; padding-bottom: 10px; margin-bottom: 6px; }
.channel-hd h2 { font: 700 27px/1.3 "STSong", "SimSun", serif; }
.channel-en { font: 10px/1 Arial, sans-serif; letter-spacing: 2px; color: #aaa399; }

/* 栏目文章列表：有图出图，无图纯文字 */
.article-list { margin-top: 4px; }
.article-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed #e2ddd1; }
.ai-thumb { flex: 0 0 158px; height: 108px; overflow: hidden; }
.ai-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ai-thumb:hover img { transform: scale(1.04); }
.ai-body { flex: 1; min-width: 0; }
.ai-body h3 { font: 700 17px/1.5 "STSong", "SimSun", serif; margin-bottom: 6px; }
.ai-body p { font-size: 13px; line-height: 1.7; color: #7e776c; }
.ai-meta { margin-top: 7px; font-size: 11px; color: #aaa399; }
.pagination { padding: 24px 0 4px; text-align: center; }
.pagination a, .pagination span { display: inline-block; min-width: 30px; padding: 5px 10px; margin: 0 3px; border: 1px solid #e0dbcf; font-size: 13px; color: #5a544b; background: #fff; }
.pagination a:hover { background: #a32b25; color: #fff; border-color: #a32b25; }
.pagination .current, .pages .current { background: #a32b25; color: #fff; border-color: #a32b25; }

/* ---------- 侧边图文区 ---------- */
.side-box { background: #fff; border: 1px solid #e4dfd4; margin-bottom: 18px; }
.side-hd { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; background: #f3f0e8; border-bottom: 2px solid #a32b25; }
.side-hd h3 { font: 700 16px/1.3 "STSong", "SimSun", serif; }
.side-hd span { font: 9px/1 Arial, sans-serif; letter-spacing: 1px; color: #aaa399; }
.side-feature { padding: 14px; }
.sf-img { display: block; height: 142px; overflow: hidden; margin-bottom: 10px; }
.sf-img img { width: 100%; height: 100%; object-fit: cover; }
.sf-img:hover img { transform: scale(1.04); }
.sf-text h4 { font: 700 14px/1.55 "STSong", "SimSun", serif; margin-bottom: 5px; }
.sf-text p { font-size: 12px; line-height: 1.6; color: #8b8479; }
.side-item { padding: 8px 14px; border-top: 1px dotted #e7e2d8; font-size: 13px; line-height: 1.5; }
.side-item a:before { content: "·"; color: #a32b25; margin-right: 7px; }
.side-rank { padding: 10px 14px 14px; counter-reset: rank; }
.side-rank li { counter-increment: rank; position: relative; padding: 7px 0 7px 28px; border-bottom: 1px dotted #ebe6dc; font-size: 13px; line-height: 1.5; }
.side-rank li:before { content: counter(rank); position: absolute; left: 0; top: 8px; width: 18px; height: 18px; background: #d9d3c8; color: #fff; font: 11px/18px Arial, sans-serif; text-align: center; }
.side-rank li:nth-child(-n+3):before { background: #a32b25; }

/* ---------- 内容页 ---------- */
.article-detail h1 { font: 700 29px/1.5 "STSong", "SimSun", serif; text-align: center; padding: 6px 0 16px; }
.article-info { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 10px 0 16px; border-bottom: 1px solid #eae5db; font-size: 12px; color: #958e83; }
.article-info span { padding: 0 14px; border-right: 1px solid #ddd7cb; }
.article-info span:last-child { border-right: 0; }
.article-lead { margin: 20px 0; padding: 14px 18px; background: #f7f4ea; border-left: 3px solid #a32b25; color: #5f594f; font-size: 14px; line-height: 1.8; }
.article-content { padding: 16px 0 10px; font-size: 16px; line-height: 2; color: #35312c; }
.article-content p { margin-bottom: 20px; }
.article-content h2, .article-content h3 { font-family: "STSong", "SimSun", serif; margin: 26px 0 12px; }
.article-content img { max-width: 100%; height: auto; margin: 10px auto 20px; }
.article-content a { color: #a32b25; text-decoration: underline; }
.article-nav { margin-top: 28px; border-top: 1px solid #eae5db; padding-top: 16px; font-size: 13px; line-height: 2; }
.article-nav p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-nav a { color: #5a544b; }

/* ---------- 页脚 ---------- */
.site-footer { background: #24221e; color: #b7b1a5; margin-top: 10px; }
.footer-top { display: flex; gap: 60px; padding: 38px 0 32px; }
.footer-about { flex: 1.4; }
.footer-seal { float: left; width: 44px; height: 44px; margin-right: 12px; background: #a32b25; color: #fff; text-align: center; font: 23px/44px "STKaiti", "KaiTi", serif; }
.footer-about h3 { font: 700 19px/1.4 "STSong", "SimSun", serif; color: #fff; }
.footer-about p { clear: both; padding-top: 10px; font-size: 12px; line-height: 1.8; color: #958f83; }
.footer-col { flex: 1; }
.footer-col h4 { color: #fff; font: 700 14px/1.5 "STSong", "SimSun", serif; margin-bottom: 12px; }
.footer-col p { font-size: 12px; line-height: 2; color: #958f83; }
.footer-col p a { color: #b7b1a5; }
.footer-col p a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; }
.footer-bottom { border-top: 1px solid #3b3832; padding: 14px 0 18px; text-align: center; font-size: 11px; color: #7f796f; line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .masthead-slogan { display: none; }
  .col-box { width: 49%; margin-right: 2%; }
  .col-box:nth-child(3n) { margin-right: 2%; }
  .col-box:nth-child(2n) { margin-right: 0; }
  .channel-side, .detail-side { flex: 0 0 280px; }
  .main-nav li a { padding: 0 18px; }
}
@media (max-width: 760px) {
  .topbar-right { display: none; }
  .masthead-inner { flex-wrap: wrap; gap: 14px; }
  .searchbox { width: 100%; }
  .search-input { flex: 1; }
  .main-nav { overflow-x: auto; }
  .main-nav li a { padding: 0 16px; font-size: 14px; }
  .top-grid { flex-direction: column; }
  .top-grid .slide-section, .top-grid .toutiao { flex: none; width: 100%; }
  .top-grid .slider { height: 240px; }
  .tt-body { grid-template-columns: 1fr; }
  .tt-lead-title { font-size: 23px; }
  .slide-cap { padding: 18px; }
  .slide-cap a { font-size: 17px; }
  .col-box { float: none; width: 100%; margin-right: 0; }
  .channel-layout, .detail-layout { flex-direction: column; }
  .channel-side, .detail-side { flex: 1; width: 100%; }
  .ai-thumb { flex-basis: 110px; height: 78px; }
  .article-detail h1 { font-size: 23px; }
  .article-content { font-size: 15px; }
  .footer-top { flex-direction: column; gap: 22px; }
}

/* ---------- 兼容旧版模板 class（服务器模板未更新时仍可正常显示） ---------- */
/* 头条：首条大黑体通栏，其余两列、不显示日期 */
.tt-lead { grid-column: 1 / -1; padding: 0 0 12px; margin-bottom: 8px; border-bottom: 1px solid #e7e1d5; }
.tt-lead-img { display: none; }
.tt-lead-txt h2 { font: 900 30px/1.4 "SimHei", "Microsoft YaHei", sans-serif; }
.tt-lead-txt p { color: #777166; font-size: 13px; line-height: 1.7; margin-top: 6px; }
.tt-item span { display: none; }
.tt-item { display: block; padding: 7px 0; border-bottom: 1px dotted #e7e2d8; font-size: 13px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-item a:before { content: "·"; color: #a32b25; margin-right: 6px; }
/* 栏目：首条图片+标题+摘要，其余纯文字标题不带日期 */
.col-feature { display: flex; gap: 12px; padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px dashed #e3ddd1; }
.col-item { display: block; padding: 7px 0; border-bottom: 1px dotted #ebe6dc; font-size: 13px; }
.col-item:last-child { border-bottom: 0; }
.col-item a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-item a:before { content: "·"; color: #a32b25; margin-right: 7px; }
.col-item span { display: none; }
