/* ===== 四川聚达昌商贸有限公司 企业官网样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", Arial, sans-serif; color: #333; line-height: 1.7; background: #f5f6f8; }
a { text-decoration: none; color: #333; }
a:hover { color: #c0392b; }
img { max-width: 100%; display: block; border: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ===== 顶部菜单条 ===== */
.topbar { background: #1a2233; color: #ccc; font-size: 13px; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #ccc; margin-left: 15px; }
.topbar a:hover { color: #ffd700; }
.topbar .tel { color: #ffd700; font-weight: bold; }

/* ===== 头部 LOGO ===== */
.header { background: #fff; padding: 18px 0; border-bottom: 3px solid #c0392b; }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; }
.logo .mark { width: 60px; height: 60px; background: #c0392b; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: bold; margin-right: 15px; }
.logo h1 { font-size: 28px; color: #1a2233; line-height: 1.2; }
.logo p { font-size: 13px; color: #888; letter-spacing: 2px; margin-top: 2px; }
.header .slogan { text-align: right; font-size: 13px; color: #888; border-left: 3px solid #c0392b; padding-left: 15px; }
.header .slogan b { display: block; font-size: 18px; color: #c0392b; }

/* ===== 主导航 ===== */
.nav { background: #2c3e50; }
.nav .container { display: flex; }
.nav a { color: #fff; padding: 15px 22px; font-size: 16px; font-weight: bold; }
.nav a:hover, .nav a.active { background: #c0392b; }

/* ===== 首页横幅 ===== */
.banner { position: relative; height: 400px; overflow: hidden; }
.banner .slide { width: 100%; height: 100%; object-fit: cover; }
.banner .caption { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; padding: 25px 0; }
.banner .caption h2 { font-size: 28px; margin-bottom: 6px; }
.banner .caption p { font-size: 14px; color: #ddd; }

/* ===== 首页区块标题 ===== */
.section-title { text-align: center; padding: 40px 0 10px; }
.section-title h2 { font-size: 30px; color: #1a2233; position: relative; display: inline-block; }
.section-title h2::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); width: 50px; height: 3px; background: #c0392b; }
.section-title p { color: #999; margin-top: 15px; letter-spacing: 1px; }

/* ===== 公司简介区块 ===== */
.intro { background: #fff; padding: 30px 0 40px; }
.intro .box { display: flex; gap: 30px; align-items: flex-start; }
.intro .text h3 { color: #c0392b; margin-bottom: 15px; font-size: 20px; }
.intro .text p { color: #555; margin-bottom: 10px; text-indent: 2em; }
.intro .text .btn { display: inline-block; background: #c0392b; color: #fff; padding: 8px 20px; margin-top: 10px; border-radius: 3px; }

/* ===== 产品网格 ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 40px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 6px; overflow: hidden; transition: all .3s; }
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); transform: translateY(-4px); }
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-card .info { padding: 15px; }
.product-card .info h3 { font-size: 17px; margin-bottom: 6px; }
.product-card .info p { color: #777; font-size: 13px; }
.product-card .info .more { display: inline-block; margin-top: 10px; color: #c0392b; font-size: 13px; }

/* ===== 功能展示（约克三块） ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 40px; }
.feature { background: #fff; padding: 25px; text-align: center; border-top: 3px solid #c0392b; }
.feature .icon { font-size: 40px; margin-bottom: 10px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: #777; font-size: 13px; }

/* ===== 理念条幅 ===== */
.slogan-banner { background: #1a2233; color: #fff; padding: 40px 0; text-align: center; }
.slogan-banner h2 { font-size: 30px; color: #ffd700; margin-bottom: 10px; }
.slogan-banner p { color: #ccc; letter-spacing: 1px; }

/* ===== 新闻列表 ===== */
.news-list { padding: 20px 0 40px; }
.news-item { background: #fff; border: 1px solid #eee; border-radius: 6px; padding: 20px; margin-bottom: 15px; display: flex; gap: 20px; }
.news-item .date { width: 70px; text-align: center; background: #c0392b; color: #fff; border-radius: 4px; padding: 10px 0; flex-shrink: 0; }
.news-item .date b { display: block; font-size: 22px; }
.news-item .date span { font-size: 12px; }
.news-item h3 { font-size: 17px; margin-bottom: 6px; }
.news-item h3 a:hover { color: #c0392b; }
.news-item p { color: #777; font-size: 13px; }

/* ===== 分页头部 ===== */
.page-banner { background: #2c3e50; color: #fff; padding: 30px 0; }
.page-banner h1 { font-size: 26px; }
.page-banner p { color: #ccc; font-size: 13px; margin-top: 5px; }

.page-wrap { display: flex; gap: 25px; margin-top: 20px; }
.sidebar { width: 240px; background: #fff; border-radius: 6px; padding: 20px; flex-shrink: 0; height: fit-content; }
.sidebar h3 { color: #fff; background: #c0392b; padding: 10px 12px; border-radius: 3px; margin-bottom: 10px; }
.sidebar a { display: block; padding: 10px 12px; border-bottom: 1px solid #f0f0f0; color: #555; font-size: 14px; }
.sidebar a:hover, .sidebar a.active { color: #c0392b; padding-left: 18px; }
.content { flex: 1; background: #fff; border-radius: 6px; padding: 25px; }
.content h2 { color: #1a2233; border-left: 4px solid #c0392b; padding-left: 12px; margin-bottom: 20px; font-size: 22px; }
.content p { color: #555; margin-bottom: 12px; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-item { background: #fff; border-radius: 6px; padding: 25px; text-align: center; }
.contact-item .icon { font-size: 36px; margin-bottom: 10px; }
.contact-item h3 { color: #c0392b; margin-bottom: 8px; }
.contact-item p { color: #666; }

/* ===== 关于我们企业文化 ===== */
.culture-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.culture-card { background: #fff; border-radius: 6px; padding: 20px; border-left: 4px solid #c0392b; }
.culture-card h3 { margin-bottom: 8px; color: #1a2233; }
.culture-card p { color: #666; font-size: 14px; }

/* ===== 页脚 ===== */
.footer { background: #1a2233; color: #aaa; padding: 35px 0 0; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-bottom: 25px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 16px; }
.footer a { color: #aaa; display: block; padding: 4px 0; font-size: 13px; }
.footer a:hover { color: #ffd700; }
.footer .copyright { border-top: 1px solid #2c3e50; padding: 15px 0; text-align: center; font-size: 12px; color: #666; }
.footer .copyright a { display: inline; color: #888; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .nav .container { flex-wrap: wrap; }
  .products-grid, .features, .culture-list, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .intro .box { flex-direction: column; }
  .page-wrap { flex-direction: column; }
  .sidebar { width: 100%; }
  .footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products-grid, .features, .contact-grid { grid-template-columns: 1fr; }
  .header .container { flex-direction: column; text-align: center; }
  .header .slogan { text-align: center; border-left: none; padding-left: 0; }
}