/* ============================================================
   TAILIWANG Theme - Orange Industrial B2B Style
   Primary: #f35d09 (orange)
   Secondary: #409eff (blue)
   Dark: #1a1a1a
   ============================================================ */

:root {
  --primary: #f35d09;
  --primary-dark: #c75b1c;
  --secondary: #409eff;
  --dark: #1a1a1a;
  --dark-2: #222;
  --gray-bg: #f7f8fa;
  --text-main: #333;
  --text-muted: #666;
  --text-light: #999;
  --border: #e8e8e8;
}

* { box-sizing: border-box; }
body {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-main);
  background: #fff;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--primary); transition: all .3s; text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: none; }
h1,h2,h3,h4,h5,h6 { color: #222; font-weight: 700; margin: 0 0 15px; line-height: 1.3; }
img { max-width: 100%; height: auto; }

/* ===== Section common ===== */
.tw-section { padding: 70px 0; position: relative; }
.tw-section.tw-gray { background: var(--gray-bg); }
.tw-section.tw-dark { background: var(--dark); color: #fff; }
.tw-section.tw-dark h2, .tw-section.tw-dark h3, .tw-section.tw-dark h4 { color: #fff; }

.tw-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.tw-section-title { text-align: center; margin-bottom: 50px; }
.tw-section-title .tw-sub {
  display: inline-block;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
}
.tw-section-title .tw-sub:before,
.tw-section-title .tw-sub:after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin: 0 12px;
}
.tw-section-title h2 {
  font-size: 34px;
  color: #222;
  margin: 0;
}
.tw-section-title p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 18px auto 0;
  font-size: 15px;
}

.tw-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff !important;
  border: 2px solid var(--primary);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all .3s;
}
.tw-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(243,93,9,.3);
}
.tw-btn.tw-btn-outline {
  background: transparent;
  color: var(--primary) !important;
}
.tw-btn.tw-btn-outline:hover {
  background: var(--primary);
  color: #fff !important;
}
.tw-btn.tw-btn-blue {
  background: var(--secondary);
  border-color: var(--secondary);
}
.tw-btn.tw-btn-blue:hover {
  background: #2b82d4;
  border-color: #2b82d4;
}

/* ===== Header / Navigation ===== */
.tw-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(0,0,0,.85);
  transition: all .4s;
}
.tw-header.scrolled {
  background: #000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.tw-topbar {
  background: #111;
  color: #ccc;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tw-topbar .tw-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tw-topbar-left span { margin-right: 20px; }
.tw-topbar-left i { color: var(--primary); margin-right: 6px; }
/* 左上角公司名加粗显示 */
.tw-topbar-left .tw-brand-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
}
/* 右上角电话邮箱 */
.tw-topbar-right { display: flex; align-items: center; gap: 22px; }
.tw-topbar-right span { color: #ccc; font-size: 13px; display: inline-flex; align-items: center; }
.tw-topbar-right i { color: var(--primary); margin-right: 6px; }
.tw-topbar-right a {
  color: #ccc;
  margin-left: 14px;
  font-size: 13px;
}
.tw-topbar-right a:hover { color: var(--primary); }
.tw-lang-switch {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding-right: 14px;
  border-right: 1px solid #444;
}
.tw-lang-switch a {
  color: #ccc;
  font-size: 13px;
  margin: 0 4px;
  padding: 2px 4px;
  text-decoration: none;
  transition: color .2s;
}
.tw-lang-switch a.active {
  color: var(--primary);
  font-weight: 600;
}
.tw-lang-switch a:hover { color: var(--primary); }
.tw-lang-sep { color: #555; margin: 0 2px; }

.tw-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.tw-logo {
  display: none;
}
.tw-logo img { max-height: 48px; width: auto; }
.tw-logo-text {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.tw-logo-text span { color: var(--primary); }

.tw-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: auto;
}
.tw-nav-menu > li {
  position: relative;
  margin: 0 4px;
}
.tw-nav-menu > li > a {
  display: block;
  padding: 0 22px;
  line-height: 64px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Noto Sans SC', -apple-system, 'Microsoft YaHei', sans-serif;
  letter-spacing: .5px;
  position: relative;
  white-space: nowrap;
}
.tw-nav-menu > li > a:hover,
.tw-nav-menu > li.active > a { color: var(--primary); }
.tw-nav-menu > li > a:after {
  content: '';
  position: absolute;
  left: 22px; right: 22px; bottom: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .3s;
}
.tw-nav-menu > li:hover > a:after,
.tw-nav-menu > li.active > a:after { transform: scaleX(1); }

.tw-nav-menu .tw-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s;
  z-index: 100;
}
.tw-nav-menu > li:hover .tw-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.tw-dropdown li a {
  display: block;
  padding: 10px 18px;
  color: #444;
  font-size: 13px;
  border-bottom: 1px solid #f3f3f3;
}
.tw-dropdown li:last-child a { border-bottom: none; }
.tw-dropdown li a:hover { background: #fafafa; color: var(--primary); padding-left: 24px; }
/* 有子菜单的二级项右侧箭头 */
.tw-dropdown li.has-submenu { position: relative; }
.tw-dropdown .tw-submenu-arrow {
  float: right;
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}
/* 无子菜单的二级项：隐藏箭头和空的三级菜单 */
.tw-dropdown li.has-submenu[data-soncount="0"] .tw-submenu-arrow { display: none; }
.tw-dropdown li.has-submenu[data-soncount="0"] .tw-submenu { display: none !important; }
/* 顶级栏目无子栏目时：隐藏下拉指示线和空菜单 */
.tw-nav-menu > li.has-dropdown[data-soncount="0"] > a:after { display: none; }
.tw-nav-menu > li.has-dropdown[data-soncount="0"] .tw-dropdown { display: none !important; }
/* 三级子菜单：从二级菜单右侧飞出 */
.tw-dropdown .tw-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 180px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all .3s;
  z-index: 101;
}
.tw-dropdown > li.has-submenu:hover .tw-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.tw-dropdown .tw-submenu li a {
  border-bottom: 1px solid #f3f3f3;
}
.tw-dropdown .tw-submenu li:last-child a { border-bottom: none; }

.tw-nav-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tw-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  overflow: hidden;
}
.tw-search-form input {
  background: transparent;
  border: none;
  color: #fff;
  padding: 7px 14px;
  width: 160px;
  font-size: 13px;
  outline: none;
}
.tw-search-form input::placeholder { color: rgba(255,255,255,.6); }
.tw-search-form button {
  background: var(--primary);
  border: none;
  color: #fff;
  width: 34px;
  height: 30px;
  cursor: pointer;
  border-radius: 0 20px 20px 0;
}

.tw-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* ===== Hero Banner ===== */
.tw-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}
.tw-hero.tw-loading:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  z-index: 5;
}
.tw-hero.tw-loading:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  z-index: 6;
  animation: twSpin 0.8s linear infinite;
}
@keyframes twSpin {
  to { transform: rotate(360deg); }
}
.tw-hero .tw-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s;
}
.tw-hero .tw-slide.active { opacity: 1; }
/* 完整显示图片的幻灯片：用 contain 避免裁剪，黑色背景填充留白 */
.tw-hero .tw-slide-fullimg {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #000;
}
.tw-hero .tw-slide-fullimg:after { display: none; }
.tw-hero .tw-slide:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.25) 100%);
}
/* 移动端遮罩改为从底部到顶部的渐变，保证文字可读性 */
@media (max-width: 991px) {
  .tw-hero .tw-slide:after {
    background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%);
  }
}
.tw-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.tw-hero-text { max-width: 720px; color: #fff; padding-top: 60px; }
.tw-hero-text h1 {
  font-size: 64px;
  color: #fff;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
  letter-spacing: 1px;
  /* 文字上滑动画初始态：下移5px、不可见 */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.tw-hero .tw-slide.active .tw-hero-text h1 {
  opacity: 1;
  transform: translateY(0);
}
.tw-hero-text h1 span { color: var(--primary); }
.tw-hero-text p {
  font-size: 20px;
  color: rgba(255,255,255,.92);
  margin-bottom: 36px;
  letter-spacing: .5px;
  /* 文字上滑动画初始态：下移5px、不可见 */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
}
.tw-hero .tw-slide.active .tw-hero-text p {
  opacity: 1;
  transform: translateY(0);
}
/* hero 按钮圆角 + 跟随副标题同步滑动出现 */
.tw-hero .tw-btn {
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 15px;
  letter-spacing: 1px;
  /* 与副标题 p 相同的动画初始态和延迟，一同滑动出现 */
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.8s ease 0.9s, transform 0.8s ease 0.9s;
  display: inline-block;
}
.tw-hero .tw-slide.active .tw-btn {
  opacity: 1;
  transform: translateY(0);
}
/* 左右箭头 */
.tw-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  transition: all .3s;
}
.tw-hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.tw-hero-arrow.tw-prev { left: 30px; }
.tw-hero-arrow.tw-next { right: 30px; }
.tw-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.tw-hero-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
}
.tw-hero-dots span.active { background: var(--primary); width: 30px; border-radius: 6px; }

/* ===== Product Categories ===== */
.tw-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tw-cat-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: all .35s;
  text-align: center;
}
.tw-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}
.tw-cat-img {
  height: 200px;
  overflow: hidden;
  background: var(--gray-bg);
}
.tw-cat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.tw-cat-card:hover .tw-cat-img img { transform: scale(1.08); }
.tw-cat-body { padding: 24px 20px; }
.tw-cat-body h3 {
  font-size: 18px;
  margin: 0 0 10px;
}
.tw-cat-body h3 a { color: #222; }
.tw-cat-card:hover .tw-cat-body h3 a { color: var(--primary); }
.tw-cat-body p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 16px;
  line-height: 1.6;
}
.tw-cat-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== Product Grid (Hot Products) ===== */
.tw-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.tw-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: all .3s;
}
.tw-product-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.tw-product-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #fafafa;
}
.tw-product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.tw-product-card:hover .tw-product-img img { transform: scale(1.06); }
.tw-product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 1px;
}
.tw-product-body { padding: 16px; }
.tw-product-body h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.5;
  min-height: 42px;
  max-height: 63px;
  overflow: hidden;
}
.tw-product-body h4 a { color: #333; }
.tw-product-card:hover .tw-product-body h4 a { color: var(--primary); }

/* ===== OEM / About two-column ===== */
.tw-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.tw-two-col .tw-col-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.tw-two-col .tw-col-img img { width: 100%; display: block; }
.tw-two-col h2 { font-size: 32px; margin-bottom: 18px; }
.tw-two-col .tw-sub {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 12px;
}
.tw-two-col p { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; }

/* ===== About Us 区域专用样式 ===== */
/* 关于我们区域：两列等高对齐 */
.tw-section.tw-dark .tw-two-col {
  align-items: stretch;
}
/* 关于我们小标签 48px */
.tw-section.tw-dark .tw-two-col .tw-sub {
  font-size: 48px;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
/* 专业门控五金制造商 36px */
.tw-section.tw-dark .tw-two-col h2 {
  font-size: 36px;
  margin-bottom: 24px;
}
/* 左侧图片：宽度自适应边界，高度跟随右侧文字区域 */
.tw-section.tw-dark .tw-two-col .tw-col-img {
  width: 100%;
  max-width: 660px;
  height: 100%;
  min-height: 500px;
  flex-shrink: 0;
}
.tw-section.tw-dark .tw-two-col .tw-col-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tw-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.tw-stat {
  text-align: center;
  padding: 24px 10px;
  background: rgba(255,255,255,.06);
  border-radius: 8px;
}
.tw-stat .tw-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.tw-stat .tw-label {
  color: #ccc;
  font-size: 13px;
  margin-top: 8px;
}

/* ===== OEM Form ===== */
.tw-oem-form {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.tw-oem-form .tw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.tw-oem-form input,
.tw-oem-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  transition: border .3s;
}
.tw-oem-form input:focus,
.tw-oem-form textarea:focus { border-color: var(--primary); }
.tw-oem-form textarea { min-height: 100px; resize: vertical; }
.tw-oem-form .tw-btn { width: 100%; border: none; }

/* ===== News ===== */
.tw-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tw-news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: all .3s;
}
.tw-news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.tw-news-img {
  height: 200px;
  overflow: hidden;
}
.tw-news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.tw-news-card:hover .tw-news-img img { transform: scale(1.06); }
.tw-news-body { padding: 20px; }
.tw-news-date {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tw-news-body h4 {
  font-size: 17px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.tw-news-body h4 a { color: #222; }
.tw-news-card:hover .tw-news-body h4 a { color: var(--primary); }
.tw-news-body p { color: var(--text-muted); font-size: 13px; margin: 0; line-height: 1.6; }

/* ===== Footer ===== */
.tw-footer {
  background: #1a1a1a;
  color: #ccc;
  padding-top: 60px;
}
.tw-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tw-footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  letter-spacing: 1px;
}
.tw-footer-col ul { list-style: none; padding: 0; margin: 0; }
.tw-footer-links li { margin-bottom: 12px; }
.tw-footer-links li a {
  color: #bbb;
  font-size: 13px;
  transition: all .3s;
}
.tw-footer-links li a:hover { color: var(--primary); padding-left: 5px; }
/* 联系列表 */
.tw-footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: #bbb;
  font-size: 13px;
  line-height: 1.6;
}
.tw-footer-contact li i { color: var(--primary); margin-top: 4px; flex-shrink: 0; }
.tw-footer-contact li span { flex: 1; }

/* 订阅表单 */
.tw-subscribe-form {
  display: flex;
  margin-bottom: 22px;
}
.tw-subscribe-form input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.3);
  color: #fff;
  font-size: 13px;
  border-radius: 4px 0 0 4px;
  outline: none;
}
.tw-subscribe-form input::placeholder { color: #999; }
.tw-subscribe-form input:focus { border-color: var(--primary); }
.tw-subscribe-form button {
  padding: 10px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 13px;
  border-radius: 0 4px 4px 0;
  transition: background .3s;
}
.tw-subscribe-form button:hover { background: var(--primary-dark); }

/* 社交媒体图标 */
.tw-footer-social { display: flex; gap: 10px; }
.tw-footer-social a {
  display: inline-flex;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  transition: all .3s;
}
.tw-footer-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.tw-footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: #888;
}
.tw-footer-bottom a { color: #aaa; }
.tw-footer-bottom a:hover { color: var(--primary); }

/* ===== Inner page banner ===== */
.tw-page-banner {
  margin-top: 70px;
  padding: 70px 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tw-page-banner:before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><path fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1" d="M0 30h60M30 0v60"/></svg>');
  opacity: .5;
}
.tw-page-banner .tw-container { position: relative; z-index: 1; }
.tw-page-banner h1 {
  color: #fff;
  font-size: 36px;
  margin: 0 0 10px;
}
.tw-page-banner .tw-breadcrumb {
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.tw-page-banner .tw-breadcrumb a { color: rgba(255,255,255,.7); }
.tw-page-banner .tw-breadcrumb a:hover { color: var(--primary); }
.tw-breadcrumb-sep { margin: 0 8px; opacity: .5; }

/* ===== Inner page layout ===== */
.tw-inner { padding: 60px 0; }
.tw-sidebar { padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 6px; }
.tw-sidebar h3 {
  font-size: 18px;
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
  margin: -20px -20px 20px;
  border-radius: 6px 6px 0 0;
}
.tw-sidebar ul { list-style: none; padding: 0; margin: 0; }
.tw-sidebar ul li a {
  display: block;
  padding: 10px 14px;
  color: #555;
  border-bottom: 1px solid #f3f3f3;
  font-size: 14px;
}
.tw-sidebar ul li a:hover,
.tw-sidebar ul li.active a {
  color: var(--primary);
  background: #fff7f3;
  padding-left: 20px;
}
.tw-content-box { background: #fff; padding: 30px; border-radius: 6px; border: 1px solid var(--border); }
.tw-content-box h1 { font-size: 26px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #eee; }
.tw-content-box .tw-meta { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.tw-content-box .tw-content-text { line-height: 1.9; color: #444; font-size: 15px; }
.tw-content-box .tw-content-text p { margin-bottom: 16px; }
.tw-content-box .tw-content-text img { max-width: 100%; border-radius: 4px; }

/* ===== Pagination ===== */
.tw-pagination { text-align: center; margin-top: 40px; }
.tw-pagination a, .tw-pagination span {
  display: inline-block;
  min-width: 38px;
  height: 38px;
  line-height: 38px;
  padding: 0 12px;
  margin: 0 3px;
  background: #fff;
  border: 1px solid var(--border);
  color: #555;
  border-radius: 4px;
  font-size: 14px;
}
.tw-pagination a:hover,
.tw-pagination span.page-num-current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== Floating side buttons ===== */
.tw-float-bar {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tw-float-bar a {
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(243,93,9,.35);
}
.tw-float-bar a:hover { background: var(--primary-dark); color: #fff; }

/* ===== Inner page meta ===== */
.tw-meta { color: var(--text-light); font-size: 13px; margin-bottom: 20px; }
.tw-meta i { margin-right: 4px; color: var(--primary); }

/* ===== News list (horizontal) ===== */
.tw-news-list { display: flex; flex-direction: column; gap: 24px; }
.tw-news-list-item {
  display: flex; gap: 24px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; transition: box-shadow .3s;
}
.tw-news-list-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.tw-news-list-img { width: 260px; flex-shrink: 0; }
.tw-news-list-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tw-news-list-body { padding: 24px; display: flex; flex-direction: column; }
.tw-news-list-body h3 { font-size: 20px; margin: 0 0 12px; }
.tw-news-list-body h3 a { color: #222; }
.tw-news-list-body h3 a:hover { color: var(--primary); }
.tw-news-list-body p { color: var(--text-muted); font-size: 14px; line-height: 1.7; flex-grow: 1; }
.tw-news-list-body .tw-btn { align-self: flex-start; padding: 8px 20px; font-size: 13px; margin-top: 12px; }

@media (max-width: 768px) {
  .tw-news-list-item { flex-direction: column; }
  .tw-news-list-img { width: 100%; height: 200px; }
}

/* ===== Footer contact ===== */
.tw-footer-contact { list-style: none; padding: 0; margin: 0; }
.tw-footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: rgba(255,255,255,.7); font-size: 13px; }
.tw-footer-contact li i { color: var(--primary); margin-top: 3px; }

/* ===== Responsive ===== */
/* 中等桌面屏：高度调小一些 */
@media (max-width: 1199px) {
  .tw-hero-text h1 { font-size: 52px; }
  /* 导航栏在中等宽度下减小内边距，防止文字换行 */
  .tw-nav-menu > li > a { padding: 0 14px; font-size: 14px; }
  .tw-search-form input { width: 120px; }
  .tw-nav-tools { gap: 10px; }
  .tw-lang-switch { padding-right: 8px; }
}
/* 1100px以下：切换为移动端汉堡菜单，防止导航文字换行 */
@media (max-width: 1100px) {
  .tw-nav-menu { display: none; }
  .tw-mobile-toggle { display: block; }
  .tw-search-form { display: none; }
  .tw-lang-switch a { font-size: 12px; margin: 0 2px; padding: 2px 2px; }
  .tw-lang-switch { border-right: none; padding-right: 0; margin-right: 0; }
  /* 导航工具栏（语言切换+汉堡菜单）靠右对齐 */
  .tw-nav-tools { margin-left: auto; }
  /* 中等屏幕：产品从4列变3列，防止卡片过窄内容被裁剪 */
  .tw-product-grid { grid-template-columns: repeat(3, 1fr); }
  .tw-cat-grid { grid-template-columns: repeat(3, 1fr); }
  /* 顶部栏隐藏电话邮箱，只保留公司名 */
  .tw-topbar-right { display: none; }
  /* 移动端汉堡菜单展开时样式 */
  .tw-nav-menu.tw-show,
  .tw-nav-menu[style*="flex"] {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.95);
    padding: 10px 0;
    z-index: 999;
  }
  .tw-nav-menu[style*="flex"] > li {
    width: 100%;
    margin: 0;
  }
  .tw-nav-menu[style*="flex"] > li > a {
    font-size: 16px;
    line-height: 48px;
    padding: 0 24px;
    font-weight: 500;
    color: #FFFFFF;
    white-space: nowrap;
  }
  .tw-nav-menu[style*="flex"] > li > a:after { display: none; }
  .tw-nav-menu[style*="flex"] .tw-dropdown,
  .tw-nav-menu[style*="flex"] .tw-submenu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
  .tw-nav-menu[style*="flex"] .tw-dropdown li a,
  .tw-nav-menu[style*="flex"] .tw-submenu li a {
    color: rgba(255,255,255,.7);
    font-size: 14px;
    padding: 8px 24px 8px 48px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    line-height: 1.4;
    white-space: nowrap;
  }
  .tw-nav-menu[style*="flex"] .tw-submenu li a {
    padding-left: 64px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
  }
  .tw-nav-menu[style*="flex"] .tw-submenu-arrow { display: none; }
}
/* 平板：背景图按顶部对齐，高度更紧凑 */
@media (max-width: 991px) {
  .tw-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-product-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-news-grid { grid-template-columns: repeat(2, 1fr); }
  .tw-two-col { grid-template-columns: 1fr; gap: 30px; }
  .tw-footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  /* 平板端banner：contain完整显示图片 */
  .tw-hero { height: auto; min-height: 300px; padding-top: 56.25%; position: relative; }
  .tw-hero .tw-slide { background-position: center center; background-size: contain; background-color: #000; }
  .tw-hero-content { position: absolute; inset: 0; height: 100%; }
  .tw-hero-content { align-items: center; justify-content: center; }
  .tw-hero-text { padding-top: 0; max-width: 90%; text-align: center; }
  .tw-hero-text h1 { font-size: 40px; }
  .tw-hero-text p { font-size: 16px; }
  .tw-stats { grid-template-columns: repeat(2, 1fr); }
  /* 平板隐藏左右箭头，用底部圆点更方便 */
  .tw-hero-arrow { display: none; }
  /* 关于我们图片平板自适应 */
  .tw-section.tw-dark .tw-two-col .tw-col-img {
    max-width: 100%;
    height: 100%;
    min-height: 360px;
  }
  .tw-section.tw-dark .tw-two-col .tw-sub { font-size: 36px; }
  .tw-section.tw-dark .tw-two-col h2 { font-size: 28px; }
}
/* 手机：背景图完整显示 */
@media (max-width: 600px) {
  .tw-cat-grid, .tw-product-grid, .tw-news-grid { grid-template-columns: 1fr; }
  .tw-footer-top { grid-template-columns: 1fr; }
  /* banner背景图手机端完整显示，不裁剪 */
  .tw-hero { height: auto; min-height: 200px; padding-top: 56.25%; position: relative; }
  .tw-hero .tw-slide {
    background-position: center center;
    background-size: contain;
    background-color: #000;
  }
  .tw-hero-content { position: absolute; inset: 0; height: 100%; align-items: center; justify-content: center; }
  .tw-hero-text { max-width: 88%; padding-top: 0; text-align: center; }
  .tw-hero-text h1 { font-size: 26px; line-height: 1.25; margin-bottom: 10px; }
  .tw-hero-text p { font-size: 13px; margin-bottom: 16px; line-height: 1.5; }
  .tw-section-title h2 { font-size: 26px; }
  .tw-two-col h2 { font-size: 24px; }
  .tw-oem-form .tw-form-row { grid-template-columns: 1fr; }
  .tw-hero .tw-btn { padding: 10px 24px; font-size: 13px; }
  /* 关于我们手机自适应 */
  .tw-section.tw-dark .tw-two-col .tw-col-img {
    max-width: 100%;
    height: 240px;
    min-height: 240px;
  }
  .tw-section.tw-dark .tw-two-col .tw-sub { font-size: 28px; }
  .tw-section.tw-dark .tw-two-col h2 { font-size: 22px; }
}
/* 小手机 */
@media (max-width: 380px) {
  .tw-hero-text h1 { font-size: 24px; }
}
/* 隐藏顶部栏公司名在手机上的显示 */
@media (max-width: 600px) {
  .tw-topbar-left .tw-brand-name { font-size: 12px; }
  .tw-topbar-right { gap: 12px; font-size: 12px; }
  .tw-topbar-right span { font-size: 12px; }
}
