@charset "UTF-8";

/* ========================================
   网络安全门户网站样式
   品牌视觉体系 v1.0
   ======================================== */

/* 防止页面加载闪烁 - 隐藏搜索相关元素 */
.search-overlay,
.search-trigger,
.header-search {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* ========================================
   1. 品牌色彩系统
   - 主色调：科技蓝（体现网络安全行业属性）
   - 辅助色：深灰色（专业、稳重）、浅灰色（留白、平衡）
   ======================================== */
:root {
  /* 主色调 - 科技蓝 */
  --primary-color: #0066cc;
  --primary-dark: #004499;
  --primary-light: #3388dd;
  --secondary-color: #00d4ff;
  
  /* 深灰色系 - 专业稳重 */
  --dark-bg: #0d1b2a;
  --dark-bg-light: #132238;
  --dark-gray: #1a1a1a;
  --medium-gray: #333333;
  
  /* 浅灰色系 - 留白平衡 */
  --light-gray: #666666;
  --lighter-gray: #999999;
  --bg-gray: #f5f7fa;
  --border-gray: #e8e8e8;
  
  /* 文字颜色 */
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-light: #ffffff;
  --text-gray: #8899aa;
  
  /* 功能色 */
  --accent-green: #00ff88;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
  --gradient-dark: linear-gradient(180deg, #0a1628 0%, #132238 100%);
}

/* ========================================
   2. 字体规范系统
   - 标题：粗体无衬线（微软雅黑、思源黑体）
   - 正文：常规无衬线
   - 字号层级：标题24-32px，正文14-16px，辅助12px
   ======================================== */

/* 全局字体 */
body {
  font-family: "Source Han Sans SC", "思源黑体", "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: 70px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 标题字体 - 粗体无衬线 */
h1, h2, h3, h4, h5, h6,
.heading {
  font-family: "Source Han Sans SC", "思源黑体", "Microsoft YaHei", "微软雅黑", "PingFang SC", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

/* 字号层级 */
h1, .h1 { font-size: 32px; }  /* 首页大标题 */
h2, .h2 { font-size: 28px; }  /* 模块标题 */
h3, .h3 { font-size: 24px; }  /* 子标题 */
h4, .h4 { font-size: 20px; }  /* 卡片标题 */
h5, .h5 { font-size: 18px; }  /* 小标题 */
h6, .h6 { font-size: 16px; }  /* 最小标题 */

/* 正文字体 */
p, .body-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* 大正文 */
.text-lg {
  font-size: 16px;
}

/* 辅助文字 */
.text-sm,
.caption,
.helper-text {
  font-size: 12px;
  color: var(--text-muted);
}

a {
  transition: all 0.3s ease;
  color: var(--primary-color);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* ========================================
   3. LOGO应用规范
   - 顶部导航栏左侧：高度38px
   - 首页底部：高度40px
   - 内页顶部：统一展示
   ======================================== */
.logo img,
.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.footer-brand .footer-logo {
  height: 40px;
}

/* 主Banner区域 */
.hero-banner {
  position: relative;
  overflow: hidden;
}

.hero-banner .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
}

.hero-banner .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.9) 0%, rgba(10, 22, 40, 0.4) 100%);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translateY(-50%);
  max-width: 600px;
  z-index: 10;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 30px;
}

.hero-content .btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 14px 40px;
  font-size: 16px;
  border-radius: 4px;
}

.hero-content .btn-outline-light {
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 14px 40px;
  font-size: 16px;
  border-radius: 4px;
  margin-left: 15px;
}

.hero-content .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 产品解决方案区域 */
.section-products {
  padding: 80px 0;
  background: var(--bg-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 16px;
  color: var(--text-secondary);
}

.section-title .title-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 20px auto 0;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid var(--border-gray);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .icon i {
  font-size: 36px;
  color: #fff;
}

.product-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.product-card .learn-more {
  color: var(--primary-color);
  font-size: 14px;
  margin-top: 20px;
  display: inline-block;
}

.product-card .learn-more:hover {
  color: var(--primary-dark);
}

/* 解决方案区域 - 深色背景 */
.section-solutions {
  padding: 80px 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.section-solutions::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%23ffffff10"/></svg>');
  background-size: 50px 50px;
  opacity: 0.5;
}

.section-solutions .section-title h2 {
  color: var(--text-light);
}

.section-solutions .section-title p {
  color: var(--text-gray);
}

.solution-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.solution-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary-color);
}

.solution-item h5 {
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 10px;
}

.solution-item p {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 0;
}

.solution-item i {
  color: var(--secondary-color);
  font-size: 24px;
  margin-right: 15px;
}

/* 数据统计区域 */
.section-stats {
  padding: 60px 0;
  background: var(--primary-color);
}

.stat-item {
  text-align: center;
  color: #fff;
}

.stat-item .number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-item .label {
  font-size: 16px;
  opacity: 0.9;
}

/* 客户案例区域 */
.section-cases {
  padding: 80px 0;
  background: #fff;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 30px;
}

.case-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-card:hover img {
  transform: scale(1.1);
}

.case-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
}

.case-card .overlay h5 {
  font-size: 18px;
  margin-bottom: 5px;
}

.case-card .overlay p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 0;
}

/* 新闻资讯区域 */
.section-news {
  padding: 80px 0;
  background: var(--bg-gray);
}

.news-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.news-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card .content {
  padding: 25px;
}

.news-card .date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.news-card h5 {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.news-card .read-more {
  color: var(--primary-color);
  font-size: 14px;
}

/* 合作伙伴区域 */
.section-partners {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid #eee;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.partner-logo img {
  max-height: 50px;
  max-width: 120px;
}

/* 页脚样式 */
.cyber-footer {
  background: var(--dark-bg);
  color: var(--text-gray);
  padding-top: 60px;
}

.cyber-footer .footer-logo {
  margin-bottom: 20px;
}

.cyber-footer .footer-logo img {
  height: 40px;
}

.cyber-footer .footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.cyber-footer h5 {
  color: var(--text-light);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 25px;
}

.cyber-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.cyber-footer .footer-links a {
  color: var(--text-gray);
  font-size: 14px;
  text-decoration: none;
}

.cyber-footer .footer-links a:hover {
  color: var(--secondary-color);
}

.cyber-footer .contact-info {
  font-size: 14px;
}

.cyber-footer .contact-info p {
  margin-bottom: 10px;
}

.cyber-footer .contact-info i {
  color: var(--secondary-color);
  margin-right: 10px;
  width: 20px;
}

.cyber-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-light);
  margin-right: 10px;
  transition: all 0.3s ease;
}

.cyber-footer .social-links a:hover {
  background: var(--primary-color);
}

.cyber-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 40px;
  font-size: 12px;
}

.cyber-footer .footer-bottom a {
  color: var(--text-gray);
}

.cyber-footer .footer-bottom a:hover {
  color: var(--secondary-color);
}

/* 通用按钮样式 */
.btn-cyber {
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-cyber:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
  color: #fff;
}

.btn-cyber-outline {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 30px;
  border-radius: 4px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.btn-cyber-outline:hover {
  background: var(--primary-color);
  color: #fff;
}

/* 响应式调整 */
@media (max-width: 991px) {
  h1, .h1 { font-size: 28px; }
  h2, .h2 { font-size: 24px; }
  h3, .h3 { font-size: 20px; }
  
  .hero-banner .carousel-item {
    height: 500px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .hero-content {
    left: 5%;
    right: 5%;
    max-width: none;
  }
}

@media (max-width: 767px) {
  h1, .h1 { font-size: 24px; }
  h2, .h2 { font-size: 20px; }
  h3, .h3 { font-size: 18px; }
  
  body {
    font-size: 14px;
  }
  
  .hero-banner .carousel-item {
    height: 400px;
  }
  
  .hero-content h1 {
    font-size: 28px;
  }
  
  .hero-content p {
    font-size: 14px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .stat-item .number {
    font-size: 36px;
  }
}

/* 保留原有必要样式 */
.cm-navbar .navbar-nav .nav-link {
  font-size: 18px;
  padding-left: 16px;
  padding-right: 16px;
  color: #212529;
}

.cm-navbar .navbar-nav .nav-link.active {
  color: #007bff;
}

.navbar-nav-scroll {
  max-width: 100%;
  height: 2.5rem;
  overflow: hidden;
}

.navbar-nav-scroll .navbar-nav {
  overflow-x: auto;
  white-space: nowrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
  -webkit-overflow-scrolling: touch;
}

.cm-hidden {
  display: none;
}

.cm-pointer {
  cursor: pointer;
}

.cm-ff-yh {
  font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", serif;
}

.cm-block-head-bottom {
  border-bottom: solid 2px;
  border-color: #007bff;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.cm-trans-bottom {
  width: 100%;
  bottom: 0;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.4);
}

.cm-media-img {
  max-width: 180px;
  max-height: 120px;
}

@media screen and (max-width: 767px) {
  .cm-media-img {
    max-width: 120px;
    max-height: 80px;
  }
}

.cm-link {
  color: var(--text-primary);
}

.cm-link:hover {
  color: var(--primary-color);
}

.es-highlight em {
  color: var(--danger-color);
  font-style: normal;
}

/* 文章内容样式 */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--text-primary);
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

.article-content p {
  margin-bottom: 1em;
}

.article-content img {
  max-width: 100%;
  height: auto;
}
