/* 辉煌建筑材料官网 主样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f5f5; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: all 0.3s; }
a:hover { color: #c00; }
img { border: none; max-width: 100%; }
ul, ol { list-style: none; }
.clearfix::after { content: ""; display: block; clear: both; }
.container { width: 1200px; margin: 0 auto; }

/* 顶部信息栏 */
.top-bar { background: #2c3e50; color: #fff; height: 36px; line-height: 36px; font-size: 13px; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-bar a { color: #ccc; margin: 0 8px; }
.top-bar a:hover { color: #fff; }

/* 头部 */
.header { background: #fff; padding: 20px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 60px; }
.header-info { text-align: right; }
.header-info .hotline { font-size: 22px; color: #c00; font-weight: bold; }
.header-info .hotline span { font-size: 14px; color: #666; font-weight: normal; margin-right: 5px; }
.header-info p { font-size: 13px; color: #888; }

/* 导航 */
.nav { background: linear-gradient(to bottom, #1a5276, #154360); }
.nav ul { display: flex; }
.nav li { flex: 1; text-align: center; position: relative; }
.nav li a { display: block; color: #fff; font-size: 16px; padding: 16px 0; font-weight: 500; border-right: 1px solid rgba(255,255,255,0.1); }
.nav li:last-child a { border-right: none; }
.nav li a:hover, .nav li a.active { background: #c0392b; }
.nav li a::after { content: ""; display: block; width: 0; height: 3px; background: #f39c12; margin: 0 auto; transition: width 0.3s; }
.nav li a:hover::after, .nav li a.active::after { width: 60%; }

/* Banner */
.banner { width: 100%; height: 450px; overflow: hidden; position: relative; background: #1a5276; }
.banner-slide { width: 100%; height: 450px; display: flex; align-items: center; justify-content: center; color: #fff; }
.banner-slide h2 { font-size: 48px; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.banner-slide p { font-size: 20px; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }

/* 主体区域 */
.main { padding: 30px 0; }
.section { background: #fff; margin-bottom: 25px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.section-title { padding: 15px 25px; border-bottom: 2px solid #c0392b; display: flex; justify-content: space-between; align-items: center; }
.section-title h3 { font-size: 20px; color: #1a5276; }
.section-title h3::before { content: ""; display: inline-block; width: 4px; height: 20px; background: #c0392b; margin-right: 10px; vertical-align: middle; }
.section-title .more { font-size: 13px; color: #888; }
.section-title .more:hover { color: #c0392b; }

/* 关于我们 */
.about-wrap { padding: 25px; display: flex; gap: 30px; }
.about-img { width: 450px; flex-shrink: 0; }
.about-img img { width: 100%; height: 280px; object-fit: cover; border-radius: 4px; }
.about-text { flex: 1; }
.about-text h4 { font-size: 18px; color: #1a5276; margin-bottom: 12px; }
.about-text p { font-size: 14px; color: #555; text-indent: 2em; margin-bottom: 10px; line-height: 1.8; }
.about-text .btn { display: inline-block; margin-top: 10px; padding: 8px 25px; background: #c0392b; color: #fff; border-radius: 3px; font-size: 14px; }
.about-text .btn:hover { background: #a93226; }

/* 产品展示 */
.product-grid { padding: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-item { border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; }
.product-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.product-item .p-img { width: 100%; height: 200px; overflow: hidden; background: #f0f0f0; }
.product-item .p-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-item:hover .p-img img { transform: scale(1.08); }
.product-item .p-info { padding: 12px 15px; text-align: center; }
.product-item .p-info h4 { font-size: 15px; color: #333; margin-bottom: 5px; }
.product-item .p-info p { font-size: 13px; color: #888; }

/* 新闻列表 */
.news-wrap { padding: 25px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.news-list li { padding: 12px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; align-items: center; }
.news-list li a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 15px; font-size: 14px; }
.news-list li a::before { content: "▸"; color: #c0392b; margin-right: 8px; }
.news-list li .date { color: #999; font-size: 13px; white-space: nowrap; }

/* 优势/服务 */
.advantage-grid { padding: 25px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.adv-item { padding: 20px 10px; }
.adv-item .adv-icon { width: 70px; height: 70px; margin: 0 auto 15px; background: linear-gradient(135deg, #c0392b, #e74c3c); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; color: #fff; }
.adv-item h4 { font-size: 16px; color: #1a5276; margin-bottom: 8px; }
.adv-item p { font-size: 13px; color: #777; }

/* 新闻列表页 */
.page-banner { background: linear-gradient(rgba(26,82,118,0.85), rgba(21,67,96,0.9)), #1a5276; padding: 60px 0; text-align: center; color: #fff; }
.page-banner h2 { font-size: 36px; margin-bottom: 10px; }
.page-banner p { font-size: 16px; opacity: 0.9; }
.breadcrumb { padding: 15px 0; font-size: 13px; color: #888; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #c0392b; }
.breadcrumb span { margin: 0 8px; }

.news-page-list { background: #fff; padding: 0; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.news-page-item { padding: 20px 25px; border-bottom: 1px solid #f0f0f0; display: flex; gap: 20px; transition: background 0.3s; }
.news-page-item:hover { background: #fafafa; }
.news-page-item .np-img { width: 200px; height: 130px; flex-shrink: 0; overflow: hidden; border-radius: 4px; }
.news-page-item .np-img img { width: 100%; height: 100%; object-fit: cover; }
.news-page-item .np-text { flex: 1; }
.news-page-item .np-text h4 { font-size: 18px; margin-bottom: 10px; }
.news-page-item .np-text h4 a { color: #222; }
.news-page-item .np-text h4 a:hover { color: #c0392b; }
.news-page-item .np-meta { font-size: 13px; color: #999; margin-bottom: 10px; }
.news-page-item .np-meta span { margin-right: 20px; }
.news-page-item .np-summary { font-size: 14px; color: #666; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 分页 */
.pagination { text-align: center; padding: 30px 0; }
.pagination a, .pagination span { display: inline-block; min-width: 38px; height: 38px; line-height: 38px; padding: 0 10px; margin: 0 3px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; color: #555; background: #fff; }
.pagination a:hover { border-color: #c0392b; color: #c0392b; }
.pagination .active { background: #c0392b; color: #fff; border-color: #c0392b; }
.pagination .disabled { color: #ccc; cursor: not-allowed; }

/* 新闻详情页 */
.article { background: #fff; padding: 40px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.article-header { text-align: center; margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px solid #eee; }
.article-header h1 { font-size: 28px; color: #222; line-height: 1.5; margin-bottom: 15px; }
.article-meta { font-size: 13px; color: #999; }
.article-meta span { margin: 0 12px; }
.article-content { font-size: 16px; color: #333; line-height: 2; }
.article-content p { margin-bottom: 18px; text-indent: 2em; }
.article-content img { max-width: 100%; height: auto; display: block; margin: 20px auto; border-radius: 4px; }
.article-content h2, .article-content h3 { margin: 25px 0 15px; color: #1a5276; text-indent: 0; }
.article-footer { margin-top: 35px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; color: #888; }
.article-nav { margin-top: 20px; padding: 20px; background: #f9f9f9; border-radius: 4px; font-size: 14px; }
.article-nav p { margin: 8px 0; color: #555; }
.article-nav a { color: #1a5276; }
.article-nav a:hover { color: #c0392b; }

/* 联系我们页面 */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 30px; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.contact-info h3 { font-size: 20px; color: #1a5276; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #c0392b; }
.contact-info ul li { padding: 12px 0; font-size: 15px; border-bottom: 1px dashed #eee; }
.contact-info ul li strong { color: #1a5276; width: 90px; display: inline-block; }
.contact-form h3 { font-size: 20px; color: #1a5276; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #c0392b; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; color: #555; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 3px; font-size: 14px; font-family: inherit; }
.form-group textarea { height: 120px; resize: vertical; }
.form-group input:focus, .form-group textarea:focus { border-color: #1a5276; outline: none; }
.submit-btn { padding: 10px 35px; background: #c0392b; color: #fff; border: none; border-radius: 3px; font-size: 15px; cursor: pointer; transition: background 0.3s; }
.submit-btn:hover { background: #a93226; }

/* 产品列表页 */
.product-page-grid { padding: 25px; background: #fff; border-radius: 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }

/* 关于页面 */
.about-page { padding: 35px; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.about-page h2 { font-size: 26px; color: #1a5276; margin-bottom: 20px; text-align: center; }
.about-page .abt-img { width: 100%; height: 350px; object-fit: cover; border-radius: 4px; margin: 20px 0; }
.about-page p { font-size: 15px; color: #444; line-height: 2; text-indent: 2em; margin-bottom: 15px; }
.about-page h3 { font-size: 20px; color: #c0392b; margin: 25px 0 15px; text-indent: 0; }

/* 侧栏布局 */
.content-with-sidebar { display: grid; grid-template-columns: 240px 1fr; gap: 25px; }
.sidebar {}
.side-box { background: #fff; border-radius: 4px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.side-title { background: linear-gradient(to bottom, #1a5276, #154360); color: #fff; padding: 12px 18px; font-size: 16px; }
.side-nav li { border-bottom: 1px solid #f0f0f0; }
.side-nav li a { display: block; padding: 12px 18px; font-size: 14px; }
.side-nav li a:hover, .side-nav li a.active { background: #fdf2f2; color: #c0392b; padding-left: 25px; }
.side-nav li a::before { content: "›"; margin-right: 8px; }
.side-contact { padding: 18px; font-size: 13px; color: #666; line-height: 2; }
.side-contact .call { font-size: 20px; color: #c0392b; font-weight: bold; }

/* 底部 */
.footer { background: #1a2530; color: #aaa; padding: 40px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid #2c3e50; }
.footer p, .footer li { font-size: 13px; line-height: 2; color: #999; }
.footer a { color: #999; }
.footer a:hover { color: #e74c3c; }
.footer .foot-logo { margin-bottom: 15px; }
.footer .foot-logo img { height: 45px; }
.footer .copy { background: #111a22; padding: 18px 0; text-align: center; font-size: 13px; color: #777; border-top: 1px solid #2c3e50; }
.footer .copy a { color: #999; }
.footer .copy p { margin: 3px 0; }

/* 返回顶部 */
.back-top { position: fixed; right: 30px; bottom: 50px; width: 45px; height: 45px; background: #c0392b; color: #fff; text-align: center; line-height: 45px; border-radius: 3px; font-size: 20px; cursor: pointer; opacity: 0; transition: opacity 0.3s; z-index: 99; }
.back-top.show { opacity: 1; }
.back-top:hover { background: #a93226; }

/* 响应式适配 */
@media (max-width: 1220px) {
  .container { width: 98%; }
  .about-wrap { flex-direction: column; }
  .about-img { width: 100%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-with-sidebar { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}
