/* IRIS-Cloud 全局样式文件
 * 整合了所有HTML文件中的CSS样式
 * 确保样式无重复，保持视觉效果一致
 */

/* ==================== 全局样式 ==================== */
body {
  font-family: 'Inter', system-ui, sans-serif;
}

/* ==================== 背景和动画效果 ==================== */

/* 网格背景动画效果 - 用于 Hero 区域 */
.animated-grid {
  background-image:
          linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
          linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Hero 区域渐变背景 - 深蓝到深灰的渐变 */
.gradient-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
}

/* 光晕效果 - 使用径向渐变创建发光效果 */
.glow-effect {
  background:
          radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
          radial-gradient(ellipse 60% 40% at 80% 80%, rgba(6, 182, 212, 0.1), transparent);
}

/* 滚动显示动画 - 元素进入视口时的淡入上滑效果 */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Logo 墙滚动动画 - 无限横向滚动 */
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-scroll {
  animation: scroll 30s linear infinite;
}

/* ==================== 卡片和悬停效果 ==================== */

/* 卡片悬停效果 - 上浮和阴影增强 */
.hover-card {
  transition: all 0.3s ease;
}

.hover-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* 按钮光晕效果 - 悬停时显示蓝色光晕 */
.btn-glow:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* 定价卡片推荐标签 - 专业版的"最受欢迎"标签 */
.featured-badge {
  position: relative;
  padding-top: 2rem;
  overflow: visible !important;
}

.featured-badge::before {
  content: '最受欢迎';
  position: absolute;
  top: calc(0.75rem - 25px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 126px;
  text-align: center;
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 55%, #2563EB 100%);
  color: #FFFFFF;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.2);
  z-index: 10;
}

/*.featured-badge::after {*/
/*  content: '';*/
/*  position: absolute;*/
/*  top: calc(1.65rem - 25px);*/
/*  left: 0;*/
/*  right: 0;*/
/*  height: 3px;*/
/*  background: linear-gradient(90deg, rgba(59, 130, 246, 0.85) 0%, rgba(59, 130, 246, 0.55) 22%, rgba(59, 130, 246, 0) 40%, rgba(59, 130, 246, 0) 60%, rgba(59, 130, 246, 0.55) 78%, rgba(59, 130, 246, 0.85) 100%);*/
/*  z-index: 1;*/
/*}*/

/* ==================== 首页特定样式 ==================== */

/* FAQ 图标样式 */
.faq-icon {
  transition: transform 0.3s ease;
}

/* 平滑滚动导航 */
a[href^="#"] {
  scroll-behavior: smooth;
}

/* 推荐标签样式 */
.recommend-badge {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

/* 文档卡片 */
.doc-card {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.doc-card:hover {
  border-left-color: #3B82F6;
  background-color: #F8FAFC;
}

/* 功能文档卡片 */
.feature-doc-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.3s ease;
}

.feature-doc-card:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-4px);
}

.topology-shell {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topology-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.22);
}

.topology-board {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92) 45%, rgba(241, 245, 249, 0.9) 100%),
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: default;
}

.topology-board::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.topology-board.is-panning {
  cursor: grab;
}

.topology-board.is-dragging-node {
  cursor: grabbing;
}

.topology-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.topology-link {
  stroke: rgba(71, 85, 105, 0.7);
  stroke-width: 2;
  stroke-linecap: round;
}

.topology-group {
  transition: points 0.12s linear;
}

.topology-node {
  cursor: grab;
}

.topology-node.is-dragging {
  cursor: grabbing;
}

.topology-node.is-dragging .topology-node-body {
  stroke-width: 2.2;
}

.topology-node-label {
  fill: #1f2937;
  font-size: 14px;
  font-weight: 500;
  dominant-baseline: middle;
}

.topology-node-icon {
  fill: #475569;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

@media (max-width: 640px) {
  .topology-board,
  .topology-svg {
    min-height: 420px;
  }
}

/* 方案卡片渐变背景 */
.solution-card-1 { background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%); }
.solution-card-2 { background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%); }
.solution-card-3 { background: linear-gradient(135deg, #10B981 0%, #059669 100%); }
.solution-card-4 { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); }
.solution-card-5 { background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%); }
.solution-card-6 { background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%); }

/* ==================== 布局和结构样式 ==================== */

/* 时间线样式 */
.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3B82F6, #0F172A);
}

/* 时间线节点 */
.timeline-dot {
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* 分类标题装饰 */
.category-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3B82F6, transparent);
  margin-top: 8px;
  border-radius: 2px;
}

/* 搜索框聚焦效果 */
.search-focus:focus-within {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 表格样式 */
.pricing-table th,
.pricing-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.pricing-table th {
  background: #F9FAFB;
  font-weight: 600;
  color: #374151;
}

.pricing-table tr:nth-child(even) {
  background-color: #F9FAFB;
}

.pricing-table tr:hover {
  background-color: #F3F4F6;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
  text-align: center;
}

/* 对比表格样式 */
.comparison-table th,
.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}

.comparison-table th {
  background: #F9FAFB;
  font-weight: 600;
  color: #374151;
}

.comparison-table tr:hover {
  background: #F9FAFB;
}

/* 表单样式 */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ==================== 交互和功能样式 ==================== */

/* FAQ 手风琴动画 - 内容展开/收起 */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-content.open {
  max-height: 500px;
}

/* 手风琴效果 */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.accordion-content.open {
  max-height: 500px;
}

/* 隐藏搜索结果 */
.search-hidden {
  display: none !important;
}

/* 高亮搜索结果 */
.highlight {
  background-color: rgba(59, 130, 246, 0.2);
  padding: 0 2px;
  border-radius: 2px;
}

/* ==================== 版本标签颜色 ==================== */
.tag-iriscenter {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}
.tag-irisnode {
  background: linear-gradient(135deg, #10B981, #059669);
}
.tag-irisclient {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}
.tag-irisshop {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}
.tag-irissearch {
  background: linear-gradient(135deg, #EC4899, #DB2777);
}

/* ==================== 文章页面样式 ==================== */

/* 文章内容样式 */
.article-content {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #E5E7EB;
}

.article-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #1F2937;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.article-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content ul li {
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.article-content ol {
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-content ol li {
  color: #4B5563;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.article-content strong {
  color: #111827;
  font-weight: 600;
}

.article-content a {
  color: #3B82F6;
  text-decoration: none;
}

.article-content a:hover {
  text-decoration: underline;
}

.article-content code {
  background-color: #F3F4F6;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875rem;
  color: #EF4444;
}

.article-content pre {
  background-color: #1F2937;
  color: #F9FAFB;
  padding: 1.5rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.article-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.article-content blockquote {
  border-left: 4px solid #3B82F6;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #6B7280;
  font-style: italic;
}

.article-content img {
  max-width: 100%;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

/* 目录链接样式 */
.toc-link {
  display: block;
  width: 100%;
  transition: all 0.2s ease;
}

.toc-link:hover {
  color: #3B82F6;
  padding-left: 0.5rem;
}

.toc-link.active {
  color: #3B82F6;
  font-weight: 500;
  border-left: 2px solid #3B82F6;
  padding-left: 0.75rem;
}

.toc-link-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 反馈按钮样式 */
.feedback-btn {
  transition: all 0.2s ease;
}

.feedback-btn:hover {
  transform: scale(1.05);
}

.feedback-btn.active {
  color: #FFFFFF;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

.feedback-btn[data-vote="up"].active {
  background-color: #16A34A;
}

.feedback-btn[data-vote="down"].active {
  background-color: #DC2626;
}

.share-btn:hover {
  transform: translateY(-1px);
}

.article-adjacent-card {
  min-width: 0;
}

.article-adjacent-card > div > div:last-child {
  min-width: 0;
}

.article-adjacent-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 标签样式 */
.tag {
  transition: all 0.2s ease;
}

.tag:hover {
  background-color: #DBEAFE;
}

/* ==================== 下载页面样式 ==================== */

/* 平台卡片样式 */
.platform-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.platform-card:hover {
  border-color: #3B82F6;
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

/* 版本徽章样式 */
.version-badge {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* ==================== 搜索结果页面样式 ==================== */

/* 搜索高亮样式 */
.search-highlight {
  background-color: rgba(59, 130, 246, 0.2);
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 500;
}

/* 结果卡片样式 */
.result-card {
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.result-card:hover {
  border-left-color: #3B82F6;
  background-color: #F8FAFC;
}

/* 面包屑样式 */
.breadcrumb-item:not(:last-child)::after {
  content: '/';
  margin: 0 8px;
  color: #9CA3AF;
}

.article-breadcrumb {
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.article-breadcrumb a,
.article-breadcrumb span {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  line-height: 1;
}

.article-breadcrumb a {
  color: rgba(226, 232, 240, 0.82);
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-breadcrumb a:hover {
  color: #ffffff;
  transform: translateY(-1px);
  text-decoration: none;
}

.article-breadcrumb > span:last-child {
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.32), rgba(14, 165, 233, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.article-breadcrumb i {
  width: 0.95rem;
  height: 0.95rem;
  margin: 0 0.1rem;
  color: rgba(148, 163, 184, 0.8);
}

@media (max-width: 640px) {
  .article-breadcrumb {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 1rem;
  }
}

/* 筛选标签样式 */
.filter-tag {
  transition: all 0.2s ease;
}

.filter-tag.active {
  background-color: #3B82F6;
  color: white;
}

.filter-tag:hover:not(.active) {
  background-color: #E5E7EB;
}

/* ==================== 更新日志内容标签样式 ==================== */

.log-keyword-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.875rem;
  margin: 0 0.15rem;
  border-radius: 50px;
  color: #FFFFFF;
  font-size: 0.95em;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: baseline;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.log-keyword-badge.iriscenter {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.log-keyword-badge.irisnode {
  background: linear-gradient(135deg, #10B981, #059669);
}

.log-keyword-badge.irisclient {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.log-keyword-badge.irisshop {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}

.log-keyword-badge.irissearch {
  background: linear-gradient(135deg, #EC4899, #DB2777);
}

/* ==================== 更新日志分页器样式 ==================== */

.log-pagination-shell {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.log-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.log-pagination > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.log-pagination .page-status {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #DBEAFE;
  border-radius: 9999px;
  background: linear-gradient(135deg, #EFF6FF 0%, #F8FAFC 100%);
  color: #475569;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
}

.log-pagination .page-index a,
.log-pagination .page-pre a,
.log-pagination .page-next a,
.log-pagination .page-last a,
.log-pagination .page-numbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 0.875rem;
  background: #FFFFFF;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.log-pagination .page-numbar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.log-pagination .page-index a:hover,
.log-pagination .page-pre a:hover,
.log-pagination .page-next a:hover,
.log-pagination .page-last a:hover,
.log-pagination .page-numbar a:hover {
  border-color: #93C5FD;
  background: #EFF6FF;
  color: #2563EB;
  transform: translateY(-1px);
  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.16);
}

.log-pagination .page-numbar .page-num-current {
  border-color: #2563EB;
  background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
  color: #FFFFFF;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.28);
}

.log-pagination .page-pre a[href='javascript:;'],
.log-pagination .page-next a[href='javascript:;'] {
  background: #F8FAFC;
  color: #94A3B8;
  border-color: #E2E8F0;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

@media (max-width: 640px) {
  .log-pagination-shell {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .log-pagination {
    gap: 0.5rem;
  }

  .log-pagination .page-status {
    width: 100%;
    border-radius: 1rem;
  }

  .log-pagination .page-index a,
  .log-pagination .page-pre a,
  .log-pagination .page-next a,
  .log-pagination .page-last a,
  .log-pagination .page-numbar a {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.625rem 0.875rem;
  }
}
