/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* CSS 变量定义 */
:root {
  --primary-color: #003366;
  --secondary-color: #00F5D4;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f5f5f5;
  --border-color: #e5e5e5;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* 基础样式 */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  letter-spacing: 0.02em;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* 段落样式 */
p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  background-color: #00e0c8;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 245, 212, 0.3);
  color: var(--primary-color);
}

/* 导航栏样式 */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.logo span:first-child {
  color: var(--primary-color);
}

.logo span:last-child {
  color: var(--secondary-color);
  margin-left: 0.5rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* 移动端导航 */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--bg-color);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  z-index: 1001;
  padding: 2rem;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

.mobile-menu-links {
  list-style: none;
  margin-top: 3rem;
}

.mobile-menu-links li {
  margin-bottom: 1.5rem;
}

.mobile-menu-links a {
  font-size: 1.2rem;
  font-weight: 500;
}

/* 遮罩层 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
}

.overlay.active {
  display: block;
}

/* 首页英雄区 */
.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* 服务板块 */
.services {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 51, 102, 0.1);
  border-left: 4px solid var(--secondary-color);
}

/* 原理板块 */
.principle {
  padding: 6rem 0;
}

.principle-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 案例板块 */
.cases {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.case-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.case-image {
  height: 200px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--secondary-color);
}

.case-content {
  padding: 1.5rem;
}

.case-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 新闻板块 */
.news {
  padding: 6rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.news-card {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-date {
  padding: 1rem 1.5rem 0;
  color: var(--text-light);
  font-size: 0.9rem;
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* 透明服务与对比 */
.transparent-services {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.service-table {
  background-color: var(--bg-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}

.service-table table {
  width: 100%;
  border-collapse: collapse;
}

.service-table th,
.service-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.service-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

.service-table tr:last-child td {
  border-bottom: none;
}

/* FAQ 模块 */
.faq {
  padding: 6rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-question {
  background-color: var(--bg-light);
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq-question:hover {
  background-color: #e8f4f8;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background-color: var(--bg-color);
}

.faq-answer.active {
  max-height: 200px;
  padding: 1.5rem;
}

.faq-question i {
  transition: var(--transition);
}

.faq-question.active i {
  transform: rotate(180deg);
}

/* 联系板块 */
.contact {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-item i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.contact-form {
  background-color: var(--bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(0, 245, 212, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* 页脚 */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo span:first-child {
  color: white;
}

.footer-logo span:last-child {
  color: var(--secondary-color);
  margin-left: 0.5rem;
}

.footer-links h4 {
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */
@media (max-width: 768px) {
  /* 导航栏 */
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  /* 英雄区 */
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  /* 联系板块 */
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  /* 服务表格 */
  .service-table {
    overflow-x: auto;
  }
  
  /* 标题大小 */
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  /* 英雄区 */
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* 板块 padding */
  .services,
  .principle,
  .cases,
  .news,
  .transparent-services,
  .faq,
  .contact {
    padding: 4rem 0;
  }
  
  /* 卡片间距 */
  .services-grid,
  .principle-steps,
  .cases-grid,
  .news-grid {
    gap: 1.5rem;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* 延迟动画 */
.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #002244;
}

/* 图片替代文字按钮 */
.text-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
  text-align: center;
}

.text-button:hover {
  background-color: #002244;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 51, 102, 0.3);
  color: white;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(0, 245, 212, 0.1);
  color: var(--secondary-color);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* 面包屑导航 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb span:last-child {
  color: var(--primary-color);
  font-weight: 500;
}

/* 404页面 */
.error-404 {
  text-align: center;
  padding: 6rem 0;
}

.error-404 h1 {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.error-404 p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* 加载动画 */
.loader {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-radius: 50%;
  border-top: 4px solid var(--secondary-color);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 辅助类 */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-secondary {
  color: var(--secondary-color);
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #ffffff;
    --text-light: #b0b0b0;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --border-color: #333333;
  }
  
  .service-card,
  .case-card,
  .news-card,
  .contact-info,
  .contact-form {
    background-color: var(--bg-light);
  }
  
  .faq-question {
    background-color: #2a2a2a;
  }
  
  .faq-question:hover {
    background-color: #333333;
  }
  
  .faq-answer {
    background-color: var(--bg-light);
  }
  
  .service-table {
    background-color: var(--bg-light);
  }
  
  .form-group input,
  .form-group textarea {
    background-color: #2a2a2a;
    border-color: #444444;
    color: var(--text-color);
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: var(--secondary-color);
  }
}

/* 打印样式 */
@media print {
  header,
  footer,
  .btn {
    display: none;
  }
  
  .container {
    max-width: 100%;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}