/* ============================================================
   Daotian Theme - Mobile Styles
   仿 www.woodturnerswonders.com 移动端排版风格
   工业工具网站移动端最佳实践 - 触摸友好、清晰排版
   ============================================================ */

/* ============================================================
   【灵动动画系统 / Animation System】
   所有区块在滚动进入视口时自动播放小动画
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideUpBounce {
  0%   { opacity: 0; transform: translateY(50px); }
  60%  { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.7); }
  70%  { transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* 动画基础类 - 隐藏直到触发 */
.anim-hidden {
  opacity: 0;
}
.anim-hidden.anim-fade-up    { transform: translateY(30px); }
.anim-hidden.anim-fade-left  { transform: translateX(-30px); }
.anim-hidden.anim-fade-right { transform: translateX(30px); }
.anim-hidden.anim-zoom       { transform: scale(0.9); }
.anim-hidden.anim-pop        { transform: scale(0.7); }
.anim-hidden.anim-bounce-up  { transform: translateY(50px); }

/* 触发后的动画 */
.anim-visible.anim-fade-up    { animation: fadeInUp 0.6s ease forwards; }
.anim-visible.anim-fade-down  { animation: fadeInDown 0.6s ease forwards; }
.anim-visible.anim-fade-left  { animation: fadeInLeft 0.6s ease forwards; }
.anim-visible.anim-fade-right { animation: fadeInRight 0.6s ease forwards; }
.anim-visible.anim-zoom       { animation: zoomIn 0.5s ease forwards; }
.anim-visible.anim-pop        { animation: popIn 0.5s ease forwards; }
.anim-visible.anim-bounce-up  { animation: slideUpBounce 0.7s ease forwards; }

/* 延迟类 */
.anim-delay-1  { animation-delay: 0.1s !important; }
.anim-delay-2  { animation-delay: 0.2s !important; }
.anim-delay-3  { animation-delay: 0.3s !important; }
.anim-delay-4  { animation-delay: 0.4s !important; }
.anim-delay-5  { animation-delay: 0.5s !important; }
.anim-delay-6  { animation-delay: 0.6s !important; }

/* ===== 手机端：最大480px ===== */
@media (max-width: 480px) {
  /* ---- 全局字体调整 ---- */
  body {
    font-size: 14px;
    line-height: 1.7;
  }
  .container {
    padding: 0 16px;
  }
  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  h4 { font-size: 17px; }

  /* ---- Header 紧凑顶部栏 ---- */
  main {
    margin-top: 54px;
  }
  header .head-b {
    padding: 8px 0;
  }
  header .head-b .container {
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo {
    max-width: 140px;
    flex-shrink: 0;
  }
  .logo img,
  .logo a img {
    max-height: 32px;
    width: auto;
  }

  /* ---- 移动端顶部操作按钮组 ---- */
  .head-b .container > .head-search-btn,
  .head-b .container > .mob-search {
    display: flex !important;
    font-size: 20px;
    padding: 6px 8px;
    color: #333;
    order: 3;
  }
  .mob-menu {
    order: 4;
    margin-left: 2px;
  }
  /* 语言选择器在移动端header不显示 */
  header .head-t {
    display: none !important;
  }

  /* ---- 移动端全屏搜索框 ---- */
  .search-box {
    display: none !important;
  }
  .search-box.mobile-active {
    display: flex !important;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
  }
  .search-box.mobile-active .searchtxt {
    width: 100%;
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
    height: 42px;
  }
  .search-box.mobile-active .searchtxt:focus {
    border-color: #1a3a7a;
  }
  .search-box.mobile-active .searchbtn {
    padding: 10px 18px;
    background: #1a3a7a;
    color: #fff;
    border: 1px solid #1a3a7a;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    height: 42px;
    white-space: nowrap;
  }
  .search-box.mobile-active .search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    margin-left: 8px;
  }

  /* ---- 移动端导航菜单 ---- */
  nav.active {
    display: block !important;
    position: fixed;
    top: 54px;
    left: 0;
    width: 100%;
    height: calc(100vh - 54px);
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  nav.active .nav {
    flex-direction: column;
    padding: 8px 0;
    margin: 0;
  }
  nav.active .nav > li {
    border-bottom: 1px solid #f0f0f0;
  }
  nav.active .nav > li:last-child {
    border-bottom: none;
  }
  nav.active .nav > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: none;
  }
  nav.active .nav > li > a::after {
    display: none;
  }
  nav.active .nav > li > a i.fa-chevron-down {
    font-size: 12px;
    color: #999;
    transition: transform 0.3s ease;
  }
  nav.active .nav > li > a i.fa-chevron-down.rotated {
    transform: rotate(180deg);
  }
  nav.active .nav > li.menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 14px;
    color: #aaa;
    margin-left: auto;
  }

  /* ---- 移动端子菜单 ---- */
  nav.active .submenu {
    position: static !important;
    display: none;
    box-shadow: none;
    padding: 0;
    background: #f8f9fa;
    border-radius: 0;
    animation: none;
  }
  nav.active .submenu.show,
  nav.active .submenu.open {
    display: block;
  }
  nav.active .submenu li {
    border-bottom: 1px solid #eee;
  }
  nav.active .submenu li:last-child {
    border-bottom: none;
  }
  nav.active .submenu li a {
    display: block;
    padding: 12px 20px 12px 36px;
    font-size: 14px;
    color: #555;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
  }
  nav.active .submenu li a:active {
    background: #edf2ff;
    border-left-color: #1a3a7a;
    color: #1a3a7a;
  }

  /* ---- Banner 轮播 ---- */
  #swiper-banner {
    aspect-ratio: 16 / 9;
    border-radius: 0;
    max-height: 220px;
  }
  #swiper-banner .swiper-slide img {
    object-fit: cover;
  }
  #swiper-banner .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  #swiper-banner .swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 4px;
  }
  #swiper-banner .swiper-button-prev,
  #swiper-banner .swiper-button-next {
    display: none !important;
  }

  /* ---- 首页各区块间距 ---- */
  .about,
  .product,
  .news,
  .advantage {
    padding: 40px 0;
  }
  .home-tit {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 14px;
  }
  .home-tit::after {
    width: 50px;
    height: 2px;
  }

  /* ---- About 区块 ---- */
  .about .container {
    padding: 0 16px;
  }
  #about .swiper-slide {
    flex-direction: column;
    gap: 24px;
  }
  .about-l {
    flex: none;
    width: 100%;
  }
  .about-l img {
    height: auto;
    max-height: 240px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
  }
  .about-r {
    flex: none;
    width: 100%;
    padding: 0;
  }
  .about-r h3 {
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .about-r h3::after {
    width: 40px;
    height: 2px;
  }
  .about-r p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 10px;
  }
  .about-list {
    margin: 12px 0;
  }
  .about-list li {
    font-size: 13px;
    padding: 5px 0 5px 22px;
  }
  .home-more {
    padding: 10px 24px;
    font-size: 13px;
  }
  .about .swiper-button-prev,
  .about .swiper-button-next {
    display: none !important;
  }

  /* ---- 产品网格（首页） ---- */
  .product-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .product-list li {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .product-img {
    height: 200px;
    width: 100%;
  }
  .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .product-tit {
    padding: 12px 14px 4px;
    font-size: 15px;
    text-align: left;
  }
  .product-text {
    padding: 0 14px;
    font-size: 13px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }
  .product-more {
    padding: 8px 14px 14px;
    text-align: left;
    font-size: 12px;
  }

  /* ============================================================
     【产品分类页 / Products Page】
     三大分类导航 -> 移动端单列 + 卡片式
     ============================================================ */
  /* 三大分类导航块 */
  .product-category-nav {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 30px !important;
  }
  .product-category-nav a {
    padding: 24px 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    text-align: left !important;
  }
  .product-category-nav a > div:first-child {
    font-size: 36px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }
  .product-category-nav a h3 {
    font-size: 17px !important;
    margin: 0 0 4px 0 !important;
  }
  .product-category-nav a p {
    font-size: 13px !important;
    margin: 0 !important;
  }

  /* 产品分类标题 */
  .page-content h2 {
    font-size: 20px !important;
    padding-bottom: 8px !important;
    margin-bottom: 4px !important;
  }
  .page-content h2 i {
    font-size: 18px;
  }
  .page-content > .container > p {
    font-size: 14px !important;
    margin-bottom: 24px !important;
  }

  /* 子分类标题 */
  .page-content h3 {
    font-size: 15px !important;
    padding-left: 10px !important;
    margin-bottom: 12px !important;
  }

  /* 产品网格 4列 -> 2列 */
  .product-grid-4,
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  /* 产品卡片 */
  .product-card-item,
  div[style*="border:1px solid #e5e5e5"][style*="border-radius:8px"] {
    border-radius: 10px !important;
    border: 1px solid #eee !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
  }
  .product-card-item:active,
  .product-card-item.touch-active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }

  /* 产品卡片图片 */
  .product-card-img,
  div[style*="height:200px;overflow:hidden"] {
    height: 140px !important;
  }
  .product-card-img img,
  div[style*="height:200px;overflow:hidden"] img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* 产品卡片内容区 */
  .product-card-item > div:last-child,
  div[style*="padding:15px"] {
    padding: 10px 12px 12px !important;
  }
  .product-card-item h4,
  div[style*="padding:15px"] h4 {
    font-size: 13px !important;
    margin-bottom: 4px !important;
    line-height: 1.3;
    white-space: normal !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card-item p,
  div[style*="padding:15px"] > p {
    font-size: 11px !important;
    margin-bottom: 6px !important;
    -webkit-line-clamp: 1 !important;
  }
  .product-card-item a,
  div[style*="padding:15px"] a {
    font-size: 11px !important;
  }

  /* 返回按钮 */
  a[href*="Back to All Products"],
  a[href*="back to all products"] {
    padding: 8px 16px !important;
    font-size: 13px !important;
  }

  /* ============================================================
     【产品详情页 / Single Product Page】
     全宽布局，图片占满，信息紧凑
     ============================================================ */
  .single-daotian_product .page-content .container > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .single-daotian_product .page-content .container > div[style*="display:flex"] > div:first-child {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .single-daotian_product .page-content .container > div[style*="display:flex"] > div:last-child {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  /* 产品标题 */
  .single-daotian_product h1 {
    font-size: 22px !important;
    margin-bottom: 8px !important;
  }

  /* 产品描述 */
  .single-daotian_product .page-content .container > div[style*="display:flex"] > div:last-child > div[style*="font-size:15px"] {
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
  }

  /* Key Features 区块 */
  .single-daotian_product div[style*="background:#f0f5ff"] {
    padding: 16px 18px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
  }
  .single-daotian_product div[style*="background:#f0f5ff"] h3 {
    font-size: 15px !important;
    margin-bottom: 10px !important;
  }
  .single-daotian_product div[style*="background:#f0f5ff"] li {
    font-size: 13px !important;
    margin-bottom: 5px !important;
  }

  /* 按钮组 */
  .single-daotian_product div[style*="margin-top:30px"] {
    margin-top: 20px !important;
    gap: 10px !important;
    flex-direction: column !important;
  }
  .single-daotian_product div[style*="margin-top:30px"] a {
    padding: 12px 24px !important;
    font-size: 14px !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 25px !important;
  }

  /* 产品画廊 */
  .single-daotian_product .product-gallery {
    border-radius: 10px !important;
  }
  .single-daotian_product .product-gallery .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #f8f8f8;
  }
  .single-daotian_product .product-gallery .swiper-button-next,
  .single-daotian_product .product-gallery .swiper-button-prev {
    width: 36px !important;
    height: 36px !important;
  }
  .single-daotian_product .product-gallery .swiper-button-next:after,
  .single-daotian_product .product-gallery .swiper-button-prev:after {
    font-size: 14px !important;
  }

  /* 缩略图导航 */
  .single-daotian_product .product-thumbs {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
  }
  .single-daotian_product .product-thumbs .thumb-item {
    height: 60px !important;
    border-radius: 4px !important;
  }

  /* 分类/型号信息 */
  .single-daotian_product div[style*="background:#f8f9fa"] {
    padding: 12px 14px !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
  }
  .single-daotian_product div[style*="background:#f8f9fa"] p {
    font-size: 12px !important;
  }

  /* 相关产品 */
  .single-daotian_product div[style*="margin-top:60px"] {
    margin-top: 36px !important;
    padding-top: 24px !important;
  }
  .single-daotian_product div[style*="margin-top:60px"] h3 {
    font-size: 17px !important;
    margin-bottom: 16px !important;
  }
  .single-daotian_product div[style*="margin-top:60px"] > div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .single-daotian_product div[style*="margin-top:60px"] > div[style*="grid-template-columns:repeat(4,1fr)"] > div {
    border-radius: 8px !important;
  }
  .single-daotian_product div[style*="margin-top:60px"] > div[style*="grid-template-columns:repeat(4,1fr)"] div[style*="height:160px"] {
    height: 120px !important;
  }
  .single-daotian_product div[style*="margin-top:60px"] > div[style*="grid-template-columns:repeat(4,1fr)"] div[style*="padding:12px"] {
    padding: 8px 10px !important;
  }
  .single-daotian_product div[style*="margin-top:60px"] > div[style*="grid-template-columns:repeat(4,1fr)"] p {
    font-size: 12px !important;
  }

  /* 社交分享 */
  .single-daotian_product .social-share {
    margin-top: 16px !important;
    padding-top: 14px !important;
  }
  .single-daotian_product .social-share > div {
    gap: 6px !important;
  }
  .single-daotian_product .social-share a {
    padding: 6px 12px !important;
    font-size: 11px !important;
    border-radius: 4px !important;
  }

  /* 分类页面CTA区块 */
  .page-content div[style*="background:linear-gradient(135deg,#1a3a7a,#2a5ab5)"] {
    padding: 28px 20px !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
  }
  .page-content div[style*="background:linear-gradient(135deg,#1a3a7a,#2a5ab5)"] h3 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  .page-content div[style*="background:linear-gradient(135deg,#1a3a7a,#2a5ab5)"] p {
    font-size: 13px !important;
    margin-bottom: 18px !important;
  }
  .page-content div[style*="background:linear-gradient(135deg,#1a3a7a,#2a5ab5)"] a {
    padding: 12px 32px !important;
    font-size: 14px !important;
    border-radius: 25px !important;
  }

  /* ---- 新闻区块 ---- */
  .news .container {
    flex-direction: column;
    gap: 30px;
  }
  .news-l {
    flex: none;
    width: 100%;
  }
  .news-l h4 {
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .news-l h4::after {
    width: 40px;
    height: 2px;
  }
  .news-l p {
    font-size: 14px;
    margin-bottom: 12px;
  }
  .news-l ul li {
    font-size: 13px;
    padding: 4px 0;
  }
  .news-l a {
    padding: 10px 24px;
    font-size: 13px;
  }
  .news-r {
    flex: none;
    width: 100%;
  }
  .news-r h4 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  .news-r h4::after {
    width: 40px;
    height: 2px;
  }
  .news-list {
    gap: 12px;
  }
  .news-list li {
    padding: 14px;
    gap: 12px;
    border-radius: 8px;
    align-items: flex-start;
  }
  .news-item-data {
    width: 55px;
    padding: 8px 6px;
    flex-shrink: 0;
  }
  .news-item-data p:first-child {
    font-size: 16px;
  }
  .news-item-data p:last-child {
    font-size: 11px;
  }
  .news-item-tit {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .news-item-text {
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* ---- 优势区块 ---- */
  .advantage-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .advantage-list li {
    padding: 24px 16px;
    border-radius: 10px;
  }
  .advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    font-size: 26px;
  }
  .advantage-tit {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .advantage-text {
    font-size: 13px;
    line-height: 1.5;
  }

  /* ---- Footer ---- */
  .foot-t {
    padding: 40px 0 24px;
  }
  .foot-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .foot-item1 .footlogo {
    max-width: 160px;
    margin-bottom: 14px;
  }
  .foot-item1 p {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .fshare ul {
    gap: 8px;
  }
  .fshare .social-item {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .foot-item2 h6,
  .foot-item3 h6,
  .foot-item4 h6,
  .foot-item5 h6 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
  }
  .foot-item2 h6::after,
  .foot-item3 h6::after,
  .foot-item4 h6::after,
  .foot-item5 h6::after {
    width: 30px;
    height: 2px;
  }
  .foot-contact p {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .fnav li a,
  .fpronav li a {
    font-size: 13px;
    padding: 4px 0;
  }
  .foot-b {
    padding: 16px 0;
  }
  .foot-b p {
    font-size: 12px;
  }

  /* ---- 移动端底部固定导航栏 ---- */
  .mobile-bottom {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 9999;
    padding: 6px 0 env(safe-area-inset-bottom, 6px) 0;
    justify-content: space-around;
  }
  .mobile-bottom-item {
    flex: 1;
    text-align: center;
  }
  .mobile-bottom-item a,
  .mobile-bottom-item p {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    color: #666;
    margin: 0;
    padding: 4px 0;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
  }
  .mobile-bottom-item a:active,
  .mobile-bottom-item p:active {
    color: #1a3a7a;
  }
  .mobile-bottom-item a i,
  .mobile-bottom-item p i {
    font-size: 20px;
    margin-bottom: 2px;
    display: block;
  }
  .mobile-bottom-item a span,
  .mobile-bottom-item p span {
    font-size: 10px;
    line-height: 1.2;
  }

  /* 给底部留空间 */
  body {
    padding-bottom: 56px;
  }

  /* ---- Go Top 按钮 ---- */
  .gotop {
    bottom: 72px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  }
  .gotop.show {
    opacity: 0.9;
    visibility: visible;
  }

  /* ---- 页面级通用样式 ---- */
  .page-content {
    padding: 30px 0;
  }
  .page-content h1 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .page-content p {
    font-size: 14px;
    line-height: 1.7;
  }

  /* ============================================================
     【产品分类页 / Products Page】- 新版样式
     ============================================================ */
  /* 页面标题 - 只显示一个简洁的标题 */
  .page-content .page-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1a3a7a;
    font-weight: 800;
  }
  .page-content .page-subtitle {
    font-size: 14px !important;
    color: #888 !important;
    margin-bottom: 18px !important;
    line-height: 1.6;
    max-width: 100%;
  }

  /* 三大分类导航卡片 - 手机端单列+横排图文 */
  .product-category-nav {
    display: block !important;
    margin-bottom: 24px !important;
  }
  .cat-nav-card {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    margin-bottom: 10px !important;
    background: linear-gradient(135deg,#1a3a7a,#2a5ab5) !important;
    color: #fff !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
  }
  .cat-nav-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  .cat-nav-icon {
    font-size: 32px !important;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
  }
  .cat-nav-text {
    flex: 1;
  }
  .cat-nav-text h3 {
    font-size: 17px !important;
    color: #fff !important;
    margin: 0 0 4px 0 !important;
    font-weight: 700;
  }
  .cat-nav-text p {
    font-size: 12px !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 !important;
    line-height: 1.4;
  }

  /* 产品分类区块 */
  .product-section {
    margin-bottom: 32px !important;
  }
  .product-section-title {
    font-size: 18px !important;
    color: #1a3a7a !important;
    border-bottom: 2px solid #e8b830 !important;
    padding-bottom: 8px !important;
    margin-bottom: 5px !important;
    font-weight: 700;
  }
  .product-section-title i {
    font-size: 16px;
    color: #e8b830;
  }
  .product-section-desc {
    font-size: 13px !important;
    color: #888 !important;
    margin-bottom: 14px !important;
  }

  /* 子分类区块 */
  .product-subsection {
    margin-bottom: 20px !important;
  }
  .product-subsection-title {
    font-size: 14px !important;
    color: #2a5ab5 !important;
    padding-left: 10px !important;
    border-left: 3px solid #e8b830 !important;
    margin-bottom: 10px !important;
    font-weight: 600;
  }

  /* 产品网格（移动端统一 2 列） */
  .product-mobile-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* 产品卡片 - 全新美化设计 */
  .product-card-item {
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
  }
  .product-card-item:active {
    transform: scale(0.96);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  .product-card-img {
    height: 130px !important;
    overflow: hidden !important;
    background: #f8f8f8;
    position: relative;
  }
  .product-card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .product-card-item:active .product-card-img img {
    transform: scale(1.05) !important;
  }
  .product-card-body {
    padding: 10px 12px 12px !important;
    background: #fff;
  }
  .product-card-body h4 {
    font-size: 13px !important;
    color: #1a3a7a !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
  }
  .product-card-body p {
    font-size: 11px !important;
    color: #888 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-card-body a {
    font-size: 11px !important;
    color: #e8b830 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    letter-spacing: 0.3px;
  }
  .product-card-body a::after {
    content: ' →';
    font-size: 12px;
  }

  /* 返回按钮 */
  div[style*="margin-bottom:25px"] a {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 20px !important;
  }

  /* CTA 区块 */
  .products-cta {
    padding: 24px 18px !important;
    border-radius: 12px !important;
    margin-top: 10px !important;
    text-align: center !important;
    background: linear-gradient(135deg,#1a3a7a,#2a5ab5) !important;
  }
  .products-cta h3 {
    font-size: 17px !important;
    color: #fff !important;
    margin: 0 0 8px 0 !important;
  }
  .products-cta p {
    font-size: 13px !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 0 16px 0 !important;
  }
  .products-cta-btn {
    display: inline-block !important;
    padding: 10px 30px !important;
    background: #e8b830 !important;
    color: #1a3a7a !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
  }
  .products-cta-btn:active {
    transform: scale(0.95);
    opacity: 0.9;
  }

  /* ---- 面包屑 ---- */
  .breadcrumb {
    padding: 10px 0;
  }
  .breadcrumb ul li {
    font-size: 12px;
  }

  /* ---- 联系页面 ---- */
  .contact-info {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 28px;
  }
  .contact-card {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .contact-card i {
    font-size: 30px;
    margin-bottom: 10px;
  }
  .contact-card h4 {
    font-size: 16px;
  }
  .contact-card p {
    font-size: 13px;
  }

  /* ---- 404 页面 ---- */
  .error404 .page-content {
    text-align: center;
    padding: 60px 0;
  }
  .error404 .page-content h1 {
    font-size: 60px;
    margin-bottom: 10px;
  }
  .error404 .page-content p {
    font-size: 15px;
  }
}

/* ============================================================
   【终极修复】移动端图片强制显示 / Force Images on Mobile
   解决：anim-hidden 动画导致产品图片 white screen
   策略：所有产品卡片及其图片强制 opacity:1 + display:block
   ============================================================ */
@media (max-width: 768px) {
  .product-card-item,
  .product-card-item *,
  .product-card-img,
  .product-card-img img,
  .product-hover-img,
  .wp-post-image,
  div[class*="product"] img,
  img[class*="product"],
  img[class*="hover"] {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  .product-card-img img,
  .product-hover-img,
  .wp-post-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: relative !important;
  }
  .product-card-img {
    overflow: hidden !important;
    background: #f5f5f5 !important;
    min-height: 100px !important;
  }
  /* 防止 anim-hidden 类隐藏任何图片 */
  .anim-hidden img,
  img.anim-hidden {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .anim-hidden {
    opacity: 0;
  }
  /* 但产品卡片绝对不能隐藏 */
  .product-card-item.anim-hidden,
  .product-mobile-grid.anim-hidden,
  .product-card-img.anim-hidden {
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }
}

/* ===== 小手机端：最大380px ===== */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }
  .logo {
    max-width: 120px;
  }
  .logo img,
  .logo a img {
    max-height: 28px;
  }
  .product-img {
    height: 180px;
  }
  .product-grid-4,
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .product-card-img,
  div[style*="height:200px;overflow:hidden"] {
    height: 120px !important;
  }
  .advantage-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .news-list li {
    flex-direction: column;
    gap: 8px;
  }
  .news-item-data {
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    flex-direction: row;
    text-align: left;
  }
  .news-item-data p:first-child {
    font-size: 14px;
  }
  .news-item-data p:last-child {
    font-size: 12px;
  }
  .home-tit {
    font-size: 18px;
  }
}

/* ===== 平板端：481px - 768px ===== */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  main {
    margin-top: 60px;
  }
  header .head-b {
    padding: 8px 0;
  }
  .logo {
    max-width: 160px;
  }
  .logo img,
  .logo a img {
    max-height: 36px;
  }
  .head-t {
    display: none !important;
  }
  .head-search-btn,
  .mob-search {
    display: flex !important;
    font-size: 20px;
    padding: 6px 8px;
  }
  .mob-menu {
    display: flex !important;
  }
  nav {
    display: none;
  }
  nav.active {
    display: block !important;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    background: #fff;
    z-index: 9998;
    overflow-y: auto;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  }
  nav.active .nav {
    flex-direction: column;
    padding: 8px 0;
  }
  nav.active .nav > li > a {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
  }
  nav.active .nav > li > a::after {
    display: none;
  }
  nav.active .submenu {
    position: static !important;
    display: none;
    box-shadow: none;
    padding: 0;
    background: #f8f9fa;
  }
  nav.active .submenu.show,
  nav.active .submenu.open {
    display: block;
  }
  nav.active .submenu li a {
    padding: 12px 24px 12px 40px;
    font-size: 14px;
    border-left: 3px solid transparent;
  }
  nav.active .submenu li a:active {
    border-left-color: #1a3a7a;
    background: #edf2ff;
  }
  .search-box {
    display: none !important;
  }
  .search-box.mobile-active {
    display: flex !important;
    position: fixed;
    top: 56px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    border-bottom: 1px solid #e5e5e5;
    align-items: center;
  }
  .search-box.mobile-active .searchtxt {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    height: 42px;
  }
  .search-box.mobile-active .searchbtn {
    padding: 10px 18px;
    background: #1a3a7a;
    color: #fff;
    border: 1px solid #1a3a7a;
    border-radius: 0 6px 6px 0;
    height: 42px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
  }
  .search-box.mobile-active .search-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    margin-left: 8px;
  }
  #swiper-banner {
    aspect-ratio: 16 / 7;
    max-height: 300px;
    border-radius: 0;
  }
  .product-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .product-img {
    height: 180px;
  }
  .product-tit {
    font-size: 14px;
    padding: 10px 12px 4px;
  }
  .product-text {
    padding: 0 12px;
    font-size: 12px;
  }

  /* 平板端产品分类页 */
  .product-category-nav {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px !important;
  }
  .product-category-nav a {
    padding: 20px 16px !important;
    border-radius: 10px !important;
  }
  .product-category-nav a h3 {
    font-size: 16px !important;
  }
  .product-grid-4,
  div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
  .product-card-img,
  div[style*="height:200px;overflow:hidden"] {
    height: 160px !important;
  }

  /* 平板端产品详情页 */
  .single-daotian_product .page-content .container > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .single-daotian_product .page-content .container > div[style*="display:flex"] > div {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .single-daotian_product .product-gallery .swiper-slide img {
    max-height: 380px;
  }
  .single-daotian_product div[style*="margin-top:60px"] > div[style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .news .container {
    flex-direction: column;
    gap: 30px;
  }
  .news-l,
  .news-r {
    flex: none;
    width: 100%;
  }
  .advantage-list {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .foot-list {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .mobile-bottom {
    display: flex !important;
  }
  body {
    padding-bottom: 56px;
  }
  .gotop {
    bottom: 72px;
  }
  .about .swiper-button-prev,
  .about .swiper-button-next {
    display: none !important;
  }
  .page-content {
    padding: 36px 0;
  }
  .home-tit {
    font-size: 22px;
    margin-bottom: 28px;
  }
}