/* ============================================================
   Theme: 宏远工业 - 共享样式
   组织原则：每段 = 一个独立模块，桌面+响应式自包含
   ============================================================ */

/* -------------------- 1. 基础变量与重置 -------------------- */
:root { --primary: #D4380D; --primary-dark: #B82E00; --primary-light: #FFF1E8; --navy: #1A1A2E; --border: #E8E8E8; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f5f7; color: #222; font-size: 14px; }
a { text-decoration: none; }

/* -------------------- 2. 页头：公共结构 -------------------- */

/* 2-0. topbar */
.topbar { background: #F5F5F5; color: #999; font-size: 12px; line-height: 40px; }
.topbar a { color: #999; margin: 0 10px; white-space: nowrap; }
.topbar a:hover { color: var(--primary); }
.topbar .split { color: #ddd; }
@media (max-width: 767px) {
  .topbar { display: none; }
}

/* 2-0. header 共用基础：尺寸/结构/字体，不含颜色 */
.logo-icon { width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 24px; height: 24px; }
.logo-text { font-size: 26px; font-weight: 900; line-height: 1.1; }
.logo-text small { display: block; font-size: 10px; font-weight: 400; letter-spacing: 1.5px; }
.nav-links { list-style: none; padding: 0; margin: 0; }
.nav-links a { font-size: 14px; font-weight: 500; white-space: nowrap; }

/* ---- 子菜单（桌面端下拉） ---- */
.nav-links .menu-item-has-children { position: relative; }
.nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 200px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
}
.nav-links .sub-menu .menu-item { display: block; }
.nav-links .sub-menu a {
    display: block;
    padding: 8px 20px;
    color: #333;
    white-space: nowrap;
    font-weight: 400;
    border-bottom: 1px solid #f0f0f0;
}
.nav-links .sub-menu a:hover {
    color: var(--primary);
    background: #f5f5f5;
}
.nav-links .sub-menu .menu-item:last-child a { border-bottom: none; }
.nav-links .sub-menu .current-menu-item a { color: var(--primary); }
@media (max-width: 991px) {
    .nav-links .sub-menu {
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 1rem;
    }
    .nav-links .sub-menu a {
        color: inherit;
        border-bottom: none;
        padding: 6px 20px;
    }
    .nav-links .sub-menu a:hover { background: transparent; }
}

/* 2-0. 汉堡按钮（公共） */
.menu-toggle { display: none; background: none; border: none; padding: 4px; cursor: pointer; flex-shrink:0; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #222; margin: 5px 0; transition: all .2s; }
@media (max-width: 991px) {
  .menu-toggle { display: block; }
}

/* ---- 2a. 方案一：白底标准 ---- */
.header-default { background: #fff; border-bottom: 1px solid var(--border); position: relative; }
.header-default .header-inner { height: 120px; gap: 24px; }
.header-default .logo-icon { background: var(--primary); }
.header-default .logo-text { color: var(--primary); }
.header-default .logo-text small { color: #bbb; }
.header-default .nav-links { gap: 28px; margin-left: 5px; }
.header-default .nav-links a { color: #222; }
.header-default .nav-links a:hover { color: var(--primary); }
.header-default .search-box { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.header-default .search-box input { border: none; padding: 6px 10px; font-size: 12px; width: 150px; outline: none; }
.header-default .search-box button { background: var(--primary); color: #fff; border: none; padding: 6px 14px; cursor: pointer; }
@media (max-width: 991px) {
  .header-default .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 99; padding: 8px 0; }
  .header-default .nav-links.open { display: flex; }
  .header-default .nav-links a { padding: 10px 20px; border-bottom: 1px solid #f0f0f0; }
  .header-default .search-box { display: none; }
}

/* ---- 2b. 方案二：主色底白字 ---- */
.header-dark { background: var(--primary); border-bottom: 1px solid rgba(255,255,255,0.15); position: relative; }
.header-dark .header-inner { height: 120px; gap: 24px; }
.header-dark .logo-icon { background: rgba(255,255,255,0.2); }
.header-dark .logo-text { color: #fff; }
.header-dark .logo-text small { color: rgba(255,255,255,0.55); }
.header-dark .menu-toggle span { background: #fff; }
.header-dark .nav-links { gap: 28px; margin-left: 5px; }
.header-dark .nav-links a { color: rgba(255,255,255,0.85); }
.header-dark .nav-links a:hover { color: #fff; }
.header-dark .search-box { border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; overflow: hidden; flex-shrink: 0; }
.header-dark .search-box input { background: rgba(255,255,255,0.12); color: #fff; border: none; padding: 6px 10px; font-size: 12px; width: 150px; outline: none; }
.header-dark .search-box input::placeholder { color: rgba(255,255,255,0.5); }
.header-dark .search-box button { background: rgba(255,255,255,0.2); color: #fff; border: none; padding: 6px 14px; cursor: pointer; }
@media (max-width: 991px) {
  .header-dark .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); border-top: 1px solid rgba(255,255,255,0.2); box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 99; padding: 8px 0; }
  .header-dark .nav-links.open { display: flex; }
  .header-dark .nav-links a { padding: 10px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .header-dark .search-box { display: none; }
}

/* ---- 2c. 方案三：居中双行 ---- */
.header-center { background: #fff; border-bottom: 1px solid var(--border); position: relative; }
.header-center .header-inner { height: auto; padding: 28px 0 20px; gap: 20px; }
.header-center .logo-icon { background: var(--primary); }
.header-center .logo-text { color: var(--primary); }
.header-center .logo-text small { color: #bbb; }
.header-center .menu-toggle span { background: #222; }
.header-center .header-mid { flex: 1; text-align: center; }
.header-center .header-mid strong { font-size: 18px; font-weight: 700; color: #222; }
.header-center .header-mid span { font-size: 12px; color: #999; display: block; }
.header-center .header-tel { font-size: 22px; font-weight: 900; color: var(--primary); white-space: nowrap; text-decoration: none; }
.header-center .header-tel:hover { color: var(--primary-dark); }
.header-center .header-tel small { display: block; font-size: 11px; font-weight: 400; color: #999; text-align: right; }
.header-center .header-menu { background: var(--primary); }
.header-center .header-menu .nav-links { height: 52px; gap: 34px; }
.header-center .header-menu .nav-links a { color: rgba(255,255,255,0.85); line-height: 52px; }
.header-center .header-menu .nav-links a:hover { color: #fff; }
@media (max-width: 991px) {
  /* 三行布局：logo+汉堡 → 广告语 → 电话 */
  .header-center .header-inner { flex-wrap: wrap; justify-content: space-between; padding: 12px 0 8px; gap: 4px; }
  .header-center .header-mid { flex: 0 0 100%; text-align: center; }
  .header-center .header-mid strong { font-size: 13px; }
  .header-center .header-mid span { font-size: 11px; }
  .header-center .header-tel { flex: 0 0 100%; text-align: center; font-size: 15px; }
  .header-center .header-tel small { text-align: center; font-size: 10px; }
  /* 红色菜单栏：默认隐藏，点击展开 */
  .header-center .header-menu { display: none; }
  .header-center .header-menu.open { display: block; }
  .header-center .header-menu .nav-links { height: auto; gap: 0; }
  .header-center .header-menu.open .nav-links { display: flex; flex-direction: row; flex-wrap: wrap; padding: 0; background: var(--primary); position: static; box-shadow: none; border-top: none; }
  .header-center .header-menu.open .nav-links a { border-bottom: none; padding: 8px 16px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); }
}

/* -------------------- 3. 首页 Hero 区域 -------------------- */
.hero { height: 480px; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.2)); }
.hero-inner { position: relative; z-index: 2; height: 100%; }
.hero-inner .badge-hero { background: var(--primary); font-size: 12px; }
.hero-inner h1 { font-size: 42px; font-weight: 900; line-height: 1.2; }
.hero-inner .hero-sub { color: rgba(255,255,255,0.7); font-size: 15px; }
.hero .btn-danger { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); font-weight: 700; }
.hero .btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,0.5); font-weight: 600; }
.hero .d-flex.gap-3 { flex-wrap: wrap; }
.hero.hero-narrow { height: 320px; }
.hero.hero-narrow h1 { font-size: 30px; }
.hero.hero-split { height: 440px; }
.hero.hero-split .hero-visual { width: 380px; flex-shrink: 0; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.12); border-radius: 8px; aspect-ratio: 4/3; }
@media (max-width: 991px) {
  .hero.hero-narrow h1 { font-size: 22px; }
  .hero.hero-split .hero-visual { display: none; }
}
@media (max-width: 767px) {
  .hero.hero-narrow { height: 200px; }
  .hero.hero-split { height: auto; padding: 40px 0; }
}

/* ── Hero 轮播 ── */
.hero.carousel { height: 480px; }
.hero.carousel .carousel-inner,
.hero.carousel .carousel-item { height: 100%; }
.hero.carousel .hero-bg,
.hero.carousel .hero-overlay { position: absolute; inset: 0; }
.hero.carousel .carousel-indicators { bottom: 20px; z-index: 5; }
.hero.carousel .carousel-indicators button {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; background: rgba(255,255,255,0.5);
}
.hero.carousel .carousel-indicators button.active { background: #fff; }
.hero.carousel .carousel-control-prev,
.hero.carousel .carousel-control-next { background: rgba(0,0,0,0.1); width: 48px; }
/* fade 过渡时间延长至 1s，全屏大图更平滑 */
.hero.carousel.carousel-fade .carousel-item { transition: opacity 1s ease-in-out; }
@media (max-width: 767px) {
  .hero.carousel { height: 260px; }
  .hero.carousel .carousel-indicators { bottom: 10px; }
  .hero.carousel .carousel-indicators button { width: 6px; height: 6px; }
}

/* 普通 Hero 响应式 */
@media (max-width: 991px) {
  .hero h1 { font-size: 28px; }
}
@media (max-width: 767px) {
  .hero { height: 260px; }
  .hero h1 { font-size: 22px; }
  .hero .hero-sub { font-size: 13px; }
}

/* -------------------- 4. 内页通栏 Banner -------------------- */
.bread-banner { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1a1a3e, #2a2a5e); }
.bread-banner .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.bread-banner .inner { position: relative; z-index: 2; height: 100%; }
.bread-banner h2 { font-size: 28px; font-weight: 900; color: #fff; margin: 0 0 6px; }
.bread-banner .bread { font-size: 13px; color: rgba(255,255,255,0.55); }
.bread-banner .bread a { color: rgba(255,255,255,0.5); }
.bread-banner .bread a:hover { color: #fff; }
@media (max-width: 991px) {
  .bread-banner { height: 160px; }
  .bread-banner h2 { font-size: 22px; }
}
@media (max-width: 767px) {
  .bread-banner { height: 130px; }
  .bread-banner h2 { font-size: 18px; }
}

/* -------------------- 5. 侧边栏（内页） -------------------- */
.sidebar { background: #fff; border-radius: 4px; overflow: hidden; }
.sidebar-hd { background: var(--primary); color: #fff; font-size: 15px; font-weight: 700; padding: 14px 16px; }
.sidebar-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #f5f5f5; color: #444; font-size: 13px; border-left: 3px solid transparent; }
.sidebar-item:hover, .sidebar-item.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.sidebar-item .count { font-size: 11px; color: #bbb; }

/* -------------------- 6. 通用区块 -------------------- */
.section { padding: 72px 0; }
.section.bg-white { background: #fff; }
.section.bg-gray { background: #f4f5f7; }
.section-title { text-align: center; margin-bottom: 64px; }
.section-title h2 { font-size: 28px; font-weight: 800; margin: 0 0 6px; }
.section-title p { font-size: 14px; color: #999; margin: 0; }
.section-title .line { width: 48px; height: 4px; background: var(--primary); margin: 12px auto 0; border-radius: 2px; }
.section-divider { border: none; height: 1px; background: var(--border); margin: 0; }
@media (max-width: 767px) {
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
}

/* -------------------- 7. 产品卡片 -------------------- */
.prod-side { min-width: 160px; width: 200px; flex-shrink: 0; }
.prod-side-list .sidebar-item { border-bottom: none; }
.prod-card .img-box { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eaed, #d5d8dc); display: flex; align-items: center; justify-content: center; }
.prod-card .card-body a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.prod-card .card { transition: all .2s; }
.prod-card .card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-2px); }
.prod-card .card:active { transform: scale(0.98); }
.prod-card-wide .img-box { aspect-ratio: 4/3; }
.prod-card-wide .card-body a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.prod-desc { font-size: 12px; color: #999; margin-top: 4px; line-height: 1.5; }

/* 无框裸卡片（样式四） */
.prod-card-clean .img-box { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eaed, #d5d8dc); display: flex; align-items: center; justify-content: center; border-radius: 6px; overflow: hidden; }
.prod-card-clean .prod-clean-item { transition: transform .2s; }
.prod-card-clean .prod-clean-item:hover { transform: translateY(-2px); }
.prod-card-clean .prod-clean-item:active { transform: scale(0.98); }
.prod-card-clean .prod-clean-item:hover .prod-clean-title { color: var(--primary); }
.prod-card-clean .prod-clean-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
@media (max-width: 991px) {
  .prod-layout { flex-wrap: wrap; }
  .prod-side { width: 100%; margin-bottom: 16px; }
  /* M3: 移动端侧边栏默认折叠 */
  .prod-side-list { display: none; }
  .prod-side-list.open { display: block; }
}
@media (max-width: 575px) {
  /* M1: 超小屏产品卡片单列 */
  .prod-card > .col { flex: 0 0 100%; max-width: 100%; }
  .prod-card-wide > .col { flex: 0 0 100%; max-width: 100%; }
  .prod-card-clean > .col { flex: 0 0 100%; max-width: 100%; }
}

/* 产品标签切换 */
.prod-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.prod-tabs .tab-btn { padding: 7px 22px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; font-weight: 600; color: #666; cursor: pointer; background: #fff; transition: all .15s; }
.prod-tabs .tab-btn:hover { color: var(--primary); border-color: var(--primary); }
.prod-tabs .tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.prod-tab-pane { display: none; animation: prodFadeIn .25s ease; }
.prod-tab-pane.active { display: block; }
@keyframes prodFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) {
  /* M2: TAB 按钮横向滚动，避免堆叠 */
  .prod-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 4px; }
  .prod-tabs .tab-btn { flex-shrink: 0; padding: 6px 16px; font-size: 12px; }
}

/* -------------------- 8. 新闻模块 -------------------- */

/* 新闻卡片（首页） */
.news-card .nc-top { border-radius: 4px 4px 0 0; overflow: hidden; }
.news-card .nc-top img { width: 100%; height: 140px; object-fit: cover; display: block; }
.news-card .card-body { padding: 12px 1rem 1rem 1rem; }
.news-card .nc-tag { display: inline-block; font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 2px; margin-bottom: 3px; }
.news-card .nc-title { font-size: 14px; font-weight: 700; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.news-card .nc-title a { color: #222; }
.news-card .nc-title a:hover { color: var(--primary); }
.news-card .nc-desc { font-size: 12px; color: #999; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .nc-date { font-size: 11px; color: #bbb; margin-top: 6px; }
.news-card .card { transition: all .2s; }
.news-card .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }

/* 新闻分类栏 */
.news-cat .cat-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #222; }
.news-cat .cat-hd h4 { font-size: 16px; font-weight: 700; margin: 0; }
.news-cat .cat-hd .more { font-size: 12px; color: #999; }
.news-cat .cat-hd .more:hover { color: var(--primary); }
.news-cat .cat-img { aspect-ratio: 16/5; background: linear-gradient(135deg, #e8eaed, #d5d8dc); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #bbb; margin-bottom: 10px; }
.news-cat ul { list-style: none; padding: 0; margin: 0; }
.news-cat ul li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.news-cat ul li:last-child { border-bottom: none; }
.news-cat ul li a { color: #222; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-cat ul li a:hover { color: var(--primary); }
.news-cat ul li span { font-size: 11px; color: #bbb; margin-left: 10px; white-space: nowrap; }

/* 首页精选新闻（第一条大图） */
.news-featured > .col-md-6:first-child .nc-top { aspect-ratio: 16 / 9; max-height: 240px; position: relative; }
.news-featured > .col-md-6:first-child .nc-top img { width: 100%; height: 100%; object-fit: cover; }
.news-featured > .col-md-6:first-child .nc-title { font-size: 16px; }
.news-featured > .col-md-6:first-child .nc-desc { -webkit-line-clamp: 3; }
@media (max-width: 991px) {
  .news-featured > .col-md-6:first-child .nc-top { aspect-ratio: auto; max-height: none; }
  .news-featured > .col-md-6:first-child .nc-top img { height: auto; }
  .news-featured > .col-md-6:first-child .nc-title { font-size: 14px; }
}

/* 首页精选新闻右侧纯文字列表 */
.news-featured > .col-md-6:last-child .news-featured-list { padding-left: 8px; }
.news-featured-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.news-featured-list li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.news-featured-list li:last-child { border-bottom: none; }
.news-featured-list li a { color: #222; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-featured-list li a:hover { color: var(--primary); }
.news-featured-list li span { font-size: 11px; color: #bbb; margin-left: 10px; white-space: nowrap; }

/* 新闻栏目TAB（顶部切换） */
.news-tabs-bar { display: flex; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.news-tab-btn { padding: 10px 24px; font-size: 15px; font-weight: 500; color: #888; cursor: pointer; transition: color .15s; white-space: nowrap; }
.news-tab-btn:hover { color: var(--primary); }
.news-tab-btn.active { color: var(--primary); font-weight: 700; }
.news-tab-more { margin-left: auto; font-size: 13px; color: #999; white-space: nowrap; }
.news-tab-more:hover { color: var(--primary); }
.news-tab-pane { display: none; }
.news-tab-pane.active { display: block; }
.news-tab-list { list-style: none; padding: 0; margin: 0; }
.news-tab-list li { padding: 10px 16px; font-size: 14px; }
.news-tab-list li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; color: #444; transition: color .15s; }
.news-tab-list li a:hover { color: var(--primary); }
.news-tab-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-tab-date { font-size: 12px; color: #bbb; white-space: nowrap; flex-shrink: 0; }
.news-tab-list li.col-md-6:nth-child(odd) { padding-left: 0; }
.news-tab-list li.col-md-6:nth-child(even) { border-left: 1px solid var(--border); }
@media (max-width: 767px) {
  .news-tabs-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .news-tab-btn { padding: 8px 14px; font-size: 14px; }
  .news-tab-more { display: none; }
  .news-tab-list li { font-size: 13px; padding: 8px 0; }
  .news-tab-list li.col-md-6:nth-child(even) { border-left: none; }
}

/* 新闻列表页 */
.news-list-item { background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 16px; display: flex; gap: 20px; transition: box-shadow .2s; }
.news-list-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.news-list-item .nl-thumb { width: 160px; height: 110px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: linear-gradient(135deg, #e8eaed, #d5d8dc); }
.news-list-item .nl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item .nl-info { flex: 1; min-width: 0; }
.news-list-item .nl-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.news-list-item .nl-title a { color: #222; }
.news-list-item .nl-title a:hover { color: var(--primary); }
.news-list-item .nl-desc { font-size: 13px; color: #999; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; }
.news-list-item .nl-meta { font-size: 12px; color: #bbb; display: flex; gap: 16px; }
.news-list-item .nl-meta .tag { display: inline-block; font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 1px 8px; border-radius: 2px; }
@media (max-width: 991px) {
  .news-list-item { flex-direction: column; }
  .news-list-item .nl-thumb { width: 100%; height: 160px; }
}
@media (max-width: 767px) {
  .news-list-item .nl-thumb { height: 140px; }
}

/* 新闻列表 — 无图样式 */
.news-list-text { display: block; }
.news-list-text .nl-title { font-size: 15px; margin-bottom: 6px; }
.news-list-text .nl-desc { -webkit-line-clamp: 1; }
.news-list-text .nl-meta { margin-top: 4px; }

/* 文章详情头部 */
.article-hd { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 24px; }
.article-hd h3 { font-size: 22px; font-weight: 700; color: #222; line-height: 1.5; margin-bottom: 14px; }
.article-hd .meta { font-size: 13px; color: #bbb; display: flex; flex-wrap: wrap; gap: 16px; }
.article-hd .meta .tag { display: inline-block; font-size: 11px; color: var(--primary); background: var(--primary-light); padding: 1px 8px; border-radius: 2px; }
.article-nav { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; }
.article-nav a { color: #666; }
.article-nav a:hover { color: var(--primary); }
.article-nav span { color: #ccc; }
@media (max-width: 991px) {
  .article-hd h3 { font-size: 17px; }
}
@media (max-width: 767px) {
  .article-hd h3 { font-size: 16px; }
}

/* -------------------- 9. 关于页 -------------------- */
.about-img { aspect-ratio: 16/10; background: linear-gradient(135deg, #e8eaed, #d5d8dc); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #bbb; gap: 6px; }
.about-img svg { width: 32px; height: 32px; opacity: 0.3; }
.btn-red { --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-hover-bg: var(--primary-dark); --bs-btn-color: #fff; font-weight: 600; }

/* -------------------- 10. 优势展示 -------------------- */
.adv-item { border: 1px solid var(--border); border-radius: 6px; padding: 24px; background: #fff; transition: box-shadow .2s; }
.adv-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.adv-item .adv-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary); }
.adv-item .adv-icon svg { width: 20px; height: 20px; }
.adv-item h5 { font-size: 14px; font-weight: 700; margin: 0 0 4px; }
.adv-item p { font-size: 12px; color: #999; margin: 0; line-height: 1.6; }
.adv-inline { display: flex; align-items: flex-start; gap: 14px; text-align: left; }
.adv-inline .adv-icon { margin: 0; }
.adv-check li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.adv-check li:last-child { border-bottom: none; }
.adv-check .check-icon { width: 28px; height: 28px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-weight: 700; font-size: 14px; flex-shrink: 0; }
.adv-check .adv-title { font-size: 14px; }
.adv-check .adv-desc { font-size: 12px; }
.adv-thumb { width: 20px; height: 20px; }
@media (max-width: 767px) {
  .adv-inline { flex-direction: column; align-items: center; text-align: center; }
}

/* -------------------- 11. 统计条 -------------------- */
.stats { padding: 48px 0; }
.stats .stats-icon { width: 40px; height: 40px; margin: 0 auto 10px; }
.stats .stats-icon svg { width: 100%; height: 100%; }
.stats .st-num { font-size: 36px; font-weight: 900; }
.stats .st-label { font-size: 13px; margin-top: 4px; }

/* gradient 样式 */
.stats-gradient { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.stats-gradient .stats-icon { color: rgba(255,255,255,0.5); }
.stats-gradient .st-num { color: #fff; }
.stats-gradient .st-label { color: rgba(255,255,255,0.6); }

/* dark 样式 */
.stats-dark { background: #1a1a2e; }
.stats-dark .stats-item { position: relative; }
.stats-dark .stats-item:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,0.1); }
.stats-dark .stats-icon { color: var(--primary); }
.stats-dark .st-num { color: #fff; }
.stats-dark .st-label { color: rgba(255,255,255,0.5); }

/* light 样式 */
.stats-light { background: #f8f9fa; }
.stats-light .stats-item { background: #fff; border-radius: 8px; padding: 24px 16px; border: 1px solid var(--border); }
.stats-light .stats-icon { color: var(--primary); }
.stats-light .st-num { color: #222; }
.stats-light .st-label { color: #999; }

@media (max-width: 767px) {
  .stats { padding: 32px 0; }
  .stats .st-num { font-size: 28px; }
  .stats .stats-icon { width: 32px; height: 32px; margin-bottom: 6px; }
  .stats-dark .stats-item:not(:last-child)::after { display: none; }
  .stats-light .stats-item { padding: 16px 12px; }
}

/* -------------------- 12. 内容详情区（自由编辑区） -------------------- */
.detail-content { line-height: 1.9; word-break: break-all; }
.detail-content img,
.detail-content video,
.detail-content embed,
.detail-content object {
    max-width: 100%;
    height: auto;
}
.detail-content iframe,
.detail-content table {
    max-width: 100%;
}
.detail-content pre {
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}
.detail-content p { margin-bottom: 12px; }

/* 正文图片对齐（用户后台控制，主题只做基础浮动 + 移动端回正） */
.detail-content .alignleft { float: left; margin: 4px 20px 12px 0; }
.detail-content .alignright { float: right; margin: 4px 0 12px 20px; }
.detail-content .aligncenter { display: block; margin: 12px auto; }
.detail-content .alignnone { margin: 12px 0; }
@media (max-width: 576px) {
    .detail-content .alignleft,
    .detail-content .alignright {
        float: none;
        display: block;
        margin: 12px 0;
    }
}

/* WordPress 屏幕阅读器辅助类（供 the_posts_pagination() 等核心函数使用） */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }

/* -------------------- 13. 分页 -------------------- */
.pagination-wrap { display: flex; justify-content: center; padding: 24px 0; }
.pagination-wrap a, .pagination-wrap span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 4px; margin: 0 3px; font-size: 13px; color: #666; background: #fff; }
.pagination-wrap a:hover { border-color: var(--primary); color: var(--primary); }
.pagination-wrap .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination-wrap .disabled { color: #ccc; cursor: default; }

/* -------------------- 14. 合作伙伴滚动条 -------------------- */
.partners { background: #252540; border-top: 32px solid #fff; }
.partners a { color: rgba(255,255,255,0.4); font-size: 12px; padding: 0 12px; border-right: 1px solid rgba(255,255,255,0.1); white-space: nowrap; }
.partners a:last-child { border-right: none; }
.partners a:hover { color: var(--primary); }
@media (max-width: 767px) {
  .partners { border-top-width: 20px; }
}

/* -------------------- 15. 页脚 -------------------- */
.footer { background: var(--navy); color: rgba(255,255,255,0.45); }
.footer .f-logo { font-size: 20px; font-weight: 900; color: var(--primary); }
.footer .f-desc { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.8; max-width: 360px; }
.footer h6 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer a { color: rgba(255,255,255,0.4); font-size: 13px; display: block; line-height: 2.2; }
.footer a:hover { color: var(--primary); }
.footer .f-tel { color: var(--primary); font-size: 18px; font-weight: 700; }
.footer .f-bottom { border-top: 1px solid rgba(255,255,255,0.06); font-size: 11px; color: rgba(255,255,255,0.2); }

/* 联系方式详情 */
.footer-contact-detail { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.9; }

/* 移动端菜单列折叠 — 按钮重置 */
.footer-col-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 0; border: none; background: none;
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  text-align: left; margin-bottom: 12px;
}
.footer-col-toggle:hover { color: var(--primary); }
.footer-col-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

/* 折叠图标旋转过渡 */
.footer-toggle-icon { display: inline-block; transition: transform .25s ease; font-size: 18px; line-height: 1; }
.footer-toggle-icon.open { transform: rotate(45deg); }

/* 折叠内容 — max-height 动画 */
.footer-col-content { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.footer-col-content.open { max-height: 400px; }

/* 桌面端：始终展开，移除折叠限制 */
@media (min-width: 768px) {
  .footer-col-content { max-height: none; overflow: visible; }
  .footer-toggle-icon { display: none; }
}

/* 移动端 (≤767px) */
@media (max-width: 767px) {
  .footer { padding-top: 36px; }
  .footer .f-desc { max-width: 100%; font-size: 11px; }
  .footer a { line-height: 2.6; font-size: 13px; }
  .footer h6 { margin-bottom: 8px; }
  .footer .f-tel { font-size: 16px; }
  .footer-contact-detail { font-size: 11px; line-height: 1.7; }
  .footer .f-bottom { font-size: 10px; }
}

/* -------------------- 16. 返回顶部 -------------------- */
.back-top { position: fixed; right: 20px; bottom: 40px; width: 40px; height: 40px; background: var(--primary); color: #fff; border: none; border-radius: 4px; font-size: 18px; cursor: pointer; z-index: 999; display: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transition: opacity .2s; }
.back-top.show { display: flex; align-items: center; justify-content: center; }

/* -------------------- 16b. 404 页面 -------------------- */
.error-404-title { font-size: 72px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.error-404-sub { color: #555; margin-bottom: 12px; }
.error-404-desc { font-size: 14px; color: #999; margin-bottom: 24px; }

/* -------------------- 16c. 侧边栏电话 -------------------- */
.sidebar-phone { color: var(--primary); font-size: 18px; }

/* -------------------- 17. 产品详情页 -------------------- */

/* 详情容器 */
.detail-wrap { background: #fff; border-radius: 4px; padding: 28px; margin-bottom: 24px; }

/* 产品大图 */
.detail-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eaed, #d5d8dc); border-radius: 4px; display: flex; align-items: center; justify-content: center; }

/* 缩略图组 */
.thumb-list { display: flex; gap: 8px; margin-top: 10px; }
.thumb-list .thumb { width: 64px; height: 48px; background: linear-gradient(135deg, #e8eaed, #d5d8dc); border-radius: 4px; border: 2px solid transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.thumb-list .thumb.active { border-color: var(--primary); }

/* 右侧信息栏 */
.detail-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.detail-info .spec-row { display: flex; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed #f0f0f0; }
.detail-info .spec-row .label { color: #999; width: 90px; flex-shrink: 0; }
.detail-info .spec-row .val { color: #444; }
.detail-info .tel-box { background: var(--primary-light); border-radius: 4px; padding: 14px; margin-top: 16px; }
.detail-info .tel-box .tel { font-size: 20px; font-weight: 900; color: var(--primary); }
.detail-info .tel-box p { font-size: 12px; color: #999; margin: 4px 0 0; }

/* 询价电话框（独立使用，如 product-detail2） */
.tel-box { background: var(--primary-light); border-radius: 4px; padding: 14px 20px; text-align: center; margin-top: 16px; }
.tel-box .tel { font-size: 20px; font-weight: 900; color: var(--primary); }
.tel-box p { font-size: 12px; color: #999; margin: 4px 0 0; }

/* 详情标签切换 */
.detail-tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 0; }
.detail-tabs span { padding: 12px 24px; font-size: 14px; font-weight: 600; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.detail-tabs span.active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-pane { display: none; padding: 24px 0; line-height: 2; }
.detail-pane.active { display: block; }

/* 技术参数表 */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table td { padding: 8px 12px; border: 1px solid var(--border); }
.spec-table td:first-child { background: #fafafa; width: 28%; color: #666; font-weight: 500; }

/* 自由编辑区内的表格 */
.detail-content table { max-width: 100%; border-collapse: collapse; }
.detail-content table td { padding: 8px 12px; border: 1px solid var(--border); }
.detail-content table td:first-child { background: #fafafa; font-weight: 500; width: 30%; }

/* 相关产品 */
.rel-prod .card { transition: all .2s; }
.rel-prod .card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: translateY(-2px); }
.rel-prod .img-box { aspect-ratio: 4/3; background: linear-gradient(135deg, #e8eaed, #d5d8dc); display: flex; align-items: center; justify-content: center; }
.rel-prod .name { font-size: 13px; font-weight: 700; color: #222; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; }
.rel-prod .name:hover { color: var(--primary); }

/* ====== 图景介绍区块 ====== */
.showcase {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #2c2c3a;
  padding: 94px 0;
  color: #fff;
  text-align: center;
}
.showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.showcase .container { position: relative; z-index: 1; }
.showcase-box h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 20px;
  word-break: break-word;
}
.showcase-box .showcase-line {
  width: 48px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.showcase-box p {
  font-size: 16px;
  line-height: 2.2;
  opacity: 0.85;
  margin: 0;
  word-break: break-word;
}
@media (min-width: 768px) {
  .showcase { background-attachment: fixed; }
}
@media (max-width: 767px) {
  .showcase { padding: 54px 0; background-attachment: scroll; }
  .showcase-box h2 { font-size: 22px; }
  .showcase-box .showcase-line { margin-bottom: 14px; }
  .showcase-box p { font-size: 14px; line-height: 2; }
}
