/* ============================================================
   恒源祥家纺 · 企业官网样式表
   品牌主色：酒红 #8f1d22  辅助：金色 #c9a063  底色：米白
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #444;
  background: #faf7f2;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #8f1d22; }
ul, ol { list-style: none; }
img { max-width: 100%; border: 0; vertical-align: middle; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ---------- 顶部信息条 ---------- */
.topbar { background: #8f1d22; color: #f5e6d3; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #f5e6d3; margin-left: 14px; }
.topbar a:hover { color: #ffd98a; }
.topbar .tb-r a { margin-left: 0; margin-right: 14px; }

/* ---------- Logo 区 ---------- */
.header { background: #fff; border-bottom: 1px solid #eee; }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 18px 15px; }
.logo a { display: flex; align-items: center; gap: 12px; }
.logo img { height: 52px; width: auto; }
.logo .logo-text { line-height: 1.25; }
.logo .logo-text h1 { font-size: 26px; color: #8f1d22; letter-spacing: 1px; }
.logo .logo-text span { font-size: 12px; color: #999; letter-spacing: 3px; }
.header .hotline { text-align: right; font-size: 13px; color: #888; }
.header .hotline b { display: block; font-size: 24px; color: #8f1d22; font-family: Georgia, serif; }

/* ---------- 主导航 ---------- */
.nav { background: #8f1d22; position: sticky; top: 0; z-index: 999; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.nav .container { display: flex; justify-content: space-between; align-items: center; }
.nav ul { display: flex; flex-wrap: wrap; }
.nav ul li a { display: block; color: #fdf3e7; padding: 14px 20px; font-size: 15px; }
.nav ul li a:hover, .nav ul li a.active { background: #c9a063; color: #fff; }
.nav .nav-right a { display: block; color: #ffd98a; padding: 14px 12px; font-size: 13px; }

/* ---------- 面包屑 ---------- */
.crumb { background: #fff; border-bottom: 1px solid #eee; }
.crumb .container { font-size: 13px; color: #999; padding: 12px 15px; }
.crumb a:hover { color: #8f1d22; }
.crumb em { margin: 0 6px; color: #ccc; }

/* ---------- 首页 Banner ---------- */
.banner { background: linear-gradient(120deg, #8f1d22 0%, #b52c33 55%, #c9a063 100%); color: #fff; }
.banner .container { padding: 54px 15px; }
.banner h2 { font-size: 34px; letter-spacing: 2px; }
.banner p { margin-top: 12px; font-size: 16px; color: #fbead0; max-width: 720px; }
.banner .bn-tags { margin-top: 20px; }
.banner .bn-tags a { display: inline-block; border: 1px solid rgba(255,255,255,.6); color: #fff; border-radius: 20px; padding: 5px 16px; margin-right: 10px; font-size: 13px; }
.banner .bn-tags a:hover { background: #fff; color: #8f1d22; }

/* ---------- 区块标题 ---------- */
.section { padding: 34px 0 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #8f1d22; padding-bottom: 10px; margin-bottom: 22px; }
.sec-head h2 { font-size: 24px; color: #333; }
.sec-head h2 span { color: #8f1d22; }
.sec-head h2 em { font-size: 13px; color: #c9a063; font-style: normal; margin-left: 8px; text-transform: uppercase; letter-spacing: 1px; }
.sec-head a.more { font-size: 13px; color: #999; }
.sec-head a.more:hover { color: #8f1d22; }

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 30px; }
.cat-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; text-align: center; transition: transform .25s, box-shadow .25s; }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.cat-card img { width: 100%; height: 170px; object-fit: cover; }
.cat-card h3 { padding: 14px 8px 6px; font-size: 17px; color: #333; }
.cat-card p { padding: 0 12px 16px; font-size: 12px; color: #aaa; }

/* ---------- 产品网格 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-bottom: 20px; }
.product-card { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px rgba(0,0,0,.1); }
.product-card .pic { display: block; position: relative; overflow: hidden; }
.product-card .pic img { width: 100%; height: 210px; object-fit: cover; transition: transform .4s; }
.product-card:hover .pic img { transform: scale(1.06); }
.product-card .pic .tag { position: absolute; left: 10px; top: 10px; background: #8f1d22; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.product-card .info { padding: 12px 14px 16px; }
.product-card .info .name { font-size: 14px; color: #333; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .info .name:hover { color: #8f1d22; }
.product-card .info .price { margin-top: 8px; color: #8f1d22; font-size: 18px; font-weight: bold; }
.product-card .info .price small { font-size: 12px; color: #999; font-weight: normal; margin-left: 8px; text-decoration: line-through; }

/* ---------- 新闻 / 案例列表 ---------- */
.news-list { background: #fff; border: 1px solid #eee; border-radius: 8px; overflow: hidden; }
.news-item { display: flex; gap: 16px; padding: 16px; border-bottom: 1px solid #f0f0f0; }
.news-item:last-child { border-bottom: 0; }
.news-item .thumb { flex: 0 0 200px; }
.news-item .thumb img { width: 200px; height: 130px; object-fit: cover; border-radius: 6px; }
.news-item .body { flex: 1; min-width: 0; }
.news-item .body h3 { font-size: 16px; color: #333; }
.news-item .body h3 a:hover { color: #8f1d22; }
.news-item .body .desc { margin-top: 6px; font-size: 13px; color: #999; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-item .body .meta { margin-top: 8px; font-size: 12px; color: #bbb; }
.news-item .body .meta span { margin-right: 16px; }

/* ---------- 关于/品牌介绍 ---------- */
.about-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 28px 30px; }
.about-box h2 { font-size: 22px; color: #8f1d22; margin: 20px 0 12px; padding-left: 12px; border-left: 4px solid #c9a063; }
.about-box h2:first-child { margin-top: 0; }
.about-box p { margin: 10px 0; color: #555; text-indent: 2em; text-align: justify; }
.about-box .honor-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.about-box .honor-list li { background: #faf7f2; border: 1px solid #eee; border-radius: 6px; padding: 14px; text-align: center; color: #666; }
.about-box .honor-list li b { display: block; color: #8f1d22; font-size: 15px; margin-bottom: 4px; }

/* ---------- 详情页 ---------- */
.detail { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 28px 32px; }
.detail h1 { font-size: 24px; color: #333; text-align: center; }
.detail .d-meta { text-align: center; color: #bbb; font-size: 13px; margin: 12px 0 20px; padding-bottom: 16px; border-bottom: 1px dashed #eee; }
.detail .d-meta span { margin: 0 10px; }
.detail .d-cover { text-align: center; margin: 10px 0 20px; }
.detail .d-cover img { max-width: 100%; border-radius: 8px; max-height: 420px; object-fit: cover; }
.detail .d-content p { margin: 14px 0; color: #555; text-align: justify; }
.detail .d-content h3 { font-size: 18px; color: #8f1d22; margin: 22px 0 10px; }
.detail .d-content img { display: block; margin: 16px auto; border-radius: 8px; }
.detail .d-page { margin-top: 24px; padding-top: 16px; border-top: 1px solid #eee; font-size: 13px; color: #888; display: flex; justify-content: space-between; }

/* ---------- 产品详情 ---------- */
.pdetail { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 28px 32px; }
.pdetail .pd-top { display: grid; grid-template-columns: 420px 1fr; gap: 30px; }
.pdetail .pd-img { border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; }
.pdetail .pd-img img { width: 100%; height: 420px; object-fit: cover; }
.pdetail .pd-info h1 { font-size: 22px; color: #333; line-height: 1.5; }
.pdetail .pd-info .price { color: #8f1d22; font-size: 30px; font-weight: bold; margin: 16px 0; }
.pdetail .pd-info .price small { font-size: 14px; color: #999; margin-left: 10px; text-decoration: line-through; font-weight: normal; }
.pdetail .pd-info .params { border-top: 1px dashed #eee; padding-top: 16px; }
.pdetail .pd-info .params li { padding: 7px 0; color: #666; font-size: 14px; }
.pdetail .pd-info .params li b { display: inline-block; width: 90px; color: #999; font-weight: normal; }
.pdetail .pd-info .btns { margin-top: 22px; }
.pdetail .pd-info .btns a { display: inline-block; padding: 11px 34px; border-radius: 4px; margin-right: 12px; }
.pdetail .pd-info .btns .buy { background: #8f1d22; color: #fff; }
.pdetail .pd-info .btns .buy:hover { background: #b52c33; }
.pdetail .pd-info .btns .fav { border: 1px solid #8f1d22; color: #8f1d22; }
.pdetail .pd-bottom { margin-top: 26px; }
.pdetail .pd-bottom h3 { font-size: 18px; color: #8f1d22; border-left: 4px solid #c9a063; padding-left: 10px; margin-bottom: 14px; }
.pdetail .pd-bottom p { color: #666; margin: 10px 0; text-align: justify; }

/* ---------- 联系/表单 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 24px; }
.panel h3 { font-size: 18px; color: #8f1d22; margin-bottom: 16px; padding-left: 10px; border-left: 4px solid #c9a063; }
.panel ul li { padding: 8px 0; color: #666; border-bottom: 1px dashed #f0f0f0; }
.panel ul li b { color: #333; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #666; }
.form-group input, .form-group textarea { width: 100%; border: 1px solid #ddd; border-radius: 4px; padding: 10px 12px; font-size: 14px; font-family: inherit; }
.form-group textarea { height: 110px; resize: vertical; }
.btn-submit { background: #8f1d22; color: #fff; border: 0; border-radius: 4px; padding: 11px 38px; font-size: 15px; cursor: pointer; }
.btn-submit:hover { background: #b52c33; }

/* ---------- 网站地图 ---------- */
.sitemap { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 28px 32px; }
.sitemap .sm-col { margin-bottom: 22px; }
.sitemap h3 { font-size: 17px; color: #8f1d22; margin-bottom: 10px; padding-left: 10px; border-left: 4px solid #c9a063; }
.sitemap ul { display: flex; flex-wrap: wrap; }
.sitemap ul li { width: 25%; padding: 4px 0; }
.sitemap ul li a { color: #666; }
.sitemap ul li a:hover { color: #8f1d22; }

/* ---------- 分页 ---------- */
.pagination { text-align: center; padding: 26px 0 10px; }
.pagination a, .pagination span { display: inline-block; min-width: 36px; height: 36px; line-height: 36px; padding: 0 10px; margin: 0 4px; border: 1px solid #ddd; border-radius: 4px; color: #666; background: #fff; }
.pagination a:hover { border-color: #8f1d22; color: #8f1d22; }
.pagination .cur { background: #8f1d22; border-color: #8f1d22; color: #fff; }

/* ---------- 页脚 ---------- */
.footer { background: #2b2b2b; color: #bbb; margin-top: 40px; }
.footer .f-nav { text-align: center; padding: 22px 15px 10px; font-size: 13px; }
.footer .f-nav a { color: #ccc; margin: 0 10px; }
.footer .f-nav a:hover { color: #ffd98a; }
.footer .copyright { text-align: center; font-size: 12px; color: #888; padding: 8px 15px 26px; line-height: 2; }
.footer .copyright a { color: #999; }
.footer .copyright a:hover { color: #ffd98a; }
.footer .beian a { color: #999; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(3, 1fr); }
  .pdetail .pd-top { grid-template-columns: 1fr; }
  .news-item .thumb { flex: 0 0 140px; }
  .news-item .thumb img { width: 140px; height: 95px; }
  .sitemap ul li { width: 33.33%; }
  .about-box .honor-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .nav ul li a { padding: 10px 12px; font-size: 13px; }
  .banner h2 { font-size: 24px; }
  .news-item { flex-direction: column; }
  .news-item .thumb, .news-item .thumb img { width: 100%; flex: none; height: 160px; }
  .sitemap ul li { width: 50%; }
  .contact-grid { grid-template-columns: 1fr; }
  .header .hotline { display: none; }
}
