/* custom.css - 完整复刻原版风格，基于Bootstrap 5 */
:root {
  --primary: #ff0000;
  --secondary: #0c1239;
  --dark-bg: #0c1239;
  --gray-light: #f7f7f7;
  --text-dark: #222;
  --text-gray: #555;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  color: var(--text-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

.main-color {
  color: var(--primary);
}
.bluebg {
  background: var(--secondary);
}

/* Preloader */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff center no-repeat;
  z-index: 9999;
  display: none;
}

/* Topbar */
.topbar {
  background: var(--secondary);
  color: #dde2fc;
  padding: 8px 0;
  font-size: 14px;
}
.topbar .contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.topbar .contact-list li i {
  color: var(--primary);
  margin-right: 8px;
}

/* Header */
.site-header {
  padding: 20px 0;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.logo img {
  max-height: 50px;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 25px;
}
.main-nav ul li {
  position: relative;
}
.main-nav ul li a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-dark);
  transition: 0.3s;
  text-decoration-line: none;
}
.main-nav ul li.active a,
.main-nav ul li a:hover {
  color: var(--primary);
}
.main-nav .has-children > a i {
  font-size: 12px;
  margin-left: 5px;
}
.sub-menu {
  position: absolute;
  top: 150%;
  left: 0;
  width: 240px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 100;
  padding: 10px 0;
}
.main-nav ul li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: 100%;
}
.sub-menu li {
  display: block;
  padding: 8px 20px;
}
.sub-menu li a {
  text-transform: none;
  font-weight: 500;
}
.btn-quote {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 0;
  transition: 0.3s;
}
.btn-quote:hover {
  background: #cc0000;
}
.navbar-toggler {
  border: none;
  background: transparent;
}
.navbar-icon {
  display: inline-block;
  width: 30px;
  height: 24px;
  position: relative;
}
.navbars-line {
  display: block;
  width: 100%;
  height: 2px;
  background: #222;
  position: relative;
  top: 50%;
}
.navbars-line::before,
.navbars-line::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background: #222;
  left: 0;
}
.navbars-line::before {
  top: -8px;
}
.navbars-line::after {
  bottom: -8px;
}

/* Mobile menu offcanvas */
.mobile-menu {
  list-style: none;
  padding: 0;
}
.mobile-menu li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.mobile-menu a {
  color: #222;
  font-weight: 500;
}
.btn-quote-mobile {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
  margin-top: 15px;
}

/* Hero Carousel */
.hero-slider .carousel-item {
  height: 600px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slider .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}
.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: left;
  left: 10%;
  right: auto;
}
.carousel-caption h2 {
  font-size: 50px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.carousel-caption p {
  font-size: 24px;
  color: #fff;
}
@media (max-width: 768px) {
  .carousel-caption h2 {
    font-size: 32px;
  }
  .hero-slider .carousel-item {
    height: 400px;
  }
}

/* Sections */
.sec-padd {
  padding: 70px 0;
}
.section-title-light {
  color: #fff;
  font-size: 36px;
  margin-bottom: 20px;
}
.highlight-text {
  border-left: 3px solid var(--primary);
  padding-left: 25px;
  font-size: 18px;
  font-weight: 300;
  color: #fff;
}
.welcome-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
}
.welcome-section .lead {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
}

/* Our Core SERVICES */
.services-section .service-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px 20px;
  border: 1px solid #232951;
  transition: 0.3s;
  height: auto;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}
.services-section .service-card:hover {
  border-color: var(--primary);
}
.service-card i {
  font-size: 50px;
  color: #fff;
  margin-bottom: 20px;
}
.service-card h4 {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}
.service-card p {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
}
.service-card ul {
  margin-top: auto;
  padding-left: 20px;
  list-style: disc;
}
.service-card ul li {
  color: #ddd;
  font-size: 13px;
  margin-bottom: 5px;
}
@media (max-width: 768px) {
  .services-section .service-card {
    min-height: auto;
  }
}

/* ========== 文化部分重构 ========== */
.culture-section {
  text-align: center;
}
.culture-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
}
.culture-box-large {
  background: transparent;
  padding: 20px;
  margin-bottom: 30px;
}
.culture-box-large i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}
.culture-box-large h4 {
  font-size: 24px;
  margin-bottom: 15px;
}
.culture-box-large p {
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}
.culture-values {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}
.value-item {
  flex: 0 1 180px;
  background: transparent;
  padding: 20px 15px;
  text-align: center;
  border: 1px solid #eee;
  transition: 0.3s;
}
.value-item:hover {
  border-color: var(--primary);
}
.value-item i {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  display: block;
}
.value-item h5 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.value-item p {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
}
/* 响应式 */
@media (max-width: 768px) {
  .culture-values {
    gap: 15px;
  }
  .value-item {
    flex-basis: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}
/* ========== 文化部分结束 ========== */

/* Counter */
.counter-section {
  background: url("/www.greathensen.com/images/bg/count-bg-1.jpg") center/cover fixed;
  padding: 80px 0;
  color: #fff;
  text-align: center;
}
.counter-section h2 {
  color: #fff;
  font-size: 42px;
  padding: 0 15px;
}
.counter-value {
  font-size: 60px;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  line-height: 1;
}
.counter-box h4 {
  color: #fff;
  background: var(--primary);
  display: inline-block;
  padding: 5px 20px;
  margin-top: 15px;
  font-size: 16px;
}

/* Why choose us */
.whyus-section h2 {
  font-size: 36px;
  margin-bottom: 30px;
}
.whyus-item {
  margin-bottom: 30px;
  padding-left: 70px;
  position: relative;
}
.whyus-item i {
  position: absolute;
  left: 0;
  top: 5px;
  font-size: 40px;
  color: var(--primary);
}
.quote-form-box {
  background: #f7f7f7;
  padding: 40px 30px;
}
.quote-form-box h2 {
  margin-bottom: 25px;
}
.quote-form-box .form-control {
  border: 1px solid #ececec;
  height: 45px;
}
.quote-form-box textarea {
  height: 120px;
}
.btn-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 30px;
  font-weight: 500;
  transition: 0.3s;
}
.btn-submit:hover {
  background: #cc0000;
}

/* Partners */
.partners-section {
  padding: 40px 0;
}
.partners-section img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: 0.3s;
}
.partners-section img:hover {
  opacity: 1;
}

/* Testimonials with background images */
.testimonials-section {
  background: transparent;
}
.testimonial-slide {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 80px 0;
}
.testimonial-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 18, 57, 0.85);
  z-index: 1;
}
.testimonial-card {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #fff;
}
.testimonial-card i,
.testimonial-card p,
.testimonial-card h5,
.testimonial-card span {
  color: #fff;
}
.testimonial-card .stars i {
  color: #ffc107;
}
.testimonial-card i.fa-quote-left {
  font-size: 40px;
  opacity: 0.6;
  margin-bottom: 20px;
}
.testimonial-card p {
  font-size: 18px;
  font-style: italic;
}
.testimonial-card h5 {
  margin-top: 20px;
  font-weight: 700;
}

/* News grid */
.news-section h2 {
  font-size: 36px;
  position: relative;
  padding-bottom: 15px;
}
.news-section h2:after {
  content: "";
  width: 70px;
  height: 2px;
  background: var(--primary);
  position: absolute;
  bottom: 0;
  left: 0;
}
.news-card {
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 30px;
  position: relative;
}
.news-card img {
  width: 100%;
}
.news-date {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  text-align: center;
  font-weight: bold;
}
.news-card h4 {
  padding: 15px 15px 5px;
}
.news-card p {
  padding: 0 15px;
}
.read-more {
  display: inline-block;
  margin: 10px 15px 20px;
  color: var(--primary);
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: #fff;
}
.footer-top {
  border-bottom: 1px solid #232951;
  padding: 50px 0 40px;
}
.footer-top i {
  font-size: 38px;
  color: var(--primary);
  float: left;
  margin-right: 15px;
}
.footer-top h4,
.footer-top p {
  margin-left: 55px;
}
.footer-widgets {
  padding: 70px 0 40px;
}
.footer-widgets h4 {
  color: #fff;
  margin-bottom: 25px;
  font-size: 20px;
}
.footer-widgets ul {
  list-style: none;
  padding: 0;
}
.footer-widgets ul li {
  margin-bottom: 10px;
}
.footer-widgets ul li a {
  color: #ddd;
  transition: 0.3s;
}
.footer-widgets ul li a:hover {
  color: var(--primary);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-grid img {
  width: 100%;
  transition: 0.3s;
}
.newsletter-form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px;
  color: #fff;
}
.newsletter-form button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 0 20px;
}
.social-links a {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  margin-right: 5px;
  transition: 0.3s;
}
.social-links a:hover {
  background: var(--primary);
  border-color: var(--primary);
}
.copyright {
  background: #232951;
  padding: 20px 0;
  font-size: 14px;
}
.copyright a {
  color: var(--primary);
}

/* Back to top */
.backtotop {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #160f09;
  border: 2px solid var(--primary);
  color: var(--primary);
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}
.backtotop.show-scroll {
  opacity: 1;
  visibility: visible;
}
.backtotop:hover {
  color: #fff;
  background: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
  .sec-padd {
    padding: 50px 0;
  }
  .counter-section h2 {
    font-size: 32px;
  }
}
@media (max-width: 768px) {
  .topbar .contact-list {
    flex-direction: column;
    gap: 5px;
  }
  .highlight-text {
    border-left: none;
    padding-left: 0;
    margin-top: 15px;
  }
}
/* 默认左对齐（已有样式） */
.carousel-caption {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  text-align: left;
  left: 10%;
  right: auto;
}

/* 第一个轮播项右对齐覆盖 */
.carousel-item.align-right .carousel-caption {
  text-align: right;
  left: auto;
  right: 10%;
}

/* 响应式微调 */
@media (max-width: 768px) {
  .carousel-item.align-right .carousel-caption {
    right: 5%;
  }
}