/* ==================== 全局重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 禁止手机浏览器自动放大正文文字（iOS Safari 横屏/字体放大问题） */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    background: #fafafa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* ==================== 主色调变量(与logo品牌色一致:深绿+麦穗金) ==================== */
:root {
    --primary: #146c43;        /* 主绿:源于logo,深沉稳重 */
    --primary-dark: #0d4f30;
    --primary-light: #1e9e50;
    --accent: #e8952f;         /* 强调色:麦穗金(源于logo) */
    --accent-dark: #c47a1a;
    --bg-light: #f5f8f6;
    --bg-white: #ffffff;
    --text-dark: #2c3e50;
    --text-gray: #666666;
    --text-light: #999999;
    --border: #e5e5e5;
    --success: #28a745;
    --danger: #dc3545;
}

/* ==================== 顶部公告条 ==================== */
.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: rgba(255,255,255,0.85);
    margin-left: 15px;
}

.top-bar a:hover {
    color: var(--accent);
}

/* ==================== 导航栏 ==================== */
/* 顶部信息条 + 导航栏整体吸顶：滚动时两者一起固定在页面最顶部 */
.site-top {
    position: sticky;
    top: 0;
    z-index: 110;
}

.header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    /* 吸顶由外层 .site-top 负责，这里保留相对定位作为下拉菜单的定位上下文 */
    position: relative;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.06);
}

/* 纯图标(透明背景),不含文字 */
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(13,79,48,0.25));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .cn {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
    letter-spacing: 2px;
}

.logo-text .en {
    font-size: 11px;
    color: var(--text-gray);
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav {
    display: flex;
    /* 导航项之间留合理间距，避免总宽度紧张，短文字项被挤压折行 */
    gap: 8px;
}

.nav a {
    display: block;
    /* 上下保持 10px，左右压缩到 12px：用户反馈 20px 太宽 */
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
    /* 所有导航项统一禁止换行，避免屏幕略窄时个别短文字折行 */
    white-space: nowrap;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.nav a:hover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==================== 二级导航（下拉菜单） ==================== */
/* 含二级的导航项用 nav-item 包裹，桌面端 hover/focus-within 展开，手机端内嵌 */
/* 关键约束：父级 .nav-link 必须和 .nav a 完全同布局（padding/display/下划线），
   否则会和普通导航项出现垂直不对齐、高亮不一致的视觉问题 */
.nav-item {
    position: relative;
    /* 不要用 inline-flex / inline-block 覆盖，保持和普通 a 标签同等 inline 行为 */
}
.nav-item .nav-link {
    /* 必须显式匹配 .nav a 的 padding/font/color/position，否则和普通导航项错位 */
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}
/* hover 态同样要匹配 .nav a:hover */
.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link {
    color: var(--primary);
}
.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
/* 禁止下划线在下拉箭头之下出现：让 nav-link 的 ::after 定位正确覆盖箭头宽度 */
/* 不再禁 ::after，让 active/hover 下划线正常画 */

/* 下拉箭头：CSS 画小三角，默认下指，hover 时上指 */
.nav-caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-left: 2px;
    transition: transform 0.25s;
    display: inline-block;
    /* 和文字基线对齐（inline-flex 里默认 middle 就够，这里兜底） */
    flex-shrink: 0;
}
/* 激活态：模板给 .nav-item 加 .active，这里传导到里面的 .nav-link，
   让 color/::after 下划线都生效（普通 a 靠自身 .active） */
.nav-item.active .nav-link {
    color: var(--primary);
}
.nav-item.active .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret,
.nav-item.open .nav-caret {
    transform: rotate(180deg);
}

/* 下拉面板：默认隐藏，hover / focus-within / .open 时显示 */
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 6px 0;
    z-index: 999;
    list-style: none;
    /* 防止鼠标从父级滑向子级时菜单闪烁（hover 区域过渡） */
    margin-top: 0;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub,
.nav-item.open .nav-sub {
    display: block;
}
.nav-sub li { padding: 0; }
.nav-sub a {
    display: block;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-dark);
    text-align: left;
    transition: background 0.2s, color 0.2s;
}
.nav-sub a:hover,
.nav-sub a:focus {
    background: var(--bg-light);
    color: var(--primary);
    outline: none;
}

/* ==================== 汉堡菜单按钮（仅移动端显示，桌面端隐藏） ==================== */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* ==================== 响应式栅格工具类（替代模板内联 grid，使列数可随断点变化） ==================== */
.rgrid {
    display: grid;
    gap: 20px;
}

.rgrid-2 { grid-template-columns: repeat(2, 1fr); }
.rgrid-3 { grid-template-columns: repeat(3, 1fr); }
.rgrid-4 { grid-template-columns: repeat(4, 1fr); }

/* 模板中的固定高度图片/地图块：提取为 class 便于移动端压缩高度 */
.h-img-lg { height: 400px; }   /* 业务封面、地图 */
.h-img-md { height: 360px; }   /* 产品封面 */
.h-img-sm { height: 200px; }   /* 产品图集 */
.h-img-pano { height: 420px; } /* 关于页全景 */
.h-img-half { height: 240px; } /* 关于页双图 */

/* ==================== Banner 轮播 ==================== */
.banner {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
    background: var(--primary-dark);
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.banner-slide .bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.banner-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 60px;
    color: #fff;
    width: 100%;
}

.banner-tag {
    display: inline-block;
    padding: 6px 18px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    letter-spacing: 2px;
    border-radius: 2px;
    margin-bottom: 20px;
    font-weight: 500;
}

.banner-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.banner-title span {
    color: var(--accent);
}

.banner-subtitle {
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    opacity: 0.95;
    font-weight: 300;
}

.banner-desc {
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 35px;
}

.banner-btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    letter-spacing: 2px;
    border: 2px solid var(--accent);
    transition: all 0.3s;
}

.banner-btn:hover {
    background: transparent;
    color: var(--accent);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.banner-dots span {
    width: 30px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dots span.active {
    background: var(--accent);
    width: 50px;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-arrow:hover {
    background: var(--accent);
}

.banner-arrow.prev {
    left: 30px;
}

.banner-arrow.next {
    right: 30px;
}

/* ==================== 内容区块通用 ==================== */
.section {
    padding: 80px 0;
}

.section-white { background: #fff; }
.section-light { background: var(--bg-light); }
.section-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .en {
    font-size: 14px;
    color: var(--accent);
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text-dark);
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.section-primary .section-header h2 {
    color: #fff;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0;
}

.section-header p {
    color: var(--text-gray);
    font-size: 15px;
    letter-spacing: 2px;
    margin-top: 10px;
}

.section-primary .section-header p {
    color: rgba(255,255,255,0.85);
}

/* ==================== 主营业务（首页 4 项全部预览，一行四列） ==================== */
.business-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.business-card {
    background: #fff;
    padding: 45px 30px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transition: left 0.5s;
}

.business-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--accent);
}

.business-card:hover::before {
    left: 0;
}

.business-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    box-shadow: 0 8px 20px rgba(30,90,140,0.25);
}

.business-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.business-card p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 14px;
}

/* ==================== 数据统计 ==================== */
.stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 70px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'><circle cx='50' cy='50' r='40' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.1'/></svg>");
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.15);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 48px;
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.stat-label {
    font-size: 15px;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.9);
}

/* ==================== 新闻资讯 ==================== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.news-img {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    position: relative;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    padding: 8px 12px;
    text-align: center;
    color: var(--primary);
    font-weight: bold;
}

.news-date .day {
    font-size: 22px;
    line-height: 1;
}

.news-date .ym {
    font-size: 11px;
    margin-top: 4px;
    color: var(--text-gray);
}

.news-body {
    padding: 25px;
}

.news-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--bg-light);
    color: var(--primary);
    font-size: 12px;
    margin-bottom: 12px;
    border-left: 3px solid var(--accent);
}

.news-title {
    font-size: 16px;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 51px;
}

.news-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 12px;
}

/* ==================== 关于我们概览 ==================== */
.about-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img {
    position: relative;
    height: 450px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    overflow: hidden;
}

.about-img::after {
    content: "";
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--accent);
    opacity: 0.2;
    border-radius: 50%;
}

.about-content h3 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.about-content h3 span {
    color: var(--accent);
}

.about-content p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 15px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-dark);
}

.about-feature::before {
    content: "\2713";
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

.about-btn {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    letter-spacing: 2px;
    transition: all 0.3s;
    border: 2px solid var(--primary);
}

.about-btn:hover {
    background: transparent;
    color: var(--primary);
}

/* ==================== 列表页通用 ==================== */
.page-banner {
    height: 280px;
    /* 默认：绿色渐变兜底，当模板给 .page-banner 加了 data-bg 属性时（后台配置了背景图），
       模板内联的 background-image 会覆盖这里的渐变；此时再用 data-bg 选择器切 ::before 遮罩 */
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* 让背景图能正常铺满，不重复 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 默认遮罩：浅色棋盘 SVG，让纯色渐变背景不至于太单调 */
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M0 0h40v40H0zM40 40h40v40H40z' fill='%23ffffff' opacity='0.04'/></svg>");
    /* 默认遮罩透明度低，避免影响渐变视觉 */
    opacity: 1;
}

/* 当 .page-banner 通过 data-bg 属性声明了背景图时（模板根据后台 inner_banner_image 字段动态写入）：
   切为半透明黑色遮罩，保证上方白色标题/面包屑在图片上仍可读 */
.page-banner[data-bg]::before {
    background: rgba(0, 0, 0, 0.45);
}

.page-banner h1 {
    font-size: 42px;
    letter-spacing: 6px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.page-banner .breadcrumb {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.page-banner .breadcrumb a:hover {
    color: var(--accent);
}

.page-banner .breadcrumb span {
    margin: 0 10px;
    color: var(--accent);
}

/* ==================== 侧边栏 + 列表 ==================== */
.layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 60px 0;
}

.sidebar {
    background: #fff;
    border: 1px solid var(--border);
}

.sidebar-title {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    padding: 20px;
    text-align: center;
    font-size: 20px;
    letter-spacing: 3px;
    font-weight: 500;
}

.sidebar-nav li {
    border-bottom: 1px solid var(--border);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: block;
    padding: 18px 25px;
    color: var(--text-dark);
    position: relative;
    transition: all 0.3s;
    font-size: 15px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 35px;
}

.sidebar-nav a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
}

.sidebar-contact {
    background: var(--primary);
    color: #fff;
    padding: 25px 20px;
    margin-top: 20px;
    text-align: center;
}

/* ---------- 通用 SVG 图标适配 ----------
   模板里的 emoji 图标 <div class="icon">📞</div> 已替换为
   <div class="icon"><img src="/static/svg/tell.svg"></div>。
   SVG 的 fill="currentColor" 能继承容器 color，所以容器保持原来的
   font-size / color 即可（如 .sidebar-contact .icon 的 36px 橙色）。
   这里统一让 img 按 1em 跟随容器字号缩放，保持 flex 居中对齐。 */
.icon img,
.footer-contact-item img {
    width: 1em;
    height: 1em;
    display: block;
    /* SVG 原尺寸是 200x200，img 需 fill 整个容器的 em 单位 */
    fill: currentColor;
}

/* .party-card .icon 是有背景色的圆形图标块（白色图标） */
.party-card .icon img {
    /* 原 40px 在 70px 圆块内偏大，缩到 28px */
    width: 28px;
    height: 28px;
}

/* .contact-item .icon 是 50x50 半透明圆块 */
.contact-item .icon img {
    /* 原 28px 在 50px 圆块内偏大，缩到 22px 留出呼吸空间 */
    width: 22px;
    height: 22px;
    opacity: 0.95;
}

.sidebar-contact .icon {
    /* 原 emoji 字号 36px 对 SVG 偏膨胀，直接按用户要求调到 52px */
    font-size: 52px;
    margin-bottom: 10px;
    color: var(--accent);
    display: flex;
    justify-content: center;
    align-items: center;
}

.sidebar-contact .phone {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin: 10px 0;
    /* 邮箱地址无空格，默认不在中间断行，强制允许任意位置换行 */
    word-break: break-all;
    line-height: 1.3;
}

.sidebar-contact .desc {
    font-size: 13px;
    opacity: 0.9;
}

.content-area {
    background: #fff;
    padding: 40px;
    border: 1px solid var(--border);
}

.content-header {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.content-header h2 {
    font-size: 24px;
    color: var(--primary);
    letter-spacing: 2px;
    font-weight: bold;
}

/* ==================== 列表行 ==================== */
.article-list {
    list-style: none;
}

.article-list li {
    border-bottom: 1px dashed var(--border);
    padding: 18px 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.article-list li:hover {
    background: var(--bg-light);
    padding-left: 20px;
}

.article-list .date {
    color: var(--accent);
    font-weight: bold;
    font-size: 15px;
    min-width: 110px;
}

.article-list .title {
    color: var(--text-dark);
    flex: 1;
    margin: 0 15px;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-list li:hover .title {
    color: var(--primary);
}

.article-list .new {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    padding: 1px 6px;
    margin-left: 8px;
    border-radius: 2px;
}

.article-list .more {
    color: var(--text-light);
    font-size: 13px;
}

/* ==================== 党建专题 ==================== */
.party-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.party-card {
    background: var(--bg-light);
    padding: 35px 25px;
    text-align: center;
    border-top: 4px solid var(--accent);
    transition: all 0.3s;
}

.party-card:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
}

.party-card:hover h4,
.party-card:hover p {
    color: #fff;
}

.party-card .icon {
    width: 70px;
    height: 70px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.party-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.party-card p {
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.7;
}

/* ==================== 联系我们 ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 50px 40px;
}

.contact-info h3 {
    font-size: 26px;
    letter-spacing: 3px;
    margin-bottom: 30px;
    color: var(--accent);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-item .info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--accent);
    letter-spacing: 2px;
}

.contact-item .info p {
    font-size: 15px;
    opacity: 0.95;
    line-height: 1.6;
}

.contact-form {
    background: var(--bg-light);
    padding: 50px 40px;
}

.contact-form h3 {
    font-size: 26px;
    color: var(--primary);
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.form-group label::before {
    content: "*";
    color: var(--danger);
    margin-right: 4px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 16px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.map-area {
    margin-top: 30px;
    background: var(--bg-light);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 16px;
    border: 1px dashed var(--border);
}

/* ==================== 底部 ==================== */
.footer {
    background: #1a2c3d;
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 13px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-about .logo {
    margin-bottom: 20px;
}

.footer-about p {
    line-height: 1.8;
    font-size: 13px;
    margin-bottom: 15px;
}

.footer-contact-item {
    margin-bottom: 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-item span {
    color: var(--accent);
    width: 20px;
}

.qrcode {
    width: 110px;
    height: 110px;
    background: #fff;
    padding: 8px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 11px;
    text-align: center;
}

.qrcode-placeholder {
    width: 94px;
    height: 94px;
    background:
        linear-gradient(45deg, #000 25%, transparent 25%),
        linear-gradient(-45deg, #000 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #000 75%),
        linear-gradient(-45deg, transparent 75%, #000 75%);
    background-size: 10px 10px;
    background-position: 0 0, 0 5px, 5px -5px, -5px 0;
    position: relative;
}

.qrcode-placeholder::before,
.qrcode-placeholder::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: #fff;
    border: 8px solid #000;
}

.qrcode-placeholder::before {
    top: 0;
    left: 0;
}

.qrcode-placeholder::after {
    top: 0;
    right: 0;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.2);
}

.copyright a {
    color: rgba(255,255,255,0.7);
    margin: 0 10px;
}

/* ==================== 回到顶部 ==================== */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    font-size: 20px;
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ==================== 响应式 ==================== */
/* 平板竖屏及以下：网格降列 */
@media (max-width: 1024px) {
    .header-inner {
        height: 70px;
    }
    .banner { height: 480px; }
    .banner-title { font-size: 38px; }
    .banner-content { padding: 0 40px; }
    .business-grid,
    .news-grid,
    .party-grid {
        grid-template-columns: 1fr 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
        padding-bottom: 20px;
    }
    .about-overview,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .layout {
        grid-template-columns: 1fr;
    }
    /* 响应式工具栅格同步降列 */
    .rgrid-4 { grid-template-columns: repeat(2, 1fr); }
    .rgrid-3 { grid-template-columns: repeat(2, 1fr); }
    .nav {
        gap: 0;
    }
    .nav a {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* 手机端（≤768px）：汉堡导航 + 全面紧凑化 */
@media (max-width: 768px) {
    /* ---- 顶部公告条：隐藏次要链接，仅保留欢迎语 ---- */
    .top-bar .top-bar-links {
        display: none;
    }
    .top-bar-inner {
        justify-content: center;
        text-align: center;
    }

    /* ---- 导航：折叠为汉堡菜单 ---- */
    .header-inner {
        height: 60px;
        padding: 0 15px;
    }
    .logo {
        gap: 10px;
    }
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    .logo-text .cn {
        font-size: 17px;
        letter-spacing: 1px;
    }
    .logo-text .en {
        display: none; /* 手机端隐藏英文副名，避免换行挤压 */
    }
    .nav-toggle {
        display: flex;
    }
    /* 导航面板：绝对定位下拉，默认收起（max-height 过渡动画） */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #fff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav.open {
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav a {
        padding: 14px 16px;
        font-size: 15px;
        border-top: 1px solid #f0f0f0;
    }
    /* ---- 移动端二级导航覆盖：下拉面板不再浮出，改为内嵌列表 ---- */
    .nav-item {
        display: flex;
        flex-direction: column;
    }
    .nav-item .nav-link {
        padding: 14px 16px;
        font-size: 15px;
        border-top: 1px solid #f0f0f0;
        justify-content: space-between; /* 箭头靠右 */
    }
    .nav-item:first-child .nav-link { border-top: 0; }
    .nav-caret {
        border-top-color: #888;
        transition: transform 0.2s;
    }
    /* 移动端下拉面板：默认折叠为 max-height:0，.item.open 时展开，不用 hover/focus */
    .nav-item .nav-sub {
        position: static;
        transform: none;
        display: block; /* 常驻 DOM，但 max-height:0 折叠 */
        max-height: 0;
        overflow: hidden;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        transition: max-height 0.3s ease;
        background: #fafafa;
    }
    /* 移动端 JS 给 .nav-item 加 .open 时展开子菜单 */
    .nav-item.open .nav-sub {
        max-height: 600px; /* 足够容纳 6-10 项 */
    }
    .nav-sub a {
        border-top: 0;
        padding: 12px 30px;
        font-size: 14px;
    }
    /* 展开时箭头旋转 */
    .nav-item.open .nav-caret {
        transform: rotate(180deg);
    }
    /* 展开时汉堡变 X */
    .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* ---- Banner：降高、缩字、隐藏左右箭头（触屏用圆点/滑动） ---- */
    .banner {
        height: 320px;
    }
    .banner-title {
        font-size: 26px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    .banner-tag {
        padding: 4px 12px;
        font-size: 12px;
        margin-bottom: 12px;
    }
    .banner-subtitle {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }
    .banner-desc {
        font-size: 13px;
        margin-bottom: 20px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .banner-content {
        padding: 0 20px;
    }
    .banner-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
    .banner-arrow {
        display: none; /* 手机端隐藏箭头，避免误触遮挡 */
    }
    .banner-dots {
        bottom: 15px;
    }
    .banner-dots span {
        width: 20px;
        height: 3px;
    }
    .banner-dots span.active {
        width: 36px;
    }

    /* ---- 通用区块压缩 ---- */
    .section {
        padding: 40px 0;
    }
    .container {
        padding: 0 15px;
    }
    .section-header {
        margin-bottom: 35px;
    }
    .section-header h2 {
        font-size: 24px;
        letter-spacing: 2px;
    }
    .section-header p {
        font-size: 13px;
    }

    /* ---- 网格全部单列 ---- */
    .business-grid,
    .news-grid,
    .party-grid {
        grid-template-columns: 1fr;
    }
    .rgrid-4,
    .rgrid-3,
    .rgrid-2 {
        grid-template-columns: 1fr;
    }
    .business-card {
        padding: 30px 20px;
    }
    .business-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 18px;
    }

    /* ---- 统计区 ---- */
    .stats {
        padding: 40px 0;
    }
    .stat-num {
        font-size: 32px;
    }

    /* ---- 关于概览 ---- */
    .about-img {
        height: 240px;
    }
    .about-content h3 {
        font-size: 24px;
    }

    /* ---- 内页 Banner ---- */
    .page-banner {
        height: 180px;
    }
    .page-banner h1 {
        font-size: 24px;
        letter-spacing: 3px;
        /* 长标题（如文章标题）手机端允许换行并限制行数 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding: 0 10px;
    }

    /* ---- 列表布局：侧栏移到内容下方，主内容优先 ---- */
    .layout {
        gap: 25px;
        padding: 35px 0;
    }
    .content-area {
        order: -1;      /* 内容在前，侧栏分类在后 */
        padding: 20px 15px;
    }
    .sidebar-title {
        padding: 15px;
        font-size: 17px;
    }
    .sidebar-nav a {
        padding: 14px 18px;
        font-size: 14px;
    }
    .sidebar-contact {
        padding: 18px 15px;
    }
    .sidebar-contact .phone {
        font-size: 18px;
    }

    /* ---- 文章列表：日期缩写列宽，标题可两行 ---- */
    .article-list li {
        padding: 14px 5px;
    }
    .article-list .date {
        min-width: 88px;
        font-size: 13px;
    }
    .article-list .title {
        font-size: 14px;
        margin: 0 8px;
        white-space: normal; /* 允许两行，避免长标题被一刀切 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    .article-list .more {
        display: none;
    }

    /* ---- 富文本正文：防图片/表格横向溢出 ---- */
    .article-content {
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .article-content img {
        max-width: 100%;
        height: auto;
    }
    .article-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ---- 文章详情标题：缩小并左对齐 ---- */
    .article-title {
        font-size: 20px !important;
        text-align: left !important;
    }

    /* ---- 表单控件加大点击区，输入字号 16px 防 iOS 聚焦自动缩放 ---- */
    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 12px;
    }
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }

    /* ---- 固定高度图片块降高 ---- */
    .h-img-lg { height: 260px; }
    .h-img-md { height: 240px; }
    .h-img-sm { height: 160px; }
    .h-img-pano { height: 220px; }
    .h-img-half { height: 160px; }
    .map-area { height: 260px; } /* 联系页地图占位区（CSS 内置 400px，移动端压缩） */

    /* ---- 页脚 ---- */
    .footer {
        padding: 40px 0 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* ---- 回到顶部按钮内移 ---- */
    .back-to-top {
        right: 15px;
        bottom: 20px;
        width: 44px;
        height: 44px;
    }
}

/* 超小屏（≤380px）：进一步压缩标题 */
@media (max-width: 360px) {
    .banner-title {
        font-size: 22px;
    }
    .logo-text .cn {
        font-size: 15px;
    }
}

/* ==================== 顶部全站搜索 ==================== */
.top-bar-welcome {
    flex-shrink: 0;
}
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.top-bar-search {
    display: flex;
    align-items: center;
}
.top-bar-search input {
    width: 150px;
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-right: 0;
    border-radius: 3px 0 0 3px;
    outline: none;
}
.top-bar-search input::placeholder {
    color: rgba(255,255,255,0.6);
}
.top-bar-search input:focus {
    background: rgba(255,255,255,0.2);
}
.top-bar-search button {
    padding: 4px 12px;
    font-size: 12px;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    white-space: nowrap;
}
.top-bar-search button:hover {
    background: #d9821f;
}

/* ==================== 搜索结果页 ==================== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}
.search-box input {
    flex: 1;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
}
.search-box input:focus {
    border-color: var(--primary);
}
.search-box button {
    padding: 12px 28px;
    font-size: 15px;
    color: #fff;
    background: var(--primary);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.search-box button:hover {
    background: var(--primary-dark);
}
.search-item {
    padding: 18px 0;
    border-bottom: 1px dashed var(--border);
}
.search-item-title {
    font-size: 17px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.search-item-title a {
    color: var(--text-dark);
    transition: color 0.2s;
}
.search-item-title a:hover {
    color: var(--primary);
}
.search-item-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 8px;
}
.search-item-meta {
    color: var(--text-light);
    font-size: 13px;
}
.search-empty {
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-light);
    border-radius: 4px;
}

/* 手机端：顶部搜索框单独一行、通栏 */
@media (max-width: 768px) {
    .top-bar-inner {
        flex-direction: column;
        gap: 8px;
    }
    .top-bar-right {
        width: 100%;
    }
    .top-bar-search {
        width: 100%;
    }
    .top-bar-search input {
        flex: 1;
        width: auto;
    }
    .search-box {
        flex-direction: column;
    }
    .search-box button {
        padding: 12px;
    }
}