/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo h2 {
  color: #ff6b35;
  font-size: 24px;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: #ff6b35;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff6b35;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: 0.3s;
}

/* 首页版块样式 */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: #ff6b35;
  color: white;
}

.btn-primary:hover {
  background: #e55a2b;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: #667eea;
}

.software-preview {
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.software-preview:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.preview-header {
  background: #f8f9fa;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #e9ecef;
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dee2e6;
}

.preview-dots span:first-child {
  background: #ff5f56;
}

.preview-dots span:nth-child(2) {
  background: #ffbd2e;
}

.preview-dots span:last-child {
  background: #27ca3f;
}

.preview-title {
  color: #666;
  font-size: 14px;
}

.preview-content {
  padding: 40px 20px;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-item {
  text-align: center;
  color: #333;
}

.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
}

/* 软件功能版块样式 */
.features {
  padding: 100px 0;
  background: #f8f9fa;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  text-align: center; /* 添加文本居中对齐 */
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  margin-left: auto; /* 添加水平居中 */
  margin-right: auto;
}

.feature-icon div {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  position: relative;
}

.feature-icon div::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background: #ff6b35;
  border-radius: 4px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  text-align: center; /* 确保标题居中 */
}

.feature-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center; /* 确保描述文本居中 */
}

.feature-card ul {
  list-style: none;
  display: inline-block; /* 添加功能列表居中样式 */
  text-align: left;
  margin: 0 auto;
}

.feature-card li {
  color: #666;
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.feature-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #ff6b35;
  font-weight: bold;
}

/* 联系我们版块样式 */
.contact {
  padding: 100px 0;
  background: white;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 60px;
}

.qr-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 20px;
}

.qr-section {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
}

.qr-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 25px;
}

.qr-code-container {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
}

.qr-code {
  flex-shrink: 0;
}

.qr-code img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-info {
  text-align: left;
}

.wechat-id,
.group-name {
  font-size: 16px;
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 8px;
}

.qr-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 30px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: #e9ecef;
  transform: translateY(-5px);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon div {
  width: 30px;
  height: 30px;
  background: white;
  border-radius: 6px;
}

.contact-details h4 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.contact-details p {
  font-size: 16px;
  color: #ff6b35;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-details span {
  font-size: 14px;
  color: #666;
}

.contact-form {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 15px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
}

.btn-full {
  width: 100%;
}

/* 信息资讯版块样式 */
.news {
  padding: 100px 0;
  background: #f8f9fa;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.news-grid-more {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.news-grid-more.show {
  opacity: 1;
  max-height: 2000px;
}

.news-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.news-card.featured {
  grid-column: span 2;
}

.news-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.news-content {
  padding: 25px;
}

.news-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.news-date {
  color: #666;
  font-size: 14px;
}

.news-category {
  background: #ff6b35;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.news-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.read-more {
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #e55a2b;
}

/* 添加更多资讯按钮样式 */
.news-more {
  text-align: center;
  margin-top: 50px;
}

.news-more .btn {
  padding: 15px 40px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.news-more .btn.expanded {
  background: #e55a2b;
}

/* 资讯列表页面样式 */
.news-list-page {
  padding: 120px 0 80px;
  background: #f8f9fa;
  min-height: 100vh;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
}

.breadcrumb a {
  color: #ff6b35;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.news-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 20px;
  border: 2px solid #e9ecef;
  background: white;
  color: #666;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #ff6b35;
  background: #ff6b35;
  color: white;
}

.news-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.page-btn {
  padding: 10px 20px;
  border: 2px solid #e9ecef;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: #ff6b35;
  color: #ff6b35;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 10px;
}

.page-number {
  width: 40px;
  height: 40px;
  border: 2px solid #e9ecef;
  background: white;
  color: #666;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.page-number:hover,
.page-number.active {
  border-color: #ff6b35;
  background: #ff6b35;
  color: white;
}

/* 资讯详情页面样式 */
.news-detail-page {
  padding: 120px 0 80px;
  background: white;
  min-height: 100vh;
}

.news-detail-content {
  max-width: 1200px;
  margin: 40px auto 80px;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.article-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.article-title {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.article-category {
  background: #ff6b35;
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.article-content {
  line-height: 1.8;
  color: #333;
  font-size: 16px;
}

.article-content h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 30px 0 15px;
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 25px 0 12px;
}

.article-content p {
  margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
  margin: 15px 0;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 8px;
}

.related-news {
  max-width: 1200px;
  margin: 0 auto;
}

.related-news h3 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* 页脚样式 */
.footer {
  background: #2c3e50;
  color: white;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ff6b35;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-section p {
  color: #bdc3c7;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 8px;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #ff6b35;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  background: #34495e;
  padding: 10px 15px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.social-link:hover {
  background: #ff6b35;
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
  color: #bdc3c7;
}

/* 弹窗样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
}

.modal-header {
  padding: 30px 30px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

.modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  padding-right: 20px;
}

.modal-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  background: none;
  border: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.modal-close:hover {
  opacity: 1;
}

.modal-body {
  padding: 30px;
  max-height: calc(80vh - 120px);
  overflow-y: auto;
}

.modal-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-meta span {
  font-size: 14px;
  color: #666;
  background: #f8f9fa;
  padding: 6px 12px;
  border-radius: 20px;
}

.modal-article-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  white-space: pre-wrap; /* 保留换行符和空格 */
  word-wrap: break-word; /* 长单词换行 */
}

.modal-article-content h3 {
  color: #ff6b35;
  margin: 25px 0 15px;
  font-size: 20px;
}

.modal-article-content p {
  margin-bottom: 15px;
}

.modal-article-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.modal-article-content li {
  margin-bottom: 8px;
}

/* 弹窗动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 弹窗响应式 */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    max-height: 85vh;
  }

  .modal-header {
    padding: 20px 20px 15px;
  }

  .modal-header h2 {
    font-size: 20px;
  }

  .modal-body {
    padding: 20px;
    max-height: calc(85vh - 100px);
  }

  .modal-meta {
    flex-direction: column;
    gap: 10px;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .qr-codes {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .qr-section {
    padding: 25px 20px;
  }

  .qr-code-container {
    flex-direction: column;
    gap: 20px;
  }

  .qr-info {
    text-align: center;
  }

  .qr-code img {
    width: 150px;
    height: 150px;
  }

  .contact-info {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-card.featured {
    grid-column: span 1;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .contact-form {
    padding: 30px 20px;
  }

  .news-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .news-list-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-numbers {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .news-detail-content {
    padding: 30px 20px;
    margin: 60px 20px 60px;
  }

  .article-title {
    font-size: 24px;
  }

  .article-meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .related-news-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .features,
  .contact,
  .news {
    padding: 60px 0;
  }

  .feature-card {
    padding: 30px 20px;
  }

  .news-grid {
    margin-top: 40px;
  }

  .qr-section {
    padding: 20px 15px;
  }

  .qr-code img {
    width: 130px;
    height: 130px;
  }

  .contact-info {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* 滚动行为 */
html {
  scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.news-card,
.contact-item {
  animation: fadeInUp 0.6s ease forwards;
}
