/* 统一解决方案页面样式 - 基于根目录index.html设计风格 */
/* Color Scheme: Primary #10B981, Secondary #1D2129 */

/* 基础重置和字体设置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1D2129;
  background-color: #ffffff;
  line-height: 1.6;
}

/* 导航栏样式 - 保持与根目录一致 */
header#navbar {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 容器样式 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 主内容区样式 */
main {
  padding-top: 80px;
  min-height: calc(100vh - 80px);
}

/* 文档页面样式 - 紧凑设计 */
.doc-page-main {
  max-width: 1000px;
  margin: 30px auto 40px;
  padding: 0 20px;
}

/* 文档头部样式 - 优化字号和间距 */
.doc-page-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.doc-page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.3;
}

.doc-page-header p {
  font-size: 14px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* 文档内容区域 - 优化间距和阅读体验 */
.doc-content {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border: 1px solid #f1f5f9;
}

/* Word文档转换样式 - 紧凑设计 */
.WordSection1 {
  font-size: 14px;
  line-height: 1.5;
}

/* 优化大标题 */
.WordSection1 h1, 
.WordSection1 h2, 
.WordSection1 h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 16px 0 8px 0;
  color: #1e293b;
}

/* 优化段落 */
.WordSection1 p {
  margin: 6px 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

/* 优化表格样式 */
.WordSection1 table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 12px;
  overflow-x: auto;
  display: block;
}

.WordSection1 table th {
  background-color: #f8fafc;
  padding: 6px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
}

.WordSection1 table td {
  padding: 6px;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  line-height: 1.3;
}

/* 优化目录样式 */
.WordSection1 .MsoToc1,
.WordSection1 .MsoToc2 {
  font-size: 12px;
  margin: 4px 0;
}

/* 优化列表样式 */
.WordSection1 ul,
.WordSection1 ol {
  margin: 8px 0 8px 16px;
  font-size: 13px;
}

.WordSection1 li {
  margin: 4px 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.3;
}

/* 优化文档内部样式 - 紧凑设计 */
.document-header {
  margin-bottom: 15px;
}

.document-header h1 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

.document-header h2 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: #64748b;
}

.content-section {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.content-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.content-section h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1e293b;
}

.content-section h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #334155;
}

.content-section p {
  margin-bottom: 8px;
  font-size: 13px;
  color: #475569;
}

/* 优化note样式 */
.note {
  background-color: #f0fdf4;
  border-left: 3px solid #10B981;
  padding: 10px;
  margin: 10px 0;
  border-radius: 0 4px 4px 0;
}

.note strong {
  color: #065f46;
  font-size: 13px;
}

.note ul {
  margin: 6px 0 0 16px;
}

.note li {
  font-size: 13px;
  color: #166534;
  margin-bottom: 4px;
}

/* 联系方式样式 */
.contact-section {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  padding: 40px 20px;
  margin: 40px 0;
  border-radius: 12px;
  text-align: center;
  color: white;
}

.contact-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.contact-section p {
  font-size: 16px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 24px;
  width: 200px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.contact-card i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
  color: white;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.contact-card p {
  font-size: 14px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.contact-card .phone {
  font-size: 18px;
  font-weight: 700;
  color: white;
}

.contact-card img {
  max-width: 120px;
  margin: 0 auto 8px;
  display: block;
  border-radius: 8px;
}

/* 页脚样式 */
footer {
  background-color: #111827;
  color: #ffffff;
  padding-top: 40px;
  padding-bottom: 30px;
  margin-top: 40px;
  font-size: 13px;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
}

footer h4 {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid #374151;
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li {
  margin-bottom: 8px;
}

footer ul li a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

footer ul li a:hover {
  color: #ffffff;
}

footer ul li a i {
  margin-right: 6px;
  font-size: 11px;
}

/* 响应式设计 - 联系方式 */
@media (max-width: 768px) {
  .contact-section {
    padding: 30px 15px;
  }
  
  .contact-section h2 {
    font-size: 20px;
  }
  
  .contact-section p {
    font-size: 14px;
  }
  
  .contact-cards {
    gap: 16px;
  }
  
  .contact-card {
    width: 150px;
    padding: 18px;
  }
  
  .contact-card i {
    font-size: 24px;
  }
  
  .contact-card h3 {
    font-size: 14px;
  }
  
  .contact-card p {
    font-size: 13px;
  }
  
  .contact-card .phone {
    font-size: 16px;
  }
  
  .contact-card img {
    max-width: 100px;
  }
}

@media (max-width: 576px) {
  .contact-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .contact-card {
    width: 100%;
    max-width: 200px;
  }
}

/* 导航修复 - 确保链接正确 */
nav .nav-link {
  color: #1D2129;
  transition: color 0.3s ease;
}

nav .nav-link:hover {
  color: #10B981;
}

/* 响应式设计 - 优化移动端显示 */
@media (max-width: 768px) {
  .doc-page-header h1 {
    font-size: 20px;
  }
  
  .doc-page-header p {
    font-size: 13px;
  }
  
  .doc-content {
    padding: 15px;
  }
  
  .WordSection1 {
    font-size: 13px;
  }
  
  .WordSection1 table {
    font-size: 12px;
  }
  
  footer h4 {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  footer ul li a {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .doc-page-main {
    margin: 20px auto 30px;
    padding: 0 15px;
  }
  
  .doc-page-header h1 {
    font-size: 18px;
  }
  
  .doc-page-header p {
    font-size: 12px;
  }
  
  .doc-content {
    padding: 12px;
  }
  
  .WordSection1 {
    font-size: 12px;
  }
  
  .WordSection1 table {
    font-size: 11px;
  }
}

/* 工具类 */
.text-primary {
  color: #10B981;
}

.bg-primary {
  background-color: #10B981;
}

.border-primary {
  border-color: #10B981;
}

.hover\:text-primary:hover {
  color: #10B981;
}

.transition-all {
  transition: all 0.3s ease;
}

.duration-300 {
  transition-duration: 300ms;
}