/* ============================================
   QuickWebCMS - 统一公用样式文件
   ============================================ */

/* ---- CSS 变量 ---- */
:root {
  --primary: #6e5d4b;
  --primary-light: #8b7a68;
  --primary-dark: #4a3d2f;
  --primary-alpha: rgba(110, 93, 75, 0.08);
  --accent: #c9a96e;
  --accent-light: #e0cdab;
  --text: #333333;
  --text-light: #666666;
  --text-muted: #999999;
  --bg: #faf8f6;
  --bg-warm: #f5f1ec;
  --white: #ffffff;
  --border: #e8e3dd;
  --border-light: #f0ece7;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.10);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container-max: 1300px;
  --container-min: 1024px;
  --font: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  min-width: var(--container-min);
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }
input, textarea, button, select { font-family: inherit; font-size: inherit; outline: none; }

/* ---- 容器 ---- */
.container { max-width: var(--container-max); min-width: var(--container-min); margin: 0 auto; padding: 0 20px; }

/* ---- 头部 Top Bar ---- */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 38px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: var(--accent); }
.top-bar .top-links { display: flex; gap: 20px; }

/* ---- Header 主体 ---- */
.header-main { padding: 20px 0; background: var(--white); }
.header-main .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.header-logo { flex-shrink: 0; }
.header-logo img { height: 64px; width: auto; }
.header-contact { text-align: right; flex-shrink: 0; }
.header-contact .hotline-label { font-size: 14px; color: var(--text-light); }
.header-contact .hotline-number { font-size: 28px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }

/* ---- 导航 ---- */
.nav-bar { background: var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.nav-bar .container { position: relative; }
.nav-list { display: flex; align-items: center; }
.nav-list > li { flex: 1; position: relative; }
.nav-list > li > a {
  display: block; line-height: 54px; color: #fff; font-size: 16px;
  font-weight: 500; white-space: nowrap; text-align: center; transition: background var(--transition);
}
.nav-list > li > a:hover,
.nav-list > li > a.active { background: rgba(255,255,255,0.12); color: var(--accent); }

/* 下拉子菜单 */
.nav-sub {
  position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
  box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all var(--transition);
  z-index: 100; overflow: hidden;
}
.nav-list > li:hover .nav-sub { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-sub a {
  display: block; padding: 12px 20px; color: var(--text); font-size: 14px;
  border-bottom: 1px solid var(--border-light); transition: all var(--transition);
}
.nav-sub a:hover { background: var(--primary-alpha); color: var(--primary); padding-left: 24px; }

/* ---- Banner ---- */
.banner-wrap { position: relative; overflow: hidden; }
/* ---- Banner 轮播（自适应 + 滑动） ---- */
.banner-wrap { position: relative; overflow: hidden; background: var(--border-light); }
.banner-track { display: flex; transition: transform 0.5s ease; }
.banner-slide { flex: 0 0 100%; display: block; }
.banner-slide img { width: 100%; height: auto; display: block; }
.banner-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; padding: 0; margin: 0; list-style: none; }
.banner-dots > * { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all var(--transition); }
.banner-dots > *.on { background: var(--accent); width: 32px; border-radius: 6px; }
.banner-prev, .banner-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,0.25);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); opacity: 0;
}
.banner-wrap:hover .banner-prev,
.banner-wrap:hover .banner-next { opacity: 1; }
.banner-prev:hover, .banner-next:hover { background: rgba(0,0,0,0.45); }
.banner-prev { left: 20px; }
.banner-next { right: 20px; }
.banner-prev svg, .banner-next svg { width: 22px; height: 22px; fill: #fff; }

/* ---- 通用区块 ---- */
.section { padding: 60px 0; }
.section-bg { background: var(--bg-warm); }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header .cn-title { font-size: 32px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.section-header .en-title { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }
.section-header .line {
  display: block; width: 50px; height: 3px; background: var(--accent); margin: 16px auto 0;
}

/* ---- 图片容器 4:3 ---- */
.img-4x3 {
  position: relative; width: 100%; padding-top: 75%; overflow: hidden;
  border-radius: var(--radius); background: var(--border-light);
}
.img-4x3 img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.img-4x3:hover img { transform: scale(1.06); }

/* ---- 卡片 ---- */
.card {
  background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- 分类导航 ---- */
.cat-nav-wrap { margin-bottom: 24px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.cat-nav-item {
  display: inline-block; padding: 10px 26px; font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--white); border: 1px solid var(--border);
  border-radius: 50px; transition: all var(--transition); cursor: pointer;
}
.cat-nav-item:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-alpha); }
.cat-nav-item.active { color: #fff; background: var(--primary); border-color: var(--primary); }

/* ---- 产品卡片 ---- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .product-img { position: relative; width: 100%; padding-top: 75%; overflow: hidden; background: var(--border-light); }
.product-card .product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img img { transform: scale(1.08); }
.product-card .product-info { padding: 16px 20px; text-align: center; }
.product-card .product-name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.5; height: 45px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .product-name a { color: var(--text); }
.product-card .product-name a:hover { color: var(--primary); }

/* ---- 案例卡片 4/3 ---- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card .case-img { position: relative; width: 100%; padding-top: 75%; overflow: hidden; background: var(--border-light); }
.case-card .case-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.case-card:hover .case-img img { transform: scale(1.08); }
.case-card .case-info { padding: 16px 20px; }
.case-card .case-title { font-size: 16px; font-weight: 600; }

/* ---- 内页布局 ---- */
.inner-wrap { display: flex; gap: 30px; padding: 40px 20px 60px; }
.inner-sidebar { width: 260px; flex-shrink: 0; }
.inner-content { flex: 1; min-width: 0; }

/* ---- 侧边栏 ---- */
.sidebar-box { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.sidebar-head {
  background: var(--primary); color: #fff; font-size: 18px; font-weight: 600;
  padding: 16px 20px; text-align: center;
}
.sidebar-menu { padding: 8px 0; }
.sidebar-menu a {
  display: block; padding: 13px 24px; color: var(--text); font-size: 14px;
  border-bottom: 1px solid var(--border-light); transition: all var(--transition);
  position: relative;
}
.sidebar-menu a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transition: transform var(--transition); }
.sidebar-menu a:hover,
.sidebar-menu a.active { color: var(--primary); background: var(--primary-alpha); }
.sidebar-menu a:hover::before,
.sidebar-menu a.active::before { transform: scaleY(1); }
.sidebar-menu a:last-child { border-bottom: none; }
.sidebar-contact { padding: 16px 20px; font-size: 14px; line-height: 2; }
.sidebar-contact .contact-label { color: var(--text-muted); }
.sidebar-contact .contact-value { color: var(--text); font-weight: 500; }

/* ---- 右侧内容区 ---- */
.content-head { border-bottom: 2px solid var(--primary); padding-bottom: 12px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; }
.content-head .title { font-size: 22px; font-weight: 700; color: var(--primary-dark); }
.breadcrumb { font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ---- 文章详情 ---- */
.article-detail { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.article-detail h1 { font-size: 26px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; text-align: center; }
.article-meta { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.article-meta span { margin: 0 12px; }
.article-body { font-size: 15px; line-height: 1.9; color: var(--text); }
.article-body img { max-width: 100%; border-radius: var(--radius); margin: 16px 0;display: inline;}
.article-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.article-prevnext { display: flex; gap: 16px; }
.prevnext-item {
  flex: 1; display: flex; align-items: center; gap: 12px;
  background: var(--bg); border-radius: var(--radius); padding: 16px 18px;
  transition: all var(--transition);
}
.prevnext-item:hover { background: var(--bg-warm); }
.prevnext-item.prev { text-align: left; }
.prevnext-item.next { text-align: right; justify-content: flex-end; }
.prevnext-item svg { width: 20px; height: 20px; fill: var(--primary); flex-shrink: 0; }
.prevnext-link { min-width: 0; }
.prevnext-label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.prevnext-title { font-size: 14px; color: var(--text); }
.prevnext-title a { color: var(--text); }
.prevnext-title a:hover { color: var(--primary); }

/* ---- 新闻列表 ---- */
.news-list { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.news-item { display: flex; align-items: center; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
.news-item:hover { background: var(--primary-alpha); }
.news-item:last-child { border-bottom: none; }
.news-date { flex-shrink: 0; text-align: center; width: 60px; }
.news-date .day { font-size: 28px; font-weight: 700; color: var(--primary); line-height: 1; }
.news-date .month { font-size: 12px; color: var(--text-muted); }
.news-body { flex: 1; min-width: 0; }
.news-title { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-title a { color: var(--text); }
.news-title a:hover { color: var(--primary); }
.news-txt { font-size: 13px; color: var(--text-muted); margin-top: 6px; overflow: hidden; /*text-overflow: ellipsis; white-space: nowrap;*/ }

/* ---- 首页新闻布局 ---- */
.news-home { display: flex; gap: 24px; }
/* 头条大卡片 */
.news-featured {
  flex: 0 0 420px; background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition);
}
.news-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-featured-img { display: block; overflow: hidden; }
.news-featured-img img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.5s ease; }
.news-featured:hover .news-featured-img img { transform: scale(1.05); }
.news-featured-body { padding: 20px 22px; }
.news-featured-date { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.news-featured-date svg { opacity: 0.6; }
.news-featured-title { font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 10px; }
.news-featured-title a { color: var(--text); }
.news-featured-title a:hover { color: var(--primary); }
.news-featured-txt { font-size: 13px; color: var(--text-light); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-featured-more {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; font-size: 13px;
  color: var(--primary); font-weight: 500; transition: gap var(--transition);
}
.news-featured-more:hover { gap: 8px; color: var(--primary-dark); }

/* 右侧列表 */
.news-list-side { flex: 1; display: flex; flex-direction: column; gap: 0; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.news-item-sm {
  display: flex; align-items: center; gap: 14px; padding: 16px 22px;
  border-bottom: 1px solid var(--border-light); transition: background var(--transition);
  min-height: 64px;
}
.news-item-sm:last-child { border-bottom: none; }
.news-item-sm:hover { background: var(--primary-alpha); }
.news-item-sm-dot {
  flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); transition: all var(--transition);
}
.news-item-sm:hover .news-item-sm-dot { background: var(--primary); transform: scale(1.4); }
.news-item-sm-body { flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.news-item-sm-title { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.news-item-sm-title:hover { color: var(--primary); }
.news-item-sm-date { flex-shrink: 0; font-size: 12px; color: var(--text-muted); white-space: nowrap; }
/* 底部更多按钮 */
.news-home-more { text-align: center; margin-top: 24px; }

/* ---- 分页 ---- */
.pagination { display: flex; justify-content: center; gap: 8px; padding: 30px 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font-size: 14px; color: var(--text);
  transition: all var(--transition); margin:0 2px;}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-alpha); }
.pagination .fcur {border-color: var(--primary); color: var(--primary); background: var(--primary-alpha);}

/* ---- 首页优势区块 ---- */
.advantages { background: var(--bg-warm); padding: 0; }
/* 顶部横幅 */
.adv-banner { background: linear-gradient(135deg, #5c4a36, var(--primary-dark)); text-align: center; padding: 40px 0; color: #fff; margin-bottom: 40px; }
.adv-banner-top { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.adv-banner-top span { color: #ffe082; font-size: 36px; }
.adv-banner-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: 1px; }
.adv-banner-tel { font-size: 15px; color: rgba(255,255,255,0.8); }
.adv-banner-tel strong { color: var(--accent); font-size: 22px; margin-left: 6px; }
/* 副标题 */
.adv-subtitle { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.adv-subtitle-line { flex: 1; height: 1px; background: var(--border); }
.adv-subtitle-text { text-align: center; flex-shrink: 0; }
.adv-subtitle-tag { font-size: 26px; color: var(--text); font-weight: 500; }
.adv-subtitle-en { display: block; font-size: 13px; color: var(--text-muted); font-family: Georgia, serif; letter-spacing: 1px; margin-top: 2px; }
.adv-slogan { text-align: center; font-size: 26px; font-weight: 700; color: var(--primary-dark); margin-bottom: 36px; }
/* 图文行 */
.adv-row { display: flex; gap: 40px; align-items: center; margin-bottom: 40px;border-bottom: 1px dashed #b2b2b2;padding-bottom: 30px; }
.adv-row:last-child { margin-bottom: 0; }
.adv-row-img { flex: 0 0 520px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.adv-row-img img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.adv-row-img:hover img { transform: scale(1.03); }
.adv-row-body { flex: 1; }
.adv-row-num {
  display: inline-block; width: 48px; height: 48px; line-height: 48px; text-align: center;
  border-radius: 50%; background: var(--primary); color: #fff; font-size: 20px; font-weight: 700;
  margin-bottom: 14px;
}
.adv-row-body h4 { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 14px;}
.adv-row-body p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 10px; }
.adv-row-body p:last-child { margin-bottom: 0; }

/* ---- 首页关于 ---- */
.about-block { display: flex; gap: 40px; align-items: center; }
.about-block .about-img { flex-shrink: 0; width: 480px; border-radius: var(--radius-lg); overflow: hidden; }
.about-block .about-img img { width: 100%; height: auto; }
.about-block .about-text { flex: 1; }
.about-block .about-text h2 { font-size: 28px; font-weight: 700; color: var(--primary-dark); margin-bottom: 16px; }
.about-block .about-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 20px; }
.about-block .about-text .btn-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 30px;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; transition: all var(--transition);
}
.about-block .about-text .btn-more:hover { background: var(--primary-dark); color: #fff; }
.about-block .about-text .btn-more svg { width: 16px; height: 16px; fill: #fff; }

/* 通用按钮 */
.btn-outline {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 28px;
  border: 1px solid var(--primary); color: var(--primary); border-radius: 50px;
  font-size: 14px; font-weight: 500; transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- CTA 横幅 ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 36px 0; text-align: center;
}
.cta-banner .cta-tagline { font-size: 22px; color: #fff; font-weight: 600; margin-bottom: 8px; }
.cta-banner .cta-sub { font-size: 15px; color: rgba(255,255,255,0.75); }
.cta-banner .cta-phone { font-size: 32px; font-weight: 700; color: var(--accent); margin-top: 10px; letter-spacing: 1px; }

/* ---- 联系区块 ---- */
.contact-block { display: flex; gap: 30px; }
.contact-info {
  flex-shrink: 0; width: 420px; background: var(--primary-dark); color: #fff;
  border-radius: var(--radius-lg); padding: 40px 32px;
}
.contact-info h3 { font-size: 22px; margin-bottom: 24px; }
.contact-info .info-item { display: flex; gap: 12px; margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
.contact-info .info-item svg { width: 20px; height: 20px; fill: var(--accent); flex-shrink: 0; margin-top: 3px; }
.contact-map { flex: 1; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; }
.contact-map img { width: 100%; height: 100%; object-fit: cover; }

/* ---- 表单 ---- */
.form-box { background: var(--white); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row .form-group { flex: 1; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text); transition: border-color var(--transition);
  background: var(--bg);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-alpha); }
.form-group textarea { height: 140px; resize: vertical; }
.form-btns { text-align: center; margin-top: 8px; }
.form-btns .btn-submit {
  padding: 12px 48px; background: var(--primary); color: #fff; border: none;
  border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer;
  transition: background var(--transition); margin-right: 12px;
}
.form-btns .btn-submit:hover { background: var(--primary-dark); }
.form-btns .btn-reset {
  padding: 12px 48px; background: transparent; color: var(--text-light); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 16px; cursor: pointer; transition: all var(--transition);
}
.form-btns .btn-reset:hover { border-color: var(--primary); color: var(--primary); }

/* ---- 推荐产品区块 ---- */
.rec-section { margin-top: 40px;background: var(--white);border-radius: var(--radius-lg);padding: 32px;}
.rec-section-title {
  font-size: 18px; font-weight: 700; color: var(--primary-dark);
  padding-bottom: 12px; border-bottom: 2px solid var(--accent); margin-bottom: 20px;
}
.rec-product-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rec-product-item { text-align: center; transition: all var(--transition); }
.rec-product-item:hover { transform: translateY(-3px); }
.rec-product-item .rec-img { position: relative; width: 100%; padding-top: 75%; overflow: hidden; border-radius: var(--radius); background: var(--border-light); margin-bottom: 8px; }
.rec-product-item .rec-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rec-product-item span { font-size: 13px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* 相关推荐 2列 grid */
.rec-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rec-news-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--border-light); font-size: 14px; }
.rec-news-item:hover .rec-news-title { color: var(--primary); }
.rec-news-title { color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-news-date { color: var(--text-muted); font-size: 12px; flex-shrink: 0; margin-left: 12px; }

/* ---- 友情链接 ---- */
.friend-links { border-top: 1px solid var(--border); padding: 20px 0; }
.friend-links .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.friend-links strong { font-size: 14px; color: var(--text-light); flex-shrink: 0; }
.friend-links a { font-size: 13px; color: var(--text-muted); }
.friend-links a:hover { color: var(--primary); }

/* ---- 页脚 ---- */
.footer { background: #3c3025; color: rgba(255,255,255,0.7); }
.footer-main { padding: 50px 0 40px; }
.footer-grid { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
/* 列标题 */
.footer-col h4 {
  font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 20px;
  padding-bottom: 12px; position: relative;
}
.footer-col h4::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 36px; height: 2px;
  background: var(--accent); border-radius: 1px;
}
/* 公司简介列 */
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 42px; width: auto; }
.footer-logo h3 { font-size: 20px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 18px; }
/* 联系信息 */
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--accent); flex-shrink: 0; }
/* 导航列 */
.footer-nav ul,
.footer-products ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav li a,
.footer-products li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: all var(--transition); display: inline-flex; align-items: center; }
.footer-nav li a::before,
.footer-products li a::before {
  content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin-right: 8px; opacity: 0; transform: translateX(-4px);
  transition: all var(--transition);
}
.footer-nav li a:hover,
.footer-products li a:hover { color: var(--accent); padding-left: 4px; }
.footer-nav li a:hover::before,
.footer-products li a:hover::before { opacity: 1; transform: translateX(0); }
/* 二维码列 */
.footer-qrcode { text-align: center; }
.footer-qrcode h4 { text-align: center; }
.footer-qrcode h4::after { left: 50%; transform: translateX(-50%); }
.qrcode-box { display: flex; flex-direction: column; align-items: center; }
.qrcode-img {
  width: 130px; height: 130px; background: #fff; border-radius: var(--radius);
  padding: 5px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center;
}
.qrcode-img img { width: 120px; height: 120px; display: block; }
.qrcode-img svg { display: block; }
.qrcode-box p { font-size: 12px; color: rgba(255,255,255,0.5); }
/* 版权栏 */
.footer-bar { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; }
.footer-bar-inner { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-bar-inner p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bar-inner a { color: rgba(255,255,255,0.5); }
.footer-bar-inner a:hover { color: var(--accent); }

/* ---- 内页 公司简介 ---- */
.company-desc { font-size: 15px; line-height: 1.9; color: var(--text); }
.company-desc p { margin-bottom: 16px; }

/* ---- 移动端导航图标 ---- */
.nav-toggle { display: none; }

/* ---- 辅助类 ---- */
.clearfix::after { content: ""; display: block; clear: both; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }

/* ---- 首页产品列表栏 ---- */
.home-pro-cat { margin-bottom: 60px; }
.home-pro-cat .cat-title { font-size: 24px; font-weight: 700; text-align: center; margin-bottom: 30px; color: var(--primary-dark); }
.home-pro-cat .cat-title::after { content: ""; display: block; width: 50px; height: 3px; background: var(--accent); margin: 12px auto 0; }

/* ---- 相关推荐右侧栏组件 ---- */
.sidebar-rec { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sidebar-rec .rec-item {  }
.sidebar-rec .rec-item a { display: flex; flex-direction: column; gap: 8px; }
.sidebar-rec .rec-item .rec-thumb { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; }
.sidebar-rec .rec-item .rec-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.sidebar-rec .rec-item:hover .rec-thumb img { transform: scale(1.05); }
.sidebar-rec .rec-item .rec-title { font-size: 12px; color: var(--text); line-height: 1.5; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---- 文章详情页操作条 ---- */
.article-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.article-actions a { color: var(--text-muted); }
.article-actions a:hover { color: var(--primary); }

/* ---- 响应式辅助 ---- */
@media (max-width: 1024px) {
  body { min-width: auto; }
  .container { min-width: auto; padding: 0 16px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .news-home { flex-direction: column; }
  .adv-row { flex-direction: column; gap: 20px; }
  .adv-row-img { flex: 0 0 auto; width: 100%; }
  .adv-banner-title { font-size: 24px; }
  .adv-banner-top { font-size: 20px; }
  .adv-banner-top span { font-size: 28px; }
  .news-featured { flex: 0 0 auto; }
  .news-featured-img img { height: 200px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-bar-inner { flex-direction: column; gap: 6px; text-align: center; }
}
