/* ===== 云耕科技 官方网站 v4 — 现代科技风格 ===== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 深色背景体系 */
  --bg-deep: #06070c;
  --bg-dark: #0a0c14;
  --bg-card: #11131d;
  --bg-surface: #181b28;
  --bg-elevated: #1e2130;

  /* 文字 */
  --text: #eef0f6;
  --text-secondary: #9499ad;
  --text-muted: #5e6478;

  /* 科技蓝为主色调 */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-glow: rgba(59, 130, 246, 0.28);

  /* 暖金 — 农业温度点缀 */
  --accent-gold: #f59e0b;
  --accent-gold-dim: rgba(245, 158, 11, 0.18);

  /* 边框 */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* 字号 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 字体 */
  --font: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg-deep);
  color: var(--text);
}

body {
  font-family: var(--font);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== 通用容器 ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== 导航栏 ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 12, 20, 0.94);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex; align-items: center;
  opacity: 0.92;
  transition: opacity var(--transition);
}
.logo:hover { opacity: 1; }

.main-nav { display: flex; gap: 4px; }

.nav-link {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  font-weight: 600;
}

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.mobile-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 36px rgba(59, 130, 246, 0.45);
  background: #2563eb;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

.btn-gold {
  background: var(--accent-gold);
  color: #0a0c14;
  font-weight: 600;
}
.btn-gold:hover {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    var(--bg-dark);
}

.hero-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 40%, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  pointer-events: none;
}
.hero-glow-1 {
  top: -200px; right: -100px;
  background: var(--accent-blue);
}
.hero-glow-2 {
  bottom: -250px; left: -150px;
  background: var(--accent-cyan);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 720px;
  padding: 0 32px;
}

.hero-tagline {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 42px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s;
}
.hero-scroll:hover { opacity: 0.7; }
.hero-scroll svg {
  animation: scrollBounce 2.2s ease infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ===== Section 通用 ===== */
.section {
  padding: 120px 0;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
}

/* ===== 关于公司 ===== */
.about-section {
  position: relative;
  background: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about-visual {
  position: relative;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-cyan), transparent);
  opacity: 0.6;
}

.about-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.about-stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 价值卡片 ===== */
.values-section {
  background: var(--bg-deep);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(59, 130, 246, 0.06),
    transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.value-card:hover::after {
  opacity: 1;
}

.value-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.value-card-icon svg {
  width: 22px; height: 22px;
  color: var(--accent-blue);
}

.value-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 愿景区 ===== */
.vision-section {
  background: var(--bg-dark);
  position: relative;
}

.vision-bg-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.08;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent-blue);
  pointer-events: none;
}

.vision-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.vision-quote {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.vision-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-gold), #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.vision-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

.vision-tagline {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.vision-tag {
  padding: 8px 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

/* ===== 小程序入口 ===== */
.mp-entry-section {
  background: var(--bg-deep);
}

.mp-entry-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.mp-entry-card::before {
  content: '';
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.06);
  filter: blur(100px);
  top: -150px; right: -100px;
  pointer-events: none;
}

.mp-entry-content { position: relative; z-index: 1; flex: 1; }

.mp-entry-label {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  background: var(--accent-gold-dim);
}

.mp-entry-content h3 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.mp-entry-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
}

.mp-entry-visual {
  position: relative; z-index: 1;
  flex-shrink: 0;
}

.mp-mockup {
  width: 130px; height: 230px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0 120px;
  background: var(--bg-dark);
}

.cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-box h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 14px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }

.footer-contact p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  text-align: center;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--text-secondary); }

/* ===== 子页面通用 Hero ===== */
.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59,130,246,0.06) 0%, transparent 60%),
    var(--bg-dark);
}

.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.page-content {
  padding: 80px 0 100px;
}

/* ===== 小程序页 ===== */
.mp-detail-intro {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.mp-detail-intro p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

.feature-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
}
.feature-card-icon svg {
  width: 20px; height: 20px;
  color: var(--accent-blue);
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  padding-right: 16px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.contact-info > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-detail:last-child { border-bottom: none; }

.contact-detail-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
}
.contact-detail-icon svg {
  width: 18px; height: 18px;
  color: var(--accent-blue);
}

.contact-detail-text h4 {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-detail-text p {
  font-size: 15px;
  color: var(--text);
}

.contact-email-simple {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 20px;
}

.contact-email-simple h2 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

.contact-email-simple .email-link {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-decoration: none;
  word-break: break-all;
  transition: color var(--transition);
  cursor: pointer;
}
.contact-email-simple .email-link:hover {
  color: var(--accent-blue);
}

/* ===== 滚动渐入动画 ===== */
.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; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mp-entry-card {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
  }
  .mp-entry-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid {
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .main-nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10, 12, 20, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 16px; border-radius: 8px; }
  .mobile-toggle { display: flex; }

  .values-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: 90vh; }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .about-card {
    padding: 32px 24px;
  }
  .about-stat-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .about-stat-number {
    font-size: 28px;
  }

  .mp-entry-card {
    padding: 32px 20px;
  }

  .page-hero {
    min-height: 320px;
  }

  .cta-section {
    padding: 72px 0 88px;
  }
}
