/* ============================================
   浮力云智 - 公司网站样式
   基于logo配色：淡紫到青绿渐变 + 深海军蓝
   ============================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --color-navy: #1E2746;
  --color-navy-light: #2D3856;
  --color-periwinkle: #8B9BD6;
  --color-sage: #7BA3A0;
  --color-mauve: #A8A0B8;
  --color-white: #FFFFFF;
  --color-soft-bg: #F5F6FA;
  --color-soft-bg-2: #EEF0F7;
  --color-text: #3A3F55;
  --color-text-light: #6B7280;
  --color-border: #E5E7EB;

  --gradient-primary: linear-gradient(135deg, #8B9BD6 0%, #7BA3A0 100%);
  --gradient-hero: linear-gradient(160deg, #F5F6FA 0%, #FFFFFF 40%, #EFF2F8 100%);
  --gradient-dark: linear-gradient(135deg, #1E2746 0%, #2D3856 100%);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(30, 39, 70, 0.06);
  --shadow-md: 0 4px 20px rgba(30, 39, 70, 0.08);
  --shadow-lg: 0 12px 40px rgba(30, 39, 70, 0.12);
  --shadow-glow: 0 0 30px rgba(139, 155, 214, 0.25);

  --font-sans: "Plus Jakarta Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
}

/* ---------- 重置 ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

/* ---------- 通用 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-alt {
  background: var(--color-soft-bg);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-periwinkle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(139, 155, 214, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(139, 155, 214, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-periwinkle);
  color: var(--color-periwinkle);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 38px;
  width: auto;
}

.nav-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-periwinkle);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 14px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
  animation: blobFloat 12s ease-in-out infinite;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: var(--color-periwinkle);
  top: -120px;
  right: -80px;
}

.hero-blob-2 {
  width: 420px;
  height: 420px;
  background: var(--color-sage);
  bottom: -100px;
  left: -60px;
  animation-delay: -4s;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--color-mauve);
  top: 40%;
  left: 50%;
  animation-delay: -8s;
  opacity: 0.25;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 155, 214, 0.3);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 19px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 72px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}

.hero-stat .label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-visual-card {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-visual-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 300px;
  height: 300px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.about-visual-card .card-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.about-visual-card .card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.about-visual-card .card-desc {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.about-visual-card .card-list {
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.about-visual-card .card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.85;
  padding: 6px 0;
}

.about-visual-card .card-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-periwinkle);
  flex-shrink: 0;
}

.about-text .section-tag {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.about-feature .icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.about-feature .text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 4px;
}

.about-feature .text p {
  font-size: 13px;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* ---------- 解决方案 ---------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.solution-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.solution-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(139, 155, 214, 0.3);
}

.solution-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.solution-tag {
  padding: 6px 14px;
  background: var(--color-soft-bg);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-periwinkle);
}

/* ---------- 核心优势 ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  background: var(--gradient-primary);
  transform: scale(1.1);
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.advantage-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- 联系我们 ---------- */
.contact-wrapper {
  display: flex;
  justify-content: center;
}

.contact-info {
  background: var(--gradient-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  max-width: 680px;
  width: 100%;
}

.contact-info::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
}

.contact-info h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.contact-info > p {
  font-size: 15px;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.contact-item .value {
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
}

.contact-form-wrap {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 48px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.contact-form-wrap > p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-soft-bg);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-periwinkle);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(139, 155, 214, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.form-success {
  display: none;
  padding: 16px;
  background: rgba(123, 163, 160, 0.1);
  border: 1px solid var(--color-sage);
  border-radius: var(--radius-sm);
  color: var(--color-sage);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin-top: 16px;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  height: 36px;
}

.footer-brand .footer-logo .logo-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--color-periwinkle);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 13px;
}

.footer-bottom .icp a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-bottom .icp a:hover {
  color: var(--color-periwinkle);
}

.footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ---------- 滚动动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 968px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    border-top: 1px solid var(--color-border);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .hero-stats {
    gap: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .section-title {
    font-size: 30px;
  }

  .about-text h2 {
    font-size: 28px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: 32px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-stat .num {
    font-size: 28px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
