/* gxln - 招投标领域绿色低碳公共服务平台
   配色：青绿主色 #0A7C6E / 深页脚 #0D3D38 / 浅底 #f3f8f6
*/
:root {
  --c-primary: #0A7C6E;
  --c-primary-dark: #086358;
  --c-primary-soft: #e6f4f1;
  --c-accent: #b8860b;
  --c-footer: #0D3D38;
  --c-text: #2c3338;
  --c-muted: #7a858c;
  --c-line: #e2ebe8;
  --c-bg-soft: #f3f8f6;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Microsoft YaHei", "PingFang SC", sans-serif; color: var(--c-text); background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
body > *:not(.site-footer) { flex-shrink: 0; }
.site-footer { margin-top: auto; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; border: 0; display: block; }
.wrap { width: 1250px; margin: 0 auto; position: relative; }
.clearfix::after { content: ""; display: block; clear: both; }

/* header */
.site-header { height: 96px; background: #fff; position: relative; z-index: 20; border-bottom: 1px solid var(--c-line); }
.site-header .wrap { height: 96px; }
.site-logo { position: absolute; left: 0; top: 0px; width: 90px; z-index: 5; }
.site-logo img { width: 168px; height: auto; }
.site-nav { position: absolute; right: 0; top: 0; height: 96px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; height: 96px; }
.site-nav li { width: 150px; text-align: center; position: relative; }
.site-nav li > a { display: block; line-height: 96px; font-size: 16px; font-weight: 600; color: var(--c-text); position: relative; transition: color .25s; }
.site-nav li > a::after { content: ""; position: absolute; left: 50%; bottom: 18px; width: 0; height: 3px; background: var(--c-primary); border-radius: 2px; transform: translateX(-50%); transition: width .25s; }
.site-nav li > a:hover,
.site-nav li.active > a { color: var(--c-primary); background: none; }
.site-nav li > a:hover::after,
.site-nav li.active > a::after { width: 28px; }
.site-nav .sub { display: none; position: absolute; left: 50%; top: 96px; width: 160px; margin-left: -80px; background: #fff; box-shadow: 0 8px 24px rgba(13,61,56,.12); border-top: 3px solid var(--c-primary); z-index: 30; }
.site-nav li:hover .sub { display: block; }
.site-nav .sub a { display: block; padding: 14px 18px; font-size: 13px; color: var(--c-text); line-height: 1.4; text-align: left; }
.site-nav .sub a:hover { background: var(--c-primary-soft); color: var(--c-primary); }

/* banner */
.banner { position: relative; height: 520px; overflow: hidden; background: none; }
.banner.page-banner-img { height: 400px; background: none; }
.banner.page-banner-img .banner-item img,
.banner.page-banner-img > img,
.banner.page-banner-img > a img { width: 100%; height: 400px; object-fit: cover; }
.banner-track { height: 100%; position: relative; }
.banner-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.banner-item.active { opacity: 1; z-index: 1; }
.banner-item img { width: 100%; height: 520px; object-fit: cover; display: block; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; z-index: 2; }
.banner-dots span { display: inline-block; width: 10px; height: 10px; margin: 0 5px; background: #fff; opacity: .45; cursor: pointer; border-radius: 50%; transition: .25s; }
.banner-dots span.active { opacity: 1; background: var(--c-primary); width: 28px; border-radius: 5px; }

/* 内页banner叠加标题 */
.banner-overlay { position: absolute; left: 12.5%; top: 50%; transform: translateY(-50%); z-index: 3; color: #fff; }
.banner-overlay h1 { margin: 0; font-size: 40px; font-weight: 700; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.banner-overlay .banner-line { width: 48px; height: 4px; background: var(--c-accent); margin: 14px 0; border-radius: 2px; }
.banner-overlay p { margin: 0; font-size: 15px; letter-spacing: 2px; color: rgba(255,255,255,.9); text-transform: uppercase; }

/* section */
.section { padding: 56px 0 40px; }
.section.section-alt { background: var(--c-bg-soft); }
.section-title { text-align: left; margin-bottom: 32px; padding-left: 16px; border-left: 4px solid var(--c-primary); }
.section-title h2 { margin: 0; font-size: 30px; color: var(--c-primary); font-weight: 700; letter-spacing: 1px; }
.section-title p { margin: 6px 0 0; font-size: 14px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 2px; }
.section-title.center { text-align: center; border-left: 0; padding-left: 0; }
.section-title.center h2::after { content: ""; display: block; width: 40px; height: 3px; background: var(--c-accent); margin: 12px auto 0; border-radius: 2px; }

/* about：文左图右 */
.about-box { display: flex; gap: 48px; align-items: center; flex-direction: row-reverse; }
.about-img { width: 560px; flex-shrink: 0; position: relative; }
.about-img::before { content: ""; position: absolute; left: -14px; top: 14px; right: 14px; bottom: -14px; border: 2px solid var(--c-primary); border-radius: 8px; opacity: .35; z-index: 0; }
.about-img img { width: 560px; height: 360px; object-fit: cover; border-radius: 8px; box-shadow: 0 12px 32px rgba(13,61,56,.12); position: relative; z-index: 1; }
.about-text { flex: 1; padding-top: 8px; font-size: 16px; line-height: 2; color: var(--c-text); text-indent: 2em; }
.btn-outline { display: inline-block; margin-top: 24px; padding: 11px 40px; border: 1px solid var(--c-primary); border-radius: 4px; color: var(--c-primary); font-size: 15px; transition: .3s; text-indent: 0; background: transparent; }
.btn-outline:hover { background: var(--c-primary); color: #fff; }
.btn-solid { display: inline-block; margin-top: 24px; padding: 11px 40px; border: 0; border-radius: 4px; color: #fff; font-size: 15px; background: var(--c-primary); transition: .3s; text-indent: 0; }
.btn-solid:hover { background: var(--c-primary-dark); color: #fff; }

/* services：2x2 */
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-item { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: none; border: 1px solid var(--c-line); transition: border-color .3s, box-shadow .3s, transform .3s; display: flex; flex-direction: row; align-items: stretch; }
.svc-item:hover { transform: translateY(-3px); border-color: var(--c-primary); box-shadow: 0 10px 28px rgba(10,124,110,.12); }
.svc-item img { width: 220px; height: 160px; object-fit: cover; flex-shrink: 0; transition: transform .4s; }
.svc-item:hover img { transform: scale(1.04); }
.svc-item .svc-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.svc-item .title { font-size: 18px; font-weight: 700; color: var(--c-text); text-align: left; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--c-primary-soft); }
.svc-item .dec { font-size: 13px; line-height: 1.75; color: #5a656b; white-space: pre-line; }
.svc-item .more { display: none; }

/* ad */
.ad-banner { margin-top: 20px; margin-bottom: 20px; text-align: center; }
.ad-banner img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* scenes：底部文字叠图 */
.scene-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.scene-card { background: transparent; text-align: left; position: relative; border-radius: 8px; overflow: hidden; }
.scene-card img { width: 100%; height: 280px; object-fit: cover; transition: transform .4s; }
.scene-card:hover img { transform: scale(1.06); }
.scene-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 20px; background: linear-gradient(transparent, rgba(13,61,56,.88)); color: #fff; }
.scene-card .info h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.scene-card .info p { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.85); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scene-card:nth-child(even) { display: block; }
.scene-card:nth-child(even) .info { order: unset; }
.scene-card:nth-child(even) img { order: unset; }

/* news：横向卡片 2 列 */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 0; }
.news-item { width: auto; margin: 0; display: flex; gap: 18px; padding: 18px; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; transition: border-color .3s, box-shadow .3s; }
.news-item:hover { border-color: var(--c-primary); box-shadow: 0 8px 20px rgba(10,124,110,.1); }
.news-item .news-img { width: 180px; height: 120px; overflow: hidden; flex-shrink: 0; border-radius: 4px; order: -1; }
.news-item .news-img img { width: 100%; height: 120px; object-fit: cover; }
.news-item .news-meta { flex: 1; min-width: 0; }
.news-item .time { color: var(--c-primary); font-size: 13px; margin-bottom: 8px; padding-bottom: 0; border-bottom: 0; font-weight: 600; }
.news-item .title { font-size: 16px; color: var(--c-text); height: auto; max-height: 44px; line-height: 22px; overflow: hidden; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-item:hover .title { color: var(--c-primary); }
.news-item .content { font-size: 13px; color: var(--c-muted); height: auto; max-height: 40px; line-height: 20px; overflow: hidden; margin-bottom: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.more-center { text-align: center; margin: 28px 0 20px; }

/* news list 2-column cards */
.news-list-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.news-card { background: #fff; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; transition: box-shadow .3s, border-color .3s; display: block; }
.news-card:hover { box-shadow: 0 8px 24px rgba(10,124,110,.12); border-color: var(--c-primary); }
.news-card-img { height: 220px; overflow: hidden; }
.news-card-img img { width: 100%; height: 220px; object-fit: cover; }
.news-card-body { padding: 20px 24px 24px; }
.news-card-date { color: var(--c-primary); font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.news-card-title { margin: 0 0 12px; font-size: 18px; color: var(--c-text); line-height: 1.5; }
.news-card:hover .news-card-title { color: var(--c-primary); }
.news-card-summary { margin: 0; font-size: 14px; line-height: 1.8; color: #666; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* service page 4-column cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-card { background: #fff; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.svc-card:hover { box-shadow: 0 8px 24px rgba(10,124,110,.12); border-color: var(--c-primary); }
.svc-card-img { height: 240px; overflow: hidden; }
.svc-card-img img { width: 100%; height: 240px; object-fit: cover; }
.svc-card-body { padding: 20px; }
.svc-card-body h3 { margin: 0 0 12px; font-size: 16px; color: var(--c-text); text-align: left; }
.svc-card-body p { margin: 0; font-size: 13px; line-height: 1.8; color: #666; text-align: left; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* carbon page */
.carbon-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.carbon-left { display: flex; flex-direction: column; gap: 0; }
.carbon-left > img { width: 100%; display: block; }
.carbon-arrow-down { width: 40px !important; margin: 0 auto; }
.carbon-right { display: flex; flex-direction: column; gap: 30px; }
.carbon-right > img { width: 100%; display: block; border-radius: 6px; }

/* 新闻列表静态banner */
.news-banner { position: relative; height: 400px; overflow: hidden; background: none; }
.news-banner > img,
.news-banner .banner-item img { width: 100%; height: 400px; object-fit: cover; }
.news-banner .banner-track { height: 400px; }
.news-banner .banner-overlay { position: absolute; left: 12.5%; top: 50%; transform: translateY(-50%); z-index: 3; }

/* query page */
.query-banner { position: relative; height: 400px; overflow: hidden; background: none; }
.query-banner > img { width: 100%; height: 400px; object-fit: cover; display: block; }
.query-banner .banner-overlay { position: absolute; left: 12.5%; top: 50%; transform: translateY(-50%); z-index: 3; }
.query-card { background: #fff; border-radius: 8px; padding: 40px 60px; max-width: 900px; margin: 0 auto; position: relative; box-shadow: 0 4px 24px rgba(13,61,56,.08); border: 1px solid var(--c-line); }
.query-card-top { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(to right, var(--c-primary), #1aa891); border-radius: 8px 8px 0 0; }
.query-card h2 { text-align: center; margin: 0 0 12px; font-size: 24px; color: var(--c-text); }
.query-sub { text-align: center; color: var(--c-muted); font-size: 14px; margin: 0 0 28px; }
.query-input { width: 100%; padding: 16px 20px; border: 1px solid #ddd; border-radius: 6px; font-size: 15px; box-sizing: border-box; margin-bottom: 20px; outline: none; }
.query-input:focus { border-color: var(--c-primary); }
.query-btn { width: 100%; padding: 16px; background: var(--c-primary); color: #fff; border: none; border-radius: 6px; font-size: 16px; cursor: pointer; transition: background .25s; }
.query-btn:hover { background: var(--c-primary-dark); opacity: 1; }
.query-result { margin-top: 24px; padding: 16px; background: var(--c-bg-soft); border-radius: 6px; font-size: 14px; color: var(--c-text); }

/* query result modal */
.query-modal-modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.query-modal { background: #fff; border-radius: 8px; width: calc(100% - 64px); max-width: 1200px; max-height: calc(100% - 64px); overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.2); }
.query-modal-header { background: var(--c-primary); color: #fff; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 18px; font-weight: 600; }
.query-modal-close { color: #fff; font-size: 24px; text-decoration: none; line-height: 1; }
.query-modal-body { padding: 24px; }
.query-modal-count { color: #666; font-size: 14px; margin: 0 0 16px; }
.query-modal-count strong { color: var(--c-primary); }
.query-table { width: 100%; border-collapse: collapse; }
.query-table th { background: var(--c-primary-soft); text-align: left; padding: 12px 16px; font-size: 14px; color: var(--c-text); font-weight: 600; }
.query-table td { padding: 14px 16px; font-size: 14px; color: var(--c-text); border-bottom: 1px solid #eee; }
.detail-btn { display: inline-block; background: var(--c-primary); color: #fff; border: none; padding: 6px 16px; border-radius: 4px; font-size: 13px; cursor: pointer; text-decoration: none; }
.detail-btn:hover { color: #fff; background: var(--c-primary-dark); }
.detail-empty { color: #999; font-size: 13px; }

/* credit search page */
.credit-hero { width: 1194px; height: 380px; margin: 0 auto; position: relative; overflow: hidden; background: url("../img/banner21.jpg") center / 100% 100% no-repeat; border-radius: 0 0 8px 8px; }
.credit-hero .hero-content { position: relative; z-index: 1; height: 380px; }
.credit-hero .hero-title,
.credit-hero .hero-subtitle { margin: 0; height: 0; overflow: hidden; }
.credit-hero .search-box { position: absolute; left: 34.413%; top: 53.113%; width: 31.365%; height: 9.53%; display: flex; align-items: stretch; }
.credit-hero .search-input { flex: 1; width: auto; height: 100%; margin: 0; padding: 0 8px 0 46px; border: 0; border-radius: 14px 0 0 14px; outline: none; background: #fff; font-size: 12px; color: #333; }
.credit-hero .search-input::placeholder { color: #b0b8b4; }
.credit-hero .search-btn { flex: none; width: 19.84%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; }
.credit-table { width: 100%; margin: 0; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; }
.credit-table-header { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); padding: 16px 0; background: var(--c-primary-soft); border-bottom: 2px solid var(--c-primary); }
.credit-table-header span { font-size: 15px; color: var(--c-primary-dark); font-weight: 700; text-align: center; }
.credit-row { display: grid; grid-template-columns: repeat(7, 1fr); padding: 14px 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); font-size: 14px; }
.credit-row:hover { background: var(--c-bg-soft); }
.credit-row span { text-align: center; }
.credit-row a { color: var(--c-primary); }
.credit-empty { padding: 32px 0; text-align: center; color: var(--c-muted); font-size: 14px; }

/* 分页 */
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }
.pagination-info { color: var(--c-muted); font-size: 14px; }
.pagination-pages { display: flex; border: 1px solid var(--c-line); border-radius: 6px; overflow: hidden; background: #fff; }
.pagination-pages a,
.pagination-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px; padding: 0 12px; border-right: 1px solid var(--c-line); color: var(--c-text); font-size: 14px; background: #fff; }
.pagination-pages a:last-child,
.pagination-pages span:last-child { border-right: 0; }
.pagination-pages a:hover { background: var(--c-primary-soft); color: var(--c-primary); }
.pagination-pages a.active { background: var(--c-primary); color: #fff; }
.pagination-pages .disabled { color: #9ca3af; background: #fff; }

/* footer */
.site-footer { background: var(--c-footer); color: #fff; padding: 36px 0 24px; margin-top: auto; flex-shrink: 0; border-top: 4px solid var(--c-primary); }
.site-footer .contact,
.site-footer .slogan { text-align: center; font-size: 15px; margin-bottom: 12px; opacity: .95; }
.site-footer .flink { text-align: center; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.2); margin-bottom: 16px; font-size: 0; }
.site-footer .flink a { display: inline-block; color: #fff; font-size: 15px; padding: 0 12px; opacity: .9; }
.site-footer .flink a:hover { opacity: 1; color: #a8e6dc; }
.site-footer .flink span { color: rgba(255,255,255,.35); font-size: 15px; }
.site-footer .copy { text-align: center; font-size: 13px; color: rgba(255,255,255,.7); }
.site-footer .copy a { color: #fff; }

/* inner page */
.page-banner { display: none; }
.page-banner h1 { margin: 0; font-size: 36px; font-weight: 700; }
.page-main { width: 1000px; margin: 0 auto; background: #fff; min-height: 360px; }
.page-main-inner { width: 100%; max-width: 1000px; padding: 36px 40px; border: 1px solid var(--c-line); border-radius: 8px; box-shadow: 0 4px 20px rgba(13,61,56,.06); }
.page-main .page-body { font-size: 16px; line-height: 2; color: var(--c-text); text-indent: 2em; }
.about-text .page-body { text-indent: 2em; }
.about-text { padding-top: 0; }
.query-box { max-width: 720px; margin: 0 auto; padding: 30px; border: 1px solid var(--c-line); border-radius: 6px; }
.query-box .row { display: flex; gap: 12px; margin-bottom: 16px; }
.query-box select,
.query-box input { height: 42px; border: 1px solid #ddd; padding: 0 12px; font-size: 15px; }
.query-box input { flex: 1; }
.query-box select { width: 140px; }
.query-box button { height: 42px; padding: 0 28px; background: var(--c-primary); color: #fff; border: 0; cursor: pointer; font-size: 15px; border-radius: 4px; }
.query-result { margin-top: 24px; padding: 16px; background: var(--c-bg-soft); color: #666; }

/* 新闻列表页 */
.news-list-page { background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 28px; }
.news-list-page .item { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--c-line); transition: background .2s; }
.news-list-page .item:last-child { border-bottom: 0; }
.news-list-page .item:hover { background: var(--c-bg-soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; border-radius: 6px; }
.news-list-page .item img { width: 220px; height: 140px; object-fit: cover; flex-shrink: 0; border-radius: 6px; }
.news-list-page .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.news-list-page .meta .date { color: var(--c-primary); font-size: 13px; margin-bottom: 8px; font-weight: 600; }
.news-list-page .meta h3 { margin: 0 0 10px; font-size: 18px; color: var(--c-text); line-height: 1.45; }
.news-list-page .item:hover h3 { color: var(--c-primary); }
.news-list-page .meta p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 新闻详情 */
.article-panel { width: 1000px; max-width: 100%; margin: 0 auto; padding: 36px 48px 48px; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; box-shadow: 0 4px 20px rgba(13,61,56,.06); box-sizing: border-box; }
.article-crumb { font-size: 13px; color: var(--c-muted); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.article-crumb a { color: var(--c-muted); }
.article-crumb a:hover { color: var(--c-primary); }
.article-crumb span { margin: 0 8px; color: #c5ceca; }
.article-crumb em { font-style: normal; color: var(--c-primary); }
.article-detail h1 { font-size: 28px; line-height: 1.5; margin: 0 0 14px; color: var(--c-text); padding-left: 14px; border-left: 4px solid var(--c-primary); }
.article-detail .date { color: var(--c-muted); margin-bottom: 28px; font-size: 14px; padding-left: 18px; }
.article-cover { margin: 0 0 28px; border-radius: 8px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; margin: 0; display: block; }
.article-detail .body { font-size: 16px; line-height: 2; color: var(--c-text); word-break: break-word; }
.article-detail .body img { max-width: 100%; height: auto; margin: 12px auto; border-radius: 4px; display: block; }
.article-detail .body p { margin: 0 0 1em; }
.article-detail .article-down { margin-top: 32px; padding: 16px 20px; font-size: 14px; background: var(--c-primary-soft); border-radius: 6px; border-left: 3px solid var(--c-primary); }
.article-detail .article-down a { color: var(--c-primary); font-weight: 600; }
.article-back { margin-top: 36px; text-align: center; }

/* carbon */
.carbon-layout { background: #fff; padding: 28px; border: 1px solid var(--c-line); border-radius: 8px; }
.carbon-right > img { box-shadow: 0 4px 16px rgba(13,61,56,.08); }
