/* ===============================
   黑龙江大数据产业发展有限公司官网首页样式
   Home.css - Modern, Responsive, Accessible
   =============================== */

:root {
  --primary: #0a3d62;
  --primary-dark: #062a43;
  --primary-light: #136ba8;
  --accent: #17a2b8;
  --accent-light: #5bc0de;
  --text: #2c3e50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e9ecef;
  --shadow: 0 10px 40px rgba(10, 61, 98, 0.08);
  --shadow-hover: 0 20px 60px rgba(10, 61, 98, 0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基础优化 */
.section-padding {
  padding: 80px 0;
}

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

/* 区块标题 */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title .section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}

.section-title .section-tag::before,
.section-title .section-tag::after {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 12px;
}

.section-title h2 {
  color: var(--primary);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 24px;
  }
  .section-title .section-tag::before,
  .section-title .section-tag::after {
    width: 15px;
  }
}

/* Hero 区域增强 */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section .swiper-container {
  width: 100%;
}

.hero-section .swiper-slide {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
}

.hero-section .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/home/hero-building.png') no-repeat right bottom;
  background-size: 45% auto;
  opacity: 0.25;
  pointer-events: none;
}

.hero-section .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.4; */
}

.hero-section .slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 15px;
}

.hero-section .slide-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-section .slide-content h1 span {
  color: var(--accent-light);
}

.hero-section .slide-content p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-section .btn-hero {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.hero-section .btn-hero:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
}

.hero-section .btn-hero-outline {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid rgba(255,255,255,0.5);
  margin-left: 15px;
}

.hero-section .btn-hero-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 768px) {
  .hero-section .swiper-slide {
    height: 450px;
  }
  .hero-section .slide-content h1 {
    font-size: 28px;
  }
  .hero-section .slide-content p {
    font-size: 16px;
  }
  .hero-section .btn-hero,
  .hero-section .btn-hero-outline {
    padding: 10px 25px;
    font-size: 14px;
  }
  .hero-section .btn-hero-outline {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* 统计数字区 */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.stat-item {
  text-align: center;
  color: #fff;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.stat-item .stat-icon {
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  margin: 0 auto 15px;
  font-size: 28px;
  color: var(--accent-light);
  backdrop-filter: blur(10px);
}

.stat-item .stat-number {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 5px;
  font-family: 'Arial', sans-serif;
}

.stat-item .stat-label {
  font-size: 16px;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .stat-item .stat-number {
    font-size: 32px;
  }
  .stat-item .stat-icon {
    width: 55px;
    height: 55px;
    line-height: 55px;
    font-size: 22px;
  }
}

/* 关于我们 */
.about-section {
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  /* background: url('../images/home/about-bg.png') no-repeat center; */
  background-size: cover;
  opacity: 0.08;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content h3 {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.about-content .lead {
  color: var(--text);
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 15px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.about-feature .feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  text-align: center;
  line-height: 50px;
  font-size: 20px;
  margin-right: 15px;
}

.about-feature .feature-text h4 {
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 5px;
  font-weight: 600;
}

.about-feature .feature-text p {
  font-size: 14px;
  margin-bottom: 0;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img {
  width: 100%;
  transition: var(--transition);
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-image .experience-badge {
  position: absolute;
  bottom: 30px;
  left: -20px;
  background: var(--accent);
  color: #fff;
  padding: 20px 30px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
}

.about-image .experience-badge strong {
  font-size: 36px;
  display: block;
  line-height: 1;
}

.about-image .experience-badge span {
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .about-image .experience-badge {
    left: 15px;
    bottom: 15px;
    padding: 15px 20px;
  }
  .about-image .experience-badge strong {
    font-size: 28px;
  }
}

/* 业务板块 */
.business-section {
  background: var(--bg-light);
}

.business-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.business-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
  z-index: -1;
}

.business-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.business-card:hover::before {
  transform: scaleX(1);
}

.business-card .card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--border);
  transition: var(--transition);
}

.business-card:hover .card-icon {
  border-color: var(--accent);
  box-shadow: 0 0 0 8px rgba(23, 162, 184, 0.1);
}

.business-card .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
}

.business-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.business-card .card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}

.business-card .card-link i {
  margin-left: 5px;
  transition: var(--transition);
}

.business-card:hover .card-link {
  color: var(--primary);
}

.business-card:hover .card-link i {
  transform: translateX(5px);
}

/* 项目案例 */
.cases-section {
  background: var(--bg-white);
}

.case-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  margin-bottom: 25px;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.case-card .case-img {
  position: relative;
  overflow: hidden;
  height: 260px;
}

.case-card .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.case-card:hover .case-img img {
  transform: scale(1.1);
}

.case-card .case-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(10, 61, 98, 0.9) 0%, rgba(10, 61, 98, 0.3) 50%, transparent 100%);
  opacity: 0.7;
  transition: var(--transition);
}

.case-card:hover .case-overlay {
  opacity: 0.95;
}

.case-card .case-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  color: #fff;
  z-index: 2;
}

.case-card .case-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.case-card .case-content p {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 0;
  line-height: 1.6;
}

.case-card .case-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

/* 新闻动态 */
.news-section {
  background: var(--bg-light);
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 25px;
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: transparent;
}

.news-card .news-date {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.news-card .news-date .date-day {
  font-size: 22px;
  color: var(--accent);
  margin-right: 10px;
  line-height: 1;
}

.news-card .news-date .date-my {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

.news-card h4 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.news-card h4 a {
  color: inherit;
  transition: var(--transition);
}

.news-card h4 a:hover {
  color: var(--accent);
}

.news-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 15px;
  flex-grow: 1;
}

.news-card .news-meta {
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-card .news-meta a {
  color: var(--accent);
  font-weight: 600;
}

/* 企业风采 */
.corporate-section {
  background: var(--bg-white);
}

.corporate-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
}

.corporate-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.corporate-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.corporate-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.corporate-item:hover img {
  transform: scale(1.1);
}

.corporate-item .corporate-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(10, 61, 98, 0.9), transparent);
  color: #fff;
  transform: translateY(100%);
  transition: var(--transition);
}

.corporate-item:hover .corporate-overlay {
  transform: translateY(0);
}

.corporate-item .corporate-overlay h5 {
  font-size: 16px;
  margin-bottom: 5px;
}

.corporate-item .corporate-overlay p {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .corporate-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .corporate-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media (max-width: 576px) {
  .corporate-gallery {
    grid-template-columns: 1fr;
  }
  .corporate-item:nth-child(1) {
    grid-column: span 1;
  }
}

/* 合作伙伴 */
.partners-section {
  background: var(--bg-light);
  padding: 60px 0;
}

.partners-section .section-title {
  margin-bottom: 40px;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.partner-item {
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  padding: 20px 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
  /* filter: grayscale(100%);
  opacity: 0.7; */
}

.partner-item:hover {
  filter: grayscale(0%);
  opacity: 1;
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.partner-item img {
  max-height: 600px;
  width: auto;
}

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/home/hero-building.png') no-repeat right bottom;
  background-size: 35% auto;
  opacity: 0.15;
}

.cta-section .cta-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-section p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-section .btn-cta {
  display: inline-block;
  padding: 15px 45px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  border: 2px solid var(--accent);
}

.cta-section .btn-cta:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(23, 162, 184, 0.3);
}

@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 26px;
  }
}

/* 查看更多按钮 */
.btn-more {
  display: inline-block;
  padding: 12px 35px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

.btn-more:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* 加载动画 */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 错误提示 */
.error-toast {
  position: fixed;
  top: 90px;
  right: 20px;
  background: #dc3545;
  color: #fff;
  padding: 15px 25px;
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
  z-index: 9999;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.error-toast.show {
  transform: translateX(0);
}

/* 辅助功能 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 导航优化 */
.navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08) !important;
}

/* 回到顶部增强 */
.scroll-top {
  cursor: pointer;
  transition: var(--transition);
}

.scroll-top:hover {
  color: var(--accent) !important;
}
