/* ============================================================
   Wuhan Gemufeng Technology Co., Ltd - Global Stylesheet
   武汉市歌沐风科技有限公司 - 全局样式文件
   Theme: 未来轻科技·极简商务风
   ============================================================ */

/* ========== CSS Custom Properties (Design Tokens) ========== */
:root {
  /* Primary Brand Colors */
  --color-primary: #1377C8;
  --color-primary-rgb: 19, 119, 200;
  --color-primary-light: #40A9FF;
  --color-primary-light-rgb: 64, 169, 255;
  --color-primary-dark: #0D5A9A;

  /* Accent & Surface Colors */
  --color-accent-bg: #E8F2FB;
  --color-accent-bg-rgb: 232, 242, 251;

  /* Neutral Text Colors */
  --color-title: #182233;
  --color-body: #4A5568;
  --color-muted: #94A3B8;

  /* Page Background */
  --color-page-bg: #F7FAFE;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1377C8 0%, #40A9FF 100%);
  --gradient-glow: linear-gradient(180deg, rgba(19, 119, 200, 0.08) 0%, rgba(64, 169, 255, 0.02) 100%);
  --gradient-card: linear-gradient(135deg, rgba(232, 242, 251, 0.6) 0%, rgba(247, 250, 254, 0.9) 100%);
  --gradient-hero-overlay: linear-gradient(135deg, rgba(9, 25, 51, 0.85) 0%, rgba(13, 58, 110, 0.78) 50%, rgba(19, 119, 200, 0.65) 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(19, 119, 200, 0.06);
  --shadow-md: 0 4px 16px rgba(19, 119, 200, 0.08);
  --shadow-lg: 0 12px 40px rgba(19, 119, 200, 0.1);
  --shadow-glow: 0 0 30px rgba(64, 169, 255, 0.15);

  /* Spacing */
  --section-padding: 100px 0;
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* ========== Global Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background-color: var(--color-page-bg);
  color: var(--color-body);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ========== Full-Page Background System ========== */
.page-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.page-bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Overlay variants per page */
.bg-overlay-hero {
  background: var(--gradient-hero-overlay);
}

.bg-overlay-glass {
  background: rgba(247, 250, 254, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bg-overlay-light {
  background: rgba(247, 250, 254, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ========== Navigation Bar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.navbar-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  transition: color var(--transition-smooth);
}

.navbar.scrolled .navbar-logo {
  color: var(--color-title);
}

.navbar-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 12px rgba(19, 119, 200, 0.3);
}

.navbar-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.navbar-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .navbar-links a {
  color: var(--color-body);
}

.navbar.scrolled .navbar-links a:hover,
.navbar.scrolled .navbar-links a.active {
  color: var(--color-primary);
  background: var(--color-accent-bg);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-primary-light);
  border-radius: 1px;
}

/* Mobile menu toggle */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.navbar.scrolled .navbar-toggle span {
  background: var(--color-title);
}

/* ========== Section Common Styles ========== */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 20px;
  background: var(--color-accent-bg);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 1.08rem;
  color: var(--color-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== Hero Section (Homepage) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 120px 32px 80px;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 12px rgba(64, 169, 255, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px rgba(64, 169, 255, 0.4); }
  50% { box-shadow: 0 0 20px rgba(64, 169, 255, 0.8); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero-title span {
  background: linear-gradient(135deg, #40A9FF 0%, #7EC8FF 50%, #40A9FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(19, 119, 200, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(19, 119, 200, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ========== Feature Cards ========== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid rgba(19, 119, 200, 0.06);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 119, 200, 0.15);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--color-primary);
  transition: all var(--transition-smooth);
}

.card:hover .card-icon {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ========== Service Detail Cards ========== */
.service-card {
  display: flex;
  gap: 40px;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 32px;
  border: 1px solid rgba(19, 119, 200, 0.06);
  transition: all var(--transition-smooth);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 119, 200, 0.15);
}

.service-card-img {
  width: 280px;
  height: 200px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.service-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 119, 200, 0.05) 0%, transparent 100%);
}

.service-card-body {
  flex: 1;
}

.service-card-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  padding: 4px 14px;
  background: var(--color-accent-bg);
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 50px;
}

/* ========== Stats Row ========== */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 48px 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 8px;
  font-weight: 500;
}

/* ========== Contact Info Cards ========== */
.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  border: 1px solid rgba(19, 119, 200, 0.06);
  transition: all var(--transition-smooth);
}

.contact-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 119, 200, 0.15);
  transform: translateY(-4px);
}

.contact-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
  color: var(--color-primary);
  transition: all var(--transition-smooth);
}

.contact-card:hover .contact-card-icon {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.contact-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 8px;
}

.contact-card-desc {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========== Footer ========== */
.footer {
  background: var(--color-title);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  text-align: center;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.footer-logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.footer-info {
  font-size: 0.9rem;
  margin-bottom: 8px;
  line-height: 1.6;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== Page Banner (sub pages) ========== */
.page-banner {
  padding: 140px 32px 80px;
  text-align: center;
  position: relative;
}

.page-banner-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.page-banner-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Content Container ========== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== About Page Specific ========== */
.about-block {
  display: flex;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-block-reverse {
  flex-direction: row-reverse;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 16px;
}

.about-text p {
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.9;
  margin-bottom: 12px;
}

.about-visual {
  flex: 1;
  min-height: 320px;
  border-radius: var(--radius-xl);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(19, 119, 200, 0.08) 0%, transparent 100%);
}

/* ========== Pillars Grid ========== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid rgba(19, 119, 200, 0.06);
  transition: all var(--transition-smooth);
  text-align: center;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(19, 119, 200, 0.15);
}

.pillar-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-accent-bg);
  line-height: 1;
  margin-bottom: 8px;
  transition: color var(--transition-smooth);
}

.pillar-card:hover .pillar-num {
  color: rgba(19, 119, 200, 0.15);
}

.pillar-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-title);
  margin-bottom: 8px;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========== Scroll Reveal Animations ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ========== Divider ========== */
.divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 0 auto 32px;
}

.divider-left {
  margin: 0 0 32px 0;
}

/* ========== Technology Pattern Background ========== */
.tech-pattern {
  position: relative;
}

.tech-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(19, 119, 200, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(64, 169, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* ========== Responsive Design ========== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
  .page-banner-title { font-size: 2.2rem; }
  .service-card { flex-direction: column; padding: 32px; }
  .service-card-img { width: 100%; height: 200px; }
  .about-block { flex-direction: column; }
  .about-block-reverse { flex-direction: column; }
  .about-visual { width: 100%; min-height: 260px; }
  .stats-row { gap: 40px; }
}

@media (max-width: 768px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 100px 32px 32px;
    gap: 4px;
    transition: right var(--transition-smooth);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-links.open {
    right: 0;
  }

  .navbar-links a {
    color: var(--color-body) !important;
    padding: 12px 18px;
    width: 100%;
  }

  .navbar-links a:hover,
  .navbar-links a.active {
    background: var(--color-accent-bg);
    color: var(--color-primary) !important;
  }

  .navbar-toggle { display: flex; }

  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.7rem; }
  .page-banner-title { font-size: 1.8rem; }
  .hero-desc { font-size: 1rem; }
  .section { padding: 60px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 28px; }
  .stat-number { font-size: 2.2rem; }
  .container { padding: 0 20px; }
  .navbar-container { padding: 0 20px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.7rem; }
  .hero { padding: 100px 16px 60px; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
  .page-banner { padding: 120px 16px 60px; }
}
