/*
Theme Name: 凯瑞精工轴承
Theme URI: https://kairui-bearing.com.cn
Description: 凯瑞精工轴承企业站子主题，基于 Twenty Twenty-Two
Author: BIOCCE
Template: twentytwentytwo
Version: 1.0.0
*/

/* ===== 全局 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 开门动画 ===== */
.door {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #003366;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 1.2s ease;
}
.door.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.door .door-logo {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 8px;
  margin-bottom: 20px;
}
.door .door-line {
  width: 60px;
  height: 2px;
  background: #CC0000;
  margin-bottom: 20px;
}
.door .door-sub {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  letter-spacing: 4px;
}

/* ===== 顶部导航 ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #eee;
  backdrop-filter: blur(10px);
  transition: all 0.3s;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-logo .icon {
  width: 42px; height: 42px;
  background: #003366;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 1px;
}
.header-logo .text h1 {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
}
.header-logo .text span {
  font-size: 11px;
  color: #999;
}

.header-nav { display: flex; gap: 8px; }
.header-nav a {
  padding: 8px 18px;
  font-size: 14px;
  color: #555;
  text-decoration: none;
  transition: all 0.3s;
  border-radius: 4px;
  position: relative;
}
.header-nav a:hover,
.header-nav a.current-menu-item,
.header-nav a.current_page_item {
  color: #003366;
  background: rgba(0,51,102,0.05);
}
.header-nav a.current-menu-item::after,
.header-nav a.current_page_item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #CC0000;
}

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

/* ===== Banner ===== */
.banner {
  margin-top: 70px;
  height: 580px;
  background: linear-gradient(135deg, #003366 0%, #004080 50%, #002244 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(204,0,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.banner::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  border-radius: 50%;
}
.banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
  position: relative;
  z-index: 2;
}
.banner h2 {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.banner h2 .accent {
  color: #FF4444;
}
.banner p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 32px;
}
.banner .banner-btn {
  display: inline-block;
  padding: 14px 40px;
  background: #CC0000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}
.banner .banner-btn:hover {
  background: #AA0000;
  transform: translateY(-2px);
}

/* ===== 快速入口 ===== */
.quick-bar {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.quick-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  display: flex;
  gap: 20px;
}
.quick-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.quick-item:hover {
  border-color: #003366;
  box-shadow: 0 4px 20px rgba(0,51,102,0.08);
  transform: translateY(-3px);
}
.quick-item .qi-icon {
  font-size: 36px;
  color: #003366;
  margin-bottom: 12px;
}
.quick-item h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}
.quick-item p {
  font-size: 12px;
  color: #999;
}

/* ===== 通用区块 ===== */
.section {
  padding: 80px 0;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 12px;
}
.section-title .line {
  width: 40px;
  height: 3px;
  background: #CC0000;
  margin: 0 auto 16px;
}
.section-title p {
  font-size: 14px;
  color: #888;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== 关于我们简介 ===== */
.about-section {
  background: #f8f9fa;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  height: 360px;
  background: linear-gradient(135deg, #003366, #004080);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.about-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
}
.about-text h3 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 16px;
}
.about-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.9;
  margin-bottom: 12px;
}
.about-text .about-more {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 28px;
  border: 1px solid #003366;
  color: #003366;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
}
.about-text .about-more:hover {
  background: #003366;
  color: #fff;
}

/* ===== 产品分类卡片 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  padding: 36px 20px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}
.product-card:hover {
  border-color: #003366;
  box-shadow: 0 8px 30px rgba(0,51,102,0.1);
}
.product-card .pc-icon {
  font-size: 42px;
  color: #003366;
  margin-bottom: 16px;
}
.product-card h3 {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}
.product-card .pc-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 11px;
  color: #666;
}
.product-card:hover .pc-tag {
  background: #003366;
  color: #fff;
}

/* ===== 数据统计 ===== */
.stats-section {
  background: #003366;
  color: #fff;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stats-item .num {
  font-size: 42px;
  font-weight: 800;
  color: #FF4444;
  margin-bottom: 8px;
}
.stats-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

/* ===== 底部 ===== */
.footer {
  background: #001a33;
  color: rgba(255,255,255,0.6);
  padding: 60px 0 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}
.footer p, .footer a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 2;
  text-decoration: none;
  display: block;
}
.footer a:hover {
  color: #fff;
}
.footer .company-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.footer .footer-phone {
  font-size: 22px;
  font-weight: 700;
  color: #FF4444;
  margin: 16px 0 8px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px 30px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}

/* ===== 页面标题区（内页） ===== */
.page-hero {
  margin-top: 70px;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #003366 0%, #004080 50%, #002244 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(204,0,0,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 2;
}
.page-hero .breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.page-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
}
.page-hero .breadcrumb span {
  color: #FF4444;
}

/* ===== 页面内容 ===== */
.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 30px;
}
.page-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ===== 联系信息页样式 ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.contact-block {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 32px;
  border: 1px solid #eee;
}
.contact-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 16px;
}
.contact-block h3 i {
  color: #CC0000;
  margin-right: 8px;
}
.contact-block p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 6px;
}
.contact-block p strong {
  color: #333;
}
/* ===== 关于页详情卡片 ===== */
.about-detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.about-detail-text h3 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 20px;
}
.about-detail-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 14px;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.about-stats-grid .item {
  background: #f8f9fc;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  border: 1px solid #eee;
}
.about-stats-grid .item .num {
  font-size: 24px;
  font-weight: 900;
  color: #CC0000;
}
.about-stats-grid .item .label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* ===== 关于我们页面内容样式 ===== */
.page-id-16 .page-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.page-id-16 .page-content h2 {
  font-size: 28px;
  color: #003366;
  margin: 48px 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid #e8edf2;
  position: relative;
}
.page-id-16 .page-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #CC0000;
}
.page-id-16 .page-content h2:first-of-type {
  margin-top: 0;
}
.page-id-16 .page-content h3 {
  font-size: 20px;
  color: #003366;
  margin: 32px 0 16px;
}
.page-id-16 .page-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.9;
  margin-bottom: 14px;
}
.page-id-16 .page-content ul {
  margin: 0 0 20px 20px;
  padding: 0;
}
.page-id-16 .page-content ul li {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
  list-style: disc;
}
.page-id-16 .page-content ul li strong {
  color: #003366;
}
.page-id-16 .page-content hr.wp-block-separator {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #e8edf2;
  opacity: 0.6;
}
.page-id-16 .page-content .about-section-title {
  display: inline-block;
  margin-bottom: 24px;
}

/* ===== 产品展示区（内页） ===== */
.product-module {
  margin-bottom: 32px;
}
.product-module .module-bg {
  background: linear-gradient(135deg, #1a2a3a, #2a4a6a);
  border-radius: 16px;
  padding: 36px 32px 44px;
  position: relative;
  overflow: hidden;
}
.product-module .module-bg::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(204,0,0,0.06), transparent 70%);
  top: -80px; right: -80px;
}
.product-module .section-icon {
  position: absolute;
  top: 20px; right: 32px;
  font-size: 40px;
  color: rgba(255,255,255,0.03);
  z-index: 1;
}
.product-module .module-title {
  font-size: 22px; font-weight: 700;
  color: #fff; margin-bottom: 4px;
  position: relative; z-index: 2;
}
.product-module .module-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 2px;
  margin-bottom: 24px;
  position: relative; z-index: 2;
}
.sub-tabs {
  display: flex; gap: 4px;
  margin-bottom: 20px;
  position: relative; z-index: 2;
  flex-wrap: wrap;
}
.sub-tabs .tab {
  padding: 8px 24px;
  border-radius: 6px 6px 0 0;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.4);
  font-size: 13px; font-weight: 500;
  transition: all .2s; cursor: default;
}
.sub-tabs .tab.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-bottom: 2px solid #FF4444;
}
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  position: relative; z-index: 2;
}
.card-row .product-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px 14px 16px;
  text-align: center;
  transition: all .25s;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}
.card-row .product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  border-color: #CC0000;
}
.card-row .product-item img {
  max-height: 70px;
  margin: 0 auto 12px;
  object-fit: contain;
}
.card-row .product-item .pname {
  font-size: 13px;
  font-weight: 600;
  color: #1a2a3a;
  margin-bottom: 2px;
}
.card-row .product-item .arrow {
  font-size: 16px;
  color: #ccc;
  transition: color .2s;
}
.card-row .product-item:hover .arrow {
  color: #CC0000;
}

/* ===== 内容区页码高亮 ===== */
.page-content h2 {
  font-size: 24px;
  color: #003366;
  margin: 32px 0 16px;
}
.page-content h3 {
  font-size: 20px;
  color: #003366;
  margin: 24px 0 12px;
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .mobile-toggle { display: block; }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    padding: 16px;
    border-bottom: 1px solid #eee;
  }
  .banner h2 { font-size: 32px; }
  .banner { height: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .quick-bar-inner { flex-wrap: wrap; }
  .quick-item { flex: 1 1 45%; }
  .page-hero h1 { font-size: 28px; }
  .contact-info-grid,
  .about-detail-wrap { grid-template-columns: 1fr; }
  .product-module .module-bg { padding: 28px 20px 36px; }
}
@media (max-width: 600px) {
  .banner h2 { font-size: 26px; }
  .banner { height: 360px; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .quick-item { flex: 1 1 100%; }
  .page-content { padding: 30px 20px; }
  .card-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sub-tabs .tab { padding: 6px 14px; font-size: 12px; }
}
/* ===== 关于板块图片优化 ===== */
.about-image {
  height: 360px;
  background: linear-gradient(135deg, #003366, #004080);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image .about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
.about-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
}
/* ===== 文章列表 ===== */
.news-list {
  max-width: 900px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #eee;
  transition: all 0.3s;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  padding-left: 12px;
}
.news-date {
  text-align: center;
  min-width: 64px;
  flex-shrink: 0;
}
.news-day {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #CC0000;
  line-height: 1;
}
.news-month {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}
.news-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.news-body h3 a {
  color: #003366;
  text-decoration: none;
  transition: color 0.2s;
}
.news-body h3 a:hover {
  color: #CC0000;
}
.news-body p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}
.news-readmore {
  font-size: 13px;
  color: #003366;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.news-readmore:hover {
  color: #CC0000;
}
.news-pagination {
  text-align: center;
  padding: 40px 0;
}
.news-pagination .page-numbers {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}
.news-pagination .page-numbers:hover,
.news-pagination .page-numbers.current {
  background: #003366;
  border-color: #003366;
  color: #fff;
}

/* ===== 文章详情 ===== */
.single-meta {
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 13px;
  color: #888;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.single-meta i {
  margin-right: 6px;
  color: #003366;
}
.single-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  color: #555;
  line-height: 1.9;
}
.single-content h2,
.single-content h3 {
  color: #003366;
  margin: 28px 0 12px;
}
.single-content p {
  margin-bottom: 16px;
}
.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

@media (max-width: 600px) {
  .news-item {
    flex-direction: column;
    gap: 12px;
  }
  .news-date {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: auto;
  }
  .news-day {
    font-size: 24px;
  }
  .single-meta {
    gap: 12px;
    font-size: 12px;
  }
}
/* ===== 导航操作按钮 ===== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  flex-shrink: 0;
}
.ha-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f0f4f8;
  color: #003366;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.ha-btn:hover {
  background: #003366;
  color: #fff;
  transform: scale(1.05);
}
.ha-quote {
  width: auto;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #CC0000, #FF4444);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
}
.ha-quote i {
  font-size: 14px;
}
.ha-quote:hover {
  background: linear-gradient(135deg, #990000, #CC0000);
  transform: scale(1.05);
}

/* ===== 侧边栏 ===== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  z-index: 10000;
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
}
.sidebar.open {
  right: 0;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(135deg, #003366, #004080);
  color: #fff;
  flex-shrink: 0;
}
.sidebar-title {
  font-size: 17px;
  font-weight: 700;
}
.sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.8;
  padding: 0 4px;
  line-height: 1;
}
.sidebar-close:hover {
  opacity: 1;
}
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
}

/* ===== 侧边栏内容 ===== */
.sb-section {
  margin-bottom: 24px;
}
.sb-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8edf2;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sb-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: #CC0000;
  border-radius: 2px;
}
.sb-contact-row {
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sb-contact-row i {
  width: 20px;
  color: #003366;
  font-size: 15px;
}
.sb-phone-btn {
  display: block;
  padding: 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  background: #003366;
  color: #fff;
}
.sb-phone-btn:hover {
  background: #002244;
  color: #fff;
}
.sb-phone-btn i {
  margin-right: 8px;
}
.sb-phone-btn2 {
  background: #07C160;
}
.sb-phone-btn2:hover {
  background: #06AD56;
}

/* ===== 表单 ===== */
.sb-form input,
.sb-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border 0.2s;
  box-sizing: border-box;
  font-family: inherit;
}
.sb-form input:focus,
.sb-form textarea:focus {
  outline: none;
  border-color: #003366;
  box-shadow: 0 0 0 3px rgba(0,51,102,0.1);
}
.sb-form textarea {
  resize: vertical;
  min-height: 72px;
}
.sb-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #003366, #004080);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sb-submit:hover {
  background: linear-gradient(135deg, #002244, #003366);
}
.sb-submit-quote {
  background: linear-gradient(135deg, #CC0000, #FF4444);
}
.sb-submit-quote:hover {
  background: linear-gradient(135deg, #990000, #CC0000);
}
.sb-qr-placeholder {
  padding: 10px 0;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .header-actions {
    margin-left: 8px;
    gap: 4px;
  }
  .ha-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .ha-quote {
    padding: 0 10px;
    font-size: 12px;
    height: 32px;
  }
  .ha-quote span {
    display: none;
  }
  .sidebar {
    width: 100vw;
    right: -100vw;
  }
}
/* ===== 产品详情弹窗 ===== */
.product-detail-area {
  z-index: 10001 !important;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(4px);
}
.product-detail-area.active {
  opacity: 1;
  visibility: visible;
}
.product-detail-area .detail-inner {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 48px 40px 36px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transform: translateY(20px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.22,1,0.36,1);
}
.product-detail-area.active .detail-inner {
  transform: translateY(0) scale(1);
}
.detail-close {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 28px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.detail-close:hover {
  background: #f5f5f5;
  color: #333;
}
.detail-inner h2 {
  font-size: 24px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #CC0000;
}
.detail-inner p {
  font-size: 15px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 16px;
}
@media (max-width: 600px) {
  .product-detail-area .detail-inner { padding: 36px 24px 24px; }
  .detail-inner h2 { font-size: 20px; }
  .detail-inner p { font-size: 14px; }
}

/* Product detail pages */

}
/* ===== 分享按钮样式 ===== */
.ha-share {
  background: #e74c3c !important;
}
.ha-share:hover {
  background: #c0392b !important;
}

/* ===== 分享网格 ===== */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 0;
}
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  color: #fff;
  transition: all 0.2s;
  gap: 6px;
}
.share-item i {
  font-size: 28px;
}
.share-qq { background: #12B7F5; }
.share-qq:hover { background: #0ea1d8; }
.share-qzone { background: #FECE00; color: #333; }
.share-qzone:hover { background: #e5b900; }
.share-wechat { background: #07C160; }
.share-wechat:hover { background: #06ad56; }
.share-weibo { background: #E6162D; }
.share-weibo:hover { background: #c41226; }
.share-link { background: #666; }
.share-link:hover { background: #555; }

/* ===== 侧边栏样式 ===== */
.sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar.open {
  right: 0;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e8edf2;
  background: #003366;
  color: #fff;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 600;
}
.sidebar-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
}
.sidebar-close:hover { opacity: 1; }
.sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 40px;
}
.sb-section {
  margin-bottom: 24px;
}
.sb-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #003366;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8edf2;
}
.sb-desc {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
}
.sb-qr-placeholder {
  margin: 12px 0;
  text-align: center;
}
.sb-contact-row {
  padding: 10px 0;
  font-size: 14px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f2f5;
}
.sb-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sb-form input, .sb-form textarea {
  padding: 10px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.sb-form input:focus, .sb-form textarea:focus {
  border-color: #003366;
}
.sb-submit {
  padding: 12px;
  background: #003366;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.sb-submit:hover {
  background: #002a52;
}
.sb-submit-quote {
  background: #CC0000;
}
.sb-submit-quote:hover {
  background: #a80000;
}
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* 移动端适配 */
@media (max-width: 500px) {
  .sidebar { width: 100%; right: -100%; }
  .share-grid { grid-template-columns: 1fr 1fr; }
}
