:root {
  --color-primary: #165DFF;
  --color-primary-dark: #0A2463;
  --color-accent: #00D4FF;
  --color-bg-light: #F8FAFC;
  --color-bg-dark: #0F172A;
  --color-text: #1E293B;
  --color-text-secondary: #64748B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

.bg-gradient-tech {
  background: linear-gradient(135deg, #0A2463 0%, #165DFF 60%, #00D4FF 100%);
}

.bg-gradient-dark {
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.card-hover {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px -12px rgba(22, 93, 255, 0.18), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.text-shadow-lg {
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.glass-card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  transition: all 0.35s ease;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-6px);
}

.glow-blue {
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.35);
}

@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.animate-scroll {
  display: flex;
  width: max-content;
  animation: scroll-x 30s linear infinite;
}
.animate-scroll:hover { animation-play-state: paused; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(22, 93, 255, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(22, 93, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 93, 255, 0); }
}
.pulse-ring { animation: pulse-ring 2s infinite; }

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #165DFF, #0A2463);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(90deg, #00D4FF, #165DFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #165DFF, #00D4FF);
  transform: translateX(-50%);
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #165DFF;
  border: 4px solid #fff;
  box-shadow: 0 0 0 4px rgba(22, 93, 255, 0.2);
}


.industry-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #0F172A;
}
.industry-card img {
  transition: transform 0.5s ease;
}
.industry-card:hover img {
  transform: scale(1.08);
}
.industry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, 0.92) 100%);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
}
.chat-window {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 64px);
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}
.chat-window.open {
  transform: scale(1);
}
.chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 16px;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 2px; }
.chat-notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}
.chat-notification-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ef4444;
  animation: chatPing 1.5s infinite;
}
@keyframes chatPing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
.quick-reply {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(22, 93, 255, 0.08);
  color: #165DFF;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid rgba(22, 93, 255, 0.15);
  white-space: nowrap;
}
.quick-reply:hover {
  background: rgba(22, 93, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, #165DFF, #0A2463);
  color: #fff;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(22, 93, 255, 0.35);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 12px 36px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}
.btn-outline:hover {
  border-color: #00D4FF;
  background: rgba(0, 212, 255, 0.1);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table th {
  background: linear-gradient(135deg, #0A2463, #165DFF);
  color: #fff;
  padding: 16px 24px;
  text-align: left;
  font-weight: 600;
}
.spec-table td {
  padding: 14px 24px;
  border-bottom: 1px solid #E2E8F0;
}
.spec-table tr:nth-child(even) td {
  background: #F8FAFC;
}
.spec-table tr:hover td {
  background: #EFF6FF;
}

/* ==================== 新闻列表模块 ==================== */

/* 分类筛选按钮 */
.news-filter-btn {
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.news-filter-btn:hover {
  background: #EFF6FF;
  color: #165DFF;
}
.news-filter-btn.active {
  background: linear-gradient(135deg, #165DFF, #0A2463);
  color: #fff;
  box-shadow: 0 4px 12px rgba(22, 93, 255, 0.25);
}

/* 刷新按钮 */
.news-refresh-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #165DFF;
  background: rgba(22, 93, 255, 0.08);
  border: 1px solid rgba(22, 93, 255, 0.2);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.news-refresh-btn:hover {
  background: rgba(22, 93, 255, 0.15);
  border-color: #165DFF;
}
.news-refresh-btn:active {
  transform: scale(0.95);
}
.news-refresh-btn iconify-icon {
  transition: transform 0.5s ease;
}
.news-refresh-btn:hover iconify-icon {
  transform: rotate(180deg);
}
.news-refresh-btn.loading iconify-icon {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 可滚动新闻列表容器 */
.news-scroll-container {
  max-height: 620px;
  overflow-y: auto;
  padding-right: 8px;
  scroll-behavior: smooth;
}

/* 自定义滚动条 */
.news-scroll-container::-webkit-scrollbar {
  width: 6px;
}
.news-scroll-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 3px;
}
.news-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #165DFF, #00D4FF);
  border-radius: 3px;
}
.news-scroll-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0A2463, #165DFF);
}

/* 加载中提示 */
.news-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

/* 新新闻提示条 */
.new-news-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.08), rgba(0, 212, 255, 0.08));
  border: 1px solid rgba(22, 93, 255, 0.2);
  color: #165DFF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: tipSlideIn 0.4s ease;
}
.new-news-tip:hover {
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.15), rgba(0, 212, 255, 0.15));
  border-color: #165DFF;
}
@keyframes tipSlideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 新闻卡片 */
.news-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
  background: #F8FAFC;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover {
  background: #fff;
  border-color: #165DFF;
  box-shadow: 0 12px 32px -8px rgba(22, 93, 255, 0.15);
  transform: translateY(-3px);
}
.news-card-image {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 12px;
  object-fit: contain;
  background: #F1F5F9;
}
.news-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.news-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.news-card-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.news-card-badge.公司新闻 {
  background: rgba(22, 93, 255, 0.1);
  color: #165DFF;
}
.news-card-badge.行业动态 {
  background: rgba(0, 212, 255, 0.12);
  color: #0EA5E9;
}
.news-card-badge.技术分享 {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.news-card-badge.案例分享 {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}
.news-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-summary {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: #94A3B8;
}
.news-card-footer iconify-icon {
  margin-right: 4px;
  vertical-align: -2px;
}

/* 新闻详情弹窗 */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.news-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.news-modal-content {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.news-modal-overlay.open .news-modal-content {
  transform: scale(1);
}
.news-modal-content::-webkit-scrollbar {
  width: 5px;
}
.news-modal-content::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}
.news-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.news-modal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(22, 93, 255, 0.1);
  color: #165DFF;
}
.news-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
}
.news-modal-close-btn:hover {
  background: #EF4444;
  color: #fff;
  transform: rotate(90deg);
}
.news-modal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0A2463;
  line-height: 1.4;
  margin-bottom: 12px;
}
.news-modal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748B;
  margin-bottom: 20px;
}
.news-modal-image-wrap {
  margin-bottom: 20px;
  text-align: center;
}
.news-modal-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: 12px;
  object-fit: contain;
}
.news-modal-body {
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
}

/* 支持中心弹窗 - 图文混排结构化样式 */
.support-modal-paragraph {
  margin: 0 0 16px 0;
  font-size: 15px;
  line-height: 1.9;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-modal-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0A2463;
  margin-top: 28px;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid #165DFF;
  line-height: 1.5;
}

.support-modal-section-title:first-child {
  margin-top: 0;
}

.support-modal-figure {
  margin: 24px 0;
  text-align: center;
}

.support-modal-figure img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
  object-fit: contain;
  display: inline-block;
}

/* 响应式：小屏幕下新闻卡片图片隐藏 */
@media (max-width: 640px) {
  .news-card {
    flex-direction: column;
    gap: 12px;
  }
  .news-card-image {
    width: 100%;
    height: 160px;
  }
  .news-scroll-container {
    max-height: 500px;
  }
}

/* ==================== 合作伙伴Logo ==================== */
.partner-item {
  transition: all 0.3s ease;
}
.partner-item:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
}
.partner-name {
  font-size: 16px;
  font-weight: 700;
  color: #475569;
  text-align: center;
  transition: color 0.3s ease;
}
.partner-item:hover .partner-name {
  color: #165DFF;
}

/* ==================== 支持中心模块卡片 ==================== */
.support-card {
  background: #F8FAFC;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
}
.support-card:hover {
  background: #fff;
  border-color: #165DFF;
  box-shadow: 0 12px 32px -8px rgba(22, 93, 255, 0.15);
  transform: translateY(-3px);
}
.support-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
  line-height: 1.5;
}
.support-card-summary {
  font-size: 13px;
  color: #64748B;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.support-card-view-detail {
  margin-top: 14px;
  font-size: 13px;
  color: #165DFF;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
.support-card-view-detail iconify-icon {
  transition: transform 0.2s ease;
}
.support-card:hover .support-card-view-detail iconify-icon {
  transform: translateX(3px);
}

/* 支持中心弹窗配图 */
.support-modal-image {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 20px;
  background: #F1F5F9;
}

/* 支持中心弹窗多图布局（#support-modal-image-wrap 内动态生成的多个 img） */
.support-modal-image-wrap img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #F1F5F9;
}
.support-modal-image-wrap img:last-child {
  margin-bottom: 20px;
}

/* 响应式：小屏幕下支持中心卡片单列 */
@media (max-width: 640px) {
  .support-card {
    padding: 18px;
  }
  .support-card-title {
    font-size: 15px;
  }
  .support-modal-image {
    max-height: 200px;
  }
  .support-modal-image-wrap img {
    max-height: 220px;
  }
}
