/* 人民政协网可信空间数据治理GEO —— 版式仿人民政协网：红色导航、头条大标题、焦点图 + 要闻列表、三栏板块、居中灰色页脚。 */
:root {
  --red: #e3241a;
  --red-dark: #c8161d;
  --red-text: #d41e1e;
  --red-soft: #fdf1f0;
  --title: #131313;
  --text: #333;
  --muted: #888;
  --line: #e1e1e1;
  --soft: #f6f6f6;
  --w: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 14px/1.6 "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-text); }
img { max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
.w { width: var(--w); margin: 0 auto; }
[hidden] { display: none !important; }

/* 来自人民政协网的访客提示条 */
.from-bar { background: var(--red-soft); border-bottom: 1px solid #f5d5d2; font-size: 13px; color: var(--red-dark); }
.from-bar .w { display: flex; align-items: center; gap: 16px; height: 34px; }
.from-back { font-weight: bold; color: var(--red-dark); }
.from-close { margin-left: auto; border: 0; background: none; color: var(--red-dark); font-size: 18px; cursor: pointer; line-height: 1; }

/* 顶栏 */
.topbar { background: var(--soft); border-bottom: 1px solid #ececec; font-size: 12px; color: #666; }
.topbar .w { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.topbar-left span + span { margin-left: 16px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar .pill { background: var(--red); color: #fff; padding: 0 10px; line-height: 22px; border-radius: 2px; }
.topbar .pill:hover { background: var(--red-dark); color: #fff; }
.topbar .pill-line { background: #fff; color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.topbar .pill-line:hover { background: var(--red-soft); color: var(--red-dark); }

/* 刊头 */
.masthead .w { display: flex; align-items: center; gap: 20px; height: 96px; }
.logo { display: block; flex: none; }
.logo img { display: block; height: 56px; width: auto; }
.logo-text { font-size: 26px; font-weight: bold; color: var(--red-text); }
.brand-text { flex: none; display: flex; flex-direction: column; gap: 2px; padding-left: 20px; border-left: 1px solid #e3e3e3; }
.logo-sub { font-size: 26px; line-height: 1.25; font-weight: bold; color: var(--red-text); letter-spacing: 1px; }
.slogan { font-family: "STKaiti", "KaiTi", "楷体", serif; font-size: 15px; color: #b3241b; letter-spacing: 3px; }
.search { margin-left: auto; display: flex; align-items: center; width: 240px; height: 34px; border: 1px solid #d9d9d9; border-radius: 17px; overflow: hidden; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 0 0 14px; font: inherit; background: transparent; }
.search button { border: 0; background: none; width: 40px; height: 100%; color: #555; cursor: pointer; }
.search:focus-within { border-color: var(--red); }
.btn-rmzxw {
  display: inline-block; flex: none; background: var(--red); color: #fff; height: 36px; line-height: 36px;
  padding: 0 18px; border-radius: 3px; font-size: 15px; font-weight: bold; border: 0; cursor: pointer; white-space: nowrap;
}
.btn-rmzxw:hover { background: var(--red-dark); color: #fff; }
.btn-rmzxw.big, .btn-geo.big { height: 44px; line-height: 42px; padding: 0 28px; font-size: 17px; }
/* GEO 平台按钮：与人民政协网按钮并列，用描边区分主次 */
.btn-geo {
  display: inline-block; flex: none; background: #fff; color: var(--red); height: 36px; line-height: 34px;
  padding: 0 16px; border: 1px solid var(--red); border-radius: 3px; font-size: 15px; font-weight: bold; white-space: nowrap;
}
.btn-geo:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-ghost { display: inline-block; height: 36px; line-height: 34px; padding: 0 18px; border: 1px solid var(--red); color: var(--red); border-radius: 3px; }

/* 红色主导航 */
.mainnav { background: var(--red); }
.mainnav .w { display: flex; flex-wrap: wrap; padding: 5px 0; }
.mainnav a { color: #fbeeee; font-size: 16px; line-height: 38px; padding: 0 20px; }
.mainnav a:hover, .mainnav a.active { color: #fff; background: rgba(0, 0, 0, .14); }

/* 首页 */
.banner-top { margin-top: 16px; display: grid; gap: 12px; }
.banner, .banner img { display: block; width: 100%; }
.banner img { object-fit: cover; }
.banner-top .banner img { max-height: 120px; }
.headline { text-align: center; padding: 30px 0 8px; }
.headline h2 { font-size: 32px; line-height: 1.35; font-weight: bold; color: var(--title); letter-spacing: 1px; }
.headline h2 a:hover { color: var(--red-text); }
.headline p { margin-top: 12px; color: #666; font-size: 14px; }

.focus { display: flex; gap: 24px; margin-top: 22px; }
.carousel { position: relative; flex: none; width: 690px; height: 400px; background: #111; overflow: hidden; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.carousel .slide.active { opacity: 1; z-index: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel .caption, .lead .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 120px 14px 16px; color: #fff; font-size: 17px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.carousel .nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 36px; height: 56px; border: 0;
  background: rgba(0, 0, 0, .35); color: #fff; font-size: 30px; cursor: pointer; line-height: 1;
}
.carousel .nav:hover { background: rgba(0, 0, 0, .6); }
.carousel .prev { left: 0; }
.carousel .next { right: 0; }
.carousel .dots { position: absolute; right: 14px; bottom: 18px; z-index: 2; display: flex; gap: 6px; }
.carousel .dot { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); cursor: pointer; }
.carousel .dot.active { width: 22px; background: var(--red); }
.intro-card {
  flex: none; width: 690px; min-height: 400px; padding: 56px 48px; color: #fff;
  background: linear-gradient(135deg, #c8161d 0%, #e3241a 55%, #f05a3a 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 22px;
}
.intro-card h2 { font-size: 32px; letter-spacing: 2px; }
.intro-card p { font-size: 16px; line-height: 1.9; opacity: .95; }
.intro-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-card .btn-rmzxw { background: #fff; color: var(--red-dark); }
.intro-card .btn-rmzxw:hover { background: #fff5f4; color: var(--red-dark); }
.intro-card .btn-geo { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.intro-card .btn-geo:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.latest { flex: 1; min-width: 0; }
.tabs-title { display: flex; gap: 8px; margin-bottom: 4px; }
.tabs-title .tab { padding: 0 16px; line-height: 32px; border-radius: 16px; background: #f2f2f2; font-size: 16px; }
.tabs-title .tab.active { background: var(--red); color: #fff; }

.news-list li { line-height: 36px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 12px; position: relative; }
.news-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 4px; height: 4px; background: #c9c9c9; }
.news-list.big li { line-height: 40px; }
.news-list.big li::before { top: 19px; }
.news-list li.strong { font-weight: bold; color: var(--title); }
.news-list.two li { display: flex; justify-content: space-between; gap: 16px; }
.news-list.two li a { overflow: hidden; text-overflow: ellipsis; }
.news-list.two time { flex: none; color: var(--muted); font-size: 13px; }

.banner-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.banner-row .banner img { height: 92px; }

.blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 20px; }
.block { margin-top: 16px; }
.bt { position: relative; display: flex; justify-content: space-between; align-items: center; height: 52px; border-top: 1px solid var(--line); margin-bottom: 6px; }
.bt h3 { position: relative; font-size: 20px; font-weight: normal; color: var(--title); padding-top: 2px; }
.bt h3::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 2px; background: var(--red); }
.bt .more { color: #999; font-size: 13px; }
.lead { position: relative; display: block; height: 200px; overflow: hidden; margin-bottom: 8px; background: #eee; }
.lead img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.lead:hover img { transform: scale(1.03); }
.lead .caption { padding: 30px 12px 10px; font-size: 15px; }
.block-cards { grid-column: 1 / -1; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { display: block; }
.card img, .card .noimg { display: block; width: 100%; height: 170px; object-fit: cover; background: #f3f3f3; }
.card .noimg { display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 18px; }
.card-title { display: block; margin-top: 10px; font-size: 15px; line-height: 1.6; height: 48px; overflow: hidden; }
.side-banners { display: grid; gap: 12px; }
.side-banners .banner img { height: 110px; }
.empty { color: #aaa; padding: 20px 0; }
.empty.big { padding: 60px 0; text-align: center; font-size: 15px; }

/* 栏目 / 正文 / 搜索 */
.crumb { padding: 18px 0 14px; color: var(--muted); font-size: 13px; }
.crumb span { margin: 0 6px; }
.crumb .cur { margin: 0; color: var(--red-text); }
.two-col { display: flex; gap: 40px; align-items: flex-start; }
.primary { flex: 1; min-width: 0; }
.aside { flex: none; width: 300px; }
.col-head { border-bottom: 2px solid var(--red); padding-bottom: 12px; margin-bottom: 4px; }
.col-head h1 { font-size: 26px; color: var(--title); }
.col-head p { margin-top: 6px; color: var(--muted); }
.article-list li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px dashed #e3e3e3; }
.article-list .thumb { flex: none; width: 210px; height: 136px; overflow: hidden; background: #f2f2f2; }
.article-list .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-list .info { flex: 1; min-width: 0; }
.article-list h2 { font-size: 19px; line-height: 1.5; font-weight: bold; color: var(--title); }
.article-list .tag { font-style: normal; font-size: 12px; font-weight: normal; color: #fff; background: var(--red); padding: 1px 6px; margin-right: 8px; vertical-align: 2px; border-radius: 2px; }
.article-list .summary { margin-top: 8px; color: #666; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list .meta { margin-top: 8px; color: #999; font-size: 13px; }
.article-list .meta span { margin-right: 14px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; }
.pager a, .pager span { min-width: 36px; height: 34px; line-height: 32px; padding: 0 10px; border: 1px solid #ddd; text-align: center; color: #555; }
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager .current { background: var(--red); border-color: var(--red); color: #fff; }
.pager .disabled { color: #ccc; }
.pager .gap { border: 0; }

.article h1 { font-size: 30px; line-height: 1.45; color: var(--title); font-weight: bold; }
.article .kicker { color: #666; font-size: 16px; margin-bottom: 8px; }
.article .meta { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid #e6e6e6; color: var(--muted); font-size: 13px; }
.article .meta .sep { margin: 0 10px; color: #ccc; }
.article .abstract { margin-top: 18px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--red); color: #555; line-height: 1.9; }
.content { padding-top: 18px; font-size: 17px; line-height: 2; color: #333; word-wrap: break-word; }
.content p { margin: 0 0 1em; text-indent: 2em; }
.content p[style*="center"], .content p:has(> img:only-child) { text-indent: 0; }
.content h2, .content h3, .content h4 { color: var(--title); margin: 1.2em 0 .6em; line-height: 1.5; }
.content h2 { font-size: 21px; }
.content h3 { font-size: 19px; }
.content img { display: block; max-width: 100%; height: auto; margin: 12px auto; }
.content blockquote { margin: 1em 0; padding: 8px 18px; border-left: 3px solid #ddd; color: #666; }
.content ul, .content ol { margin: 0 0 1em 2em; list-style: revert; padding: 0; }
.content table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 15px; line-height: 1.7; }
.content th, .content td { border: 1px solid #ddd; padding: 6px 10px; }
.content th { background: var(--soft); }
.content a { color: #1a5fb4; }
.content figcaption { text-align: center; color: var(--muted); font-size: 14px; }
.editor { text-align: right; color: var(--muted); font-size: 14px; margin-top: 16px; }
.keywords { margin-top: 10px; color: var(--muted); font-size: 13px; }
.keywords a { display: inline-block; margin-right: 8px; padding: 0 8px; background: var(--soft); border-radius: 2px; }
.article-rmzxw { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 8px; padding: 14px 18px; background: var(--red-soft); border: 1px solid #f5d5d2; color: var(--red-dark); }
.article-rmzxw .btns { display: flex; flex-wrap: wrap; gap: 10px; }
.related { margin-top: 28px; }
.preview-bar { margin-top: 12px; padding: 8px 14px; background: #fff7e6; border: 1px solid #ffd591; color: #ad6800; }

.side-rmzxw { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px 16px; border: 1px solid #f0c9c6; background: var(--red-soft); margin-bottom: 8px; }
.side-rmzxw img { height: 50px; width: auto; }
.side-rmzxw span { color: var(--red-dark); font-weight: bold; }
.side-geo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 12px; margin-bottom: 8px; color: #fff;
  background: linear-gradient(135deg, #c8161d 0%, #e3241a 60%, #f05a3a 100%); }
.side-geo strong { font-size: 18px; letter-spacing: 1px; }
.side-geo em { font-style: normal; font-size: 13px; opacity: .9; }
.side-geo span { margin-top: 6px; padding: 2px 14px; border: 1px solid rgba(255, 255, 255, .85); border-radius: 12px; font-size: 13px; }
.side-geo:hover { color: #fff; filter: brightness(1.05); }
.side-block .news-list li { font-size: 14px; }

/* 合作咨询 */
.contact-info { margin: 18px 0; line-height: 2; }
.form { margin-top: 20px; max-width: 640px; }
.form .row { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.form label { flex: none; width: 80px; line-height: 38px; text-align: right; color: #555; }
.form label em { color: var(--red); font-style: normal; margin-left: 2px; }
.form input, .form select, .form textarea { flex: 1; min-width: 0; height: 38px; border: 1px solid #d0d0d0; border-radius: 2px; padding: 0 10px; font: inherit; }
.form textarea { height: auto; padding: 8px 10px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--red); }
.form .consent label { width: auto; line-height: 1.6; text-align: left; margin-left: 94px; }
.form .consent input { flex: none; height: auto; margin-right: 6px; }
.form .row:last-child { padding-left: 94px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 16px 0; padding: 12px 16px; border-radius: 2px; }
.notice.ok { background: #f0f9eb; border: 1px solid #c2e7b0; color: #3a7d1c; }
.notice.err { background: var(--red-soft); border: 1px solid #f5c2bd; color: var(--red-dark); }

.notfound { text-align: center; padding: 90px 0 70px; }
.notfound h1 { font-size: 30px; color: var(--title); }
.notfound p { margin-top: 16px; color: var(--muted); }

/* 页脚 */
.footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 13px; color: #555; }
.friend-links { line-height: 2.1; }
.friend-links strong { color: var(--title); }
.friend-links a { margin-right: 16px; }
.footer-nav { margin-top: 18px; text-align: center; font-weight: bold; }
.footer-nav .sep { margin: 0 10px; color: #bbb; font-weight: normal; }
.footer-info { margin-top: 14px; text-align: center; line-height: 2; color: #666; }
.footer-info a { margin: 0 8px; }
.footer-info .gap { display: inline-block; width: 16px; }

/* 悬浮直达：人民政协网 + GEO 平台，两条竖排窄条，贴右缘，不压正文 */
.float-dock { position: fixed; right: 12px; bottom: 18%; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.float-rmzxw, .float-geo {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 44px; padding: 14px 0 12px;
  border-radius: 4px; text-align: center;
}
.float-rmzxw { background: var(--red); color: #fff; box-shadow: 0 4px 14px rgba(200, 22, 29, .35); }
.float-rmzxw:hover { background: var(--red-dark); color: #fff; }
.float-geo { background: #fff; color: var(--red); border: 1px solid var(--red); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.float-geo:hover { background: var(--red-soft); color: var(--red-dark); }
.float-name { writing-mode: vertical-rl; text-orientation: upright; font-size: 16px; font-weight: bold; letter-spacing: 3px; }
.float-go { writing-mode: vertical-rl; font-size: 12px; letter-spacing: 2px; padding-top: 8px; border-top: 1px solid currentColor; opacity: .9; }

/* 1340 以下给右侧悬浮条让出位置：两边各留 64px，悬浮条落在留白里，不压正文 */
@media (max-width: 1340px) {
  .w { width: auto; margin: 0 64px; }
  .float-dock { right: 10px; }
}
@media (max-width: 1080px) {
  .slogan { display: none; }
  .search { width: 180px; }
  .carousel, .intro-card { width: 58%; }
}
@media (max-width: 768px) {
  .w { margin: 0 16px; }
  body { font-size: 15px; }
  .topbar-left .topbar-date, .topbar-right a:not(.pill) { display: none; }
  .from-bar .w { gap: 10px; font-size: 12px; }
  .from-bar span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .from-back { flex: none; }
  .masthead .w { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 10px; }
  .logo img { height: 34px; }
  .brand-text { flex: 1 1 auto; padding-left: 10px; }
  .logo-sub { font-size: 16px; letter-spacing: 0; }
  .search { order: 3; flex: 1 1 100%; min-width: 0; width: auto; margin-left: 0; height: 34px; }
  /* 手机上两个跳转按钮都放到底部固定栏，刊头只留搜索 */
  .masthead .btn-rmzxw, .masthead .btn-geo { display: none; }
  .mainnav .w { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mainnav a { flex: none; padding: 0 14px; font-size: 15px; }
  .headline h2 { font-size: 22px; }
  .focus { flex-direction: column; }
  .carousel, .intro-card { width: 100%; }
  .carousel { height: 220px; }
  .carousel .caption { padding-right: 16px; font-size: 15px; }
  .carousel .dots { top: 10px; bottom: auto; }
  .intro-card { min-height: 0; padding: 32px 24px; }
  .intro-card h2 { font-size: 24px; }
  .banner-row, .blocks { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .card img, .card .noimg { height: 110px; }
  /* 纵向排列时必须拉伸：flex-start 会让正文列按「相关阅读」那种不换行的内容撑到比屏幕还宽 */
  .two-col { flex-direction: column; align-items: stretch; }
  .topbar .pill { white-space: nowrap; }
  .aside { width: 100%; }
  .article-list .thumb { width: 120px; height: 80px; }
  .article-list h2 { font-size: 17px; }
  .article h1 { font-size: 23px; }
  .content { font-size: 16px; }
  .article-rmzxw { flex-direction: column; align-items: flex-start; }
  .form .row { flex-direction: column; gap: 4px; }
  .form label { width: auto; text-align: left; line-height: 1.6; }
  .form .consent label { margin-left: 0; }
  .form .row:last-child { padding-left: 0; }
  .form input, .form select, .form textarea { width: 100%; }
  .float-dock { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; }
  .float-rmzxw, .float-geo { flex: 1; width: auto; flex-direction: row; justify-content: center; gap: 10px; border-radius: 0; padding: 11px 6px; border: 0; box-shadow: none; }
  .float-geo { box-shadow: inset 0 1px 0 var(--red); }
  .float-name, .float-go { writing-mode: horizontal-tb; letter-spacing: 1px; }
  .float-name { font-size: 15px; }
  .float-go { padding: 0 0 0 10px; border-top: 0; border-left: 1px solid currentColor; }
  .footer { padding-bottom: 72px; }
}
