/* ==========================================
   时刻第二世界 - 微信小程序服务商官网
   样式文件
   ========================================== */

:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --primary-light: #e6f9ef;
  --dark: #0b1f17;
  --text: #2b3a33;
  --text-light: #6b7a72;
  --bg-light: #f6faf8;
  --white: #ffffff;
  --border: #e3efe9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(7, 193, 96, 0.08);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #34d37e);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  background: linear-gradient(160deg, #f0fbf5 0%, #e4f6ee 55%, #d8f2e7 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.15) 0%, transparent 65%);
  animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -220px;
  left: -380px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(52, 211, 126, 0.12) 0%, transparent 65%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(20px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  background: var(--white);
  color: var(--primary);
  border: 1px solid rgba(7, 193, 96, 0.25);
  padding: 8px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 4px;
  margin-bottom: 20px;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  padding: 14px 38px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #34d37e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(7, 193, 96, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: #fff;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 760px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-item strong {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-item span {
  font-size: 14px;
  color: var(--text-light);
}

/* ---------- 通用区块 ---------- */
.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-sub {
  display: inline-block;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-light);
  font-size: 16px;
}

/* ---------- 关于我们 ---------- */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.about-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(7, 193, 96, 0.3);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 15px;
  color: var(--text-light);
}

/* ---------- 服务内容 ---------- */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #34d37e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 34px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--text-light);
}

/* ---------- 核心优势 ---------- */
.advantages {
  background: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-item {
  background: linear-gradient(135deg, var(--bg-light), #ffffff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  transition: all 0.3s ease;
  position: relative;
}

.advantage-item:hover {
  border-color: rgba(7, 193, 96, 0.4);
  box-shadow: var(--shadow);
}

.adv-num {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 40px;
  font-weight: 800;
  color: rgba(7, 193, 96, 0.12);
}

.advantage-item h3 {
  font-size: 19px;
  color: var(--dark);
  margin-bottom: 10px;
}

.advantage-item p {
  font-size: 15px;
  color: var(--text-light);
}

/* ---------- 合作流程 ---------- */
.process {
  background: linear-gradient(160deg, #f0fbf5, #e4f6ee);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-6px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #34d37e);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-light);
}

/* ---------- 联系我们 ---------- */
.contact {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.contact-item {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 36px;
  margin-bottom: 14px;
}

.contact-item h3 {
  font-size: 17px;
  color: var(--dark);
  margin-bottom: 8px;
}

.contact-item p {
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
}

.contact-note {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 18px 24px;
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- 底部 ---------- */
.footer {
  background: var(--dark);
  padding: 48px 0 32px;
}

.footer-inner {
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- 滚动显现动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .about-grid,
  .services-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .hero-stats {
    gap: 24px;
    padding: 24px 20px;
  }

  .stat-item strong {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .about-grid,
  .services-grid,
  .advantages-grid,
  .process-steps,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
