/* 国政民安集团官网 - 前台样式（政务风 · PC + H5 响应式） */
:root {
  --red: #C00000;        /* 政务红：权威、庄重、公信力 */
  --red-dark: #A00000;
  --navy: #003366;       /* 深邃蓝：理智、稳重 */
  --navy-light: #0A4D8C;
  --navy-lighter: #1A5FA8;
  --text: #333;
  --text-light: #666;
  --bg: #fff;
  --bg-gray: #F7F8FA;
  --border: #E5E9F0;
  --radius: 2px;
  --shadow: 0 2px 8px rgba(0, 51, 102, .06);
  --font-hei: "SimHei", "STHeiti", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.8; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--font-hei); }

/* ===== 顶部 ===== */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; }
.topbar b { color: #fff; }
.topbar .container { display: flex; justify-content: space-between; padding: 6px 20px; }
.header { background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,.05); position: sticky; top: 0; z-index: 100; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 46px; width: auto; border-radius: var(--radius); display: block; }
.logo-name { font-size: 24px; font-weight: 700; color: var(--navy); letter-spacing: 3px; }
.logo-sub { font-size: 11px; color: var(--text-light); letter-spacing: 1px; text-transform: uppercase; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 12px 20px; font-size: 16px; color: var(--navy); border-bottom: 3px solid transparent; transition: .2s; font-family: var(--font-hei); }
.nav a:hover, .nav a.active { color: var(--red); border-bottom-color: var(--red); }
.menu-toggle { display: none; font-size: 26px; color: var(--navy); background: none; border: none; cursor: pointer; padding: 6px 10px; }

/* ===== 轮播 ===== */
.hero { position: relative; height: 480px; overflow: hidden; background: linear-gradient(115deg, #003366 0%, #0A4D8C 60%, #1A5FA8 100%); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px; background-size: cover; background-position: center; }
.slide.on { opacity: 1; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,30,60,.55) 0%, rgba(0,30,60,.35) 40%, rgba(0,30,60,.65) 100%); z-index: 0; }
.slide h2 { position: relative; font-size: 44px; letter-spacing: 6px; margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.slide h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin: 20px auto 0; }
.slide p { position: relative; font-size: 18px; color: rgba(255,255,255,.88); letter-spacing: 3px; }
.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 5; }
.hero-dots span { width: 30px; height: 4px; background: rgba(255,255,255,.35); border-radius: 0; cursor: pointer; transition: .3s; }
.hero-dots span.on { background: var(--red); }

/* ===== 通用板块 ===== */
.section { padding: 72px 0; }
.section.alt { background: var(--bg-gray); }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head h2 { font-size: 32px; color: var(--navy); letter-spacing: 3px; }
.sec-head .line { width: 56px; height: 4px; background: var(--red); margin: 14px auto 12px; }
.sec-head p { color: var(--text-light); font-size: 15px; }
.btn { display: inline-block; padding: 12px 36px; border-radius: var(--radius); font-size: 15px; cursor: pointer; border: none; transition: .2s; font-family: var(--font-hei); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-gold { background: var(--navy); color: #fff; }
.btn-gold:hover { background: var(--navy-light); }

/* 首页关于 */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-text h3 { font-size: 26px; color: var(--navy); margin-bottom: 18px; border-left: 5px solid var(--red); padding-left: 14px; }
.about-text p { color: var(--text-light); margin-bottom: 14px; white-space: pre-line; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stat { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 22px 10px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 30px; color: var(--red); font-family: var(--font-hei); }
.stat span { font-size: 13px; color: var(--text-light); }
.about-visual { border-radius: var(--radius); min-height: 360px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-top: 4px solid var(--red); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.about-visual .seal { text-align: center; color: #fff; z-index: 1; background: rgba(0,51,102,.82); padding: 28px 36px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.2); }

/* 业务卡片 */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.svc-card { background: #fff; border-radius: var(--radius); padding: 34px 26px; border: 1px solid var(--border); border-top: 3px solid transparent; box-shadow: var(--shadow); transition: .25s; }
.svc-card:hover { transform: translateY(-5px); border-top-color: var(--red); }
.svc-icon { width: 56px; height: 56px; border-radius: var(--radius); background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc-icon svg { width: 28px; height: 28px; stroke: #fff; }
.svc-card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--text-light); }

/* 新闻 */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-item { background: #fff; border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: .2s; }
.news-item:hover { border-color: var(--red); }
.news-item time { font-size: 13px; color: var(--red); }
.news-item h3 { font-size: 18px; color: var(--navy); margin: 8px 0; }
.news-item p { font-size: 14px; color: var(--text-light); }
.more-link { text-align: center; margin-top: 40px; }

/* CTA */
.cta { background: var(--navy); border-top: 4px solid var(--red); color: #fff; text-align: center; padding: 60px 20px; }
.cta h2 { font-size: 30px; letter-spacing: 3px; margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 26px; }

/* ===== 内页 ===== */
.page-hero { background: linear-gradient(115deg, #003366, #1A5FA8); border-bottom: 4px solid var(--red); color: #fff; text-align: center; padding: 72px 20px; }
.page-hero h1 { font-size: 34px; letter-spacing: 6px; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 15px; }
.crumb { font-size: 13px; color: var(--text-light); margin-bottom: 28px; }
.crumb a:hover { color: var(--red); }

/* 关于页 */
.prose { max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 46px 50px; }
.prose h1 { font-size: 26px; color: var(--navy); text-align: center; margin-bottom: 10px; }
.prose .prose-line { width: 50px; height: 4px; background: var(--red); margin: 0 auto 28px; }
.prose p { color: #555; margin-bottom: 16px; text-indent: 2em; white-space: pre-line; }

/* 业务列表页 */
.svc-row { display: flex; gap: 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 30px; margin-bottom: 22px; transition: .2s; }
.svc-row:hover { border-left: 4px solid var(--red); transform: translateX(4px); }
.svc-row .svc-icon { flex-shrink: 0; }
.svc-row h3 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.svc-row .summary { color: var(--text-light); font-size: 15px; }
.svc-row .detail { color: #666; font-size: 14px; margin-top: 10px; }

/* 新闻列表/详情 */
.news-list { max-width: 900px; margin: 0 auto; }
.news-row { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 24px 30px; margin-bottom: 18px; display: flex; align-items: center; gap: 26px; transition: .2s; }
.news-row:hover { border-color: var(--red); }
.news-date { flex-shrink: 0; text-align: center; width: 72px; border-right: 1px solid var(--border); padding-right: 18px; }
.news-date b { display: block; font-size: 26px; color: var(--red); font-family: var(--font-hei); }
.news-date span { font-size: 12px; color: var(--text-light); }
.news-row h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.news-row p { font-size: 14px; color: var(--text-light); }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination button { width: 38px; height: 38px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); cursor: pointer; color: var(--text); font-size: 14px; }
.pagination button.on, .pagination button:hover { background: var(--red); color: #fff; border-color: var(--red); }
.article { max-width: 900px; margin: 0 auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 46px 50px; }
.article h1 { font-size: 26px; color: var(--navy); line-height: 1.5; }
.article .meta { color: var(--text-light); font-size: 13px; padding: 16px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article .content p { margin-bottom: 14px; color: #555; text-indent: 2em; }
.back-link { margin: 24px 0; }

/* 联系页 */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; }
.contact-info { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 36px; border-top: 4px solid var(--red); }
.contact-info h3 { font-size: 22px; color: var(--navy); margin-bottom: 22px; }
.contact-info li { list-style: none; display: flex; gap: 12px; margin-bottom: 18px; color: #555; font-size: 15px; }
.contact-info li b { color: var(--navy); flex-shrink: 0; }
.contact-form { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 36px; border-top: 4px solid var(--navy); }
.contact-form h3 { font-size: 22px; color: var(--navy); margin-bottom: 22px; }
.form-item { margin-bottom: 18px; }
.form-item label { display: block; font-size: 14px; color: var(--navy); margin-bottom: 8px; font-weight: 600; }
.form-item input, .form-item textarea { width: 100%; padding: 12px 14px; border: 1px solid #C9D3DE; border-radius: var(--radius); font-size: 15px; font-family: inherit; outline: none; transition: .2s; }
.form-item input:focus, .form-item textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,0,0,.08); }
.form-item textarea { min-height: 130px; resize: vertical; }
.form-tip { color: var(--red); font-size: 14px; margin-top: 10px; min-height: 20px; }
.form-tip.err { color: #d9534f; }

/* ===== 视频板块 ===== */
.video-hero { position: relative; width: 100%; height: 480px; overflow: hidden; background: var(--navy); }
.video-hero video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-hero .video-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,30,60,.55) 0%, rgba(0,30,60,.25) 40%, rgba(0,30,60,.65) 100%); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 0 20px; }
.video-hero .video-overlay h2 { font-size: 44px; letter-spacing: 6px; margin-bottom: 22px; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.video-hero .video-overlay h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--red); margin: 20px auto 0; }
.video-hero .video-overlay p { font-size: 18px; color: rgba(255,255,255,.88); letter-spacing: 3px; }
.video-hero .video-btn { position: absolute; bottom: 22px; right: 22px; z-index: 5; background: rgba(0,51,102,.7); color: #fff; border: 1px solid rgba(255,255,255,.3); padding: 8px 16px; font-size: 13px; cursor: pointer; border-radius: var(--radius); transition: .2s; }
.video-hero .video-btn:hover { background: var(--red); border-color: var(--red); }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; background: #000; }
.video-card video { width: 100%; height: 220px; object-fit: cover; display: block; }
.video-card .play-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,30,60,.45); transition: .3s; }
.video-card .play-icon::before { content: "▶"; color: #fff; font-size: 36px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.video-card:hover .play-icon { background: rgba(0,30,60,.2); }
.video-card:hover .play-icon::before { transform: scale(1.15); transition: .2s; }
.video-card span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,30,60,.75), transparent); color: #fff; padding: 14px 12px 10px; font-size: 14px; letter-spacing: 1px; }

/* ===== 页脚 ===== */
.footer { background: var(--navy); color: rgba(255,255,255,.72); margin-top: 70px; }
.footer-main { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 40px; padding: 56px 0 40px; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; letter-spacing: 2px; border-left: 3px solid var(--red); padding-left: 10px; }
.footer .fbrand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer .fbrand .logo-img { height: 38px; width: auto; }
.footer .fbrand b { color: #fff; font-size: 20px; letter-spacing: 3px; }
.footer p, .footer li { font-size: 14px; line-height: 2; list-style: none; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.5); }

/* ===== 照片墙 ===== */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid .photo { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); cursor: pointer; }
.photo-grid .photo img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; display: block; }
.photo-grid .photo:hover img { transform: scale(1.06); }
.photo-grid .photo span { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,30,60,.75), transparent); color: #fff; padding: 14px 12px 10px; font-size: 14px; letter-spacing: 1px; }

/* ===== 响应式（H5） ===== */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid, .news-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; }
}
@media (max-width: 768px) {
  .topbar .container { justify-content: center; }
  .topbar .top-hide { display: none; }
  .header .container { height: 62px; }
  .logo-name { font-size: 19px; }
  .logo-sub { display: none; }
  .logo-img { height: 38px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 16px 16px; border-bottom: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.1); gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; border-bottom: none; }
  .nav a:hover, .nav a.active { background: var(--red); color: #fff; }
  .hero { height: 340px; }
  .slide h2 { font-size: 26px; letter-spacing: 3px; }
  .slide h2::after { width: 48px; height: 3px; margin-top: 14px; }
  .slide p { font-size: 14px; padding: 0 12px; }
  .video-hero { height: 340px; }
  .video-hero .video-overlay h2 { font-size: 26px; letter-spacing: 3px; }
  .video-hero .video-overlay h2::after { width: 48px; height: 3px; margin-top: 14px; }
  .video-hero .video-overlay p { font-size: 14px; padding: 0 12px; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card video { height: 200px; }
  .section { padding: 46px 0; }
  .sec-head h2 { font-size: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card video { height: 200px; }
  .about-visual { min-height: 220px; }
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat b { font-size: 22px; }
  .page-hero { padding: 48px 16px; }
  .page-hero h1 { font-size: 26px; }
  .prose, .article { padding: 28px 22px; }
  .news-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .news-date { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 8px; display: flex; gap: 8px; align-items: baseline; }
  .contact-info, .contact-form { padding: 26px 20px; }
  .cta h2 { font-size: 24px; }
}
