/* =========================================================
   龙翔新材料主题 - 干净重构版
   主色: #dc0c19 (龙翔红)  辅色: #373c41 (深灰)  #f5f5f5 (浅灰)
   ========================================================= */
:root {
  --lx-red: #dc0c19;
  --lx-red-dark: #b30915;
  --lx-dark: #373c41;
  --lx-gray: #f5f5f5;
  --lx-line: #e5e5e5;
  --lx-text: #444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--lx-text); font-size: 14px; line-height: 1.7; background: #fff; }
a { color: inherit; text-decoration: none; transition: all .3s; }
img { max-width: 100%; border: 0; display: block; }
ul, ol { list-style: none; }
.l-wrap { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ""; display: block; clear: both; }

/* ==================== 顶部 ==================== */
.lx-topbar { background: var(--lx-dark); color: #ccc; font-size: 13px; position: relative; z-index: 1000; }
.lx-topbar .l-wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.lx-topbar a { color: #ccc; margin-right: 14px; white-space: nowrap; }
.lx-topbar a:hover { color: #fff; }
.lx-topbar .top-right { display: flex; align-items: center; }
.lx-topbar .top-left { display: flex; align-items: center; white-space: nowrap; }
/* 语言切换下拉在深色顶部条中的适配 */
.lx-topbar .lx-lang { color: #ccc; padding: 3px 8px; }
.lx-topbar .lx-lang:hover { color: #fff; }
.lx-topbar .lx-lang-drop a { margin-right: 0; color: #555; }
.lx-topbar .lx-lang-drop a:hover { color: var(--lx-red); background: #f8f8f8; }
.lx-topbar .lx-lang-drop a.on { color: var(--lx-red); font-weight: 600; }

.lx-header { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 999; }
.lx-header .l-wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.lx-logo { display: flex; align-items: center; }
.lx-logo img { height: 52px; width: auto; }
.lx-logo .logo-txt { margin-left: 12px; }
.lx-logo .logo-txt b { font-size: 22px; color: var(--lx-dark); display: block; line-height: 1.3; }
.lx-logo .logo-txt span { font-size: 12px; color: #999; letter-spacing: 2px; }

/* 导航 */
.lx-nav { display: flex; align-items: center; }
.lx-nav-lang { display: none; } /* 语言切换区：移动端抽屉内显示，PC 隐藏（PC 用顶部条 .lx-lang） */
.lx-nav > ul { display: flex; flex-wrap: nowrap; white-space: nowrap; }
.lx-nav > ul > li { position: relative; white-space: nowrap; }
.lx-nav > ul > li > a { display: block; padding: 0 18px; line-height: 84px; font-size: 16px; color: var(--lx-dark); font-weight: 600; white-space: nowrap; }
.lx-nav > ul > li > a:hover,
.lx-nav > ul > li.active > a { color: var(--lx-red); }
.lx-nav > ul > li.active > a::after,
.lx-nav > ul > li > a:hover::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--lx-red); }
.lx-nav .lx-submenu { position: absolute; top: 84px; left: 0; min-width: 160px; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .25s; z-index: 100; }
.lx-nav > ul > li:hover .lx-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.lx-nav .lx-submenu li a { display: block; padding: 11px 18px; color: #555; font-size: 14px; border-bottom: 1px solid #f2f2f2; }
.lx-nav .lx-submenu li a:hover { color: #fff; background: var(--lx-red); padding-left: 24px; }

.lx-header-right { display: flex; align-items: center; }
/* 搜索框收纳：默认只显示放大镜图标，点击展开输入区（节省导航空间） */
.lx-search { display: flex; align-items: center; margin-right: 16px; position: relative; }
.lx-search-toggle { width: 34px; height: 34px; border: 1px solid var(--lx-line); border-radius: 4px; background: #fafafa; cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; color: #555; transition: all .2s; }
.lx-search-toggle:hover { border-color: var(--lx-red); color: var(--lx-red); }
.lx-search-panel { display: flex; align-items: center; border: 1px solid var(--lx-line); border-radius: 4px; overflow: hidden; background: #fafafa; margin-left: 8px; width: 0; opacity: 0; pointer-events: none; transition: width .25s ease, opacity .2s ease; }
.lx-search.open .lx-search-panel { width: 240px; opacity: 1; pointer-events: auto; }
.lx-search input { width: 170px; min-width: 0; flex-shrink: 1; border: 0; padding: 7px 12px; font-size: 13px; outline: none; background: transparent; }
.lx-search .lx-search-btn { flex-shrink: 0; white-space: nowrap; border: 0; background: var(--lx-red); color: #fff; padding: 7px 16px; font-size: 13px; cursor: pointer; }
.lx-search .lx-search-btn:hover { background: var(--lx-red-dark); }
.lx-lang { position: relative; cursor: pointer; padding: 6px 10px; font-size: 13px; color: #666; white-space: nowrap; }
.lx-lang:hover { color: var(--lx-red); }
.lx-lang .lx-lang-drop { position: absolute; top: 100%; margin-top: 2px; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.12); min-width: 110px; max-height: 320px; overflow-y: auto; display: none; z-index: 100; }
/* hover 桥：下拉顶部 8px 透明区域延伸触发器 hover 范围，鼠标下移路径连续不收起 */
.lx-lang .lx-lang-drop::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.lx-lang:hover .lx-lang-drop,
.lx-lang.lx-lang-open .lx-lang-drop { display: block; }
.lx-lang .lx-lang-drop a { display: block; padding: 9px 16px; color: #555; font-size: 13px; }
.lx-lang .lx-lang-drop a:hover { color: var(--lx-red); background: #f8f8f8; }
.lx-lang .lx-lang-drop a.on { color: var(--lx-red); font-weight: 600; }
.lx-lang .lx-lang-arrow { font-size: 10px; color: #999; margin-left: 2px; }
/* 语言切换国旗标识 */
.lx-flag { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
.lx-flag-svg { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: block; }
.lx-lang-drop a .lx-flag { margin-right: 8px; }

/* 移动端按钮 */
.lx-nav-btn { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.lx-nav-btn span { display: block; height: 3px; background: var(--lx-dark); width: 26px; border-radius: 2px; }

/* ==================== Banner 轮播 ==================== */
.lx-banner { position: relative; overflow: hidden; }
.lx-banner .swiper-slide img { width: 100%; height: 520px; object-fit: cover; }
.lx-banner .lx-banner-txt { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; z-index: 2; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.lx-banner .lx-banner-txt h2 { font-size: 46px; font-weight: 700; letter-spacing: 4px; }
.lx-banner .lx-banner-txt p { font-size: 18px; letter-spacing: 6px; margin-top: 12px; opacity: .92; }
.lx-banner .swiper-pagination-bullet { background: #fff; opacity: .7; }
.lx-banner .swiper-pagination-bullet-active { background: var(--lx-red); opacity: 1; }

/* 轮播功能组件：分页计数 / 进度条 / 左右箭头 */
.lx-banner-count { position: absolute; right: 24px; bottom: 22px; z-index: 10; color: #fff; font-size: 15px; letter-spacing: 2px; background: rgba(0,0,0,.45); padding: 6px 14px; border-radius: 4px; font-weight: 600; font-family: Georgia, 'Times New Roman', serif; }
.lx-banner-count .lx-banner-cur { color: #fff; font-size: 22px; }
.lx-banner-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); z-index: 10; }
.lx-banner-progress i { display: block; height: 100%; width: 0; background: var(--lx-red); }
.lx-banner-nav { position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); z-index: 10; display: flex; justify-content: space-between; padding: 0 18px; pointer-events: none; }
.lx-banner-nav button { pointer-events: auto; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; opacity: 0; }
.lx-banner:hover .lx-banner-nav button { opacity: 1; }
.lx-banner-nav button:hover { background: var(--lx-red); transform: scale(1.1); }
/* 移动端隐藏箭头、进度条与计数缩小 */
@media (max-width: 768px) {
  .lx-banner-nav { display: none; }
  .lx-banner-count { right: 14px; bottom: 16px; font-size: 12px; padding: 4px 10px; }
  .lx-banner-count .lx-banner-cur { font-size: 16px; }
  .lx-banner-progress { height: 3px; }
}

/* ==================== 通用区块标题 ==================== */
.lx-section { padding: 60px 0; }
.lx-section.gray { background: var(--lx-gray); }
.lx-section-title { text-align: center; margin-bottom: 40px; }
.lx-section-title h2 { font-size: 30px; color: var(--lx-dark); position: relative; display: inline-block; padding-bottom: 14px; }
.lx-section-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 50px; height: 3px; background: var(--lx-red); }
.lx-section-title p { color: #999; margin-top: 10px; font-size: 14px; letter-spacing: 1px; }

/* ==================== 首页 - 公司介绍 ==================== */
.lx-about { background: var(--lx-dark); color: #fff; }
.lx-about .lx-about-wrap { display: flex; gap: 50px; align-items: center; }
.lx-about .about-left { flex: 0 0 46%; }
.lx-about .about-right { flex: 1 1 0; min-width: 0; }
.lx-about .about-left img { width: 100%; height: 380px; object-fit: cover; }
.lx-about .about-right h3 { font-size: 32px; margin-bottom: 18px; }
.lx-about .about-right h3 em { color: var(--lx-red); font-style: normal; }
.lx-about .about-right p { color: #bbb; font-size: 14px; margin-bottom: 14px; line-height: 2; }
.lx-about .about-more { display: inline-block; margin-top: 12px; color: #fff; border: 1px solid var(--lx-red); padding: 9px 28px; }
.lx-about .about-more:hover { background: var(--lx-red); }

.lx-stats { display: flex; background: #fff; margin-top: -40px; position: relative; z-index: 5; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.lx-stats .stat-item { flex: 1; text-align: center; padding: 26px 10px; border-right: 1px solid var(--lx-line); }
.lx-stats .stat-item:last-child { border-right: 0; }
.lx-stats .stat-item b { font-size: 32px; color: var(--lx-red); font-weight: 900; line-height: 1.1; font-family: Georgia, 'Times New Roman', serif; letter-spacing: 1px; }
.lx-stats .stat-item b small { font-size: 14px; font-weight: 700; margin-left: 3px; }
/* 描述文字：必须用"直接子元素"选择器，避免命中 b 内的数字 span(lx-stat-num) */
.lx-stats .stat-item > span { display: block; color: #666; margin-top: 10px; font-size: 16px; font-weight: 400; line-height: 32px; }

/* 内容区表格：去除编辑器输出 table 的默认边框与背景 */
.lx-content table, .lx-detail table { background-color: transparent; border-collapse: collapse; border-spacing: 0; }
.lx-content table td, .lx-content table th, .lx-detail table td, .lx-detail table th { border: 0; padding: 4px 8px; }
.lx-content table p, .lx-detail table p { margin: 0 0 10px; line-height: 32px; color: #666; font-size: 16px; }

/* ==================== 首页 - 产品展示 ==================== */
.lx-pro-cats { text-align: center; margin-bottom: 32px; }
.lx-pro-cats a { display: inline-block; padding: 7px 24px; margin: 0 6px; border: 1px solid var(--lx-line); color: #666; font-size: 14px; }
.lx-pro-cats a:hover, .lx-pro-cats a.on { border-color: var(--lx-red); color: var(--lx-red); }
.lx-pro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lx-pro-grid .pro-card { background: #fff; border: 1px solid var(--lx-line); overflow: hidden; transition: all .3s; position: relative; }
.lx-pro-grid .pro-card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.12); transform: translateY(-6px); border-color: transparent; }
.lx-pro-grid .pro-card .pro-img { overflow: hidden; }
.lx-pro-grid .pro-card .pro-img img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s; }
.lx-pro-grid .pro-card:hover .pro-img img { transform: scale(1.08); }
.lx-pro-grid .pro-card .pro-info { padding: 16px 16px 18px; }
.lx-pro-grid .pro-card .pro-info h4 { font-size: 15px; color: var(--lx-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lx-pro-grid .pro-card .pro-info h4:hover { color: var(--lx-red); }
.lx-pro-grid .pro-card .pro-info p { color: #999; font-size: 13px; margin-top: 6px; line-height: 1.6; height: 3.2em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-pro-more { text-align: center; margin-top: 34px; }
.lx-pro-more a { display: inline-block; border: 1px solid var(--lx-red); color: var(--lx-red); padding: 9px 34px; font-size: 14px; }
.lx-pro-more a:hover { background: var(--lx-red); color: #fff; }

/* ==================== 首页 - 优势 ==================== */
.lx-adv { background: url('/uploads/longxiang/picture/banner2.jpg') center/cover fixed no-repeat; position: relative; color: #fff; }
.lx-adv::before { content: ""; position: absolute; inset: 0; background: rgba(55,60,65,.86); }
.lx-adv .lx-section-title h2 { color: #fff; }
.lx-adv .lx-section-title p { color: #ccc; }
.lx-adv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; z-index: 2; }
.lx-adv-grid .adv-card { text-align: center; padding: 30px 20px; border: 1px solid rgba(255,255,255,.25); }
.lx-adv-grid .adv-card:hover { background: rgba(220,12,25,.35); border-color: var(--lx-red); }
.lx-adv-grid .adv-card i { font-size: 40px; font-style: normal; display: block; margin-bottom: 14px; }
.lx-adv-grid .adv-card h4 { font-size: 17px; margin-bottom: 10px; }
.lx-adv-grid .adv-card p { color: #ccc; font-size: 13px; line-height: 1.8; }

/* ==================== 首页 - 案例 ==================== */
.lx-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.lx-case-grid .case-card { position: relative; overflow: hidden; height: 220px; }
.lx-case-grid .case-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lx-case-grid .case-card:hover img { transform: scale(1.1); }
.lx-case-grid .case-card .case-mask { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent); display: flex; align-items: flex-end; padding: 16px; }
.lx-case-grid .case-card .case-mask span { color: #fff; font-size: 14px; }

/* ==================== 首页 - 新闻 ==================== */
.lx-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.lx-news-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--lx-line); padding: 16px; transition: all .3s; }
.lx-news-item:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.lx-news-item .news-date { flex: 0 0 76px; text-align: center; background: var(--lx-red); color: #fff; padding: 12px 0; align-self: flex-start; }
.lx-news-item .news-date b { font-size: 24px; display: block; line-height: 1.2; }
.lx-news-item .news-date span { font-size: 12px; }
/* 内容区：占满剩余宽度并允许收缩（min-width:0），否则长文本撑破卡片/页面右侧，省略号失效 */
.lx-news-item .news-body { flex: 1 1 0; min-width: 0; }
.lx-news-item .news-body h4 { font-size: 15px; color: var(--lx-dark); margin-bottom: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-news-item .news-body h4:hover { color: var(--lx-red); }
.lx-news-item .news-body p { color: #999; font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ==================== 页面横幅（内页） ==================== */
.lx-page-banner { height: 260px; background: var(--lx-dark) url('/uploads/longxiang/picture/banner2.jpg') center/cover no-repeat; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; position: relative; }
.lx-page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(55,60,65,.62); }
.lx-page-banner h2 { font-size: 36px; letter-spacing: 4px; position: relative; z-index: 2; }
.lx-page-banner p { font-size: 14px; letter-spacing: 2px; margin-top: 8px; position: relative; z-index: 2; opacity: .85; }
.lx-crumb { background: #fafafa; border-bottom: 1px solid var(--lx-line); padding: 12px 0; font-size: 13px; color: #999; }
.lx-crumb a { color: #666; }
.lx-crumb a:hover { color: var(--lx-red); }
.lx-crumb .cur { color: var(--lx-red); }

/* ==================== 内页主体（侧栏 + 内容） ==================== */
.lx-main { display: flex; gap: 34px; padding: 40px 0 60px; }
.lx-sidebar { flex: 0 0 250px; }
.lx-sidebar .side-title { background: var(--lx-dark); color: #fff; padding: 14px 18px; font-size: 16px; font-weight: 600; }
.lx-sidebar ul.side-nav li a { display: block; padding: 12px 18px; border: 1px solid var(--lx-line); border-top: 0; color: #555; font-size: 14px; position: relative; }
.lx-sidebar ul.side-nav li a:hover, .lx-sidebar ul.side-nav li.on a { background: #fff7f7; color: var(--lx-red); padding-left: 24px; }
.lx-sidebar ul.side-nav li.on a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--lx-red); }
.lx-sidebar .side-box { margin-top: 22px; border: 1px solid var(--lx-line); }
.lx-sidebar .side-box .side-title { background: var(--lx-red); }
.lx-sidebar .side-contact { padding: 16px; font-size: 13px; color: #666; }
.lx-sidebar .side-contact li { padding: 7px 0; border-bottom: 1px dashed var(--lx-line); }
.lx-sidebar .side-contact li:last-child { border-bottom: 0; }
.lx-sidebar .side-contact b { color: var(--lx-red); font-size: 16px; }

.lx-content { flex: 1; min-width: 0; }
.lx-content .content-title { font-size: 22px; color: var(--lx-dark); padding-bottom: 14px; margin-bottom: 22px; border-bottom: 2px solid var(--lx-red); display: inline-block; }
.lx-content .content-body { line-height: 2; font-size: 14px; }
.lx-content .content-body p { margin-bottom: 12px; }
.lx-content .content-body img { margin: 10px auto; }
.lx-content .content-body h3, .lx-content .content-body h4 { color: var(--lx-dark); margin: 18px 0 10px; }
.lx-content .content-body ul { padding-left: 20px; }
.lx-content .content-body ul li { list-style: disc; margin-bottom: 6px; }

/* 内页列表 */
.lx-list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px dashed var(--lx-line); align-items: center; }
.lx-list li .li-img { flex: 0 0 180px; overflow: hidden; }
.lx-list li .li-img img { width: 100%; height: 120px; object-fit: cover; transition: transform .4s; }
.lx-list li:hover .li-img img { transform: scale(1.06); }
.lx-list li .li-info { flex: 1; min-width: 0; }
.lx-list li .li-info h4 { font-size: 16px; color: var(--lx-dark); }
.lx-list li .li-info h4:hover { color: var(--lx-red); }
.lx-list li .li-info p { color: #999; font-size: 13px; margin: 8px 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lx-list li .li-info .li-date { color: #bbb; font-size: 12px; }
.lx-list li .li-info .li-more { color: var(--lx-red); font-size: 13px; }

/* 分页 */
.lx-pagination { text-align: center; margin-top: 30px; }
.lx-pagination a, .lx-pagination span, .lx-pagination .pagination_link {
  display: inline-block; padding: 6px 13px; margin: 0 3px; border: 1px solid var(--lx-line);
  color: #666; font-size: 13px; background: #fff;
}
.lx-pagination a:hover, .lx-pagination .pagination_active, .lx-pagination .active { border-color: var(--lx-red); background: var(--lx-red); color: #fff; }
.common-page { text-align: center; margin-top: 30px; }
.common-page a, .common-page span {
  display: inline-block; padding: 6px 13px; margin: 0 3px; border: 1px solid var(--lx-line);
  color: #666; font-size: 13px; background: #fff;
}
.common-page a:hover, .common-page span.ctxt { border-color: var(--lx-red); background: var(--lx-red); color: #fff; }

/* 产品详情 */
.lx-pro-detail { display: flex; gap: 34px; }
.lx-pro-detail .pd-img { flex: 0 0 46%; }
/* 产品信息区：固定占据剩余宽度（flex:1 + min-width:0 防内容撑开导致忽宽忽窄） */
.lx-pro-detail .pd-info { flex: 1 1 0; min-width: 0; }
.lx-pro-detail .pd-main-img img { width: 100%; border: 1px solid var(--lx-line); }

/* 产品多图：主图 + 缩略图 + 放大预览 */
.pd-main-img { position: relative; cursor: zoom-in; }
.pd-zoom-hint { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.5); color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; pointer-events: none; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pd-thumb { width: 76px; height: 76px; border: 2px solid var(--lx-line); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.pd-thumb.on, .pd-thumb:hover { border-color: var(--lx-red); }
.lx-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 9999; display: none; align-items: center; justify-content: center; }
.lx-lightbox.show { display: flex; }
.lx-lb-stage { max-width: 86vw; max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.lx-lb-stage img { max-width: 86vw; max-height: 84vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lx-lb-close { position: absolute; top: 18px; right: 22px; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 42px; height: 42px; font-size: 20px; border-radius: 50%; cursor: pointer; z-index: 2; line-height: 1; }
.lx-lb-prev, .lx-lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); color: #fff; border: 0; width: 52px; height: 52px; font-size: 30px; border-radius: 50%; cursor: pointer; z-index: 2; line-height: 1; }
.lx-lb-prev { left: 22px; }
.lx-lb-next { right: 22px; }
.lx-lb-close:hover, .lx-lb-prev:hover, .lx-lb-next:hover { background: var(--lx-red); }
.lx-lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 16px; background: rgba(255,255,255,.15); padding: 4px 14px; border-radius: 20px; font-family: Georgia, 'Times New Roman', serif; }
@media (max-width: 768px){
  .lx-lb-prev { left: 8px; }
  .lx-lb-next { right: 8px; }
  .lx-lb-close { top: 12px; right: 12px; }
  .pd-thumb { width: 60px; height: 60px; }
}

/* 新闻详情：收藏 + 分享操作区 */
.nd-actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; padding-top: 18px; border-top: 1px dashed var(--lx-line); flex-wrap: wrap; }
.nd-actions .pd-share { margin-top: 0; }
.lx-pro-detail .pd-info h3 { font-size: 24px; color: var(--lx-dark); margin-bottom: 14px; }
.lx-pro-detail .pd-info .pd-desc { color: #666; font-size: 14px; line-height: 2; margin-bottom: 16px; }
.lx-pro-detail .pd-info .pd-meta { background: #fafafa; padding: 14px 16px; font-size: 13px; color: #666; margin-bottom: 16px; }
.lx-pro-detail .pd-info .pd-meta li { padding: 5px 0; }
.lx-pro-detail .pd-info .pd-inquiry { display: inline-block; background: var(--lx-red); color: #fff; padding: 10px 30px; font-size: 14px; }
.lx-pro-detail .pd-info .pd-inquiry:hover { background: var(--lx-red-dark); }
.lx-pro-detail .pd-info .pd-share { margin-top: 12px; font-size: 13px; color: #999; }
.pd-tabs { margin-top: 34px; }
.pd-tabs .pd-tab-nav { border-bottom: 2px solid var(--lx-line); }
.pd-tabs .pd-tab-nav span { display: inline-block; padding: 10px 26px; cursor: pointer; font-size: 15px; color: #666; }
.pd-tabs .pd-tab-nav span.on { color: var(--lx-red); border-bottom: 2px solid var(--lx-red); margin-bottom: -2px; }
.pd-tabs .pd-tab-body { padding: 22px 0; line-height: 2; }
.pd-nav { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--lx-line); font-size: 13px; color: #666; }
.pd-nav a:hover { color: var(--lx-red); }

/* 新闻详情 */
.lx-news-detail h1 { font-size: 24px; color: var(--lx-dark); text-align: center; margin-bottom: 14px; }
.lx-news-detail .nd-meta { text-align: center; color: #999; font-size: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--lx-line); margin-bottom: 22px; }
.lx-news-detail .nd-body { line-height: 2.1; font-size: 14px; }
.lx-news-detail .nd-body p { margin-bottom: 12px; }
.lx-news-detail .nd-body img { margin: 12px auto; }
.nd-nav { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--lx-line); font-size: 13px; }
.nd-nav a:hover { color: var(--lx-red); }

/* 关于我们 */
.lx-about-page { display: flex; gap: 40px; }
.lx-about-page .ap-text { flex: 1; }
.lx-about-page .ap-text p { margin-bottom: 14px; text-indent: 2em; }
.lx-about-page .ap-img { flex: 0 0 42%; }
.lx-about-page .ap-img img { width: 100%; }

/* 联系我们 */
/* ===== 联系我们页：联系方式 4 大卡片（顶部一行） ===== */
.lx-contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 30px; margin-bottom: 30px; }
.lx-cc-item { background: #fff; border: 1px solid var(--lx-line); border-radius: 8px; padding: 22px 18px; display: flex; align-items: center; gap: 14px; transition: box-shadow .25s, transform .25s, border-color .25s; }
.lx-cc-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); border-color: transparent; }
.lx-cc-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lx-cc-icon svg { display: block; }
.lx-cc-info { min-width: 0; }
.lx-cc-label { display: block; color: #999; font-size: 13px; margin-bottom: 4px; }
.lx-cc-info b { display: block; color: var(--lx-dark); font-size: 15px; font-weight: 600; word-break: break-all; line-height: 1.4; }

/* ===== 联系我们页：主区（侧栏 + 表单卡片） ===== */
.lx-contact-main { margin-top: 0; }
.lx-contact-main .lx-content { padding-left: 0; }
.lx-contact-main .lx-sidebar { padding: 28px 24px; }
.lx-contact-main .side-company { margin-top: 24px; padding: 18px; background: #fafafa; border-radius: 6px; }
.lx-contact-main .side-company-name { font-size: 14px; color: var(--lx-dark); font-weight: 600; line-height: 1.5; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px dashed #e0e0e0; }
.lx-contact-main .side-company-meta p { color: #666; font-size: 13px; line-height: 1.8; }
.lx-contact-main .side-company-meta b { color: var(--lx-dark); display: inline-block; min-width: 56px; }

/* 表单卡片（占主区 2/3 宽） */
.lx-form-card { background: #fff; border: 1px solid var(--lx-line); border-radius: 8px; padding: 36px 38px; box-shadow: 0 2px 12px rgba(0,0,0,.03); }
.lx-form-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f0; }
.lx-form-head .content-title { margin-bottom: 8px; }
.lx-form-sub { color: #888; font-size: 14px; line-height: 1.6; }
.lx-form-row { margin-bottom: 18px; }
.lx-form-label { display: block; color: var(--lx-dark); font-size: 14px; margin-bottom: 8px; font-weight: 500; }
.lx-form-label span { color: #f00; }
.lx-form-row input, .lx-form-row textarea { width: 100%; border: 1px solid #e0e0e0; padding: 11px 14px; font-size: 14px; outline: none; background: #fff; font-family: inherit; border-radius: 4px; transition: border-color .2s, box-shadow .2s; box-sizing: border-box; }
.lx-form-row input:focus, .lx-form-row textarea:focus { border-color: var(--lx-red); box-shadow: 0 0 0 3px rgba(190,0,10,.08); }
.lx-form-row textarea { height: 140px; resize: vertical; line-height: 1.6; }
.lx-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lx-form-grid-2 .lx-form-row { margin-bottom: 18px; }
.lx-form-submit-row { margin-top: 8px; text-align: right; }
.lx-form-submit { background: var(--lx-red); color: #fff; border: 0; padding: 12px 50px; font-size: 15px; cursor: pointer; border-radius: 4px; font-weight: 600; letter-spacing: 1px; transition: background .2s, transform .15s, box-shadow .2s; }
.lx-form-submit:hover { background: var(--lx-red-dark); box-shadow: 0 6px 16px rgba(190,0,10,.25); }
.lx-form-submit:active { transform: translateY(1px); }

/* 图集（荣誉/厂容厂貌等） */
.lx-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lx-gallery .gal-item { border: 1px solid var(--lx-line); overflow: hidden; }
.lx-gallery .gal-item .gal-img { overflow: hidden; height: 210px; }
.lx-gallery .gal-item .gal-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.lx-gallery .gal-item:hover .gal-img img { transform: scale(1.08); }
.lx-gallery .gal-item .gal-name { text-align: center; padding: 12px; color: var(--lx-dark); font-size: 14px; }
.lx-gallery .gal-item:hover .gal-name { color: var(--lx-red); }

/* ==================== 页脚 ==================== */
.lx-footer { background: var(--lx-dark); color: #bbb; margin-top: 0; }
.lx-footer .lx-foot-main { display: flex; gap: 44px; padding: 50px 0 40px; }
.lx-foot-main .foot-col { flex: 1; }
.lx-foot-main .foot-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.lx-foot-main .foot-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 2px; background: var(--lx-red); }
.lx-foot-main .foot-col ul li { padding: 6px 0; font-size: 13px; }
.lx-foot-main .foot-col ul li a:hover { color: var(--lx-red); }
.lx-foot-main .foot-col .foot-contact li { padding: 7px 0; }
.lx-foot-main .foot-col .foot-contact b { color: #fff; font-size: 15px; }
.lx-foot-main .foot-col .foot-qr { display: flex; align-items: center; gap: 14px; }
.lx-foot-main .foot-col .foot-qr img { width: 100px; height: 100px; background: #fff; padding: 4px; }
.lx-footer .lx-copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 18px 0; font-size: 13px; color: #999; }
.lx-footer .lx-copy .l-wrap { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; }
.lx-footer .lx-copy .copy-icp { color: #ccc; margin-left: 4px; }
.lx-footer .lx-copy a:hover { color: var(--lx-red); }

/* 回到顶部 */
.lx-gotop { position: fixed; right: 24px; bottom: 90px; width: 44px; height: 44px; background: rgba(55,60,65,.85); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 99; font-size: 20px; opacity: 0; visibility: hidden; transition: all .3s; }
.lx-gotop.show { opacity: 1; visibility: visible; }
.lx-gotop:hover { background: var(--lx-red); }

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
  .lx-pro-grid, .lx-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lx-adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-about .lx-about-wrap { flex-direction: column; }
  .lx-about .about-left { flex: 0 0 100%; }
  .lx-main { flex-direction: column; }
  /* 移动端：侧栏回到顶部并压缩为一行横向分类 tab（第一屏即可直接切换分类），正文紧随其后 */
  .lx-sidebar { flex: 0 0 auto; margin-bottom: 14px; }
  .lx-sidebar .side-title { padding: 10px 14px; font-size: 15px; }
  .lx-sidebar ul.side-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px; border: 1px solid var(--lx-line); border-top: 0; }
  .lx-sidebar ul.side-nav li { flex: 0 0 auto; }
  .lx-sidebar ul.side-nav li a { border: 1px solid var(--lx-line); border-radius: 4px; padding: 7px 16px; font-size: 14px; }
  .lx-sidebar ul.side-nav li a:hover, .lx-sidebar ul.side-nav li.on a { padding-left: 16px; }
  .lx-sidebar ul.side-nav li.on a::before { display: none; }
  .lx-sidebar .side-box { display: none; } /* 移动端隐藏联系方式卡片（页脚已有完整联系方式） */
  .lx-pro-detail { flex-direction: column; }
  .lx-contact { flex-direction: column; }
  .lx-foot-main { flex-wrap: wrap; }
  .lx-foot-main .foot-col { flex: 0 0 45%; }
  .lx-nav-btn { display: flex; }
  .lx-nav { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: #fff; z-index: 1002; box-shadow: -6px 0 24px rgba(0,0,0,.15); transition: right .3s; overflow-y: auto; display: flex; flex-direction: column; }
  .lx-nav.open { right: 0; }
  .lx-nav > ul { flex-direction: column; padding-top: 60px; }
  .lx-nav > ul > li > a { line-height: 48px; border-bottom: 1px solid #f2f2f2; }
  .lx-nav .lx-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
  .lx-nav > ul > li.open .lx-submenu { display: block; }
  /* 移动端：抽屉内语言切换（堆叠在导航底部，不再与 ul 并列） */
  .lx-nav-lang { display: block; padding: 16px; border-top: 1px solid #f2f2f2; margin-top: auto; background: #fafafa; }
  .lx-nav-lang-title { font-size: 12px; color: #999; margin-bottom: 10px; }
  .lx-nav-lang a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; color: #555; font-size: 14px; border-radius: 4px; margin-bottom: 4px; }
  .lx-nav-lang a:last-child { margin-bottom: 0; }
  .lx-nav-lang a.on { color: var(--lx-red); background: #fff; font-weight: 600; }
  /* 移动端：抽屉内顶栏 logo（防止抽屉顶部空白突兀） */
  .lx-nav::before { content: ''; position: sticky; top: 0; height: 50px; background: #fff; border-bottom: 1px solid #f0f0f0; }
  /* 移动端：顶栏隐藏语言切换（避免与抽屉内语言区重复显示） */
  .lx-topbar .lx-lang { display: none; }
  .lx-nav-mask { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 997; display: none; }
  .lx-nav-mask.show { display: block; }
}
@media (max-width: 768px) {
  /* 移动端 topbar 只保留电话，隐藏邮箱链接：避免 nowrap 邮箱把语言切换挤出视口（横向溢出） */
  .lx-topbar .top-left a[href^="mailto:"] { display: none; }
  .lx-pro-grid, .lx-case-grid, .lx-adv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-news-grid { grid-template-columns: 1fr; }
  .lx-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-banner .swiper-slide img { height: 320px; }
  .lx-banner .lx-banner-txt h2 { font-size: 28px; }
  .lx-stats { flex-wrap: wrap; }
  .lx-stats .stat-item { flex: 0 0 50%; border-bottom: 1px solid var(--lx-line); }
  .lx-list li { flex-direction: column; align-items: flex-start; }
  .lx-list li .li-img { flex: 0 0 100%; width: 100%; }
  .lx-list li .li-img img { height: 180px; width: 100%; }
  /* 手机端内容区内边距，避免文字贴边 */
  .lx-content { padding: 16px; }
}

/* ===== 首页产品分类切换 ===== */
.lx-pro-grid.lx-loading { opacity: .45; pointer-events: none; transition: opacity .18s ease; }
.lx-pro-grid .lx-pro-empty { list-style: none; }
.lx-pro-empty .lx-pro-empty-card { padding: 40px 0; text-align: center; color: #999; border: none; box-shadow: none; }

/* ===== 产品列表视图切换（网格/列表） ===== */
.lx-content-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.lx-content-head .content-title { margin-bottom: 0; }
.lx-view-switch { display: flex; gap: 6px; margin-bottom: 2px; }
.lx-view-switch button { width: 36px; height: 30px; border: 1px solid var(--lx-line); background: #fff; color: #999; border-radius: 4px; cursor: pointer; font-size: 15px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: all .2s; }
.lx-view-switch button:hover { border-color: var(--lx-red); color: var(--lx-red); }
.lx-view-switch button.on { background: var(--lx-red); border-color: var(--lx-red); color: #fff; }
@media (max-width: 768px) {
  .lx-content-head { align-items: center; }
}

/* ===== 千人千面推荐位 ===== */
.lx-recommend { margin-top: 36px; border-top: 1px solid var(--lx-line); padding-top: 26px; }
.lx-rec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.lx-rec-title { font-size: 20px; color: var(--lx-dark); font-weight: 600; padding-left: 12px; border-left: 4px solid var(--lx-red); line-height: 1.3; }
.lx-rec-badge { background: var(--lx-red); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; }
.lx-pro-grid .pro-card { position: relative; }
.lx-rec-tag { position: absolute; top: 10px; left: 10px; background: var(--lx-red); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 3px; z-index: 2; box-shadow: 0 2px 6px rgba(190,0,10,.35); }

/* ===== 收藏按钮 ===== */
.pd-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.pd-fav { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--lx-line); background: #fff; color: #666; padding: 10px 22px; font-size: 14px; border-radius: 3px; cursor: pointer; transition: all .2s; }
.pd-fav:hover { border-color: var(--lx-red); color: var(--lx-red); }
.pd-fav.on { background: #fff5f5; border-color: var(--lx-red); color: var(--lx-red); }

/* ===== 推荐位"已浏览/已收藏"标识 ===== */
.lx-seen-tag { position: absolute; top: 10px; right: 10px; background: rgba(102,102,102,.85); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 3px; z-index: 2; }
.lx-seen-tag.is-fav { background: rgba(255,153,0,.92); }

/* ===== 列表页（新闻/产品 list/搜索）现代化卡片化 ===== */
.lx-list li { display: flex; gap: 22px; padding: 18px; margin-bottom: 16px; border: 1px solid var(--lx-line); border-radius: 6px; background: #fff; align-items: stretch; transition: box-shadow .25s, border-color .25s, transform .25s; }
.lx-list li:hover { border-color: #ddd; box-shadow: 0 6px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.lx-list li .li-img { flex: 0 0 240px; overflow: hidden; border-radius: 4px; position: relative; }
.lx-list li .li-img img { width: 100%; height: 160px; object-fit: cover; transition: transform .4s; }
.lx-list li:hover .li-img img { transform: scale(1.06); }
.lx-list li .li-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lx-list li .li-info h4 { font-size: 18px; color: var(--lx-dark); margin-bottom: 8px; line-height: 1.4; font-weight: 600; }
.lx-list li .li-info h4:hover { color: var(--lx-red); }
.lx-list li .li-info h4 a { color: inherit; }
.lx-list li .li-info p { color: #777; font-size: 14px; line-height: 1.7; margin: 0 0 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; flex: 1; }
.lx-list li .li-info .li-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed #eee; }
.lx-list li .li-info .li-date { color: #999; font-size: 13px; }
.lx-list li .li-info .li-date::before { content: "📅 "; }
.lx-list li .li-info .li-more { color: var(--lx-red); font-size: 13px; font-weight: 600; transition: transform .2s; }
.lx-list li:hover .li-info .li-more { transform: translateX(3px); }
@media (max-width: 768px) {
  .lx-list li { flex-direction: column; padding: 12px; gap: 12px; }
  .lx-list li .li-img { flex: 0 0 auto; width: 100%; }
  .lx-list li .li-img img { height: 200px; }
}
@media (max-width: 992px) {
  .lx-contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .lx-contact-cards { grid-template-columns: 1fr; }
  .lx-form-grid-2 { grid-template-columns: 1fr; }
  .lx-form-card { padding: 24px 20px; }
}

/* 移动端：统计数字缩小适配（桌面 32px） */
@media (max-width: 768px) {
  .lx-stats .stat-item b { font-size: 26px; }
  .lx-stats .stat-item b small { font-size: 12px; }
  .lx-stats .stat-item > span { font-size: 13px; }
}
