/* ============================================
   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 {
  font-size: 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;
}

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 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

/* ============================================
   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 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
}

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

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

.nav-item {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.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: 20px;
  padding: 6px 18px;
}

.nav-item .arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

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

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

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

.dropdown-item {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  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: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 13px;
  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: 10px;
  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% + 10px);
  right: 0;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.14);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 200;
  overflow: visible;
}

/* 顶部小三角（指向 lang-switch） */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 24px;
  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: 10px;
  padding: 12px 18px;
  font-size: 14px;
  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: 12px; }

.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: 16px;
  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: -20px;
  width: 360px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 16px;
  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: 10px 16px;
  border: 2px solid #e5e5e5;
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

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

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

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

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

.search-submit {
  padding: 10px 20px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  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: 6px 6px 6px 24px;
  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: 15px;
  padding: 12px 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: 5px;
  cursor: pointer;
  padding: 8px;
}

.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%;
  /* 设计稿标题居中且偏下，采用上轻下重的竖向遮罩保证文字可读 */
  background: linear-gradient(180deg, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.35) 45%, rgba(0,0,0,0.58) 100%);
  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 20px;
}

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

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

.hero-btn {
  display: inline-block;
  padding: 13px 34px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  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: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  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: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.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: 28px 20px 24px;
  /* 默认：无背景，但标题仍需可见 */
  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: 20px;
  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: 10px;
}

/* 摘要：默认隐藏，hover 时从下方淡入 */
.business-card-summary {
  font-size: 13px;
  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: 6px;
  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: 40px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  letter-spacing: 2px;
  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: 20px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 20px;
  align-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  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: 20px;
  color: var(--text-light);
  cursor: default;
}

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

.news-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  align-items: start;
}

/* 左侧特色大图卡片 */
.news-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.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: 12px;
  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: 28px;
}

.news-featured-placeholder .placeholder-text {
  font-size: 14px;
  color: #aaa;
}

.news-featured-placeholder .placeholder-sub {
  font-size: 12px;
  color: #ccc;
}

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

/* 右侧内容区：标题+分类列表 */
.news-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.news-right-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-category-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid #e8e8e8;
  transition: all 0.25s ease;
  cursor: pointer;
}

.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: 20px;
  flex-shrink: 0;
  color: var(--primary-color);
}

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

.news-cat-info {
  flex: 1;
  min-width: 0;
}

.news-cat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

.news-cat-arrow {
  color: #ccc;
  font-size: 18px;
  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: 50px 0 0;
}

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

.footer-col h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

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

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

.footer-contact p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.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: 13px;
  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: 6px;
  transition: var(--transition);
  text-decoration: none;
}
.social-link-icon:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 18px 20px;
  text-align: center;
  font-size: 12px;
  color: #666;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  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: 4px;
}

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

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

.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: 11px;
  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: 20px;
  margin-bottom: 2px;
  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: 16px 12px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .news-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

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

  .nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 28px;
    letter-spacing: 1px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

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

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
    padding: 20px 16px;
  }

  .news-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cert-carousel-wrapper {
    padding: 0 30px;
  }

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

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

  .news-right-title {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .floating-bar {
    right: 12px;
    bottom: 60px;
  }

  .float-btn {
    width: 46px;
    height: 46px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .business-cards {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 22px;
  }

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

/* 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: 20px;
}

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

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  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: 20px;
  color: var(--text-secondary);
}

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

.mobile-nav-sub {
  padding-left: 16px;
  margin-top: 8px;
}

.mobile-nav-sub a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  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: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
