/* ============================================
 * Zoho 学习中心 · 统一样式表
 * 主色：emerald #10B981 + 深红黑底（Zoho 品牌色系）
 * 适用：CN/Zoho/index.html、index_learning.html
 * ============================================ */

/* —— 容器宽度统一 —— */
.zh-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 768px) {
  .zh-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .zh-container { padding-left: 2rem; padding-right: 2rem; }
}

/* —— 一级导航 Zoho 学习高亮链接 —— */
.zoho-primary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(16, 185, 129, 0.08));
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  transition: all 0.25s ease;
}
.zoho-primary-link:hover {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}
.zoho-primary-link i { color: #10B981; }
.zoho-primary-link:hover i { color: #fff; }

/* —— 二级 sticky 导航（深色背景） —— */
.zh-subnav {
  position: sticky;
  top: 55px;
  z-index: 40;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
}
.zh-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.6rem 0;
  white-space: nowrap;
}
.zh-subnav-inner::-webkit-scrollbar { height: 3px; }
.zh-subnav-inner::-webkit-scrollbar-thumb { background: rgba(16, 185, 129, 0.4); border-radius: 3px; }

.zh-subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.zh-subnav-link:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}
.zh-subnav-link.is-active {
  background: rgba(16, 185, 129, 0.25);
  color: #10B981;
  font-weight: 600;
}
.zh-subnav-link i { font-size: 0.8rem; }
.zh-subnav-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.zh-subnav-back { color: #93c5fd !important; }
.zh-subnav-back:hover { background: rgba(59, 130, 246, 0.18) !important; }

/* —— 面包屑 —— */
.zh-breadcrumb {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.12);
  font-size: 0.85rem;
}
.zh-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}
.zh-breadcrumb a:hover { color: #34d399; }
.zh-breadcrumb .sep { color: rgba(255, 255, 255, 0.35); margin: 0 0.5rem; }
.zh-breadcrumb .current { color: #10B981; font-weight: 500; }

/* —— AI 能力 / 场景卡片 —— */
.zh-ai-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.zh-ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent 70%);
  pointer-events: none;
}
.zh-ai-card:hover {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.25);
  transform: translateY(-4px);
}
.zh-ai-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #10B981, #059669);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.zh-ai-card h3 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.zh-ai-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* —— 章节标题 —— */
.zh-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  text-align: center;
  margin-bottom: 0.6rem;
}
.zh-section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* —— 移动端适配 —— */
@media (max-width: 767px) {
  .zh-subnav { top: 55px; }
  .zh-subnav-link { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
  .zh-ai-card { padding: 1.15rem; }
  .zh-section-title { font-size: 1.25rem; }
}

/* —— 性能优化 —— */
.zh-subnav, .zh-ai-card {
  will-change: transform;
  contain: layout style;
}
