/* 统一的Odoo页面样式 - 与CN/biz/保持一致的商务紧凑风格 */
/* 品牌色：#10B981 (主绿) */
/* 商务色：#1D2129 (主文本) #6B7280 (次要文本) #FFFFFF (背景) */

/* 统一设置CN/Odoo/下所有页面的字体大小，比根目录再缩小2号 */
* {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 0.85em; /* 比根目录缩小2号 */
}

body {
  background: #FFFFFF;
  color: #1D2129;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-size: 12px; /* 基础字体大小 */
}

.gradient-bg {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* 统一标题字体大小 */
h1 { font-size: 1.6rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.95rem; }

/* 统一文本字体大小 */
p, li, td, th, a {
  font-size: 0.85rem;
}

/* 确保导航栏和其他组件也使用统一的字体大小 */
#navbar, .biz-tab-navigation, .dropdown-content, .biz-tab-item {
  font-size: 0.95rem;
}

/* 导航链接字体放大一号 */
#navbar a {
  font-size: 0.95rem !important;
}

/* 下拉菜单链接字体 */
.dropdown-content a {
  font-size: 0.95rem !important;
}

/* 调整logo大小 - 比根目录缩小15px，从h-[50px]改为h-[35px] */
#navbar img {
  height: 35px !important;
  width: auto !important;
}

/* 卡片样式 */
.learning-card {
  transition: all 0.3s ease;
  border-left: 4px solid #10B981;
  background: #fff;
}

.learning-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.faq-card {
  transition: all 0.3s ease;
  border-left: 4px solid #10B981;
  background: #fff;
}

.faq-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
  border-left-color: #059669;
}

/* 徽章样式 */
.badge-featured {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-hot {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* 图标卡片 */
.icon-card {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

/* FAQ相关样式 */
.category-badge {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 1rem;
}

.faq-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.answer-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-left: 3px solid #10B981;
  padding: 0.75rem 1.5rem;
  margin-top: 0.75rem;
  border-radius: 8px;
}

.mistake-card {
  background: #fff;
  border: 2px solid #fee;
  border-left: 4px solid #ef4444;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.mistake-card:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.15);
}

.tip-card {
  background: #fff;
  border: 2px solid #dcfce7;
  border-left: 4px solid #22c55e;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tip-card:hover {
  border-color: #22c55e;
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.15);
}

/* 二级导航样式 */
.sub-nav {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 50px;
}

.sub-nav-link {
  position: relative;
  padding: 0.625rem 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.sub-nav-link:hover, .sub-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.sub-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

/* 卡片样式增强 */
.learning-card {
  transition: all 0.3s ease;
  border-left: 4px solid #10B981;
  background: #fff;
}

.learning-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border-left-color: #059669;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 2px;
}

/* 特色徽章 */
.badge-featured {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-hot {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-new {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* 快速导航卡片 */
.quick-nav-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quick-nav-card:hover {
  border-color: #10B981;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}

/* 统计数字 */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 修复导航栏和内容之间的间距 */
.main-content-with-nav {
  padding-top: 95px;
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
}

/* 渐变文本 */
.gradient-text {
  background: linear-gradient(135deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 统一导航样式 */
.navbar {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
}

/* 二级导航样式 */
.sub-nav {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  margin-top: 55px;
}

.sub-nav-link {
  position: relative;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.sub-nav-link:hover, .sub-nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sub-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #fff;
}

/* 章节标题样式 */
.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
  color: #1f2937;
  font-weight: 700;
}

.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 2px;
}

/* 特色徽章样式 */
.badge-featured {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-hot {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

.badge-new {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* 表格样式 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.data-table th {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.data-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.data-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.data-table tr:hover {
  background-color: #f3f4f6;
}

/* 推荐指数样式 */
.recommendation-high {
  color: #10B981;
  font-weight: bold;
}

.recommendation-medium {
  color: #f59e0b;
  font-weight: bold;
}

.recommendation-low {
  color: #ef4444;
  font-weight: bold;
}

/* 信息卡片 */
.info-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: #fff;
  color: #10B981;
  padding: 10px 20px;
  border: 2px solid #10B981;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.15);
}

/* 列表样式 */
.custom-list {
  list-style: none;
  padding: 0;
}

.custom-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.custom-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #10B981;
  font-size: 18px;
  font-weight: bold;
}

/* 引用样式 */
.quote {
  background: #f0fdf4;
  border-left: 4px solid #10B981;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 0 8px 8px 0;
}

.quote p {
  margin: 0;
  font-style: italic;
  color: #1f2937;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0fdf4;
  color: #10B981;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* 提示框样式 */
.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid;
}

.alert-success {
  background: #f0fdf4;
  border-left-color: #10B981;
  color: #166534;
}

.alert-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

.alert-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

/* 代码块样式 */
.code-block {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
  overflow-x: auto;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  line-height: 1.5;
}

/* 高亮文本 */
.highlight {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.2));
  padding: 0 4px;
  border-radius: 4px;
  font-weight: 500;
}

/* 进度条样式 */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #059669);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* 表格响应式容器 */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  border-top-color: #10B981;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #10B42A;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* 下拉菜单样式 - 为未来模块扩展预留接口 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}

.dropdown-content a {
  color: #374151;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #f0fdf4;
  color: #10B981;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* 模块扩展预留导航项样式 */
.module-extension {
  position: relative;
}

.module-extension::after {
  content: "";
  display: inline-block;
  margin-left: 5px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 3px solid currentColor;
  vertical-align: middle;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .sub-nav-link {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .info-card {
    padding: 15px;
  }

  .btn-primary, .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
  }

  .deployment-table,
  .cost-table {
    font-size: 14px;
  }

  .deployment-table th,
  .deployment-table td,
  .cost-table th,
  .cost-table td {
    padding: 8px 10px;
  }

  /* 移动端下拉菜单样式 */
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    background: #f3f4f6;
    margin-top: 0;
  }

  .dropdown:hover .dropdown-content {
    display: block;
  }
}

@media (max-width: 640px) {
  footer .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  footer .social-links {
    margin-top: 15px;
  }
}