/* 蔚谷科技 hfweigu.com - Custom Modern Stylesheet */
:root {
  --primary-color: #2b5876;
  --secondary-color: #4e4376;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --dark-bg: #1a2238;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

/* Header & Navigation */
.header-top {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.header-top a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-top a:hover {
  color: var(--accent-color);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-nav .nav-link {
  font-size: 1.025rem;
  font-weight: 500;
  color: #1e293b;
  padding: 0.6rem 1rem !important;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color) !important;
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 0.75rem 0;
}

.dropdown-header {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.25rem 0.25rem;
}

.dropdown-item {
  font-size: 0.95rem;
  color: #334155;
  padding: 0.45rem 1.25rem;
}

.dropdown-item:hover {
  background-color: #f0f7ff;
  color: var(--accent-color);
}

/* Hero Carousel */
.hero-carousel .carousel-item {
  height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel .carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 34, 56, 0.88) 0%, rgba(43, 88, 118, 0.78) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-carousel .carousel-caption {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  max-width: 860px;
  padding: 0 1.5rem;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-carousel h1, .hero-carousel h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-carousel p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: #e2e8f0;
}

.hero-carousel .btn-hero {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
}

.hero-carousel .btn-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

/* Section Header Styles */
.section-title {
  position: relative;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-weight: 700;
  color: #0f172a;
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-title .title-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
  border-radius: 2px;
  margin: 0.5rem 0 1rem;
}

.section-title.text-center .title-divider {
  margin: 0.5rem auto 1rem;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Feature Cards & Service Blocks */
.feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 2.5rem 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1e293b;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Product & Service Cards */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
  border-color: #93c5fd;
}

.product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background-color: #f1f5f9;
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.85rem;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-card .btn-contact {
  align-self: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: 6px;
}

/* Tech Highlights */
.tech-block {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  height: 100%;
  transition: all 0.3s ease;
}

.tech-block:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.tech-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.tech-block:hover .tech-icon {
  background: var(--accent-color);
  color: #ffffff;
}

.tech-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.tech-content p {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* Advantage List */
.advantage-list {
  list-style: none;
  padding-left: 0;
}

.advantage-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 1rem;
  color: #334155;
  font-size: 0.975rem;
  line-height: 1.6;
}

.advantage-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: #10b981;
  font-size: 1.05rem;
}

/* Page Hero Banner / Breadcrumbs */
.page-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--primary-color) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  margin-bottom: 3rem;
}

.page-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

/* Footer */
.footer-main {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.925rem;
  margin-top: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1.25rem;
}

.footer-brand img {
  height: 44px;
}

.footer-title {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--accent-color);
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-contact address {
  line-height: 1.8;
  margin-bottom: 0;
  font-style: normal;
}

.footer-contact a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  background-color: #020617;
  padding: 1.5rem 0;
  border-top: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.875rem;
}

.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* Scroll To Top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  color: #ffffff;
}
