/* 208企业网站模板 - 优化版 SEO适配 */
/* 全局样式 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #f5f7fa;
  font-size: 16px;
}

/* 容器 - 移动端优化 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* 头部样式 - 汉堡按钮右上角 */
.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  z-index: 1001;
}

.logo img {
  height: 36px;
  margin-right: 10px;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  gap: 5px;
  align-items: center;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.3s;
  font-size: 15px;
}

.nav-menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

/* 汉堡按钮 - 右上角 */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.menu-toggle i {
  display: block;
}

/* 移动端菜单优化 */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: calc(100vh - 60px);
    background: linear-gradient(180deg, #1e3c72 0%, #1a2a6c 100%);
    flex-direction: column;
    padding: 20px 0;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0,0,0,0.2);
    overflow-y: auto;
    gap: 0;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    width: 100%;
    padding: 15px 25px;
    border-radius: 0;
    border-left: 3px solid transparent;
    text-align: left;
  }

  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: #ff6b6b;
    transform: translateX(5px);
  }

  .menu-toggle {
    display: block;
  }
  
  .header {
    padding: 10px 0;
  }
}

/* 主要内容区域 - 减少内边距 */
.main-content {
  padding: 20px 0;
  min-height: 60vh;
}

@media (max-width: 768px) {
  .main-content {
    padding: 15px 0;
  }
}

/* 首页英雄区域 */
.hero-large {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.95), rgba(42, 82, 152, 0.9)), 
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%231a2a6c" width="100" height="100"/></svg>');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 40px 20px;
}

.hero-large h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-weight: 700;
  line-height: 1.2;
}

.hero-large p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-large {
    min-height: 50vh;
    padding: 30px 15px;
  }
  
  .hero-large h1 {
    font-size: 1.8rem;
  }
  
  .hero-large p {
    font-size: 1rem;
  }
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  font-size: 15px;
}

.btn:hover {
  background: linear-gradient(135deg, #ff5252, #ff4444);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 卡片样式 - 减少内边距 */
.card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.04);
  margin-bottom: 20px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-header {
  padding: 18px 20px;
  border-bottom: 2px solid #f0f2f5;
  background: linear-gradient(to right, #f8f9fa, #ffffff);
}

.card-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: #1a2a6c;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .card-header {
    padding: 15px;
  }
  
  .card-body {
    padding: 15px;
  }
  
  .card-footer {
    padding: 10px 15px;
  }
}

/* 列表项样式 */
.list-item {
  padding: 18px 0;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.3s;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background-color: rgba(30, 60, 114, 0.02);
  border-left: 3px solid #2a5298;
  padding-left: 15px;
}

.list-item h3 {
  margin: 0 0 10px 0;
  font-size: 1.15rem;
  line-height: 1.5;
}

.list-item h3 a {
  color: #1a2a6c;
  text-decoration: none;
  transition: color 0.3s;
}

.list-item h3 a:hover {
  color: #ff6b6b;
}

.list-item p {
  color: #666;
  margin: 0 0 10px 0;
  line-height: 1.7;
  font-size: 14px;
}

.meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.meta i {
  margin-right: 4px;
}

/* 网格布局 - 移动端优化 */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 25px;
  margin: 25px 0;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, #1e3c72 0%, #1a2a6c 100%);
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer h3 {
  color: white;
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 0 15px;
    margin-top: 30px;
  }
  
  .footer-content {
    gap: 25px;
  }
}

/* 面包屑 */
.breadcrumb {
  padding: 12px 0;
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.breadcrumb a {
  color: #1a2a6c;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #ff6b6b;
  text-decoration: underline;
}

/* 文章内容 - 减少内边距 */
.article-content {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .article-content {
    padding: 20px 15px;
    border-radius: 8px;
  }
}

.article-title {
  font-size: 1.9rem;
  color: #1a2a6c;
  margin: 0 0 15px 0;
  line-height: 1.4;
  font-weight: 700;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .article-title {
    font-size: 1.5rem;
  }
}

.article-meta {
  color: #666;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f2f5;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
}

.article-meta i {
  margin-right: 5px;
  color: #2a5298;
}

/* 内容区域 */
.content-body {
  line-height: 1.9;
  color: #444;
  font-size: 16px;
}

.content-body p {
  margin-bottom: 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.content-body h2 {
  margin: 30px 0 15px;
  color: #1a2a6c;
  font-size: 1.5rem;
  font-weight: 600;
  border-left: 4px solid #2a5298;
  padding-left: 12px;
}

.content-body h3 {
  margin: 25px 0 12px;
  color: #1a2a6c;
  font-size: 1.3rem;
  font-weight: 600;
}

.content-body ul, .content-body ol {
  margin: 15px 0;
  padding-left: 25px;
}

.content-body li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-body a {
  color: #2a5298;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.content-body a:hover {
  color: #ff6b6b;
  border-bottom-color: #ff6b6b;
}

/* 企业风格区块 */
.enterprise-section {
  padding: 50px 0;
  background: white;
}

.enterprise-section:nth-child(even) {
  background: #f8f9fa;
}

@media (max-width: 768px) {
  .enterprise-section {
    padding: 35px 0;
  }
}

.section-title {
  text-align: center;
  margin-bottom: 15px;
  color: #1a2a6c;
  font-size: 1.9rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #666;
  max-width: 650px;
  margin: 0 auto 35px;
  font-size: 15px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .section-subtitle {
    font-size: 14px;
  }
}

/* 服务卡片 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.service-card {
  text-align: center;
  padding: 35px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(42, 82, 152, 0.05), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-icon {
  font-size: 2.5rem;
  color: #2a5298;
  margin-bottom: 20px;
}

.service-icon i {
  display: inline-block;
  transition: transform 0.3s;
}

.service-card:hover .service-icon i {
  transform: scale(1.1) rotate(5deg);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #1a2a6c;
  font-weight: 600;
}

.service-card p {
  color: #666;
  line-height: 1.7;
  font-size: 14px;
}

/* 关于我们 */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

.about-content h2 {
  color: #1a2a6c;
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.about-content p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 15px;
  font-size: 15px;
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.user-info strong {
  color: #1a2a6c;
  font-size: 15px;
}

.answer-content {
  color: #444;
  line-height: 1.8;
  margin: 15px 0;
  font-size: 15px;
}

/* 图标样式优化 */
.meta i, .article-meta i {
  margin-right: 5px;
  color: #2a5298;
}

.service-icon i {
  display: inline-block;
  transition: transform 0.3s;
}

.service-card:hover .service-icon i {
  transform: scale(1.1) rotate(5deg);
}

/* 标签样式 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #2a5298, #1e3c72);
  color: white;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.badge i {
  margin-right: 4px;
  color: white;
}

.badge.badge-hot {
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
}

.badge.badge-new {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.badge.badge-featured {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 图片优化 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* SEO优化 - 语义化标签 */
article, section, nav, header, footer {
  display: block;
}

/* 可访问性优化 */
a:focus, button:focus {
  outline: 2px solid #2a5298;
  outline-offset: 2px;
}

/* 打印样式 */
@media print {
  .header, .footer, .menu-toggle, .btn {
    display: none;
  }
  
  .main-content {
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .service-card {
  animation: fadeIn 0.5s ease-out;
}

/* 响应式表格 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
  }
}

/* 代码块样式 */
code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

pre {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: none;
  padding: 0;
}
