@charset "utf-8";
/* 新闻网列表页 / 文章页（版式参照华南农业大学新闻网列表页） */

body.list { background: #f5f2eb; --page-inner: 1200px; }
body.detail { --page-inner: 1200px; }
/* 二级列表页：与详情页同款浅底插画背景，内容区居中白卡片 */
.sec-profile {
  padding: 180px 0 80px;
  background:
    linear-gradient(rgba(245,242,235,.25), rgba(245,242,235,.95)) center bottom / cover no-repeat fixed,
    #f5f2eb url(../images/bg/bg-news-data.png) center bottom / cover no-repeat fixed;
  min-height: calc(100vh - 220px);
}
.sec-profile .wp {
  width: var(--page-inner);
  max-width: calc(100% - 32px);
  margin: 0 auto;
  padding: 36px 40px 48px;
  background: #fff;
  border: 1px solid rgba(14,51,42,.05);
  border-radius: 4px;
  box-shadow: 0 4px 28px rgba(14,51,42,.07);
  box-sizing: border-box;
}

/* 栏目页 / 详情页：页头与栏目导航与下方内容同宽 1200px（首页仍用 1440px） */
body.list .wrapper.header .inner,
body.list .nav .inner,
body.detail .wrapper.header .inner,
body.detail .nav .inner {
  width: var(--page-inner);
  max-width: calc(100% - 32px);
}
body.list .header .inner .mod,
body.detail .header .inner .mod { padding: 12px 0 14px; }
body.list .header .head-left,
body.detail .header .head-left { width: auto; max-width: 380px; }
body.list .header .head-left img,
body.detail .header .head-left img { width: auto; height: 52px; max-width: 100%; }
body.list .searchbox,
body.detail .searchbox { width: 220px; height: 40px; }
body.list .wp-search .search-input input.search-title,
body.detail .wp-search .search-input input.search-title { height: 40px; line-height: 40px; font-size: 14px; }
body.list .wp-search .search-btn,
body.list .wp-search .search-btn input.search-submit,
body.detail .wp-search .search-btn,
body.detail .wp-search .search-btn input.search-submit { width: 40px; height: 40px; }
body.list .wp-search .search-btn input.search-submit,
body.detail .wp-search .search-btn input.search-submit { background-size: 34px 34px; }
body.list .wp-search .search-input,
body.detail .wp-search .search-input { margin-left: 16px; margin-right: 40px; }
body.list .nav .wp-menu .menu-item a.menu-link,
body.detail .nav .wp-menu .menu-item a.menu-link {
  padding: 14px 6px;
  font-size: 16px;
}
.profile-layout { display: flex; gap: 64px; align-items: flex-start; }
.profile-layout.no-side { display: block; }
.profile-side { width: 220px; flex-shrink: 0; position: sticky; top: 190px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(14,51,42,.1); padding: 4px 8px 8px 0; }
.profile-side .side-title { display: flex; align-items: center; gap: 4px; font-size: 18px; font-weight: 600; color: var(--green-dark); padding: 12px 20px; border-bottom: 1px solid #f3eee0; margin-bottom: 8px; }
.profile-side .side-title img { width: 32px; height: 32px; }
.profile-side a.side-title { border-left: 0; border-radius: 8px 8px 0 0; margin-bottom: 8px; padding-left: 20px; text-decoration: none; }
.profile-side a.side-title:hover { color: var(--green); background: #f4f8f4; }
.profile-side a.side-title.on { color: var(--green); background: #f4f8f4; border-left-color: transparent; }
.profile-side a { display: block; padding: 12px 20px 12px 34px; font-size: 15px; color: var(--text); border-left: 3px solid transparent; cursor: pointer; transition: .3s; border-radius: 0 8px 8px 0; margin-bottom: 4px; }
.profile-side a:hover { color: var(--green); background: #f4f8f4; }
.profile-side a.on { color: var(--green); border-left-color: var(--green); background: #f4f8f4; font-weight: 600; }
.profile-main { flex: 1; min-width: 0; }
.crumb { display: none; }
.profile-title { display: flex; align-items: center; margin-bottom: 8px; }
.profile-title h1 { font-size: 30px; font-weight: 700; color: var(--green-dark); letter-spacing: 2px; }
.search-result-meta { margin: 0 0 18px; font-size: 15px; color: #6A6A6A; line-height: 1.6; }
.search-result-meta em { color: var(--green); font-style: normal; font-weight: 600; margin: 0 4px; }
.search-empty { padding: 60px 0; text-align: center; font-size: 16px; color: #9a9585; }

/* ---------- 检索结果页 ---------- */
body.search-page .header .searchbox { visibility: hidden; }
.sr-hero { display: flex; justify-content: center; padding: 8px 0 28px; }
.sr-search { display: flex; align-items: stretch; width: 610px; max-width: 100%; height: 52px; background: #fff; border: 1px solid #D2D2D2; border-radius: 30px; overflow: hidden; }
.sr-search-input { flex: 1; min-width: 0; height: 52px; line-height: 52px; border: 0; outline: 0; padding: 0 24px; font-size: 16px; color: #333; background: transparent; font-family: 'Inter', "PingFang SC", "Microsoft YaHei", sans-serif; }
.sr-search-input::-webkit-input-placeholder { color: #9a9585; }
.sr-search-btn { flex: none; width: 52px; height: 52px; border: 0; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0%200%2048%2048'%3E%3Ccircle cx='24' cy='24' r='23' fill='%23358132'/%3E%3Ccircle cx='21' cy='21' r='7' fill='none' stroke='white' stroke-width='2.5'/%3E%3Cpath d='m26%2026%206%206' stroke='white' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 40px 40px; }
.sr-tabs { display: flex; align-items: center; height: 56px; margin: 0; border-bottom: 2px solid #f3eee0; }
.sr-tabs li { height: 56px; line-height: 56px; padding: 0 22px; font-size: 16px; color: #444; cursor: pointer; }
.sr-tabs li.on { color: var(--green); font-weight: 700; border-bottom: 3px solid var(--green); margin-bottom: -2px; }
.sr-meta { margin: 22px 0 8px; font-size: 15px; color: #6A6A6A; }
.sr-meta em { color: var(--green); font-style: normal; font-weight: 600; margin: 0 4px; }
.sr-body { min-height: 420px; }
.sr-item { display: flex; align-items: center; gap: 24px; padding: 22px 16px; margin: 0 -12px; border-bottom: 1px solid #eee; border-radius: 8px; cursor: pointer; transition: background-color .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
.sr-item:hover { background: rgba(0, 120, 72, .07); box-shadow: inset 3px 0 0 var(--green); }
.sr-item-img { flex: none; width: 180px; height: 102px; object-fit: cover; background: #e7efe8; }
.sr-item-img-ph { display: block; }
.sr-item-info { flex: 1; min-width: 0; }
.sr-item-title { font-size: 18px; line-height: 1.5; color: var(--ink); font-weight: 400; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .25s; }
.sr-item:hover .sr-item-title { color: var(--green); }
.sr-item-title em, .sr-item-sum em, .no-words { color: var(--green); font-style: normal; font-weight: 600; }
.sr-item-sum { margin-top: 8px; font-size: 14px; line-height: 1.7; color: #6A6A6A; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.4em; }
.sr-item-meta { margin-top: 12px; font-size: 13px; color: #9a9585; display: flex; gap: 16px; }
.sr-empty { padding: 80px 0; text-align: center; font-size: 16px; color: #9a9585; }
.sr-empty p { line-height: 1.8; }

@media screen and (max-width: 767px) {
  .sr-search { height: 44px; }
  .sr-search-input, .sr-search-btn { height: 44px; line-height: 44px; }
  .sr-search-btn { width: 44px; background-size: 34px 34px; }
  .sr-item { gap: 14px; padding: 16px 10px; margin: 0 -6px; }
  .sr-item-img { width: 120px; height: 68px; }
  .sr-item-title { font-size: 16px; }
  .sr-tabs li { padding: 0 14px; font-size: 15px; }
}
.profile-title .list-switch { margin-left: auto; display: inline-flex; gap: 8px; }
.profile-title .sw-btn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: #9a9585; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: .3s; }
.profile-title .sw-btn:hover { color: var(--green); border-color: var(--green); }
.profile-title .sw-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.col_news_list { width: 100%; }

.sub-panels { position: relative; }
.sub-panel { display: none; }
.sub-panel.on { display: block; }
.svc-panel { display: none; }
.svc-panel.on { display: block; }

/* 左图右文：封面 + 标题 + 日期 */
.list-cards { margin: 0; }
.list-cards li.news.card { border-bottom: 1px solid #eee; }
.list-cards li.news.card a.con { display: flex; align-items: center; gap: 20px; padding: 22px 16px; margin: 0 -12px; border-radius: 8px; transition: background-color .25s var(--ease, ease), box-shadow .25s var(--ease, ease); }
.list-cards li.news.card a.con:hover { background: rgba(0, 120, 72, .07); box-shadow: inset 3px 0 0 var(--green); }
.list-cards .m-pic { flex-shrink: 0; width: 140px; aspect-ratio: 16 / 9; overflow: hidden; background: #e7efe8; }
.list-cards .m-pic img,
.list-cards .m-pic video,
.list-cards .m-pic iframe { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); display: block; }
.list-cards li.news.card a.con:hover .m-pic img { transform: scale(1.06); }
.list-cards .m-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.list-cards .tit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; color: var(--ink); line-height: 1.6; font-weight: 400; transition: color .3s; }
.list-cards li.news.card a.con:hover .tit { color: var(--green); }
.list-cards .time { font-size: 14px; color: var(--muted); font-family: 'Inter'; }

.list-cards.mode-rows li.news.card a.con { gap: 16px; }
.list-cards.mode-rows .m-pic { display: none; }
.list-cards.mode-rows .m-body { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
.list-cards.mode-rows .tit { font-size: 18px; -webkit-line-clamp: 1; }
.list-cards.mode-rows .time { flex: none; }

/* 分页：第 x/y 页 + 页码 + 每页条数 + 合计 */
.pagination { margin-top: 48px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #9a9585; }
.pagination .pg-info { font-size: 14px; color: #9a9585; font-family: 'Inter', "PingFang SC", "Microsoft YaHei", sans-serif; margin-right: 8px; }
.pagination .pg-nums { display: inline-flex; align-items: center; gap: 8px; }
.pagination .pg, .pagination a.pg { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 4px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; color: #9a9585; transition: .3s; box-sizing: border-box; }
.pagination a.pg:hover { color: var(--green); }
.pagination .pg.on { background: var(--green); color: #fff; font-weight: 600; min-width: 32px; }
.pagination a.pg.prev, .pagination a.pg.next { min-width: auto; padding: 0 8px; }
.pagination a.pg[style*="pointer-events:none"] { cursor: default; }
.pagination .pg-dots { color: #9a9585; padding: 0 2px; }
.pagination .pg-size { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; font-size: 14px; color: #9a9585; }
.pagination .pg-size select { height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #666; font-size: 14px; font-family: 'Inter', "PingFang SC", "Microsoft YaHei", sans-serif; cursor: pointer; outline: 0; }
.pagination .pg-size select:hover,
.pagination .pg-size select:focus { border-color: var(--green); }
.pagination .pg-total { font-size: 14px; color: #9a9585; margin-left: 8px; }
.pagination .pg-total b { color: var(--green); font-family: 'Inter'; font-weight: 600; }

.textlist .news { display: flex; align-items: baseline; justify-content: space-between; padding: 26px 50px; background: #fff; border-radius: 8px; margin-bottom: 22px; transition: .4s; box-shadow: 0 3px 20px rgb(154 216 149 / 15%); }
.textlist .news:hover { box-shadow: 0 5px 30px rgb(154 216 149 / 40%); }
.textlist .news .news_title { flex: 1; font-size: 17px; color: #333; -webkit-line-clamp: 1; }
.textlist .news .news_meta { color: #327241; font-size: 14px; font-family: 'Inter'; font-weight: bold; flex: none; margin-left: 40px; }
.textlist .news:hover .news_title { color: #228756; }

.mrpost { background: #fff; border-radius: 10px; margin-bottom: 24px; padding: 36px 40px 20px; }
.mrpost .news_list { position: relative; }
.mrpost .tt { color: #333; font-size: 26px; font-family: 'syh'; font-weight: bold; margin-bottom: 28px; }
.mrpost .news { position: relative; padding-left: 29px; margin-bottom: 28px; }
.mrpost .news_meta { color: #327241; font-size: 14px; line-height: 1.25; margin-bottom: 8px; font-family: 'Inter'; }
.mrpost .news_title { font-size: 16px; line-height: 1.7; -webkit-line-clamp: 2; }
.mrpost .news::before { background: #EDC25D; position: absolute; content: ''; left: 0; width: 11px; height: 11px; border-radius: 50%; top: 5px; }

.svc-detail { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 40px; }
.svc-detail-head { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #f3eee0; }
.svc-icon-lg { width: 64px; height: 64px; border-radius: 50%; background: #f4f8f4; display: flex; align-items: center; justify-content: center; color: var(--green); }
.svc-detail-head h2 { font-size: 24px; font-weight: 700; color: var(--green-dark); }
.svc-detail-head p { font-size: 14px; color: var(--muted); }
.svc-content { font-size: 15px; line-height: 2; color: var(--text); }
.svc-content > p { margin-bottom: 20px; }
.svc-downloads { display: flex; flex-direction: column; gap: 12px; }
.dl-item { display: flex; align-items: center; gap: 14px; padding: 14px 20px; background: #f8f9f6; border: 1px solid var(--line); border-radius: 8px; transition: .3s var(--ease); }
.dl-item:hover { border-color: var(--green); background: #f4f8f4; transform: translateX(4px); }
.dl-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.dl-name { flex: 1; font-size: 15px; color: var(--ink); font-weight: 500; }
.dl-type { flex: none; font-size: 12px; color: var(--muted); padding: 3px 10px; background: #fff; border-radius: 999px; font-family: 'Inter'; }
.svc-video-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #0B2620; border-radius: 10px; overflow: hidden; }
.svc-video-thumb { width: 120px; height: 68px; border-radius: 6px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.svc-video-info { display: flex; flex-direction: column; gap: 6px; }
.svc-video-name { font-size: 15px; color: #fff; font-weight: 500; }
.svc-video-meta { font-size: 12px; color: rgba(255,255,255,.6); font-family: 'Inter'; }
.svc-steps { display: flex; flex-direction: column; gap: 18px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; font-family: 'Inter'; }
.step p { flex: 1; font-size: 15px; line-height: 1.8; color: var(--text); }
.svc-link-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; padding: 10px 28px; border: 1px solid var(--green); border-radius: 999px; font-size: 14px; color: var(--green); font-weight: 600; transition: .3s var(--ease); }
.svc-link-btn:hover { background: var(--green); color: #fff; }

.wp_paging { font-size: 12px; line-height: 34px; padding: 4px 0 72px; text-align: right; }
.wp_paging li { margin: 0; line-height: 20px; height: 20px; float: none; display: inline-block; }
.wp_paging li.pages_count { display: none; }
.wp_paging li span, .wp_paging li a { display: inline-block; float: left; margin-left: 10px; }
.wp_paging li a { height: 20px; line-height: 20px; padding: 0 9px; border: 1px solid #9E9E9E; color: #000; }
.wp_paging li a:hover { background: #40814F; color: #fff; border-color: #40814F; }
.wp_paging li span.pages { padding: 0 10px; color: #666; }

/* ---------- 新闻详情（浅底插画 + 居中白卡片，背景相对视口固定，与改版 news-detail 一致） ---------- */
body.detail { background: #f5f2eb; }
.news-detail {
  padding: 28px 0 80px;
  background:
    linear-gradient(rgba(245,242,235,.25), rgba(245,242,235,.95)) center bottom / cover no-repeat fixed,
    #f5f2eb url(../images/bg/bg-news-data.png) center bottom / cover no-repeat fixed;
  min-height: 60vh;
}
.news-detail .nd-crumb { display: none; }
.news-detail .wp {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 36px 60px 64px;
  background: #fff;
  border: 1px solid rgba(14,51,42,.05);
  border-radius: 4px;
  box-shadow: 0 4px 28px rgba(14,51,42,.07);
  box-sizing: border-box;
}
.nd-title { font-size: 28px; font-weight: 700; color: var(--green-dark); line-height: 1.5; letter-spacing: 1px; margin-bottom: 14px; text-align: left; }
.nd-time { font-size: 14px; color: var(--muted); letter-spacing: 1px; padding-bottom: 22px; margin-bottom: 28px; border-bottom: 1px solid #f0ece2; }
.nd-body { font-size: 16px; line-height: 2.1; color: #333; }
.nd-body p { margin: 0 0 22px; text-indent: 2em; }
.nd-body img { display: block; max-width: 86%; height: auto; margin: 28px auto 36px; }
.nd-body video, .nd-body iframe { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16/9; margin: 24px auto 32px; background: #151515; }
.nd-media { margin: 0 0 28px; }
.nd-media audio, .nd-media video, .nd-media iframe { width: 100%; max-width: 100%; display: block; background: #151515; }
.nd-media video, .nd-media iframe { aspect-ratio: 16/9; height: auto; max-height: 560px; min-height: 200px; }
.nd-gallery { margin: 0 0 28px; }
.nd-gallery img { max-width: 86%; height: auto; display: block; margin: 0 auto 12px; }
.nd-gallery p { text-align: center; color: #888; font-size: 14px; margin: 0 0 20px; text-indent: 0; }

@media screen and (max-width: 999px) {
  .sec-profile { padding: 150px 0 50px; }
  .sec-profile .wp { padding: 24px 20px 40px; }
  .profile-layout { flex-direction: column; gap: 32px; }
  .profile-side { width: 100%; position: static; }
  .news-detail { padding-top: 16px; padding-bottom: 48px; }
  .news-detail .wp { padding: 24px 20px 40px; }
  .nd-title { font-size: 22px; }
  .nd-body { font-size: 15px; }
  .list-cards .m-pic { width: 120px; }
}
@media screen and (max-width: 767px) {
  .profile-title h1 { font-size: 24px; letter-spacing: 1px; }
  .list-cards li.news.card a.con { gap: 14px; padding: 16px 10px; margin: 0 -6px; }
  .list-cards .m-pic { width: 108px; }
  .list-cards .tit { font-size: 16px; }
  .pagination { justify-content: flex-start; }
}
