/* ============================================
   ALPICOOL B2B Website - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary-color: #1a73e8;
  --primary-dark: #1557b0;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-section: #fafafa;
  --border-color: #e5e5e5;
  --footer-bg: #1a1a1a;
  --footer-text: #cccccc;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;  padding: 0;  box-sizing: border-box;
}

html {
  /* 流体根字号：桌面端（≥1200px）保持 16px 不变；窄屏随视口缩放至约 14px，
     使所有 rem 字号（后台 per-element 控件输出的相对值）获得响应式缩放。 */
  font-size: clamp(14px, 0.25vw + 13px, 16px);
  scroll-behavior: smooth;
}

/* ============================================
   FONT — MiSans（设计稿字体，SIL OFL 1.1 开源可商用）
   来源：npm `misans@4.1.0`，通过 jsDelivr CDN 加载
   加载方式：@import 子集化 CSS（Google Fonts 同款方案），按需下载字符子集
   若 CDN 加载失败则自动回退到系统字体（无版权风险）
   ============================================ */
@import url('https://cdn.jsdelivr.net/npm/misans@4.1.0/lib/Normal/MiSans-Regular.min.css');
@import url('https://cdn.jsdelivr.net/npm/misans@4.1.0/lib/Normal/MiSans-Semibold.min.css');

body {
  font-family: 'MiSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* ⚠️ 20260907：html 级 overflow-x 防护——仅 body 有限制时，移动端（iOS Safari 等）
   个别绝对定位/100vw 元素仍能把视口撑出横向滚动 */
html {
  overflow-x: hidden;
}

/* ============================================
   全站吸底 footer（20260922）
   问题：内容不足一屏的页面（如 /zh/news-center.html 文章少时），
        footer 排在内容流末尾就结束，body 下方露出 html 白底，
        视觉上「页脚不在页脚」。
   方案：body flex 纵向布局 + min-height:100vh，footer margin-top:auto
        把 footer 推到剩余空间底部（空白留在内容区与 footer 之间）。
   说明：SSR（ssr-chrome.js）与前端（components/footer.js）都是把
        #site-footer-host 整体 outerHTML 替换为 <footer class="footer">，
        两种路径下 footer 均为 body 直接子元素；为防御个别壳未替换 host，
        对 body > #site-footer-host 也同样生效。.header/.floating-bar 均
        position:fixed 不占流式高度，不受 flex 化影响。
   ============================================ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > footer.footer,
body > #site-footer-host {
  margin-top: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;  padding: 0 1.25rem;}

.section {
  padding: 3.75rem 0;}

.section-title {
  text-align: center;
  font-size: 1.75rem;  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2.5rem;  letter-spacing: 0.0312rem;}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;  left: 0;  right: 0;  height: var(--header-height);
  /* 设计稿导航栏为白色背景 + 深色文字 */
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;  padding: 0 1.25rem;}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;  font-size: 1.5rem;  font-weight: 700;
  letter-spacing: 0.125rem;  color: var(--text-primary);
}

.logo img {
  height: 36px;
  width: auto;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;}

.nav-item {
  position: relative;
  padding: 0.5rem 0.875rem;  font-size: 0.875rem;  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.25rem;}

.nav-item:hover {
  color: var(--primary-color);
  background: rgba(26,115,232,0.06);
}

.nav-item.active {
  color: var(--primary-color);
  background: var(--primary-color);
  color: #fff;
  border-radius: 1.25rem;
  padding: 0.375rem 1.125rem;}

.nav-item .arrow {
  font-size: 0.625rem;  transition: transform 0.2s;
}

.nav-item:hover .arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;  left: 0;  min-width: 11.25rem;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.625rem);
  transition: all 0.25s ease;
  z-index: 100;
  padding: 0.5rem 0;  margin-top: 0.25rem;}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.625rem 1.25rem;  font-size: 0.875rem;  color: var(--text-secondary);
  transition: var(--transition);
}

.dropdown-item:hover {
  color: var(--primary-color);
  background: rgba(26,115,232,0.05);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;  padding: 0.375rem 0.875rem;  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  font-size: 0.8125rem;  cursor: pointer;
  transition: var(--transition);
  position: relative;
  background: transparent;
  color: var(--text-secondary);
}

/* 国旗图标（长方形 3:2 比例） */
.lang-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.lang-flag img,
.lang-flag svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lang-switch:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.lang-switch .arrow {
  font-size: 0.625rem;  transition: transform 0.2s ease;
}

.lang-switch.open .arrow {
  transform: rotate(180deg);
}

/* Language dropdown menu - matches design: rounded box + upward triangle */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.625rem);
  right: 0;  background: var(--bg-white);
  border-radius: 0.75rem;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
  min-width: 10rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: visible;
}

/* 顶部小三角（指向 lang-switch） */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -0.4375rem;  right: 1.5rem;  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
  filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.04));
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;  padding: 0.75rem 1.125rem;  font-size: 0.875rem;  cursor: pointer;
  transition: background 0.15s ease;
  color: var(--text-primary);
  border-bottom: 1px solid #f0f0f0;
}
.lang-option:last-child {
  border-bottom: none;
}
.lang-option .lang-name { font-weight: 500; }
.lang-option .lang-code { color: #888; font-size: 0.75rem; }

.lang-option:hover {
  background: rgba(26,115,232,0.06);
  color: var(--primary-color);
}

.lang-option.active {
  color: var(--primary-color);
  font-weight: 600;
}

.search-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;  background: none;
  color: var(--text-secondary);
  padding: 0;}
.search-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.search-btn:hover img {
  opacity: 1;
}

/* Search Dropdown - matches design: input + blue search button */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: -1.25rem;  width: 360px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 1rem;  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  z-index: 200;
}

.search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.search-input-wrap {
  display: flex;
  gap: 0;  background: #fff;
}

.search-input {
  flex: 1;
  padding: 0.625rem 1rem;  border: 2px solid #e5e5e5;
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 0.875rem;  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary-color);
}

.search-input::placeholder {
  color: #bbb;
}

.search-submit {
  padding: 0.625rem 1.5rem;  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.875rem;  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.search-submit:hover {
  background: var(--primary-dark);
}

.search-submit {
  padding: 0.625rem 1.25rem;  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;  transition: var(--transition);
}

.search-submit:hover {
  background: var(--primary-dark);
}

/* ============================================
   SEARCH DROPDOWN — 设计稿：白胶囊样式 + 轻阴影 + 无蓝粗边
   定位：导航栏正下方（紧贴 header 下边缘），所有页面统一样式
   ============================================ */
.search-overlay {
  position: fixed;
  top: calc(var(--header-height) + 8px);
  left: 50%;  transform: translate(-50%, -8px);
  width: 560px;
  max-width: calc(100vw - 40px);
  z-index: 1100;
  background: #ffffff;
  border-radius: 32px;
  padding: 0.375rem 0.375rem 0.375rem 1.5rem;  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: none;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.search-overlay-form {
  display: flex;
  align-items: center;
  width: 100%;
  background: transparent;
}
.search-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9375rem;  padding: 0.75rem 0;  color: #1a1a1a;
}
.search-overlay-input::placeholder {
  color: #999;
}
.search-overlay-submit {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #1a73e8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.search-overlay-submit:hover {
  background: #1557b0;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 0.3125rem;  cursor: pointer;
  padding: 0.5rem;}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO BANNER
   设计稿：模块1 全宽大图(1922×1202)，渐变遮罩+居中大标题+CTA按钮，底部圆点导航
   ============================================ */
.hero-banner {
  position: relative;
  width: 100%;
  /* 设计稿模块1约为 1.6:1，但实际渲染时占首屏约 25-30% 比较协调，不要顶满整个视口 */
  height: clamp(380px, 48vw, 860px);
  overflow: hidden;
  margin-top: var(--header-height);
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero slide with no/failed image - show gradient background */
.hero-no-img {
  background: linear-gradient(135deg, #1a73e8, #0d47a1);
}

.hero-overlay {
  position: absolute;
  top: 0;  left: 0;  width: 100%;
  height: 100%;
  /* 20260827: 去掉渐变遮罩，让背景图完全展示 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;  width: 100%;
  padding: 0 1.25rem;}

.hero-title {
  font-size: 3rem;  font-weight: 700;
  letter-spacing: 0.1875rem;  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.875rem;}

.hero-subtitle {
  font-size: 1.125rem;  font-weight: 400;
  letter-spacing: 0.0625rem;  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 1.625rem;  opacity: 0.95;
}

.hero-btn {
  display: inline-block;
  padding: 0.8125rem 2.125rem;  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  font-size: 0.9375rem;  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 6px 20px rgba(26,115,232,0.35);
}

.hero-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Carousel Dots（设计稿：首屏底部三个轮播指示点，无左右箭头） */
.carousel-dots {
  position: absolute;
  bottom: 1.875rem;  left: 50%;  transform: translateX(-50%);
  display: flex;
  gap: 0.625rem;  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* ============================================
   CORE BUSINESSES
   ============================================ */
.core-businesses {
  background: var(--bg-white);
}

.business-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;  max-width: var(--max-width);
  margin: 0 auto;  padding: 0 1.25rem;}

.business-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.business-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.business-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.business-card:hover img {
  transform: scale(1.05);
}

/* ===== overlay: 默认仅标题可见(无背景)，hover 渐隐黑遮罩+摘要 ===== */
.business-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 1.25rem 1.5rem;  /* 默认：无背景，但标题仍需可见 */
  background: transparent;
  transition: background 0.4s ease;
  color: #fff;
  text-align: center;
  pointer-events: none;
}

/* hover：渐隐黑遮罩从底部升起 */
.business-card:hover .business-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.15) 80%, transparent 100%);
  pointer-events: auto;
}

.business-card-title {
  font-size: 1.25rem;  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  /* 标题始终可见，用文字阴影保证在任何图片上都清晰 */
  text-shadow: 0 1px 6px rgba(0,0,0,0.5), 0 0 2px rgba(0,0,0,0.35);
  transition: margin-bottom 0.3s ease;
}

/* hover 时标题上移一点，给摘要腾空间 */
.business-card:hover .business-card-title {
  margin-bottom: 0.625rem;}

/* 摘要：默认隐藏，hover 时从下方淡入 */
.business-card-summary {
  font-size: 0.8125rem;  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease 0.1s, margin-top 0.3s ease;
  margin-top: 0;}

.business-card:hover .business-card-summary {
  max-height: 120px; /* 约 5 行 */
  opacity: 1;
  margin-top: 0.375rem;  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

/* ============================================
   CERTIFICATIONS - 全宽背景图轮播
   设计稿：整屏铺满 + 背景图片 + 标题叠在图片上方 + 左右圆形按钮 + 无底部点
   ============================================ */
.certifications {
  background: #ffffff;
  overflow: hidden;
  padding: 0;}

/* 全宽证书轮播：每张证书作为整屏背景图轮播 */
.cert-carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0;  padding: 0;}

.cert-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 780;
  background: #f0f4f8;
  overflow: hidden;
}

/* 单张证书背景图 */
.cert-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a3a5c;
}
.cert-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 标题叠在背景图片上方（设计稿：纯黑 #000000，无阴影） */
.cert-title-overlay {
  position: absolute;
  top: 2.5rem;  left: 0;  right: 0;  text-align: center;
  font-size: 2rem;  font-weight: 700;
  color: #000000;
  letter-spacing: 0.125rem;  text-shadow: none;
  z-index: 2;
  margin: 0;}

/* 左右切换箭头 — 设计稿：#070809 透明度 30% 圆形底，内嵌新图标 */
.cert-arrow {
  position: absolute;
  top: 50%;  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(7, 8, 9, 0.3); /* #070809 @ 30% */
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
  user-select: none;
  box-shadow: none;
  padding: 0;}
.cert-arrow img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* 新图标本身是黑底白箭头，反色显示为白箭头在深底上 */
  transition: filter 0.25s ease;
}
.cert-arrow:hover {
  background: rgba(7, 8, 9, 0.5);
  transform: translateY(-50%) scale(1.06);
}
.cert-arrow.prev { left: 32px; }
.cert-arrow.next { right: 32px; }

/* 旧版 cert-dots 样式已废弃（设计稿无底部指示点），保留类名以兼容可能的旧 markup */

/* ============================================
   PARTNERS
   ============================================ */
.partners {
  background: #f0f4f8;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem 1rem;  max-width: var(--max-width);
  margin: 0 auto;  padding: 1.875rem 1.25rem;  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 0.75rem;  border-radius: var(--radius-md);
  transition: var(--transition);
  background: #fff;
  height: 80px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.partner-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.partner-logo img {
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  /* Keep original colors - no grayscale */
  transition: transform 0.25s ease;
}

.partner-logo:hover img {
  transform: scale(1.08);
}

.partner-more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;  color: var(--text-light);
  cursor: default;
}

/* ============================================
   NEWS SECTION (与合作伙伴同一背景色)
   ============================================ */
.news-section {
  background: #f0f4f8;
}

.news-layout {
  display: grid;
  /* ⚠️ 20260821：1fr → minmax(0,1fr)！否则 grid 轨道最小尺寸=内容 min-content，
     长标题(nowrap)会把右侧列撑出容器边界，导致白色框内部 flex 限宽全部失效 */
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 2.25rem;  max-width: var(--max-width);
  margin: 0 auto;  padding: 0 1.25rem;  align-items: start;
}

/* 左侧特色大图卡片 */
.news-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  /* ⚠️ 20260821c：6/5(420×350) 仍偏矮 → 改 1/1(420×420) 确保明显高于右栏 */
  aspect-ratio: 1 / 1;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
}

.news-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  position: absolute;
  top: 0; left: 0;}

.news-featured:hover img {
  transform: scale(1.03);
}

/* 占位状态 */
.news-featured-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;  z-index: 1;
  color: #bbb;
}

.news-featured-placeholder .placeholder-icon {
  width: 64px; height: 64px;
  background: #e8e8e8;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;}

.news-featured-placeholder .placeholder-text {
  font-size: 0.875rem;  color: #aaa;
}

.news-featured-placeholder .placeholder-sub {
  font-size: 0.75rem;  color: #ccc;
}

/* 大图底部渐变文字 */
.news-featured-caption {
  position: absolute;
  bottom: 0;  left: 0;  right: 0;  padding: 1.5rem 1.25rem;  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 0.875rem;  font-weight: 500;
  line-height: 1.5;
  z-index: 2;
}

/* 右侧内容区：标题+分类列表 */
.news-right {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;  /* ⚠️ 20260821：grid 列允许收缩后，本列自身也要允许收缩，否则内容仍可撑宽 */
  min-width: 0;
}

.news-right-title {
  font-size: 1.75rem;  font-weight: 700;
  color: var(--text-primary);
  margin: 0;  line-height: 1.3;
  /* ⚠️ 20260821：现在是 <a>，点进新闻中心 */
  text-decoration: none;
  display: block;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;}

.news-category-item {
  display: flex;
  align-items: center;
  gap: 1rem;  padding: 1.25rem 1.375rem;  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid #e8e8e8;
  transition: all 0.25s ease;
  /* ⚠️ 20260821：现在是 <a>（点进该类最新新闻），去掉 cursor:pointer（a 自带手型）并重置链接样式 */
  text-decoration: none;
  color: inherit;
  /* ⚠️ 20260821：允许收缩，不被长标题撑宽（flex item 默认 min-width:auto） */
  min-width: 0;
}

.news-category-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 16px rgba(26,115,232,0.1);
  transform: translateX(4px);
}

.news-cat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;  flex-shrink: 0;
  color: var(--primary-color);
}

.news-cat-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ⚠️ 20260821：标题组（行内排列：类目名 → › → 最新标题），替换旧的上下堆叠 .news-cat-info */
.news-cat-title-group {
  display: flex;
  align-items: center;
  gap: 0.625rem;  flex: 1;
  min-width: 0;
}

.news-cat-label {
  font-size: 0.9375rem;  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  /* 行内排列：不换行、不收缩 → 类目名始终完整 */
  flex-shrink: 0;
  white-space: nowrap;
}

/* 最新新闻标题（行内，flex:1 占剩余空间，超出省略号；title 属性 hover 显示完整） */
.news-cat-latest {
  font-size: 0.8125rem;  color: var(--text-primary);
  opacity: 0.75;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease;
}
/* ⚠️ 20260821：超长标题自动跑马灯滚动（main.js 检测超长后加 .marquee，--marquee-dist 为平移距离） */
/* 默认 inline：文本流入 .news-cat-latest 的行盒 → text-overflow:ellipsis 生效（关闭滚动时显示省略号） */
.news-cat-latest .news-cat-latest-inner {
  display: inline;
  white-space: nowrap;
}
.news-cat-latest.marquee {
  text-overflow: clip;
}
/* 仅滚动时切成 inline-block（transform 动画需要非 inline） */
.news-cat-latest.marquee .news-cat-latest-inner {
  display: inline-block;
  will-change: transform;
  /* 时长由后台配置（main.js 设 --marquee-duration），默认 12s/周期 */
  animation: news-latest-marquee var(--marquee-duration, 12s) linear infinite;
}
.news-cat-latest.marquee:hover .news-cat-latest-inner {
  animation-play-state: paused;
}
@keyframes news-latest-marquee {
  0%   { transform: translateX(0); }
  15%  { transform: translateX(0); }
  45%  { transform: translateX(calc(var(--marquee-dist) * -1)); }
  75%  { transform: translateX(calc(var(--marquee-dist) * -1)); }
  100% { transform: translateX(0); }
}
.news-cat-latest:hover {
  opacity: 1;
  text-decoration: underline;
}

.news-cat-title {
  font-size: 0.8125rem;  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-cat-arrow {
  color: #ccc;
  font-size: 1.125rem;  flex-shrink: 0;
  transition: all 0.25s ease;
}

.news-category-item:hover .news-cat-arrow {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #1a1a1a;
  color: #ccc;
  padding: 3.125rem 0 0;}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;  max-width: var(--max-width);
  margin: 0 auto;  padding: 0 1.25rem 2.5rem;}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;  font-weight: 600;
  margin-bottom: 1.125rem;}

/* ⚠️ 20260815 栏目标题跳转链接：继承 h3 字体颜色与字重，去掉下划线，hover 反馈 */
.footer-col h3 .footer-col-title-link {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;  text-decoration: none;
  transition: opacity .2s ease;
}
.footer-col h3 .footer-col-title-link:hover {
  opacity: 0.8;
  text-decoration: none;
}

.footer-links li {
  margin-bottom: 0.625rem;}

.footer-links a {
  font-size: 0.875rem;  color: #aaa;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 0.875rem;  margin-bottom: 0.625rem;  display: flex;
  align-items: center;
  gap: 0.5rem;  color: #aaa;
}

.footer-contact .contact-label {
  color: #888;
  min-width: 52px;
}

.social-links {
  display: flex;
  gap: 0.75rem;  margin-top: 0.5rem;}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.8125rem;  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* 社交链接自定义图标（图片替代文字标签） */
.social-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;  transition: var(--transition);
  text-decoration: none;
}
.social-link-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 1.125rem 1.25rem;  text-align: center;
  font-size: 0.75rem;  color: #666;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;  flex-wrap: wrap;
}

.footer-bottom a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

.footer-icp {
  color: #666;
}

.footer-icp a {
  color: #777;
  margin-left: 0.25rem;}

.footer-icp a:hover {
  color: var(--primary-color);
}

/* ============================================
   FLOATING BAR (Right Side)
   按设计稿：白底 + 深色文字/图标 + 轻阴影
   ============================================ */
.floating-bar {
  position: fixed;
  right: 1.5rem;  bottom: 80px;  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: var(--transition);
  font-size: 0.6875rem;  border: none;
  line-height: 1.2;
  text-decoration: none;
}

.float-btn:hover {
  background: #f5f7fa;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.float-btn i {
  font-size: 1.25rem;  margin-bottom: 0.125rem;  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  color: #333333;
}
.float-btn i img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.float-btn.top {
  background: #ffffff;
  color: #333333;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.float-btn.top:hover {
  background: #f5f7fa;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .business-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  gap: 1rem 0.75rem;  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .news-layout {
    grid-template-columns: 1fr;
  gap: 1.5rem;  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* ⚠️ 20260907：移动端专利证书模块——标题在轮播容器外顺序显示（标题在上、轮播在下） */
  .cert-title-overlay {
    position: static;
    padding: 2rem 0 1.25rem;
    font-size: 1.375rem;
  }

  .nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
  font-size: 1.75rem;  letter-spacing: 0.0625rem;  }

  .section {
  padding: 2.5rem 0;  }

  .section-title {
  font-size: 1.375rem;  margin-bottom: 1.75rem;  }

  .business-cards {
    grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 0.5rem;  padding: 1.25rem 1rem;  }

  .news-layout {
    grid-template-columns: 1fr;
  gap: 1.5rem;  }

  .cert-carousel-wrapper {
  padding: 0 1.875rem;  }

  .cert-carousel {
    aspect-ratio: 4 / 3;
  }

  .cert-arrow {
    width: 38px;
    height: 38px;
  font-size: 1.25rem;  }

  .news-right-title {
  font-size: 1.5rem;  }

  .footer-inner {
    grid-template-columns: 1fr;
  gap: 1.75rem;  }

  .floating-bar {
  right: 0.5rem;  bottom: 1rem;  gap: 0.375rem;    /* 移动端：横向一排展示，更省空间 */
    flex-direction: row;
  }

  .float-btn {
    width: auto;
    min-width: 42px;
    height: 36px;
  padding: 0 0.625rem;    border-radius: 18px;
  font-size: 0.625rem;  gap: 0.25rem;    flex-direction: row;
  }
  /* 移动端避开悬浮按钮（横向排列仅在底部，所以 padding-bottom 即可） */
  body { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .floating-bar {
  right: 50%;    transform: translateX(50%);
  bottom: 0.75rem;  gap: 0.25rem;    flex-direction: row;
  }
  .float-btn {
    width: auto;
    min-width: 38px;
    height: 32px;
  padding: 0 0.5rem;    border-radius: 16px;
  font-size: 0.5625rem;  gap: 0.1875rem;    flex-direction: row;
  }
  /* 小屏避开底部悬浮按钮 */
  body { padding-bottom: 3.75rem; }

  .business-cards {
    grid-template-columns: 1fr;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
  font-size: 1.375rem;  }

  .search-dropdown {
    width: calc(100vw - 40px);
  right: -0.625rem;  }
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;  left: 0;  right: 0;  bottom: 0;  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-nav-overlay.show {
  display: block;
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;  right: -280px;  width: 280px;
  height: 100%;
  background: var(--bg-white);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1.25rem;}

.mobile-nav.open {
  right: 0;}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;  padding-bottom: 1rem;  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;  color: var(--text-secondary);
}

.mobile-nav-item {
  padding: 0.75rem 0;  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-item > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.mobile-nav-sub {
  padding-left: 1rem;  margin-top: 0.5rem;}

.mobile-nav-sub a {
  display: block;
  padding: 0.5rem 0;  font-size: 0.875rem;  color: var(--text-secondary);
}

/* Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;  margin: -0.0625rem;  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
