/* ========================================
   SANDA Electronic Technology Co., Ltd. - Main Stylesheet
   Professional Industrial Blue Theme
======================================== */

/* CSS变量 */
:root {
  --primary: #1a5fbf;
  --primary-dark: #0d3d8a;
  --primary-light: #2e7dd6;
  --accent: #f5840c;
  --accent-hover: #e07000;
  --text-dark: #1a1a2e;
  --text-body: #444;
  --text-muted: #777;
  --bg-light: #f5f7fa;
  --bg-white: #fff;
  --border: #e0e5ee;
  --shadow: 0 4px 24px rgba(26,95,191,0.10);
  --shadow-lg: 0 8px 40px rgba(26,95,191,0.16);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* 重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 50px;
}
.section-title-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}
.section-title-line::before,
.section-title-line::after {
  content: '';
  display: block;
  height: 2px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--primary));
}
.section-title-line::after {
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* ========== 顶部栏 ========== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  padding: 7px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact span { display: flex; align-items: center; gap: 5px; }
.topbar-contact a { text-decoration: none; }
.topbar-contact a:hover { text-decoration: underline; }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
}
.topbar-icon-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: color .2s;
  line-height: 1;
}
.topbar-icon-btn:hover { color: #fff; }
.topbar-search {
  display: none;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 0 4px 0 10px;
  transition: width .3s;
}
.topbar-search.active { display: flex; }
.topbar-search input {
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-size: .82rem;
  padding: 4px 0;
  width: 130px;
}
.topbar-search input::placeholder { color: rgba(255,255,255,.55); }
.topbar-search-go {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .95rem;
  padding: 2px 4px;
}
.topbar-search-go:hover { color: #fff; }
.topbar-lang { position: relative; }
.lang-btn { font-size: .82rem !important; }
.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 140px;
  overflow: hidden;
  z-index: 10002;
}
.topbar-lang:hover .lang-menu { display: block; }
.lang-menu a {
  display: block;
  padding: 8px 14px;
  font-size: .82rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: background .2s;
}
.lang-menu a:hover { background: rgba(26,95,191,.08); }
.lang-menu .lang-active { color: var(--primary); font-weight: 600; }

/* ========== 头部导航 ========== */
.header {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 16px rgba(26,95,191,.10);
  transition: var(--transition);
}

/* body留出顶部固定导航的空间（topbar 34px + header 72px） */
body {
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-body);
  background: var(--bg-white);
  line-height: 1.7;
  padding-top: 106px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.header .logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 280px;
  overflow: visible;
}
.logo-img {
  max-height: 44px;
  width: auto;
  max-width: 200px;
  flex-shrink: 0;
  object-fit: contain;
}
.logo-text { line-height: 1.2; }
.logo-text .name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}
.logo-text .en {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .5px;
}
.header .logo-slogan {
  font-size: .7rem;
  color: #000;
  white-space: nowrap;
  letter-spacing: .3px;
}

/* 主导航 */
.nav { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 0 18px;
  height: 72px;
  line-height: 72px;
  font-size: .88rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: .5px;
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--primary);
}
.nav-item.active .nav-link::after,
.nav-item:hover .nav-link::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 100;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: .9rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 26px;
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Nav Quote Button ========== */
.nav-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f97316;
  color: #fff;
  padding: 8px 22px;
  border-radius: 25px;
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin-left: 6px;
  white-space: nowrap;
}
.nav-quote-btn:hover {
  background: #ea580c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
@media (max-width: 1100px) {
  .nav-quote-btn { padding: 7px 16px; font-size: .82rem; margin-left: 4px; }
}

/* ========== Hero Banner ========== */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(135deg, #0d2557 0%, #1a5fbf 50%, #2e7dd6 100%);
  display: flex;
  align-items: center;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0%, transparent 40%);
}
.hero-circuit {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 H20 M40 30 H60 M30 0 V20 M30 40 V60' stroke='rgba(255,255,255,0.04)' stroke-width='1' fill='none'/%3E%3Ccircle cx='30' cy='30' r='3' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .82rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero h1 em {
  font-style: normal;
  color: #ffc940;
}
.hero-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,132,12,.4);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  transform: translateY(-2px);
}
/* Reset 按钮蓝色背景 */
#clear-search {
  background: #4f8cff;
  border-color: #4f8cff;
  color: #fff;
}
#clear-search:hover {
  background: #3a7be8;
  border-color: #3a7be8;
}
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: #ffc940;
  line-height: 1;
}
.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* ========== 核心优势 ========== */
.features { background: var(--bg-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
}
.feature-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.feature-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ========== Core Advantages — 三列卡片（图上文下）========== */
.features-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature-visual-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .35s ease, box-shadow .35s ease;
}
.feature-visual-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-visual-img {
  position: relative;
  overflow: hidden;
  height: 220px;
  flex-shrink: 0;
}
.feature-visual-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.feature-visual-card:hover .feature-visual-img img {
  transform: scale(1.06);
}
.feature-visual-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.feature-visual-num {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(26,95,191,0.35);
  z-index: 2;
}
.feature-visual-content {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.feature-visual-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.35;
}
.feature-visual-desc {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}
.feature-visual-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,95,191,0.08);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .74rem;
  font-weight: 600;
  margin-top: 16px;
  width: fit-content;
}

@media (max-width: 900px) {
  .features-visual-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .features-visual-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-visual-img { height: 180px; }
  .feature-visual-content { padding: 18px 16px 22px; }
}

/* ========== 产品中心 ========== */
.products { background: var(--bg-white); }
.products-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 9px 24px;
  border: 2px solid var(--border);
  border-radius: 30px;
  background: #fff;
  color: var(--text-body);
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.product-img {
  height: 200px;
  background: linear-gradient(135deg, #eef3fb, #dce8f8);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.product-card:hover .product-cover-img {
  transform: scale(1.05);
}
.product-img-icon {
  font-size: 5rem;
  opacity: .5;
}
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  font-size: .72rem;
  padding: 3px 10px;
  border-radius: 20px;
}
.product-info { padding: 20px; }
.product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}
.product-model {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Consolas', monospace;
}
.product-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition);
}
.product-link:hover { gap: 8px; }

/* ========== 关于我们 ========== */
.about { background: var(--bg-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}
.about-content h2 span { color: var(--primary); }
.about-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.9;
}
.about-list { margin: 24px 0; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .95rem;
  color: var(--text-body);
}
.about-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
.about-stat {
  background: var(--bg-white);
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}
.about-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.about-stat .label {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.about-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='80' height='80' rx='4' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='2'/%3E%3Cline x1='0' y1='50' x2='100' y2='50' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cline x1='50' y1='0' x2='50' y2='100' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}
.about-img-text {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255,255,255,.8);
}
.about-img-text .big { font-size: 4rem; }
.about-img-text p { font-size: .9rem; margin-top: 8px; }
.about-badge {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 6px 20px rgba(245,132,12,.4);
}
.about-badge .num { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.about-badge .label { font-size: .75rem; margin-top: 2px; }

/* ========== 应用领域 ========== */
.applications { background: var(--bg-white); }
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}
.app-card:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.app-icon { font-size: 2.8rem; margin-bottom: 12px; }
.app-name {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}
.app-card:hover .app-name { color: #fff; }
.app-desc {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 6px;
  transition: var(--transition);
}
.app-card:hover .app-desc { color: rgba(255,255,255,.8); }

/* ========== 新闻动态 ========== */
.news { background: var(--bg-light); }
.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}
.news-main {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.news-main:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-img {
  height: 240px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,.3);
}
.news-body { padding: 24px; }
.news-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.news-cat {
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  padding: 2px 10px;
  border-radius: 20px;
}
.news-date { color: var(--text-muted); font-size: .82rem; }
.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
}
.news-excerpt { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border-left: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}
.news-item:hover {
  border-left-color: var(--primary);
  box-shadow: var(--shadow);
}
.news-item-date { font-size: .76rem; color: var(--text-muted); margin-bottom: 5px; }
.news-item-title { font-size: .9rem; font-weight: 600; color: var(--text-dark); line-height: 1.4; }

/* ========== 联系区块 ========== */
.contact-band {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 60px 0;
  text-align: center;
}
.contact-band h2 { color: #fff; font-size: 1.8rem; font-weight: 700; margin-bottom: 12px; }
.contact-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; }
.contact-band .btn-primary {
  font-size: 1rem;
  padding: 14px 40px;
}
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.contact-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  text-align: center;
  color: #fff;
  min-width: 200px;
  transition: var(--transition);
}
.contact-card:hover {
  background: rgba(255,255,255,.18);
  transform: translateY(-4px);
}
.contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card .label { font-size: .8rem; opacity: .75; margin-bottom: 4px; }
.contact-card .value { font-size: 1rem; font-weight: 600; }

/* ========== 页脚 ========== */
.footer {
  background: #0d2557;
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-icon { background: rgba(255,255,255,.1); }
.footer-brand .name { color: #fff; font-size: 1.15rem; }
.footer-brand .en { color: rgba(255,255,255,.5); }
.footer-brand .footer-logo-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.footer-brand p { margin-top: 16px; font-size: .88rem; line-height: 1.8; }
.footer-col h4 {
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
  font-size: .87rem;
  color: rgba(255,255,255,.6);
  transition: var(--transition);
}
.footer-col ul a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: .87rem;
}
.footer-contact-item .icon { flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }

/* ========== 返回顶部 ========== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(26,95,191,.4);
  z-index: 9998;
  border: none;
  font-size: 1.1rem;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ========== 移动端 ========== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 106px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 1002;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  max-height: calc(100vh - 72px);
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 32px;
}
.mobile-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary);
  opacity: 0;
  transition: var(--transition);
}
.mobile-nav a:hover::before { opacity: 1; }

/* Mobile Nav - Quote Button */
.mobile-nav .mobile-quote-btn {
  background: #f97316;
  color: #fff !important;
  margin: 8px 16px;
  border-radius: 25px;
  text-align: center;
  border-bottom: none;
  font-weight: 600;
}
.mobile-nav .mobile-quote-btn:hover {
  background: #ea580c;
  color: #fff !important;
  padding-left: 24px;
}

/* ========== Topbar Mobile ========== */
@media (max-width: 1100px) {
  .topbar-inner { flex-wrap: wrap; gap: 4px; }
  .topbar-contact { flex-wrap: wrap; gap: 10px; font-size: .76rem; }
  .topbar-actions { margin-left: 10px; gap: 6px; }
  .topbar-search input { width: 90px; font-size: .76rem; }
  .lang-btn { font-size: .76rem !important; }
}
@media (max-width: 768px) {
  .topbar-contact { flex-direction: column; gap: 2px; align-items: flex-end; }
  .topbar-actions { margin-left: 0; gap: 8px; }
  .topbar-search input { width: 80px; }
}

/* ========== 辅助类 ========== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  transition: var(--transition);
  border: 2px solid var(--primary);
  padding: 10px 28px;
  border-radius: var(--radius);
}
.view-all:hover {
  background: var(--primary);
  color: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .nav { display: none; }
  .topbar { font-size: .72rem; padding: 5px 0; }
  .topbar-inner { flex-direction: row; flex-wrap: wrap; gap: 4px; justify-content: center; text-align: center; }
  .topbar-contact { font-size: .72rem; gap: 12px; }
  .topbar > .container > div:last-child { display: none; }
  .hamburger { display: flex; }
  body { padding-top: 100px; }
  .header { top: 44px; }
  .header-inner { height: 56px; }
  .mobile-nav { top: 100px; }

  /* 移动端：logo图片缩小，隐藏slogan */
  .logo-img { height: 36px; }
  .header .logo .logo-slogan,
  .header .logo-slogan { display: none !important; }

  .hero { min-height: 460px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-cards { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .about-badge { bottom: -10px; right: 10px; }

  /* 移动端菜单增强 */
  .mobile-nav {
    max-height: calc(100vh - 112px);
  }
  .mobile-nav a {
    padding: 14px 20px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .topbar-contact { flex-direction: column; gap: 4px; }
}

/* ========== 640px 移动端加强 ========== */
@media (max-width: 640px) {
  .header .logo .logo-slogan,
  .header .logo-slogan { display: none !important; }
  .topbar-search,
  #searchToggle { display: none !important; }
  .topbar { padding: 3px 0; font-size: .65rem; }
  .topbar-inner { flex-direction: column; gap: 2px; justify-content: center; text-align: center; }
  .topbar-contact { gap: 6px; font-size: .65rem; justify-content: center; }
  body { padding-top: 96px; }
  .header { top: 40px; }
  .mobile-nav { top: 96px; }
  .footer-brand .footer-logo-text { font-size: 1.2rem; }
}

/* ========== Hero 轮播样式 ========== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f1117; /* 图片加载前的背景色 */
}
.slider-container {
  position: relative;
  width: 100%;
}
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease-in-out, transform 1.5s ease-out;
}
.slide img {
  display: block;
  width: 100%;
  height: auto;
}
.slide.active {
  position: relative; /* 让容器高度由 active slide 的 img 决定 */
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.slide.prev {
  opacity: 0;
  transform: scale(1.05);
}
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 100%);
  pointer-events: none;
}
.slide-buttons {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 2;
}
.btn-outline-light {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid rgba(255,255,255,0.9);
  color: #fff;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.slide-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.slide-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .82rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  backdrop-filter: blur(8px);
}
.slide h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.slide h1 em {
  font-style: normal;
  color: #ffc940;
}
.slide-desc {
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  margin-bottom: 36px;
  line-height: 1.8;
}
/* 轮播指示器 */
.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}
.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.indicator:hover {
  background: rgba(255,255,255,0.6);
}
.indicator.active {
  background: #fff;
  transform: scale(1.2);
}
/* 轮播控制按钮 */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-btn:hover {
  background: rgba(255,255,255,0.5);
}
.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }
/* 轮播响应式 */
@media (max-width: 768px) {
  .slider-btn { width: 40px; height: 40px; font-size: 20px; }
  .slider-indicators { bottom: 20px; }
  .slide-buttons {
    bottom: 16px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .slide-buttons .btn {
    padding: 8px 20px;
    font-size: 0.8rem;
  }
  .slide-overlay { height: 120px; }
}
@media (max-width: 480px) {
}

/* ========================================
   Chat FAB Widget (Global)
======================================== */
.chat-fab {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,95,191,0.35);
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.chat-fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 24px rgba(26,95,191,0.45);
}
.chat-fab:active { transform: translateY(0) scale(0.95); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-fab .chat-fab-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid #fff;
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}
.chat-fab.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 4px 16px rgba(26,95,191,0.5);
  transform: rotate(90deg);
}
.chat-fab.active:hover { transform: rotate(90deg) scale(1.05); }
.chat-fab.active .chat-fab-badge { display: none; }

/* Chat Panel */
.chat-panel {
  position: fixed;
  bottom: 156px;
  right: 30px;
  width: 380px;
  max-height: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  z-index: 9997;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  transform-origin: bottom right;
  border: 1px solid #e5e7eb;
}
.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}
.chat-panel-header {
  background: linear-gradient(135deg, #0d2557 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-panel-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.chat-panel-header small {
  display: block;
  opacity: 0.8;
  font-size: 0.78rem;
  margin-top: 2px;
}
.chat-panel-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chat-panel-close:hover { background: rgba(255,255,255,0.3); }
.chat-panel-body {
  padding: 20px;
  overflow-y: auto;
  max-height: 340px;
}
.chat-panel-body p {
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0 0 20px;
}
.chat-form-group { margin-bottom: 14px; }
.chat-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}
.chat-form-group input,
.chat-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1f2937;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.chat-form-group input:focus,
.chat-form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,191,0.12);
  background: #fff;
}
.chat-form-group textarea { resize: vertical; min-height: 90px; }
.chat-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(26,95,191,0.25);
}
.chat-submit-btn:hover { box-shadow: 0 4px 16px rgba(26,95,191,0.35); transform: translateY(-1px); }
.chat-submit-btn:active { transform: translateY(0); }
.chat-form-group label .req { color: #e53e3e; margin-left: 2px; }
.chat-success-msg {
  display: none;
  text-align: center;
  padding: 32px 20px;
}
.chat-success-msg .check-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: #059669;
  box-shadow: 0 4px 12px rgba(5,150,105,0.15);
}
.chat-success-msg h4 {
  color: var(--primary);
  font-size: 1rem;
  margin: 0 0 6px;
}
.chat-success-msg p {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0;
}

/* ========================================
   Inquiry Modal (Global)
======================================== */
.inquiry-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  padding: 20px;
}
.inquiry-overlay.open {
  opacity: 1;
  visibility: visible;
}
.inquiry-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.96);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.inquiry-overlay.open .inquiry-modal {
  transform: translateY(0) scale(1);
}
.inquiry-modal-header {
  background: linear-gradient(135deg, #0d2557 0%, var(--primary) 100%);
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.inquiry-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}
.inquiry-modal-header small {
  display: block;
  opacity: .8;
  font-size: .8rem;
  margin-top: 3px;
}
.inquiry-modal-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  flex-shrink: 0;
}
.inquiry-modal-close:hover { background: rgba(255,255,255,0.3); }
.inquiry-modal-body { padding: 24px; }

/* 表单样式（复用 contact 页面风格） */
.inquiry-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.inquiry-modal .form-group { margin-bottom: 14px; }
.inquiry-modal .form-row .form-group { margin-bottom: 0; }
.inquiry-modal .form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.inquiry-modal .form-label .req { color: #e53e3e; margin-left: 2px; }
.inquiry-modal .form-input,
.inquiry-modal .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .92rem;
  font-family: inherit;
  color: var(--text-body);
  background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.inquiry-modal .form-input:focus,
.inquiry-modal .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,95,191,0.12);
  background: #fff;
}
.inquiry-modal .form-textarea { resize: vertical; min-height: 100px; }
.inquiry-modal .form-submit {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: .04em;
  margin-top: 4px;
}
.inquiry-modal .form-submit:hover { background: var(--primary-dark); }
.inquiry-modal .form-submit:disabled { opacity: .65; cursor: not-allowed; }
.inquiry-modal .mc-wrap { margin-bottom: 14px; }

/* Privacy Policy checkbox (inquiry modal & chat panel 共用) */
.privacy-check-wrap {
  margin: 12px 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.privacy-check-wrap input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  cursor: pointer;
}
.privacy-check-wrap label {
  font-size: .82rem;
  color: #4b5563;
  cursor: pointer;
  line-height: 1.4;
}
.privacy-check-wrap label a {
  color: var(--primary);
  text-decoration: underline;
}
.privacy-check-wrap .req { color: #e53e3e; }

/* 成功提示 */
.inquiry-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.inquiry-success .check-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: #059669;
  box-shadow: 0 4px 16px rgba(5,150,105,0.15);
}
.inquiry-success h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; }
.inquiry-success p { color: var(--text-muted); font-size: .9rem; }

/* Chat & Inquiry Mobile */
@media (max-width: 768px) {
  .chat-fab { bottom: 80px; right: 20px; }
  .chat-panel {
    bottom: 146px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: calc(100vh - 260px);
  }
  .chat-panel-body { max-height: calc(100vh - 350px); }
  .mc-row { flex-wrap: wrap; gap: 8px; }
  .mc-question { min-width: auto; font-size: .88rem; padding: 7px 10px; }
  .mc-input { min-width: 0; flex: 1 1 100px; }
  .mc-refresh { padding: 7px 8px; font-size: .9rem; }
  .inquiry-overlay { padding: 12px; }
  .inquiry-modal { max-height: 85vh; }
  .inquiry-modal-header { padding: 16px 18px; }
  .inquiry-modal-header h3 { font-size: 1rem; }
  .inquiry-modal-body { padding: 18px 16px; }
  .inquiry-modal .form-row { grid-template-columns: 1fr; gap: 12px; }
  .privacy-check-wrap label { font-size: .76rem; }
}

/* ========== Cookie Consent Banner ========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 37, 87, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  padding: 20px 0;
  z-index: 10000;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}
.cookie-banner-text strong { color: #fff; opacity: 1; }
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}
.cookie-btn-accept:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.cookie-btn-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cookie-btn-decline:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}
@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
  .cookie-btn-accept, .cookie-btn-decline {
    flex: 1;
    max-width: 200px;
    text-align: center;
  }
}

/* ========== Download Page ========== */
.download-section { padding: 60px 0 80px; }
.download-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.download-tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px; justify-content: center;
}
.download-tab {
  padding: 9px 22px; border: 1.5px solid #d1d5db;
  border-radius: 25px; background: #fff; color: #4b5563;
  cursor: pointer; font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; font-family: inherit;
}
.download-tab:hover { border-color: var(--primary); color: var(--primary); }
.download-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.download-card {
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  padding: 24px; text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid #f0f0f0;
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}

.download-file-icon {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 16px; flex-shrink: 0;
}
.file-pdf { background: #fef2f2; color: #dc2626; }
.file-doc { background: #eff6ff; color: #2563eb; }
.file-xls { background: #f0fdf4; color: #16a34a; }
.file-image { background: #fdf4ff; color: #a855f7; }
.file-zip { background: #fffbeb; color: #d97706; }
.file-other { background: #f3f4f6; color: #6b7280; }

.download-card h3 {
  font-size: 0.95rem; font-weight: 600; color: #1f2937;
  margin: 0 0 8px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 2.8em;
}
.download-type-badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 12px; font-size: 0.72rem; font-weight: 600;
  margin-bottom: 10px;
  background: #f3f4f6; color: #6b7280;
}
.download-info {
  display: flex; gap: 14px; font-size: 0.78rem;
  color: #9ca3af; margin-bottom: 8px;
}
.download-desc {
  font-size: 0.8rem; color: #9ca3af; margin-bottom: 16px;
  line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.download-actions { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.btn-download {
  flex: 1; padding: 9px 16px; border-radius: 8px; font-size: 0.84rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
  text-decoration: none; display: inline-flex; align-items: center;
  justify-content: center; gap: 6px;
}
.btn-preview {
  background: #fff; color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-preview:hover { background: #eff6ff; }
.btn-dl {
  background: var(--primary); color: #fff;
}
.btn-dl:hover { background: var(--primary-dark); }

.download-empty {
  text-align: center; padding: 60px 20px; color: #9ca3af;
  grid-column: 1 / -1;
}
.download-empty .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.download-empty p { font-size: 0.95rem; }

.download-search-wrap { text-align: center; margin-bottom: 24px; }
.download-search-input {
  padding: 10px 18px; border: 1.5px solid #d1d5db;
  border-radius: 25px; font-size: 0.9rem; width: 300px;
  max-width: 100%; outline: none; font-family: inherit;
  transition: border-color 0.2s;
}
.download-search-input:focus { border-color: var(--primary); }

/* Image Preview Modal */
.preview-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.75); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.preview-modal.open { opacity: 1; visibility: visible; }
.preview-modal-content {
  background: #fff; border-radius: 16px;
  max-width: 90vw; max-height: 85vh; overflow: auto;
  padding: 20px; position: relative;
}
.preview-modal-content img { max-width: 100%; max-height: 70vh; display: block; }
.preview-modal-close {
  position: absolute; top: 12px; right: 16px;
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem;
}
.preview-modal-title {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; text-align: center;
}

@media (max-width: 900px) { .download-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .download-grid { grid-template-columns: 1fr; } }
