/* ==========================================================
   孝仁芳华企业官网 v2 —— 政务风样式
   中国红 #C41E1E / 金 #D4A84B / 深蓝灰 #26313b / 米白 #f7f5f0
   ========================================================== */
* { margin:0; padding:0; box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { font-family:"Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif; color:#333; background:#fff; font-size:15px; line-height:1.8; }
img { max-width:100%; border:0; vertical-align:middle; }
a { color:#8f1111; text-decoration:none; transition:all .2s ease; }
a:hover { color:#C41E1E; }
ul,ol { list-style:none; }
.wrap { width:1180px; max-width:94%; margin:0 auto; }
h1,h2,h3,h4 { font-family:"SimSun","Songti SC",serif; font-weight:700; }
.hide { display:none; }

/* ---------- 顶部红条 ---------- */
body::before { content:""; display:block; height:5px; background:linear-gradient(90deg,#8f0f0f,#C41E1E 55%,#d6a34b); }

/* ---------- 政务通告条 ---------- */
.topbar { background:#C41E1E; color:#fff; font-size:13px; }
.topbar-in { display:flex; justify-content:space-between; padding:6px 0; }
.top-welcome { opacity:.95; }
.top-contacts b { color:#ffe9a8; font-weight:600; }

/* ---------- 站头 ---------- */
.masthead { background:#fff; border-bottom:1px solid #eee; }
.masthead-in { display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.brand { display:flex; align-items:center; gap:14px; }
.brand-mark { width:60px; height:60px; flex:none; display:flex; align-items:center; justify-content:center; overflow:hidden; box-shadow:0 2px 8px rgba(0,0,0,.12); border-radius:6px; }
.brand-mark img { width:60px; height:60px; object-fit:cover; display:block; }
.brand-text b { display:block; font-size:19px; color:#1d1d1f; letter-spacing:1px; line-height:1.35; white-space:nowrap; }
.brand-text i { display:block; font-style:normal; font-size:12px; color:#a18d5f; letter-spacing:5px; margin-top:2px; }
.mast-contact { text-align:right; }
.mc-phone { display:block; font-family:Georgia,serif; font-size:26px; font-weight:700; color:#C41E1E; letter-spacing:1px; }
.mc-phone::before { content:"☎"; margin-right:6px; font-size:20px; }
.mc-tip { font-size:12px; color:#999; }

/* ---------- 主导航 ---------- */
.mainnav { background:#b31212; background:linear-gradient(180deg,#C41E1E,#a61212); box-shadow:0 2px 8px rgba(140,20,20,.25); }
.mainnav ul { display:flex; }
.mainnav li { position:relative; }
.mainnav a { display:block; color:#fff; font-size:17px; font-family:"SimSun","Songti SC",serif; letter-spacing:3px; padding:14px 34px; }
.mainnav li + li a { border-left:1px solid rgba(255,255,255,.18); }
.mainnav li:hover a, .mainnav li.active a { background:#8f0f0f; color:#ffe9a8; }

/* ---------- Banner ---------- */
.banner { position:relative; height:500px; overflow:hidden; }
.slide { position:absolute; inset:0; opacity:0; transition:opacity .8s ease; display:flex; align-items:center;
  background:#8f0f0f; }
.slide:nth-child(1) { background:linear-gradient(115deg,#7c0d0d 0%,#b31212 45%,#c9a24b 135%); }
.slide:nth-child(2) { background:linear-gradient(115deg,#5d1010 0%,#8f0f0f 55%,#2c3a47 130%); }
.slide:nth-child(3) { background:linear-gradient(115deg,#6d1d1d 0%,#a31616 50%,#7d6a36 135%); }
.slide.on { opacity:1; z-index:2; }
.slide-in { position:relative; z-index:2; padding:60px 0; }
.slide-in h2 { color:#fff; font-size:52px; letter-spacing:8px; text-shadow:0 2px 14px rgba(0,0,0,.25); margin-bottom:6px; }
.slide-in p { color:rgba(255,255,255,.92); font-size:19px; letter-spacing:2px; max-width:760px; margin:14px 0 28px; }
.slide-in h2::after { content:""; display:block; width:96px; height:3px; background:#d6a34b; margin:18px 0 0; }
.btn-gold { display:inline-block; background:linear-gradient(180deg,#d6a34b,#b9862f); color:#fff; padding:11px 30px; font-size:15px; letter-spacing:2px; border-radius:3px; box-shadow:0 3px 10px rgba(0,0,0,.2); }
.btn-gold:hover { background:#c18f2e; color:#fff; }
.btn-line { display:inline-block; border:1px solid #C41E1E; color:#C41E1E; padding:9px 26px; letter-spacing:1px; font-size:14px; border-radius:3px; }
.btn-line:hover { background:#C41E1E; color:#fff; }
.banner-dots { position:absolute; bottom:26px; left:0; right:0; z-index:5; display:flex; justify-content:center; gap:10px; }
.banner-dots span { width:30px; height:4px; background:rgba(255,255,255,.4); cursor:pointer; }
.banner-dots span.on { background:#ffe9a8; }

/* ---------- 快捷入口 ---------- */
.quicknav { background:#fff; }
.quicknav .wrap { display:flex; gap:26px; padding:34px 0 6px; }
.qn-item { flex:1; background:#fbf9f5; border-top:3px solid #d6a34b; padding:20px 22px; display:flex; align-items:center; gap:14px; box-shadow:0 2px 6px rgba(0,0,0,.05); }
.qn-item:hover { transform:translateY(-3px); box-shadow:0 8px 18px rgba(140,20,20,.12); }
.qn-ico { width:44px; height:44px; flex:none; border-radius:50%; background:linear-gradient(145deg,#C41E1E,#8f0f0f); color:#fff; font-style:normal; font-family:"SimSun",serif; font-size:20px; display:flex; align-items:center; justify-content:center; }
.qn-body { display:block; min-width:0; }
.qn-body b { display:block; color:#333; font-size:17px; font-family:"SimSun",serif; letter-spacing:1px; }
.qn-body span { display:block; color:#999; font-size:12px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- 通用分节 ---------- */
.sec { padding:58px 0 64px; }
.sec-head { text-align:center; margin-bottom:40px; }
.sec-head h2 { font-size:32px; color:#1d1d1f; letter-spacing:6px; position:relative; display:inline-block; }
.sec-head h2::after { content:""; display:block; width:46px; height:3px; background:#C41E1E; margin:14px auto 0; }
.sec-head span { display:block; margin-top:8px; font-size:12px; color:#b9a16b; letter-spacing:6px; font-family:Georgia,serif; }
.sec-head p { color:#888; font-size:14px; margin-top:8px; letter-spacing:2px; }
.sec-head.light h2 { color:#fff; }
.sec-head.light p { color:rgba(255,255,255,.8); }
.sec-head.light span { color:#e6cf9a; }

/* ---------- 走进芳华 ---------- */
.sec-about { background:#f7f5f0; }
.about-grid { display:grid; grid-template-columns:440px 1fr; gap:56px; align-items:center; }
.photo-frame { height:330px; background:linear-gradient(140deg,#8f0f0f,#c9a24b 130%); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; position:relative; box-shadow:14px 14px 0 rgba(185,134,47,.22); }
.photo-frame::before { content:""; position:absolute; inset:14px; border:1px solid rgba(255,255,255,.55); }
.pf-char { font-family:"SimSun",serif; font-size:110px; font-weight:700; line-height:1; text-shadow:0 6px 24px rgba(0,0,0,.3); }
.pf-sub { font-size:15px; letter-spacing:8px; margin-top:12px; }
.about-text h3 { font-size:24px; color:#C41E1E; letter-spacing:2px; margin-bottom:14px; }
.about-text p { color:#555; font-size:15px; line-height:2; text-align:justify; }
.about-points { margin:18px 0 24px; }
.about-points li { padding:6px 0 6px 26px; position:relative; color:#444; }
.about-points li::before { content:""; position:absolute; left:4px; top:15px; width:8px; height:8px; background:#d6a34b; transform:rotate(45deg); }

/* ---------- 业务板块 ---------- */
.sec-services { background:#26313b; }
.svc-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.svc-card { background:#fff; padding:26px 24px; position:relative; box-shadow:0 4px 12px rgba(0,0,0,.18); transition:all .25s; }
.svc-card:hover { transform:translateY(-4px); box-shadow:0 12px 26px rgba(0,0,0,.3); }
.svc-badge { width:44px; height:44px; display:flex; align-items:center; justify-content:center; font-family:"SimSun",serif; font-size:22px; color:#fff; background:linear-gradient(145deg,#C41E1E,#8f0f0f); margin-bottom:14px; }
.svc-card h3 { font-size:19px; color:#1d1d1f; letter-spacing:1px; margin-bottom:8px; }
.svc-card p { color:#666; font-size:13.5px; line-height:1.9; }

/* ---------- 使命愿景 ---------- */
.motto { background:linear-gradient(135deg,#a61212,#7c0d0d); }
.motto-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; }
.motto-grid > div { padding:40px 36px; text-align:center; }
.motto-grid > div + div { border-left:1px solid rgba(255,255,255,.22); }
.motto-grid i { display:inline-block; font-style:normal; font-family:"SimSun",serif; font-size:20px; color:#ffe9a8; border:1px solid rgba(255,233,168,.65); padding:2px 16px; letter-spacing:4px; border-radius:2px; }
.motto-grid p { color:#fff; font-size:16px; letter-spacing:1px; margin-top:16px; line-height:2; }

/* ---------- 核心优势 ---------- */
.sec-adv { background:#fff; }
.adv-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.adv-item { background:#fbf9f5; border:1px solid #eee; padding:28px 26px; text-align:center; transition:all .25s; }
.adv-item:hover { border-color:#d6a34b; box-shadow:0 8px 20px rgba(0,0,0,.07); }
.adv-no { width:46px; height:46px; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-family:"SimSun",serif; font-size:22px; color:#8f0f0f; border:2px solid #d6a34b; border-radius:50%; }
.adv-item h3 { font-size:18px; color:#1d1d1f; letter-spacing:2px; margin-bottom:8px; }
.adv-item p { color:#777; font-size:13.5px; line-height:1.9; }

/* ---------- 新闻 ---------- */
.sec-news { background:#f7f5f0; }
.news-grid { display:grid; grid-template-columns:1fr 1.15fr; gap:34px; align-items:start; }
.news-lead { display:block; background:#fff; padding:22px; border-top:3px solid #C41E1E; box-shadow:0 3px 10px rgba(0,0,0,.05); }
.nl-thumb { display:flex; height:170px; align-items:center; justify-content:center; background:linear-gradient(135deg,#8f0f0f,#c9a24b); color:rgba(255,255,255,.92); font-family:"SimSun",serif; font-size:64px; margin-bottom:16px; }
.nl-img { display:block; width:100%; height:190px; object-fit:cover; margin-bottom:14px; background:#eee; }
.news-lead h3 { color:#1d1d1f; font-size:19px; line-height:1.5; margin-bottom:8px; }
.news-lead:hover h3 { color:#C41E1E; }
.news-lead p { color:#888; font-size:13px; line-height:1.9; height:50px; overflow:hidden; }
.news-lead em { display:inline-block; font-style:normal; color:#b9a16b; font-size:12px; margin-top:8px; font-family:Georgia,serif; }
.news-list { background:#fff; padding:8px 24px; border-top:3px solid #C41E1E; box-shadow:0 3px 10px rgba(0,0,0,.05); }
.news-list li { display:flex; justify-content:space-between; align-items:center; padding:13px 0; border-bottom:1px dashed #e4e0d8; }
.news-list li:last-child { border-bottom:0; }
.news-list a { color:#444; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:72%; }
.news-list a::before { content:""; display:inline-block; width:6px; height:6px; background:#C41E1E; margin-right:10px; vertical-align:middle; }
.news-list a:hover { color:#C41E1E; }
.news-list span { color:#b0a78f; font-size:12px; font-family:Georgia,serif; flex:none; }
.nl-more a::before { content:none; }

/* ---------- CTA ---------- */
.cta { background:#222d36; }
.cta-in { display:flex; justify-content:space-between; align-items:center; padding:36px 0; }
.cta-in h3 { color:#fff; font-size:24px; letter-spacing:3px; }
.cta-in p { color:rgba(255,255,255,.75); margin-top:4px; letter-spacing:1px; }

/* ---------- 页脚 ---------- */
.site-footer { background:#1c262e; border-top:3px solid #d6a34b; color:#c7ccd1; }
.footer-top { display:grid; grid-template-columns:1.3fr 1fr 1.2fr; gap:40px; padding:44px 0 36px; }
.f-col h4 { color:#fff; font-size:17px; letter-spacing:2px; margin-bottom:16px; position:relative; padding-left:14px; }
.f-col h4::before { content:""; position:absolute; left:0; top:5px; bottom:5px; width:4px; background:#d6a34b; }
.f-col p { font-size:13px; line-height:2.1; color:#aeb6bc; }
.f-about p { text-align:justify; }
.f-links-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px 12px; }
.f-links-grid a { color:#aeb6bc; font-size:13px; }
.f-links-grid a:hover { color:#ffe9a8; }
.footer-bottom { background:#151d23; }
.footer-bottom .wrap { display:flex; justify-content:space-between; align-items:center; padding:14px 0; font-size:12.5px; color:#8d969c; }
.footer-bottom a { color:#8d969c; }
.footer-bottom a:hover { color:#fff; }

/* ================= 子页 ================= */
.page-hero { background:linear-gradient(115deg,#7c0d0d,#b31212 60%,#8a6a2a); color:#fff; padding:34px 0 30px; }
.page-hero h1 { font-size:30px; letter-spacing:6px; }
.page-hero .crumb { font-size:13px; color:rgba(255,255,255,.85); margin-top:8px; letter-spacing:1px; }
.page-hero .crumb a { color:#ffe9a8; }
.page-body { padding:44px 0 60px; min-height:420px; }
.article-content { line-height:2.1; color:#444; font-size:15.5px; }
.article-content h1,.article-content h2,.article-content h3 { color:#8f0f0f; margin:26px 0 12px; letter-spacing:2px; }
.article-content h3 { font-size:20px; padding-left:12px; border-left:4px solid #d6a34b; }
.article-content h4 { font-size:17px; color:#26313b; margin:18px 0 8px; }
.article-content p { margin:10px 0; }
.article-content ul,.article-content ol { margin:10px 0 10px 26px; }
.article-content ul li { list-style:square; color:#444; }
.article-content ol li { list-style:decimal; }
.article-content img { border:1px solid #eee; margin:8px 0; }

/* ---------- 联系我们表单 ---------- */
.guestbook { margin-top:44px; background:#f7f5f0; border-top:3px solid #C41E1E; padding:28px 30px 32px; }
.guestbook h3 { font-size:21px; color:#1d1d1f; letter-spacing:2px; margin-bottom:18px; }
.gb-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.guestbook input,.guestbook textarea { width:100%; border:1px solid #d8d2c6; background:#fff; padding:11px 14px; font-size:14px; font-family:inherit; outline:none; margin-bottom:14px; }
.guestbook input:focus,.guestbook textarea:focus { border-color:#C41E1E; }
.form-ok { background:#e9f6ec; border:1px solid #b9e0c2; color:#2e7d42; padding:10px 16px; margin-bottom:14px; font-size:14px; }
.form-err { background:#fdecec; border:1px solid #f2bcbc; color:#b31212; padding:10px 16px; margin-bottom:14px; font-size:14px; }

/* ---------- 新闻详情 ---------- */
.news-detail { max-width:900px; margin:0 auto; }
.nd-title { font-size:26px; color:#1d1d1f; text-align:center; letter-spacing:2px; line-height:1.5; }
.nd-meta { text-align:center; color:#9a9178; font-size:13px; border-bottom:1px dashed #ddd; padding:12px 0 18px; margin:14px 0 26px; }
.nd-meta span { margin:0 12px; }
.nd-back { margin-top:34px; text-align:center; }

/* ---------- 新闻列表页 ---------- */
.news-cats { display:flex; gap:12px; margin-bottom:26px; }
.news-cats a { padding:8px 26px; border:1px solid #d8d2c6; color:#555; font-size:14px; background:#fff; }
.news-cats a.on, .news-cats a:hover { background:#C41E1E; border-color:#C41E1E; color:#fff; }
.news-row { display:flex; align-items:center; gap:26px; background:#fff; border:1px solid #eee; padding:20px 24px; margin-bottom:14px; transition:all .2s; }
.news-row:hover { border-color:#d6a34b; box-shadow:0 6px 16px rgba(0,0,0,.06); }
.nr-date { flex:none; width:66px; text-align:center; color:#8f0f0f; border-right:2px solid #d6a34b; padding-right:20px; }
.nr-thumb { flex:none; width:92px; height:58px; overflow:hidden; border:1px solid #eee; }
.nr-thumb img { width:100%; height:100%; object-fit:cover; }
.nr-date b { display:block; font-family:Georgia,serif; font-size:28px; line-height:1.1; }
.nr-date { font-size:12px; }
.nr-main { flex:1; }
.nr-main b { display:block; color:#333; font-size:17px; font-family:"SimSun",serif; letter-spacing:1px; }
.news-row:hover .nr-main b { color:#C41E1E; }
.nr-main i { font-style:normal; display:block; color:#999; font-size:13px; margin-top:4px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:760px; }
.news-row em { font-style:normal; color:#b9a16b; font-size:13px; flex:none; }

/* ---------- 分页 ---------- */
.pagination { text-align:center; margin-top:30px; }
.pagination a,.pagination span { display:inline-block; min-width:36px; padding:7px 12px; border:1px solid #ddd; background:#fff; color:#666; font-size:13px; margin:0 3px; }
.pagination a:hover { border-color:#C41E1E; color:#C41E1E; }
.pagination .cur { background:#C41E1E; border-color:#C41E1E; color:#fff; }

/* ================= 响应式 ================= */
@media (max-width:960px) {
  .quicknav .wrap { flex-wrap:wrap; }
  .qn-item { flex:1 1 44%; }
  .about-grid { grid-template-columns:1fr; }
  .photo-frame { height:240px; }
  .svc-grid,.adv-grid { grid-template-columns:1fr 1fr; }
  .motto-grid { grid-template-columns:1fr; }
  .motto-grid > div + div { border-left:0; border-top:1px solid rgba(255,255,255,.22); }
  .news-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; gap:24px; }
  .mainnav ul { overflow-x:auto; }
  .mainnav a { padding:12px 18px; font-size:15px; white-space:nowrap; }
  .slide-in h2 { font-size:34px; }
  .mast-contact { display:none; }
}
@media (max-width:560px) {
  .svc-grid,.adv-grid { grid-template-columns:1fr; }
  .gb-row { grid-template-columns:1fr; }
  .top-contacts { display:none; }
  .sec { padding:40px 0 44px; }
  .news-row { flex-wrap:wrap; }
  .nr-date { border-right:0; border-bottom:2px solid #d6a34b; width:auto; padding:0 0 6px; display:flex; gap:8px; align-items:baseline; }
  .brand-text b { font-size:14px; letter-spacing:0; }
  .brand-mark { width:44px; height:44px; }
  .brand-mark img { width:44px; height:44px; }
  .brand { gap:8px; }
}
