* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
  background-size: 100% 300%;
  animation: bodyGradient 15s ease infinite;
  overflow-x: hidden;
}

@keyframes bodyGradient {

  0%,
  100% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 0% 100%;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: linear-gradient(135deg, rgb(19 24 50 / 95%) 0%, rgb(22 31 50 / 95%) 100%);
  color: #fff;
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: box-shadow 0.3s ease, background 0.3s ease;
  backdrop-filter: blur(4px);
}

header.scrolled {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, rgba(108, 5, 15, 0.97) 0%, rgba(143, 12, 28, 0.97) 100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #fff 0%, #ffebee 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: textGradient 3s ease infinite;
}

@keyframes textGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s;
  position: relative;
  padding: 5px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  opacity: 0.9;
}

body.page-news nav a[href="news.html"],
body.page-solutions nav a[href="solutions.html"] {
  opacity: 1;
  color: #ffe0e5;
}

body.page-news nav a[href="news.html"]::after,
body.page-solutions nav a[href="solutions.html"]::after {
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
}

/* Hero Section */
.hero {
  background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.4), rgba(200, 16, 46, 0.5)), url('../images/banner1.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.btn-primary {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.btn-primary:hover {
  background: #fff;
  color: #c8102e;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section */
section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: 32px;
  background: linear-gradient(135deg, #c8102e 0%, #e91e63 50%, #c8102e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 300;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out 0.2s;
  animation: titleGradient 5s ease infinite;
}

@keyframes titleGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

section.visible .section-title {
  opacity: 1;
  transform: translateY(0);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c8102e, #e91e63, #c8102e, transparent);
  transition: width 0.8s ease-out 0.5s;
}

section.visible .section-title::after {
  width: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 18px;
  color: #555;
  line-height: 1.9;
}

.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.about-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(200, 16, 46, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 250, 0.95));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.info-card h4 {
  color: #c8102e;
  margin-bottom: 12px;
  font-size: 18px;
}

.info-card p {
  color: #666;
  line-height: 1.7;
}

/* News Section */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(200, 16, 46, 0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 24px;
}

.news-card .date {
  color: #999;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 8px;
}

.news-card h3 {
  color: #c8102e;
  margin-bottom: 10px;
}

.news-card p {
  color: #555;
  line-height: 1.6;
}

/* Solutions Section */
.solutions {
  background-color: #f8f8f8;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.solution-card {
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(200, 16, 46, 0.15);
}

.solution-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.solution-card-content {
  padding: 24px;
  text-align: left;
}

.solution-card h3 {
  color: #c8102e;
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 500;
}

.solution-card p {
  color: #666;
  line-height: 1.7;
}

.solution-card a {
  display: inline-block;
  margin-top: 12px;
  color: #c8102e;
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
footer {
  background: #1e1e1e;
  color: #e4eff1;
  padding: 60px 0 40px;
  font-size: 14px;
  position: relative;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 30px;
}

.footer-block h4 {
  font-size: 16px;
  color: #ffffff;
  margin-bottom: 16px;
  font-weight: 500;
}

.footer-block p,
.footer-block a {
  color: rgba(228, 239, 241, 0.85);
  line-height: 1.8;
  display: block;
  text-decoration: none;
}

.footer-block a:hover {
  color: #fff;
}

.footer-hotline {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  margin: 8px 0 12px;
  color: #7fe0ff;
}

.footer-copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(228, 239, 241, 0.6);
}

.footer-copyright p,
.footer-copyright a {
  color: rgba(228, 239, 241, 0.85);
  line-height: 1.8;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
.hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  .header-content {
    flex-direction: column;
    gap: 20px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }
}

