/*
Theme Name: Gxqxtgdst
Theme URI: https://www.gxqxtgdst.com/
Author: 广西气象天观地视台信息中心
Author URI: https://www.gxqxtgdst.com/
Description: Gxqxtgdst 是为“广西气象天观地视台”打造的气象事业单位官网主题，采用“政务红头门户 + 新闻杂志”混合布局：红头标识、要闻轮播、通知公告、气象服务入口、数据展示、服务案例、新闻动态与联系方式模块。内置气象服务与服务案例自定义内容类型、面包屑导航、TDK（标题/描述/关键词）SEO 设置、移动端汉堡菜单、长者模式、加载动画与轮播，所有页面均使用英文目录（/about/、/services/、/cases/、/news/、/faq/、/contact/、/privacy-policy/）。
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gxqxtgdst
Tags: news, education, two-columns, right-sidebar, grid-layout, wide-blocks, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, threaded-comments, translation-ready, block-styles, editor-style, sticky-post

Gxqxtgdst WordPress Theme, (C) 2025 广西气象天观地视台
Gxqxtgdst is distributed under the terms of the GNU GPL.
*/

/* ==========================================================================
   1. 设计令牌 Design Tokens
   ========================================================================== */
:root {
	--gx-brand: #0b4f9c;        /* 品牌色：气象蓝 */
	--gx-brand-dark: #083a73;
	--gx-brand-light: #e8f1fb;
	--gx-red: #b8141b;          /* 辅助色：红头 */
	--gx-red-dark: #8f0d13;
	--gx-orange: #f29a1f;       /* 辅助色：预警橙 */
	--gx-green: #1f9d6b;
	--gx-text: #1f2937;         /* 中性色 */
	--gx-text-2: #4b5563;
	--gx-text-3: #8a94a6;
	--gx-line: #e5e8ee;
	--gx-bg: #f4f6f9;
	--gx-white: #ffffff;
	--gx-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", Arial, sans-serif;
	--gx-font-serif: "Songti SC", "SimSun", "Noto Serif SC", serif;
	--gx-fs: 15px;
	--gx-lh: 1.75;
	--gx-radius: 6px;
	--gx-radius-lg: 10px;
	--gx-shadow: 0 2px 10px rgba(15, 35, 70, .06);
	--gx-shadow-lg: 0 12px 30px rgba(15, 35, 70, .12);
	--gx-container: 1200px;
	--gx-gap: 24px;
	--gx-ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   2. 基础 Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--gx-font);
	font-size: var(--gx-fs);
	line-height: var(--gx-lh);
	color: var(--gx-text);
	background: var(--gx-bg);
	-webkit-font-smoothing: antialiased;
}
body.elder-mode { --gx-fs: 18px; }
body.elder-mode .menu > li > a { font-size: 19px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gx-brand); text-decoration: none; transition: color .2s var(--gx-ease); }
a:hover, a:focus { color: var(--gx-red); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.35; color: var(--gx-text); font-weight: 700; }
h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 19px; } h4 { font-size: 17px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
button, input, select, textarea { font: inherit; color: inherit; }
hr, .gx-divider { border: 0; height: 1px; background: var(--gx-line); margin: 24px 0; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
th, td { border: 1px solid var(--gx-line); padding: 10px 12px; text-align: left; }
th { background: var(--gx-brand-light); }
blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--gx-brand); background: var(--gx-brand-light); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: var(--gx-brand); display: block; font-size: 14px;
	height: auto; left: 8px; padding: 12px 20px; top: 8px; width: auto; z-index: 100000;
}
.container { width: 100%; max-width: var(--gx-container); margin: 0 auto; padding: 0 20px; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--gx-text-3); text-align: center; }
.sticky .entry-title::before { content: "置顶"; background: var(--gx-red); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.bypostauthor { }

/* ==========================================================================
   3. 加载动画 Loader
   ========================================================================== */
.gx-loader {
	position: fixed; inset: 0; z-index: 9999; background: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	transition: opacity .5s var(--gx-ease), visibility .5s;
	color: var(--gx-brand); font-size: 14px; letter-spacing: 2px;
}
.gx-loader.is-hidden { opacity: 0; visibility: hidden; }
.gx-loader__ring {
	width: 46px; height: 46px; border-radius: 50%;
	border: 3px solid var(--gx-brand-light); border-top-color: var(--gx-brand); border-right-color: var(--gx-red);
	animation: gx-spin .9s linear infinite;
}
@keyframes gx-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   4. 顶栏 / 红头 / 导航 Header
   ========================================================================== */
.topbar { background: #f0f2f5; border-bottom: 1px solid var(--gx-line); font-size: 13px; color: var(--gx-text-2); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar__left { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar__weather { color: var(--gx-brand); }
.topbar__right { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.topbar__right a, .topbar__right button {
	color: var(--gx-text-2); background: none; border: 0; cursor: pointer; padding: 0 10px; font-size: 13px; position: relative;
}
.topbar__right > * + *::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: #cfd5dd; }
.topbar__right a:hover, .topbar__right button:hover { color: var(--gx-red); }

.masthead {
	background:
		radial-gradient(circle at 85% 20%, rgba(255,255,255,.12), transparent 40%),
		linear-gradient(180deg, var(--gx-red) 0%, var(--gx-red-dark) 100%);
	color: #fff; position: relative; overflow: hidden;
}
.masthead::after {
	content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 220px;
	background: repeating-radial-gradient(circle at 100% 0, rgba(255,255,255,.08) 0 2px, transparent 2px 18px);
	pointer-events: none;
}
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { color: #fff; }
.brand .custom-logo { max-height: 72px; width: auto; }
.brand__emblem { width: 68px; height: 68px; flex: none; }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--gx-font-serif); font-size: 32px; font-weight: 700; letter-spacing: 4px; line-height: 1.2; color: #fff; margin: 0; }
.brand__en { font-size: 11.5px; letter-spacing: 1.2px; opacity: .85; text-transform: uppercase; margin-top: 4px; }
.masthead__search { width: 360px; max-width: 40%; }
.masthead__hot { margin: 6px 0 0; font-size: 12px; opacity: .85; }
.search-form { display: flex; background: #fff; border-radius: var(--gx-radius); overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.search-form label { flex: 1; display: flex; }
.search-field { flex: 1; border: 0; padding: 10px 14px; outline: none; color: var(--gx-text); width: 100%; background: transparent; }
.search-submit { border: 0; background: var(--gx-brand); color: #fff; padding: 0 18px; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background .2s; }
.search-submit:hover { background: var(--gx-brand-dark); }
.search-submit svg { width: 16px; height: 16px; }

.nav-toggle { display: none; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); color: #fff; width: 44px; height: 44px; border-radius: var(--gx-radius); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

.mainnav { background: var(--gx-brand); position: sticky; top: 0; z-index: 90; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.admin-bar .mainnav { top: 32px; }
.mainnav .menu { list-style: none; margin: 0; padding: 0; display: flex; }
.mainnav .menu > li { position: relative; flex: 1; text-align: center; }
.mainnav .menu > li > a {
	display: block; color: #fff; font-size: 16px; padding: 0 10px; line-height: 52px; letter-spacing: 1px;
	transition: background .2s var(--gx-ease);
}
.mainnav .menu > li > a:hover,
.mainnav .menu > li.current-menu-item > a,
.mainnav .menu > li.current_page_item > a,
.mainnav .menu > li.current-menu-ancestor > a { background: var(--gx-brand-dark); color: #fff; box-shadow: inset 0 -3px 0 var(--gx-orange); }
.mainnav .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; right: 0; min-width: 160px; background: #fff; box-shadow: var(--gx-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s var(--gx-ease); border-top: 3px solid var(--gx-red); z-index: 10; }
.mainnav li:hover > .sub-menu, .mainnav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.mainnav .sub-menu a { display: block; padding: 8px 16px; color: var(--gx-text); font-size: 14px; }
.mainnav .sub-menu a:hover { background: var(--gx-brand-light); color: var(--gx-brand); }

/* ==========================================================================
   5. 通用组件：按钮 / 卡片 / 标题 / 标签
   ========================================================================== */
.btn, .wp-block-button__link, input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 24px; border-radius: var(--gx-radius); border: 1px solid var(--gx-brand);
	background: var(--gx-brand); color: #fff; cursor: pointer; font-size: 15px; line-height: 1.4;
	transition: all .2s var(--gx-ease);
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--gx-brand-dark); border-color: var(--gx-brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--gx-shadow-lg); }
.btn--red { background: var(--gx-red); border-color: var(--gx-red); }
.btn--red:hover { background: var(--gx-red-dark); border-color: var(--gx-red-dark); }
.btn--ghost { background: transparent; color: var(--gx-brand); }
.btn--ghost:hover { background: var(--gx-brand); color: #fff; }
.btn--light { background: #fff; color: var(--gx-brand); border-color: #fff; }
.btn--light:hover { background: var(--gx-brand-light); color: var(--gx-brand-dark); border-color: var(--gx-brand-light); }
.is-style-gx-red .wp-block-button__link { background: var(--gx-red); border-color: var(--gx-red); }
.is-style-gx-notice { border-left-color: var(--gx-orange); background: #fff7ea; }

.section { padding: 36px 0; }
.section--white { background: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 2px solid var(--gx-line); margin-bottom: 20px; }
.section-head h2 { position: relative; margin: 0; padding: 0 0 10px; font-size: 21px; color: var(--gx-brand); display: flex; align-items: center; gap: 8px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--gx-red); }
.section-head h2 svg { width: 22px; height: 22px; color: var(--gx-red); }
.section-head .more { font-size: 13px; color: var(--gx-text-3); padding-bottom: 10px; }
.section-head .more:hover { color: var(--gx-red); }
.section-title-center { text-align: center; margin-bottom: 30px; }
.section-title-center h2 { font-size: 26px; color: var(--gx-brand); margin-bottom: 6px; }
.section-title-center p { color: var(--gx-text-3); margin: 0; letter-spacing: 1px; }
.section-title-center .bar { width: 48px; height: 3px; background: var(--gx-red); margin: 10px auto 0; border-radius: 2px; }

.card { background: #fff; border-radius: var(--gx-radius-lg); box-shadow: var(--gx-shadow); overflow: hidden; transition: transform .25s var(--gx-ease), box-shadow .25s var(--gx-ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--gx-shadow-lg); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--gx-brand-light); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--gx-ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; left: 12px; top: 12px; background: var(--gx-red); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; }
.card__body { padding: 16px 18px 20px; }
.card__title { font-size: 17px; margin: 0 0 8px; line-height: 1.5; }
.card__title a { color: var(--gx-text); }
.card__title a:hover { color: var(--gx-brand); }
.card__text { color: var(--gx-text-2); font-size: 14px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 13px; color: var(--gx-text-3); display: flex; justify-content: space-between; align-items: center; }
.card__more { font-size: 13px; }

.grid { display: grid; gap: var(--gx-gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   6. 首页：预警滚动 / 轮播 / 公告
   ========================================================================== */
.alert-bar { background: #fff; border-bottom: 1px solid var(--gx-line); }
.alert-bar__inner { display: flex; align-items: center; gap: 14px; height: 46px; overflow: hidden; }
.alert-bar__label { flex: none; background: var(--gx-orange); color: #fff; font-size: 13px; padding: 3px 12px; border-radius: 3px; display: flex; align-items: center; gap: 6px; }
.alert-bar__label svg { width: 15px; height: 15px; }
.alert-bar__track { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.alert-bar__list { display: inline-flex; gap: 48px; animation: gx-marquee 38s linear infinite; padding-left: 100%; }
.alert-bar__list:hover { animation-play-state: paused; }
.alert-bar__list a { color: var(--gx-text); font-size: 14px; }
.alert-bar__list a:hover { color: var(--gx-red); }
.alert-bar__list .lv { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lv-blue { background: #2a7de1; } .lv-yellow { background: #f2c21f; } .lv-orange { background: var(--gx-orange); } .lv-red { background: #e02424; }
@keyframes gx-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

.home-top { display: grid; grid-template-columns: 1fr 380px; gap: var(--gx-gap); }
.slider { position: relative; border-radius: var(--gx-radius-lg); overflow: hidden; background: #0d2440; aspect-ratio: 16 / 9; box-shadow: var(--gx-shadow); }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--gx-ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.slide.is-active img { transform: scale(1); }
.slide__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 46px; background: linear-gradient(transparent, rgba(5, 20, 45, .85)); color: #fff; }
.slide__caption .kicker { display: inline-block; background: var(--gx-red); font-size: 12px; padding: 2px 10px; border-radius: 3px; margin-bottom: 8px; }
.slide__caption h2, .slide__caption h3 { color: #fff; font-size: 24px; margin: 0 0 6px; }
.slide__caption p { margin: 0; opacity: .9; font-size: 14px; max-width: 640px; }
.slide__caption a { color: #fff; }
.slider__dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.slider__dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: all .3s; }
.slider__dots button.is-active { width: 28px; background: var(--gx-orange); }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.3); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s, background .2s; }
.slider:hover .slider__arrow { opacity: 1; }
.slider__arrow:hover { background: var(--gx-red); }
.slider__arrow--prev { left: 14px; } .slider__arrow--next { right: 14px; }
.slider__arrow svg { width: 20px; height: 20px; }

.panel { background: #fff; border-radius: var(--gx-radius-lg); box-shadow: var(--gx-shadow); padding: 18px 20px; }
.tabs { display: flex; border-bottom: 2px solid var(--gx-line); margin-bottom: 10px; }
.tabs button { background: none; border: 0; padding: 4px 0 10px; margin-right: 26px; font-size: 18px; font-weight: 700; color: var(--gx-text-3); cursor: pointer; position: relative; }
.tabs button.is-active { color: var(--gx-brand); }
.tabs button.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gx-red); }
.tab-pane { display: none; }
.tab-pane.is-active { display: block; animation: gx-fade .35s var(--gx-ease); }
@keyframes gx-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.list-dated { list-style: none; margin: 0; padding: 0; }
.list-dated li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--gx-line); font-size: 14.5px; }
.list-dated li:last-child { border-bottom: 0; }
.list-dated a { color: var(--gx-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; padding-left: 14px; position: relative; }
.list-dated a::before { content: ""; position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin-top: -2px; background: var(--gx-brand); border-radius: 1px; transform: rotate(45deg); }
.list-dated a:hover { color: var(--gx-red); }
.list-dated time { color: var(--gx-text-3); flex: none; font-size: 13px; }
.badge-new { display: inline-block; font-size: 11px; color: #fff; background: var(--gx-red); border-radius: 3px; padding: 0 5px; margin-left: 6px; line-height: 18px; vertical-align: middle; }

/* 服务入口 */
.service-entry { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.service-entry a {
	background: #fff; border-radius: var(--gx-radius-lg); padding: 22px 12px 18px; text-align: center; color: var(--gx-text);
	box-shadow: var(--gx-shadow); border-top: 3px solid transparent; transition: all .25s var(--gx-ease); display: block;
}
.service-entry a:hover { border-top-color: var(--gx-red); transform: translateY(-4px); box-shadow: var(--gx-shadow-lg); color: var(--gx-brand); }
.service-entry .ico { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--gx-brand-light); color: var(--gx-brand); display: flex; align-items: center; justify-content: center; transition: all .25s; }
.service-entry a:hover .ico { background: var(--gx-brand); color: #fff; }
.service-entry .ico svg { width: 28px; height: 28px; }
.service-entry strong { display: block; font-size: 16px; }
.service-entry span { display: block; font-size: 12.5px; color: var(--gx-text-3); margin-top: 2px; }

/* 数据展示 */
.stats { background: linear-gradient(120deg, rgba(8, 58, 115, .94), rgba(11, 79, 156, .88)), var(--gx-stats-bg, none) center / cover; color: #fff; padding: 44px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats__item { padding: 6px 10px; position: relative; }
.stats__item + .stats__item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: rgba(255,255,255,.22); }
.stats__num { font-size: 42px; font-weight: 700; line-height: 1.1; font-family: Arial, var(--gx-font); }
.stats__num small { font-size: 16px; margin-left: 4px; font-weight: 400; opacity: .85; }
.stats__label { font-size: 14px; opacity: .85; margin-top: 6px; }

/* 关于 + 优势 */
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-block__media { position: relative; }
.about-block__media img { border-radius: var(--gx-radius-lg); box-shadow: var(--gx-shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-block__badge { position: absolute; right: -14px; bottom: -14px; background: var(--gx-red); color: #fff; padding: 16px 22px; border-radius: var(--gx-radius-lg); box-shadow: var(--gx-shadow-lg); text-align: center; }
.about-block__badge b { display: block; font-size: 30px; line-height: 1.1; }
.about-block__badge span { font-size: 13px; opacity: .9; }
.about-block__text h2 { color: var(--gx-brand); font-size: 26px; }
.about-block__text .lead { color: var(--gx-text-2); }
.advantages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 24px; }
.advantage { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--gx-line); border-radius: var(--gx-radius); transition: border-color .2s, background .2s; }
.advantage:hover { border-color: var(--gx-brand); background: var(--gx-brand-light); }
.advantage .ico { flex: none; width: 38px; height: 38px; border-radius: var(--gx-radius); background: var(--gx-brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.advantage .ico svg { width: 20px; height: 20px; }
.advantage h4 { margin: 0 0 2px; font-size: 15.5px; }
.advantage p { margin: 0; font-size: 13px; color: var(--gx-text-2); line-height: 1.6; }

/* 新闻杂志区 */
.magazine { display: grid; grid-template-columns: 1fr 1fr 340px; gap: var(--gx-gap); }
.news-feature { display: block; margin-bottom: 12px; border-radius: var(--gx-radius); overflow: hidden; position: relative; aspect-ratio: 16 / 9; }
.news-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-feature:hover img { transform: scale(1.05); }
.news-feature span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 15px; }
.dept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dept-grid a { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: var(--gx-radius); background: var(--gx-bg); color: var(--gx-text); font-size: 14px; border: 1px solid transparent; transition: all .2s; }
.dept-grid a:hover { background: #fff; border-color: var(--gx-brand); color: var(--gx-brand); }
.dept-grid svg { width: 18px; height: 18px; color: var(--gx-red); flex: none; }

/* 客户 Logo 墙 */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gx-line); border: 1px solid var(--gx-line); border-radius: var(--gx-radius-lg); overflow: hidden; margin-top: 30px; }
.logo-wall__item { background: #fff; height: 86px; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gx-text-2); font-weight: 600; font-size: 15px; transition: all .25s; filter: grayscale(1); }
.logo-wall__item:hover { filter: none; color: var(--gx-brand); background: var(--gx-brand-light); }
.logo-wall__mark { width: 36px; height: 36px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; font-family: var(--gx-font-serif); }

/* 联系模块 */
.contact-band { background: linear-gradient(90deg, var(--gx-red-dark), var(--gx-red)); color: #fff; padding: 34px 0; }
.contact-band__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 20px; align-items: center; }
.contact-band h2 { color: #fff; margin: 0 0 4px; font-size: 24px; }
.contact-band p { margin: 0; opacity: .88; font-size: 14px; }
.contact-band__item { display: flex; gap: 12px; align-items: center; }
.contact-band__item .ico { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-band__item .ico svg { width: 22px; height: 22px; }
.contact-band__item small { display: block; opacity: .8; font-size: 12.5px; }
.contact-band__item strong { font-size: 17px; letter-spacing: .5px; word-break: break-all; }

/* ==========================================================================
   7. 内页 Inner Pages
   ========================================================================== */
.page-banner { position: relative; height: 220px; background: var(--gx-brand-dark) center / cover no-repeat; display: flex; align-items: center; color: #fff; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 40, 85, .88), rgba(8, 40, 85, .35)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: #fff; font-size: 32px; margin: 0 0 6px; letter-spacing: 2px; }
.page-banner p { margin: 0; opacity: .88; letter-spacing: 1px; }
.crumb-bar { background: #fff; border-bottom: 1px solid var(--gx-line); }
.breadcrumb { font-size: 13.5px; color: var(--gx-text-3); padding: 12px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumb a { color: var(--gx-text-2); }
.breadcrumb a:hover { color: var(--gx-red); }
.breadcrumb .sep { margin: 0 6px; color: #c3c9d3; }
.breadcrumb .here { color: var(--gx-text-3); margin-right: 4px; }
.breadcrumb svg { width: 14px; height: 14px; color: var(--gx-red); margin-right: 4px; }

.layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding: 32px 0 48px; }
.layout--full { grid-template-columns: 1fr; }
.content-box { background: #fff; border-radius: var(--gx-radius-lg); box-shadow: var(--gx-shadow); padding: 30px 34px; min-width: 0; }
.entry-header { border-bottom: 1px solid var(--gx-line); padding-bottom: 16px; margin-bottom: 22px; text-align: center; }
.entry-title { font-size: 26px; margin-bottom: 8px; }
.entry-meta { font-size: 13px; color: var(--gx-text-3); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.entry-content { font-size: 16px; line-height: 1.9; }
.entry-content > * + h2, .entry-content > * + h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--gx-radius); }
.entry-thumb { margin: 0 0 22px; border-radius: var(--gx-radius-lg); overflow: hidden; }
.entry-thumb img { width: 100%; max-height: 460px; object-fit: cover; }
.entry-footer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--gx-line); font-size: 14px; color: var(--gx-text-3); }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 18px; margin-top: 18px; }
.post-navigation a { display: block; padding: 12px 16px; background: var(--gx-bg); border-radius: var(--gx-radius); font-size: 14px; color: var(--gx-text); flex: 1; }
.post-navigation a:hover { background: var(--gx-brand-light); color: var(--gx-brand); }
.post-navigation .nav-next { text-align: right; }

.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gx-line); }
.news-item:first-child { padding-top: 0; }
.news-item__thumb { border-radius: var(--gx-radius); overflow: hidden; aspect-ratio: 16 / 10; display: block; }
.news-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-item:hover .news-item__thumb img { transform: scale(1.06); }
.news-item h2, .news-item h3 { font-size: 18px; margin: 0 0 8px; }
.news-item h2 a, .news-item h3 a { color: var(--gx-text); }
.news-item h2 a:hover, .news-item h3 a:hover { color: var(--gx-brand); }
.news-item p { color: var(--gx-text-2); font-size: 14px; margin: 0 0 8px; }
.news-item__meta { font-size: 13px; color: var(--gx-text-3); display: flex; gap: 14px; }

.pagination, .nav-links { margin-top: 26px; }
.pagination .nav-links, .posts-navigation .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 38px; height: 38px; padding: 0 12px; align-items: center; justify-content: center; border: 1px solid var(--gx-line); border-radius: var(--gx-radius); background: #fff; color: var(--gx-text-2); font-size: 14px; }
.page-numbers.current, .page-numbers:hover { background: var(--gx-brand); border-color: var(--gx-brand); color: #fff; }

/* 侧栏 */
.sidebar .widget { background: #fff; border-radius: var(--gx-radius-lg); box-shadow: var(--gx-shadow); padding: 18px 20px; margin-bottom: 22px; }
.sidebar .widget-title, .sidebar .widget h2 { font-size: 17px; color: var(--gx-brand); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--gx-line); position: relative; }
.sidebar .widget-title::after, .sidebar .widget h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 48px; height: 2px; background: var(--gx-red); }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: 7px 0; border-bottom: 1px dashed var(--gx-line); font-size: 14px; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget li a { color: var(--gx-text); }
.sidebar .widget li a:hover { color: var(--gx-red); }
.widget-hotline { background: linear-gradient(135deg, var(--gx-brand), var(--gx-brand-dark)) !important; color: #fff; text-align: center; }
.widget-hotline h2 { color: #fff !important; border-color: rgba(255,255,255,.2) !important; }
.widget-hotline .num { font-size: 24px; font-weight: 700; letter-spacing: 1px; margin: 4px 0; font-family: Arial, sans-serif; }
.widget-hotline p { font-size: 13px; opacity: .85; margin: 0 0 12px; }
.side-nav a { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: var(--gx-radius); color: var(--gx-text); }
.side-nav a:hover, .side-nav a.is-current { background: var(--gx-brand); color: #fff; }

/* 服务详情 */
.detail-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; margin-bottom: 28px; }
.detail-hero img { border-radius: var(--gx-radius-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-hero h1 { font-size: 28px; color: var(--gx-brand); }
.detail-hero .lead { color: var(--gx-text-2); }
.detail-points { list-style: none; padding: 0; margin: 0 0 18px; }
.detail-points li { padding: 5px 0 5px 26px; position: relative; font-size: 14.5px; }
.detail-points li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: var(--gx-brand-light); box-shadow: inset 0 0 0 4px var(--gx-brand); }
.spec-table th { width: 160px; }

/* 关于页 */
.timeline { position: relative; padding-left: 28px; margin: 10px 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--gx-line); }
.timeline li { position: relative; padding: 0 0 20px; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--gx-red); }
.timeline b { color: var(--gx-brand); font-size: 17px; display: block; }
.org-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.org-grid div { background: var(--gx-bg); border-radius: var(--gx-radius); padding: 14px; text-align: center; font-size: 14px; border-top: 3px solid var(--gx-brand); }
.honor-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; }
.honor-list li { border: 1px solid #f1d7a8; background: #fffaf0; border-radius: var(--gx-radius); padding: 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.honor-list svg { width: 22px; height: 22px; color: var(--gx-orange); flex: none; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--gx-line); }
.contact-info .ico { width: 42px; height: 42px; border-radius: var(--gx-radius); background: var(--gx-brand-light); color: var(--gx-brand); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-info .ico svg { width: 20px; height: 20px; }
.contact-info small { display: block; color: var(--gx-text-3); font-size: 13px; }
.contact-info strong { font-size: 16px; }
.map-box { margin-top: 20px; border-radius: var(--gx-radius-lg); overflow: hidden; position: relative; aspect-ratio: 16 / 8; background: #dfe8f3 url() center / cover; }
.map-box img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6); }
.map-box__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); background: var(--gx-red); color: #fff; padding: 6px 12px; border-radius: var(--gx-radius); font-size: 13px; box-shadow: var(--gx-shadow-lg); white-space: nowrap; }
.map-box__pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--gx-red); }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--gx-text-2); }
.form-row label em { color: var(--gx-red); font-style: normal; }
.form-row input, .form-row select, .form-row textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; border: 1px solid #d5dbe4; border-radius: var(--gx-radius); padding: 10px 12px; background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus, .comment-form textarea:focus { border-color: var(--gx-brand); box-shadow: 0 0 0 3px rgba(11, 79, 156, .12); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.notice-ok { background: #e9f8f1; color: var(--gx-green); border: 1px solid #bfe9d5; padding: 10px 14px; border-radius: var(--gx-radius); margin-bottom: 16px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--gx-line); border-radius: var(--gx-radius); overflow: hidden; background: #fff; }
.faq-item summary { list-style: none; cursor: pointer; padding: 15px 48px 15px 18px; font-weight: 600; position: relative; display: flex; gap: 10px; align-items: center; transition: background .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; flex: none; width: 24px; height: 24px; border-radius: 4px; background: var(--gx-brand); color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gx-text-3); transition: transform .2s; }
.faq-item[open] summary { background: var(--gx-brand-light); color: var(--gx-brand); }
.faq-item[open] summary::after { content: "−"; color: var(--gx-red); }
.faq-item .faq-answer { padding: 14px 18px 16px 52px; color: var(--gx-text-2); font-size: 15px; border-top: 1px solid var(--gx-line); }

/* 404 */
.error-404 { text-align: center; padding: 70px 20px 80px; }
.error-404 .code { font-size: 130px; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--gx-brand), var(--gx-red)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: Arial, sans-serif; }
.error-404 h1 { margin: 14px 0 8px; }
.error-404 p { color: var(--gx-text-2); }
.error-404 .search-form { max-width: 440px; margin: 22px auto; }
.error-404 .btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* 评论 */
.comments-area { margin-top: 30px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 30px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--gx-line); }
.comment-meta { font-size: 13px; color: var(--gx-text-3); }
.comment-author img { border-radius: 50%; float: left; margin-right: 10px; }

/* ==========================================================================
   8. 页脚 Footer
   ========================================================================== */
.site-footer { background: #0e2442; color: #b9c4d6; font-size: 14px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .8fr; gap: 36px; padding: 44px 20px 34px; }
.site-footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); position: relative; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 32px; height: 2px; background: var(--gx-orange); }
.site-footer a { color: #b9c4d6; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-family: var(--gx-font-serif); font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.footer-brand svg { width: 42px; height: 42px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.footer-links li::before { content: "›"; margin-right: 6px; color: var(--gx-orange); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--gx-orange); }
.qr { width: 108px; height: 108px; background: #fff; padding: 8px; border-radius: var(--gx-radius); }
.qr svg { width: 100%; height: 100%; }
.footer-widgets { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; }
.footer-bottom { background: #0a1b33; padding: 16px 0; font-size: 13px; text-align: center; color: #8d9bb2; }
.footer-bottom p { margin: 2px 0; }
.footer-bottom a { color: #8d9bb2; margin: 0 6px; }
.footer-bottom .gongan { display: inline-flex; align-items: center; gap: 4px; }
.backtop { position: fixed; right: 22px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%; background: var(--gx-red); color: #fff; border: 0; cursor: pointer; box-shadow: var(--gx-shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--gx-ease); z-index: 80; display: flex; align-items: center; justify-content: center; }
.backtop.is-visible { opacity: 1; visibility: visible; transform: none; }
.backtop svg { width: 20px; height: 20px; }

/* 内联图标尺寸 */
.gx-icon { width: 1em; height: 1em; vertical-align: -0.15em; }
.topbar .gx-icon, .footer-bottom .gx-icon, .news-item__meta .gx-icon { width: 14px; height: 14px; }
.side-nav span { color: inherit; opacity: .6; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--gx-ease), transform .7s var(--gx-ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   9. 移动端适配 Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.home-top { grid-template-columns: 1fr; }
	.magazine { grid-template-columns: 1fr 1fr; }
	.magazine > :last-child { grid-column: 1 / -1; }
	.service-entry { grid-template-columns: repeat(3, 1fr); }
	.contact-band__inner { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.masthead__search { display: none; }
	.nav-toggle { display: inline-flex; }
	.masthead__inner { min-height: 84px; }
	.brand__name { font-size: 22px; letter-spacing: 2px; }
	.brand__emblem { width: 50px; height: 50px; }
	.brand__en { font-size: 9.5px; letter-spacing: .5px; }
	.mainnav { position: static; max-height: 0; overflow: hidden; transition: max-height .35s var(--gx-ease); }
	.nav-open .mainnav { max-height: 80vh; overflow-y: auto; }
	.mainnav .menu { flex-direction: column; padding: 6px 0; }
	.mainnav .menu > li { text-align: left; border-bottom: 1px solid rgba(255,255,255,.1); }
	.mainnav .menu > li > a { line-height: 48px; padding: 0 20px; }
	.mainnav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: var(--gx-brand-dark); border: 0; }
	.mainnav .sub-menu a { color: #dce8f7; padding-left: 36px; }
	.layout { grid-template-columns: 1fr; }
	.about-block, .detail-hero, .contact-grid { grid-template-columns: 1fr; }
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
	.stats__item:nth-child(3)::before { display: none; }
	.logo-wall { grid-template-columns: repeat(2, 1fr); }
	.org-grid { grid-template-columns: repeat(2, 1fr); }
	.honor-list { grid-template-columns: 1fr 1fr; }
	.topbar__weather { display: none; }
}
@media (max-width: 640px) {
	body { --gx-fs: 14.5px; }
	.topbar__right a:not(.keep), .topbar__right > *::before { display: none; }
	.grid-2, .grid-3, .grid-4, .magazine, .advantages, .form-2col, .honor-list { grid-template-columns: 1fr; }
	.service-entry { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.news-item { grid-template-columns: 1fr; }
	.content-box { padding: 20px 18px; }
	.page-banner { height: 160px; }
	.page-banner h1 { font-size: 24px; }
	.slide__caption { padding: 40px 16px 36px; }
	.slide__caption h2, .slide__caption h3 { font-size: 17px; }
	.slide__caption p { display: none; }
	.stats__num { font-size: 32px; }
	.contact-band__inner, .footer-grid { grid-template-columns: 1fr; }
	.about-block__badge { right: 10px; bottom: 10px; }
	.error-404 .code { font-size: 90px; }
	.brand__en { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}
