/* ============================================================
   宸固联官网 - 紧固件企业风格
   在原有 style.css 基础上叠加，不覆盖原有功能
   风格关键词：工业感、钢铁蓝、金属质感、硬朗专业
   ============================================================ */

/* ===== CSS 变量 — 工业企业色彩系统 ===== */
:root {
  /* 主色：钢铁蓝 */
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --primary-light: #2a5a8c;
  --primary-glow: rgba(26, 58, 92, 0.25);
  /* 强调色：工业橙（安全色/警示色，紧固件行业常用） */
  --accent: #e8530e;
  --accent-dark: #c44208;
  --accent-light: #ff7a3d;
  /* 金属色系 */
  --steel-50: #f7f8fa;
  --steel-100: #eef1f5;
  --steel-200: #dce1e8;
  --steel-300: #b8c1cc;
  --steel-400: #8a95a5;
  --steel-500: #5f6b7a;
  --steel-600: #3d4654;
  --steel-700: #2a313c;
  --steel-800: #1a1f28;
  --steel-900: #0d1117;
  /* 功能色 */
  --bg-body: #eef1f5;
  --bg-card: #ffffff;
  --bg-section: #f4f6f9;
  --text-primary: #1a1f28;
  --text-secondary: #3d4654;
  --text-muted: #8a95a5;
  --border-light: #dce1e8;
  --border-medium: #b8c1cc;
  --border-steel: #c8ced6;
  /* 阴影系统 */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-steel: 0 2px 8px rgba(26,58,92,0.12);
  /* 圆角 — 偏小偏硬朗 */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  /* 动效 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  /* 字体 */
  --font-sans: "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Source Han Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ===== 全局基础增强 ===== */
body.custom-background {
  font-family: var(--font-sans);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  transition: color var(--transition-fast), background var(--transition-fast);
}

/* ===== 顶部栏 (Topbar) — 深色工业条 ===== */
.topbar {
  height: 36px;
  line-height: 36px;
  background: var(--steel-800);
  border-bottom: 2px solid var(--accent);
  color: var(--steel-400);
  font-size: 12px;
  letter-spacing: 0.5px;
}

.topbar-lt p {
  font-weight: 500;
  color: var(--steel-300);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 11px;
}

/* ===== 头部 (Header) ===== */
.header {
  padding: 20px 0;
  background: #fff;
  clear: both;
  border-bottom: none;
  position: relative;
  box-shadow: 0 1px 0 var(--border-light);
}

.header::after {
  content: "";
  display: table;
  clear: both;
}

/* Logo */
.logo {
  transition: transform var(--transition-base);
}

.logo:hover {
  transform: scale(1.02);
}

/* 热线区域 */
.rtbox img {
  transition: transform var(--transition-base);
}

.rtbox:hover img {
  transform: scale(1.03);
}

/* ===== 导航栏 (Main Menu) — 钢铁蓝主色 ===== */
.nav-box {
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(15, 36, 64, 0.3);
  position: relative;
  z-index: 999;
  transition: box-shadow var(--transition-base);
}

.nav-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

/* 导航固定状态 */
.pinned {
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 20px rgba(15, 36, 64, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main-menu {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  font-family: var(--font-heading);
}

/* 导航项 */
.navi li {
  background: none;
  position: relative;
}

.navi li::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width var(--transition-base), left var(--transition-base);
}

.navi li:hover::after,
.navi li.current-menu-item::after {
  width: 70%;
  left: 15%;
}

.navi li a:link,
.navi li a:visited {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  letter-spacing: 1px;
  transition: all var(--transition-base);
  position: relative;
  border-radius: var(--radius-sm);
  opacity: 1;
  text-transform: uppercase;
  font-size: 14px;
}

.navi li a:hover,
.navi li.current-menu-item a:link,
.navi li.current-menu-item a:visited,
.navi li:hover a {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  opacity: 1;
}

/* 下拉菜单 — 工业风 */
.navi li ul {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  background: #fff;
  padding: 4px 0;
  overflow: hidden;
  animation: menuSlideDown 0.25s ease;
}

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.navi li ul li {
  border-bottom: none;
  background: #fff;
  transition: background var(--transition-fast);
}

.navi li ul li::after {
  display: none;
}

.navi li ul li a:link,
.navi li ul li a:visited {
  color: var(--text-secondary);
  padding: 0 20px;
  height: 42px;
  line-height: 42px;
  transition: all var(--transition-fast);
  position: relative;
  text-transform: none;
  font-size: 13px;
  font-weight: 500;
}

.navi li ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 60%;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  transition: width var(--transition-fast);
}

.navi li ul li a:hover::before {
  width: 3px;
}

.navi li ul li a:hover,
.navi li:hover ul li a:hover {
  color: var(--primary);
  background: var(--steel-50);
  border: none;
}

/* ===== 轮播图区域 (Slideshow) ===== */
#sliderbox {
  position: relative;
  overflow: hidden;
}

#sliderbox::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(13,17,23,0.3), transparent);
  pointer-events: none;
  z-index: 5;
}

.banner-shadow {
  height: 0;
  background: none;
  display: none;
}

/* 轮播指示器 — 工业条形 */
#slidebanner .bx-wrapper .bx-pager {
  bottom: 20px;
  z-index: 90;
}

#slidebanner .bx-wrapper .bx-pager a {
  width: 36px;
  height: 4px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.4);
  opacity: 1;
  margin: 0 4px;
  transition: all var(--transition-base);
}

#slidebanner .bx-wrapper .bx-pager a.active {
  width: 52px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(232, 83, 14, 0.5);
}

/* 轮播箭头 */
#sliderbox .bx-prev,
#sliderbox .bx-next {
  width: 50px;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: none;
  opacity: 0;
  transition: all var(--transition-base);
}

#sliderbox:hover .bx-prev,
#sliderbox:hover .bx-next {
  opacity: 0.8;
}

#sliderbox .bx-prev:hover,
#sliderbox .bx-next:hover {
  background: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

/* ===== 内容容器 (Container) ===== */
.container {
  margin-top: 0;
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  clear: both;
}

.container-hp {
  margin-top: -20px;
  position: relative;
  z-index: 10;
}

/* ===== 模块标题 (Section Headers) — 企业级 ===== */
.row-fluid h2 {
  padding: 0 16px;
  font-size: 16px;
  height: 46px;
  line-height: 46px;
  border: none;
  border-bottom: 2px solid var(--steel-200);
  border-top: none;
  color: var(--primary);
  background: transparent;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.row-fluid h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 30px;
  background: var(--accent);
  border-radius: 1px;
}

.row-fluid h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--primary);
}

.row-fluid h2 b {
  font-weight: 700;
}

.row-fluid h2 a:link,
.row-fluid h2 a:visited {
  color: var(--primary);
}

.row-fluid h2 span a {
  float: right;
  width: auto;
  height: auto;
  text-indent: 0;
  background: none;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color var(--transition-fast);
  letter-spacing: 0;
}

.row-fluid h2 span a:hover {
  color: var(--accent);
}

/* ===== 三列内容区 (col-3) ===== */
.col-3 {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.col-3-inner {
  padding: 20px 16px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-section);
  transition: all var(--transition-base);
  height: 100%;
  position: relative;
}

.col-3-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.col-3-inner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--steel-300);
  transform: translateY(-2px);
}

.col-3 ul li {
  background: none;
  padding-left: 0;
  position: relative;
  padding-left: 16px;
  height: auto;
  min-height: 28px;
  line-height: 28px;
}

.col-3 ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: var(--accent);
}

.col-3 ul li span {
  color: var(--text-muted);
  font-size: 12px;
}

/* ===== 产品滚动列表 (PicScrollList) ===== */
.pic-scroll-list .pic-scroll li .folio-item {
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-slow);
  background: #fff;
}

.pic-scroll-list .pic-scroll li:hover .folio-item {
  border-color: var(--steel-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pic-scroll-list .pic-scroll li .folio-thumb {
  position: relative;
  overflow: hidden;
}

.pic-scroll-list .pic-scroll li .folio-thumb img {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pic-scroll-list .pic-scroll li:hover .folio-thumb img {
  transform: scale(1.06);
}

.pic-scroll-list .pic-scroll li h3 {
  margin: 10px auto 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.pic-scroll-list .pic-scroll li:hover h3 {
  color: var(--primary);
}

/* 滚动箭头 */
.row-scroll .bx-controls a {
  width: 36px;
  height: 100%;
  background: rgba(26, 58, 92, 0.06);
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: all var(--transition-base);
}

.row-scroll:hover .bx-controls a {
  opacity: 0.6;
}

.row-scroll .bx-controls a:hover {
  background: rgba(26, 58, 92, 0.12);
  opacity: 1;
}

/* ===== 产品网格 (Piclist) ===== */
.piclist li .folio-item {
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-slow);
  background: #fff;
}

.piclist li:hover .folio-item {
  border-color: var(--steel-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.piclist li .folio-thumb {
  overflow: hidden;
}

.piclist li .folio-thumb img {
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.piclist li:hover .folio-thumb img {
  transform: scale(1.06);
}

.piclist li h3 {
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.piclist li:hover h3 {
  color: var(--primary);
}

/* 询价按钮 — 工业橙 */
.piclist li .folio-meta .meta-inquiry a,
.piclist li .folio-meta .meta-inquiry a:hover {
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  transition: all var(--transition-fast);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.piclist li .folio-meta .meta-inquiry a:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(232, 83, 14, 0.3);
}

/* ===== 产品详情页 (Product Detail) ===== */
.product .post-title {
  font-size: 26px;
  line-height: 38px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

.product-inquiry a,
.product-inquiry a:hover {
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 28px 10px 56px;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(232, 83, 14, 0.25);
  text-decoration: none;
  letter-spacing: 1px;
}

.product-inquiry a:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 83, 14, 0.35);
}

/* 缩略图列表 */
.post ul.thumblist li .thumb-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.post ul.thumblist li.zoomActive .thumb-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 83, 14, 0.15);
}

/* Tab 标签页 */
#tab-head {
  height: 42px;
  line-height: 42px;
  border-bottom: 2px solid var(--steel-200);
  background: transparent;
}

#tab-head span {
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  letter-spacing: 0.5px;
}

#tab-head span.hov {
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  background: transparent;
  border-top: none;
}

#tab-head span:hover {
  color: var(--primary);
}

/* ===== 侧边栏 (Sidebar) ===== */
.sidebar h3 {
  padding-left: 16px;
  line-height: 40px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  letter-spacing: 1px;
  font-family: var(--font-heading);
  position: relative;
}

.sidebar h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.sidebar ul li div {
  line-height: 30px;
}

/* 侧边栏分类菜单 */
.sidebar ul li.widget_nav_menu h3 {
  padding: 12px 0;
  text-align: center;
  font-size: 16px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.sidebar ul li.widget_nav_menu ul li a:link,
.sidebar ul li.widget_nav_menu ul li a:visited {
  height: 46px;
  line-height: 46px;
  border: none;
  border-bottom: 1px solid var(--border-light);
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  background: #fff;
  transition: all var(--transition-fast);
  text-indent: 24px;
  font-weight: 500;
}

.sidebar ul li.widget_nav_menu ul li a:hover,
.sidebar ul li.widget_nav_menu ul li.current_page_item a,
.sidebar ul li.widget_nav_menu ul li.current-cat a {
  border-left: 3px solid var(--accent);
  color: var(--primary);
  background: var(--steel-50);
  text-indent: 28px;
  text-decoration: none;
  font-weight: 600;
}

/* ===== 文章列表 (Postlist) ===== */
.postlist li {
  border-bottom: 1px solid var(--border-light);
  background: none;
  padding-left: 0;
  height: auto;
  min-height: 32px;
  padding-top: 4px;
  padding-bottom: 4px;
  transition: background var(--transition-fast);
}

.postlist li:hover {
  background: var(--steel-50);
  border-radius: var(--radius-sm);
}

.postlist li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.postlist li a:hover {
  color: var(--primary);
  text-decoration: none;
}

.postlist li span {
  color: var(--text-muted);
}

/* ===== 新闻列表增强 ===== */
.bloglist li {
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  padding: 16px;
  margin: 0 auto 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.bloglist li:hover {
  border-color: var(--border-light);
  background: var(--steel-50);
  box-shadow: var(--shadow-sm);
}

.bloglist li h2.title {
  font-weight: 700;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.bloglist li:hover h2.title {
  color: var(--primary);
}

/* ===== 面包屑 (Breadcrumb) ===== */
.breadcrumb {
  color: var(--text-muted);
  font-size: 13px;
}

.breadcrumb a:link,
.breadcrumb a:visited {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ===== 当前标题 ===== */
.cur-title {
  border-bottom: 2px solid var(--steel-200);
}

.cur-title b {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 3px solid var(--accent);
  color: var(--text-primary);
  margin-bottom: -2px;
  font-family: var(--font-heading);
}

/* ===== 分页 (Pagenavi) ===== */
.wpagenavi a:link,
.wpagenavi a:visited {
  margin: 0 3px;
  padding: 10px 16px;
  color: var(--text-secondary);
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.wpagenavi a:hover,
.wpagenavi a:active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-steel);
}

.wpagenavi a.current:link,
.wpagenavi a.current:visited,
.wpagenavi a.current:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: var(--shadow-steel);
}

/* ===== 表单增强 (wpcf7) ===== */
.wpcf7 .wpcf7-text,
.wpcf7 .wpcf7-captchar,
.wpcf7 .wpcf7-textarea {
  padding: 10px 14px;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  font-size: 14px;
  color: var(--text-primary);
}

.wpcf7 .wpcf7-text:hover,
.wpcf7 .wpcf7-captchar:hover,
.wpcf7 .wpcf7-textarea:hover {
  border-color: var(--primary);
}

.wpcf7 .wpcf7-text:focus,
.wpcf7 .wpcf7-captchar:focus,
.wpcf7 .wpcf7-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.wpcf7 .wpcf7-submit {
  padding: 12px 50px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  background: var(--accent);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 12px rgba(232, 83, 14, 0.25);
  letter-spacing: 1px;
}

.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:active {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 83, 14, 0.35);
}

/* ===== 询盘表单 (#inquiryForm) ===== */
#inquiryForm {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-section);
}

/* ===== 页脚 (Footer) — 深色工业感 ===== */
.footer {
  margin-top: 30px;
  width: 100%;
  background: linear-gradient(180deg, var(--steel-800) 0%, var(--steel-900) 100%);
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
}

/* 页脚上部 (Footbar) */
.footbar {
  padding: 36px 0 28px;
  border-top: none;
  color: var(--steel-400);
  background: transparent;
}

.footbar a:link,
.footbar a:visited {
  color: var(--steel-400);
  transition: color var(--transition-fast);
}

.footbar a:hover {
  color: #fff;
  text-decoration: none;
}

.footbar h3 {
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: none;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 12px;
  font-family: var(--font-heading);
}

.footbar h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* 页脚搜索框 */
.footbar .widget_newsletterwidget .newsletter-email {
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.footbar .widget_newsletterwidget .newsletter-email:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  box-shadow: 0 0 0 3px rgba(232, 83, 14, 0.15);
}

.footbar .widget_newsletterwidget .newsletter-submit {
  padding: 0 20px;
  height: 42px;
  line-height: 42px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.footbar .widget_newsletterwidget .newsletter-submit:hover,
.footbar .widget_newsletterwidget .newsletter-submit:active {
  background: var(--accent-dark);
}

/* 版权区域 */
.copyright {
  padding: 18px 0;
  min-height: 24px;
  color: var(--steel-500);
  background: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.copyright a:link,
.copyright a:visited {
  color: var(--steel-500);
}

.copyright a:hover {
  color: var(--steel-300);
}

/* ===== 友情链接 (FriendLink) ===== */
.friendlink {
  margin-top: 24px;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}

.friendlink a:link,
.friendlink a:visited {
  color: var(--text-muted);
  font-size: 12px;
  transition: color var(--transition-fast);
}

.friendlink a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ===== 搜索框 (toggle-search) — 保持原有定位 ===== */
.toggle-search #searchform #ls:focus {
  box-shadow: 0 0 0 2px var(--primary-glow);
  outline: none;
}

/* ===== 返回顶部 (BackToTop) — 箭头在上文字在下居中 ===== */
.backToTop {
  width: 56px;
  height: auto;
  padding: 10px 8px 8px;
  background: var(--primary);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(26, 58, 92, 0.3);
  transition: all var(--transition-base);
  bottom: 60px;
  right: 24px;
  opacity: 0.9;
  background-image: none !important;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  position: fixed;
}

.backToTop:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(232, 83, 14, 0.4);
  opacity: 1;
  text-decoration: none;
}

.backToTop .backtop-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: block;
}

.backToTop .backtop-text {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
}

/* ===== 文章正文增强 (Entry) ===== */
.entry {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.entry h2,
.entry h3,
.entry h4 {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-heading);
}

.entry a:link,
.entry a:visited {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.entry a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.entry img {
  border-radius: var(--radius-md);
}

.entry table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.entry th {
  background: var(--steel-100);
  font-weight: 700;
  color: var(--text-primary);
}

.entry td,
.entry th {
  border-color: var(--border-light);
}

/* ===== 相关产品 (Related) ===== */
.related h2 {
  border-bottom: 2px solid var(--steel-200);
}

.related h2 b {
  border-bottom: 3px solid var(--accent);
  font-weight: 700;
}

/* ===== 文章导航 ===== */
.post-prev-next {
  border-top: 1px solid var(--border-light);
}

.post-prev-next a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.post-prev-next a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ===== 评论区增强 ===== */
.commentlist li {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.commentlist li:hover {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

#submit {
  padding: 10px 36px;
  font-size: 15px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(232, 83, 14, 0.25);
  transition: all var(--transition-base);
  font-weight: 600;
}

#submit:hover,
#submit:active {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 83, 14, 0.35);
}

/* ===== 全局基础 ===== */
html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(26, 58, 92, 0.15);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(26, 58, 92, 0.15);
  color: var(--text-primary);
}

/* ===== 滚动条美化 (Webkit) ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--steel-100);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb {
  background: var(--steel-400);
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--steel-500);
}

/* ===== 图片加载占位 ===== */
.folio-thumb img,
.piclist li .folio-thumb img,
.pic-scroll-list .pic-scroll li .folio-thumb img {
  will-change: transform;
}

/* ===== 底部服务栏 (footH) 增强 ===== */
.footH {
  border: none;
  box-shadow: var(--shadow-md);
}

.service-item {
  transition: all var(--transition-base);
}

.service-item:hover {
  background: var(--steel-50) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* ===== 响应式增强 ===== */
@media only screen and (max-width: 768px) {
  .container {
    padding: 16px;
    border-radius: var(--radius-md);
  }

  .row-fluid h2 {
    font-size: 15px;
    height: 40px;
    line-height: 40px;
  }

  .col-3-inner {
    border-radius: var(--radius-sm);
  }

  .nav-box {
    height: auto;
    box-shadow: none;
  }

  .nav-box::after {
    display: none;
  }

  .main-menu {
    border-radius: 0;
  }

  .navi li {
    border-radius: 0;
  }

  .navi li::after {
    display: none;
  }

  .footer {
    margin-top: 16px;
  }

  .footbar {
    padding: 24px 0 16px;
  }

  .footbar h3::after {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  .container {
    padding: 12px;
    margin-top: -10px;
  }

  .row-fluid h2 {
    font-size: 14px;
    padding: 0 12px;
  }
}

/* ===== 页面加载淡入动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  animation: fadeIn 0.5s ease forwards;
}

/* ===== 产品图片悬停光泽效果 ===== */
.folio-thumb::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.folio-thumb:hover::after {
  left: 125%;
}

/* ===== 在线客户侧边栏 ===== */
.cs-div {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cs-bar {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* ===== 搜索结果页增强 ===== */
.errorsearch .searchInput {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: border-color var(--transition-fast);
}

.errorsearch .searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.errorsearch #searchsubmit {
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.errorsearch #searchsubmit:hover {
  background: var(--accent-dark);
}

/* ===== 下载页增强 ===== */
.cat-desc {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-section);
  color: var(--text-secondary);
}

/* ===== WP-caption ===== */
.wp-caption {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.wp-caption p.wp-caption-text {
  color: var(--text-muted);
}
