/* Odoo部署指南专用样式文件 */

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2937;
  background-color: #f9fafb;
}

/* 二级导航样式 */
.sub-nav {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.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;
}

/* 部署模式对比表格样式 */
.deployment-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;
}

.deployment-table th {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.deployment-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

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

.deployment-table tr:hover {
  background-color: #f3f4f6;
}

.deployment-table ul {
  margin: 0;
  padding-left: 20px;
}

.deployment-table li {
  margin-bottom: 5px;
}

/* 推荐指数样式 */
.recommendation-high {
  color: #10B981;
  font-weight: bold;
}

.recommendation-medium {
  color: #f59e0b;
  font-weight: bold;
}

.recommendation-low {
  color: #ef4444;
  font-weight: bold;
}

/* 成本对比表格样式 */
.cost-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;
}

.cost-table th {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.cost-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

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

.cost-table tr:hover {
  background-color: #f3f4f6;
}

/* 实施步骤样式 */
.implementation-step {
  transition: all 0.3s ease;
}

.implementation-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ项目样式 */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: #f9fafb;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .deployment-table,
  .cost-table {
    font-size: 14px;
  }
  
  .deployment-table th,
  .deployment-table td,
  .cost-table th,
  .cost-table td {
    padding: 8px 10px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .sub-nav-link {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #10B981;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #059669;
}

/* 按钮样式增强 */
.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);
}

/* 卡片样式 */
.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);
}

/* 列表样式增强 */
.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;
}

/* 进度条样式 */
.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);
}

/* 代码块样式 */
.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;
}

/* 提示框样式 */
.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;
}

/* 动画效果 */
@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);
  }
}