/* ============================================
   通用页面样式 - 标准内容页
   适用于: about, contact, news, index 等页面
   ============================================ */

/* ===== 公司简介部分 ===== */
.about {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.about h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #333;
  font-size: 2.5rem;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.about-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #555;
}

/* ===== 核心业务部分 ===== */
.services {
  padding: 60px 0;
}

.services h2,
.case-studies h2 {
  text-align: center;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  padding: 15px 15px 0;
  color: var(--primary-color);
}

.service-card p {
  padding: 10px 15px 20px;
}

/* ===== 成功案例部分 ===== */
.case-studies {
  padding: 60px 0;
  background-color: var(--light-color);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.case-card {
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: var(--box-shadow);
}

.case-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.case-card h3 {
  padding: 15px 15px 0;
}

.case-card p {
  padding: 10px 15px 20px;
}

/* ===== 页面标题（带背景图+渐变遮罩+光效） ===== */
.page-header {
  background: linear-gradient(135deg, rgba(10,31,92,0.88) 0%, rgba(21,53,160,0.82) 50%, rgba(30,94,255,0.78) 100%),
              url('../images/page-bg.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #fff;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at 20% 50%, rgba(91,140,255,0.18) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(30,94,255,0.12) 0%, transparent 40%);
  z-index: 0;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: 38px;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-header p {
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0.95;
}

/* 标题徽章 */
.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.badge {
  background: rgba(255,255,255,0.2);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.badge:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}

.badge i {
  margin-right: 6px;
}

/* ===== 关于我们页面样式 ===== */
.about-intro {
  padding: 60px 0;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 15px;
}

/* ===== 使命愿景部分 ===== */
.mission-vision {
  padding: 60px 0;
  background-color: var(--light-color);
  text-align: center;
}

.mission, .vision {
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.mission h2, .vision h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

/* ===== 核心价值观部分 ===== */
.core-values {
  padding: 60px 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.value-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.value-item:hover {
  transform: translateY(-10px);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 94, 255, 0.1);
  border-radius: 50%;
}

.value-icon img {
  width: 40px;
  height: 40px;
}

.value-item h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* ===== 发展历程部分 ===== */
.development-history {
  padding: 60px 0;
  background-color: var(--light-color);
}

.timeline {
  position: relative;
  padding: 30px 0;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  z-index: 2;
}

.timeline-content {
  width: 45%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  position: relative;
  margin-left: 60px;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: 60px;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* ===== 团队部分 ===== */
.team {
  padding: 60px 0;
}

.section-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-member {
  text-align: center;
}

.member-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--box-shadow);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  color: var(--primary-color);
  margin-bottom: 5px;
}

/* ===== 联系我们页面样式 ===== */
.contact-info {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.contact-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
}

.contact-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(30, 94, 255, 0.1);
  border-radius: 50%;
}

.contact-icon img {
  width: 40px;
  height: 40px;
}

.contact-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* ===== 联系表单部分 ===== */
.contact-form-section {
  padding: 60px 0;
  background-color: var(--light-color);
}

.contact-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  padding: 40px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
}

.btn-submit {
  padding: 12px 30px;
  font-size: 16px;
}

.form-success-message,
.form-error-message {
  grid-column: span 2;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center;
}

.form-success-message {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.form-error-message {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border: 1px solid var(--danger-color);
}

.form-loading {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(30, 94, 255, 0.2);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translateX(-50%) rotate(0deg); }
  100% { transform: translateX(-50%) rotate(360deg); }
}

/* ===== 地图部分 ===== */
.company-map {
  padding: 60px 0;
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.map-placeholder {
  height: 100%;
  background-color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}

/* ===== 新闻资讯页面样式 ===== */
.news-section {
  padding: 60px 0;
  background-color: var(--light-color);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-image img {
  transform: scale(1.05);
}

.news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 6px;
}

.news-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 15px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.news-content h3 {
  font-size: 1.15rem;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-card:hover .news-content h3 {
  color: var(--primary-color);
}

.news-content p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 15px;
}

.news-content .btn-outline {
  align-self: flex-start;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-content .btn-outline:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ===== 分页 ===== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
}

.page-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  user-select: none;
}

.page-item:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  border-color: transparent;
}

.page-item.next {
  width: auto;
  padding: 0 16px;
}

/* ===== 产品展示预览部分 ===== */
section.products {
  padding: 60px 0;
  background-color: var(--light-color);
}

.products-preview {
  margin-top: 30px;
}

.product-preview-item {
  display: flex;
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.product-preview-item img {
  width: 50%;
  height: 400px;
  object-fit: cover;
}

.product-preview-text {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-preview-text h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.product-preview-text p {
  margin-bottom: 30px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid, .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline:before {
    left: 30px;
  }

  .timeline-item {
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 30px;
  }

  .timeline-content {
    width: 85%;
    margin-left: 80px !important;
  }

  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-success-message,
  .form-error-message {
    grid-column: span 1;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .intro-content, .about-content {
    flex-direction: column;
  }

  .services-grid,
  .case-grid,
  .values-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-image {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
