/* ============================================================
   河南省平舆县洪山庙 - 主样式
   主色调：金色 #C9A961  / 朱红 #B22222  / 米白 #FAF7F0
   ============================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif; color: #333; line-height: 1.7; background: #FAF7F0; }
a { color: #8B6914; text-decoration: none; transition: color .2s; }
a:hover { color: #B22222; }
img { max-width: 100%; height: auto; vertical-align: middle; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== 颜色变量 ===== */
:root {
  --gold: #C9A961;
  --gold-dark: #8B6914;
  --gold-light: #E5C97F;
  --red: #B22222;
  --red-dark: #8B0000;
  --bg: #FAF7F0;
  --bg-card: #FFFEF9;
  --text: #4A3520;
  --text-light: #8B7355;
  --border: #E5D8B7;
}

/* ===== 顶部 ===== */
.site-header { background: #fff; box-shadow: 0 2px 12px rgba(184,134,11,.1); position: relative; z-index: 10; }
.header-top { background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark)); color: #fff; font-size: 12px; padding: 6px 0; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; }
.header-top a { color: #fff; }
.header-top a:hover { color: #FFE5B4; }

.header-main { padding: 22px 0; background: linear-gradient(180deg, #FFFCF2 0%, #fff 100%); }
.header-flex { display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 18px; }
.logo-img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(184,134,11,.25)); }
.brand-text h1 { font-size: 28px; color: var(--red-dark); font-weight: 700; letter-spacing: 2px; }
.brand-text p { font-size: 14px; color: var(--gold-dark); margin-top: 4px; letter-spacing: 4px; }

.main-nav { background: linear-gradient(90deg, var(--red-dark), var(--red), var(--red-dark)); border-top: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.main-nav ul { display: flex; }
.main-nav li { flex: 1; text-align: center; position: relative; }
.main-nav li::after { content: ""; position: absolute; right: 0; top: 25%; height: 50%; width: 1px; background: rgba(255,255,255,.2); }
.main-nav li:last-child::after { display: none; }
.main-nav a { display: block; color: #fff; padding: 14px 0; font-size: 16px; font-weight: 500; letter-spacing: 2px; position: relative; transition: all .3s; }
.main-nav a:hover, .main-nav a.active { background: var(--gold); color: var(--red-dark); font-weight: 700; }
.main-nav a::before { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 3px; background: var(--gold-light); transition: all .3s; transform: translateX(-50%); }
.main-nav a:hover::before, .main-nav a.active::before { width: 60%; }

/* ===== 轮播图 ===== */
.slider { position: relative; height: 420px; overflow: hidden; }
.slider .slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; opacity: 0; transition: opacity 1s; }
.slider .slide.active { opacity: 1; }
.slider .slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(139,0,0,.55), rgba(74,53,32,.7)), url('/assets/images/slider_bg.png') center/cover; }
.slider .slide-inner { position: relative; z-index: 1; padding: 0 30px; }
.slider h2 { font-size: 50px; letter-spacing: 8px; text-shadow: 0 2px 12px rgba(0,0,0,.5); margin-bottom: 14px; }
.slider p { font-size: 22px; letter-spacing: 4px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.slider .dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.slider .dots span { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: all .3s; }
.slider .dots span.active { background: var(--gold); transform: scale(1.2); }

/* ===== 区块 ===== */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 40px; position: relative; }
.section-title h2 { font-size: 32px; color: var(--red-dark); letter-spacing: 6px; font-weight: 700; position: relative; display: inline-block; padding: 0 30px; }
.section-title h2::before, .section-title h2::after { content: ""; position: absolute; top: 50%; width: 50px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold)); }
.section-title h2::before { left: -50px; }
.section-title h2::after { right: -50px; background: linear-gradient(90deg, var(--gold), transparent); }
.section-title p { color: var(--text-light); font-size: 14px; letter-spacing: 4px; margin-top: 8px; }

/* ===== 首页布局 ===== */
.home-intro { background: #fff; }
.intro-flex { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.intro-flex img { border: 4px solid var(--gold); border-radius: 6px; box-shadow: 0 6px 20px rgba(184,134,11,.2); }
.intro-text h3 { color: var(--red-dark); font-size: 26px; margin-bottom: 14px; }
.intro-text .more { display: inline-block; margin-top: 14px; padding: 8px 24px; background: var(--red); color: #fff; border-radius: 4px; font-size: 14px; }
.intro-text .more:hover { background: var(--red-dark); }

.home-news { background: #FAF7F0; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.news-list .news-item { background: #fff; border-left: 4px solid var(--gold); padding: 18px 22px; margin-bottom: 14px; border-radius: 4px; transition: all .3s; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.news-list .news-item:hover { transform: translateX(6px); border-left-color: var(--red); box-shadow: 0 4px 16px rgba(178,34,34,.12); }
.news-item h4 { font-size: 17px; margin-bottom: 6px; }
.news-item h4 a { color: var(--text); }
.news-item h4 a:hover { color: var(--red); }
.news-item .meta { color: var(--text-light); font-size: 12px; }
.news-item .summary { color: #666; font-size: 13px; margin-top: 6px; }

.notice-board { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px; }
.notice-board h3 { color: var(--red-dark); font-size: 20px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--gold); letter-spacing: 3px; }
.notice-board ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.notice-board ul li a { font-size: 14px; color: var(--text); }
.notice-board ul li a:hover { color: var(--red); }

/* ===== 文化展示卡片 ===== */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.06); transition: all .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 8px 24px rgba(178,34,34,.15); }
.card .img { height: 180px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 60px; position: relative; overflow: hidden; }
.card .img::before { content: ""; position: absolute; inset: 0; background: url('/assets/images/logo.png') center/40% no-repeat; opacity: .2; }
.card .body { padding: 18px; }
.card .body h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.card .body p { color: #666; font-size: 13px; line-height: 1.6; }

/* ===== 文章列表页 ===== */
.page-banner { background: linear-gradient(rgba(139,0,0,.5), rgba(74,53,32,.6)), url('/assets/images/logo.png') center/cover; padding: 80px 0; color: #fff; text-align: center; }
.page-banner h1 { font-size: 38px; letter-spacing: 8px; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.page-banner p { letter-spacing: 4px; margin-top: 8px; }
.breadcrumb { background: #fff; border-bottom: 1px solid var(--border); padding: 14px 0; font-size: 14px; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 8px; color: var(--border); }

.content-wrap { padding: 40px 0 60px; }
.layout { display: grid; grid-template-columns: 1fr 280px; gap: 30px; }
.article-list .item { background: #fff; padding: 22px; margin-bottom: 16px; border-radius: 6px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.04); transition: all .3s; }
.article-list .item:hover { box-shadow: 0 4px 16px rgba(178,34,34,.12); }
.article-list .item .cover { height: 140px; background: var(--gold-light); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.article-list .item .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-list .item h3 { font-size: 20px; margin-bottom: 10px; }
.article-list .item h3 a { color: var(--text); }
.article-list .item h3 a:hover { color: var(--red); }
.article-list .item .meta { color: var(--text-light); font-size: 12px; margin-bottom: 8px; }
.article-list .item .summary { color: #666; font-size: 14px; line-height: 1.7; }

.sidebar { align-self: start; }
.sidebar .widget { background: #fff; border-radius: 6px; padding: 18px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.sidebar .widget h3 { color: var(--red-dark); font-size: 18px; padding-left: 12px; border-left: 4px solid var(--gold); margin-bottom: 14px; }
.sidebar .widget ul li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.sidebar .widget ul li:last-child { border-bottom: 0; }
.sidebar .widget ul li .date { color: var(--text-light); font-size: 12px; float: right; }

/* ===== 文章详情 ===== */
.article-detail { background: #fff; padding: 40px; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.article-detail h1 { font-size: 30px; color: var(--text); text-align: center; margin-bottom: 18px; }
.article-detail .meta { text-align: center; color: var(--text-light); font-size: 13px; padding-bottom: 18px; border-bottom: 1px dashed var(--border); margin-bottom: 24px; }
.article-detail .content { font-size: 16px; line-height: 1.9; color: #444; }
.article-detail .content p { margin-bottom: 14px; }
.article-detail .content img { max-width: 100%; border-radius: 4px; margin: 10px 0; }
.article-detail .content h2, .article-detail .content h3 { color: var(--red-dark); margin: 20px 0 10px; }
.article-detail .nav-links { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 14px; }

/* ===== 分页 ===== */
.pagination { text-align: center; margin: 30px 0; }
.pagination a { display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid var(--border); background: #fff; color: var(--text); border-radius: 3px; }
.pagination a:hover, .pagination a.active { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== 留言 ===== */
.message-form { background: #fff; padding: 36px; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text); font-size: 14px; }
.form-group .required { color: var(--red); }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 14px; font-family: inherit; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,97,.1); }
.form-group textarea { min-height: 130px; resize: vertical; }
.btn { display: inline-block; padding: 10px 28px; background: var(--red); color: #fff; border: 0; border-radius: 4px; font-size: 15px; cursor: pointer; transition: all .3s; }
.btn:hover { background: var(--red-dark); }
.btn-gold { background: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); }
.message-list { margin-top: 30px; }
.message-card { background: #fff; padding: 18px 22px; margin-bottom: 14px; border-radius: 6px; border-left: 4px solid var(--gold); }
.message-card .head { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; color: var(--text-light); }
.message-card .head strong { color: var(--text); }
.message-card .content-text { font-size: 14px; color: #555; }
.message-card .reply { margin-top: 12px; padding: 12px; background: #FFF9E6; border-radius: 4px; font-size: 13px; color: #856404; }
.message-card .reply::before { content: "✦ 官方回复："; color: var(--red); font-weight: 700; }

/* ===== 图集 ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); transition: all .3s; cursor: pointer; }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(178,34,34,.15); }
.gallery-item .cover { height: 200px; background: linear-gradient(135deg, var(--gold-light), var(--gold)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.gallery-item .cover::after { content: "图集"; position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.5); color: #fff; padding: 2px 10px; border-radius: 3px; font-size: 12px; }
.gallery-item .body { padding: 16px; }
.gallery-item .body h3 { font-size: 17px; color: var(--text); margin-bottom: 6px; }
.gallery-item .body p { color: #888; font-size: 13px; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.contact-info { background: #fff; padding: 32px; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.contact-info h3 { color: var(--red-dark); font-size: 22px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); }
.contact-info p { margin: 14px 0; color: var(--text); }
.contact-info p .label { color: var(--gold-dark); font-weight: 600; margin-right: 10px; }
.map-area { background: #fff; border-radius: 6px; min-height: 320px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--text-light); padding: 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.map-area .icon { font-size: 60px; color: var(--gold); margin-bottom: 14px; }

/* ===== 关于页 ===== */
.about-section { background: #fff; padding: 40px; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.about-section h2 { color: var(--red-dark); font-size: 24px; padding-left: 14px; border-left: 5px solid var(--gold); margin: 24px 0 14px; }
.about-section p { color: #555; line-height: 1.9; margin-bottom: 12px; }

/* ===== 底部 ===== */
.site-footer { background: linear-gradient(180deg, #2C1810, #1a0f0a); color: #D4B68A; padding-top: 50px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-col h3 { color: var(--gold); font-size: 17px; margin-bottom: 18px; letter-spacing: 2px; position: relative; padding-bottom: 10px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--red); }
.footer-col p { font-size: 13px; line-height: 1.8; color: #B89968; margin-bottom: 8px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #B89968; font-size: 13px; }
.footer-col ul li a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(201,169,97,.2); padding: 20px 0; text-align: center; font-size: 13px; color: #8B7355; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #8B7355; }

/* ===== 响应式 ===== */
@media (max-width: 992px) {
  .layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .intro-flex { grid-template-columns: 1fr; }
  .main-nav a { font-size: 14px; padding: 12px 0; letter-spacing: 1px; }
  .slider h2 { font-size: 32px; }
  .slider p { font-size: 16px; }
}
@media (max-width: 600px) {
  .brand-text h1 { font-size: 20px; }
  .logo-img { width: 56px; height: 56px; }
  .main-nav ul { flex-wrap: wrap; }
  .main-nav li { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-list .item { grid-template-columns: 1fr; }
  .article-list .item .cover { height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 24px; padding: 0 16px; letter-spacing: 3px; }
  .section-title h2::before, .section-title h2::after { display: none; }
}
