﻿/* 统一的Odoo页面样式 - CN/Odoo/ 所有页面共用 */
/* 品牌色：#10B981 (主绿) #059669 (深绿) */

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background: #f9fafb !important;
  background-image: none !important;
  color: #1f2937;
  line-height: 1.5;
  letter-spacing: -0.01em;
  font-size: 0.875rem;
}

/* 清除 platform-common.css 的暗色遮罩层 */
body::before {
  display: none !important;
}

/* 统一标题字体大小 */
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.875rem; }

/* 渐变背景 & 文本 */
.gradient-bg {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.gradient-text {
  background: linear-gradient(135deg, #10B981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 导航栏 */
#navbar, .biz-tab-navigation, .dropdown-content, .biz-tab-item { font-size: 0.95rem; }
#navbar a { font-size: 0.95rem !important; }
#navbar img { height: 35px !important; width: auto !important; }

.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;
}

/* 修复导航栏和内容之间的间距 */
.main-content-with-nav { padding-top: 95px; }

/* 二级导航样式 */
.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-decoration: none;
  display: inline-block;
}

.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;
}

/* 下拉菜单 */
.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 !important;
}

.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;
}

/* 章节标题 */
.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, .badge-hot, .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;
}

/* 卡片样式 */
.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;
}

.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;
}

.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);
}

.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);
}

/* 图标卡片 */
.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;
}

.faq-item { transition: all 0.3s ease; }
.faq-item:hover { background-color: #f9fafb; }

.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);
}

/* 统计数字 */
.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;
}

/* 表格样式（通用 + 部署专用） */
.data-table, .deployment-table, .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;
}

.data-table th, .deployment-table th, .cost-table th {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #fff;
  text-align: left;
  padding: 12px 15px;
  font-weight: 600;
}

.data-table td, .deployment-table td, .cost-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.data-table tr:nth-child(even), .deployment-table tr:nth-child(even), .cost-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.data-table tr:hover, .deployment-table tr:hover, .cost-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; }

/* 实施步骤 */
.implementation-step { transition: all 0.3s ease; }
.implementation-step: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; }

@keyframes spin { to { transform: rotate(360deg); } }
.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;
}

/* 滚动条 */
::-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; }

/* 页脚 */
footer { background: #1f2937; color: #f9fafb; padding: 40px 0 20px; }
footer h4 { color: #fff; margin-bottom: 20px; font-weight: 600; }
footer p, footer li { color: #d1d5db; margin-bottom: 10px; }
footer a { color: #d1d5db; transition: color 0.3s ease; }
footer a:hover { color: #10B981; }
footer .social-links a { display: inline-block; margin-right: 15px; font-size: 18px; }
footer .copyright { border-top: 1px solid #374151; padding-top: 20px; margin-top: 30px; text-align: center; color: #9ca3af; font-size: 14px; }

/* 响应式设计 */
@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; }
}
