/* ========================================
   白果儿科技 - Bygoer Technology
   Design System: Black + Blue, Apple-inspired
   ======================================== */

:root {
  --bg-primary: #08080d;
  --bg-secondary: #0d0d16;
  --bg-card: #11111c;
  --bg-card-hover: #161626;
  --border: #1e1e30;
  --border-light: #2a2a40;

  --text-primary: #f0f0f8;
  --text-secondary: #a0a0b8;
  --text-muted: #606078;

  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-strong: rgba(59, 130, 246, 0.25);

  --purple: #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", "Consolas", monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 64px;
  --notice-height: 36px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: calc(var(--nav-height) + var(--notice-height));
}

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========================================
   NOTICE BAR
   ======================================== */
.notice-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--notice-height);
  background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(139,92,246,0.08));
  border-bottom: 1px solid rgba(59,130,246,0.1);
  z-index: 1001;
  overflow: hidden;
}
.notice-inner {
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
}
.notice-track {
  display: flex;
  animation: noticeScroll 28s linear infinite;
  white-space: nowrap;
}
.notice-track:hover { animation-play-state: paused; }
.notice-item {
  flex-shrink: 0;
  padding: 0 56px;
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.notice-item a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.notice-item a:hover { color: #fff; }

@keyframes noticeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: fixed;
  top: var(--notice-height);
  left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(8,8,13,0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(8,8,13,0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  gap: 10px;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.nav-logo-text .brand { color: #fff; font-size: 18px; font-weight: 700; }
.nav-logo-text .suffix { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.nav-cta:hover {
  background: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow-strong);
}

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  border-radius: 1px;
  transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: calc(100vh - var(--nav-height) - var(--notice-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
  position: relative;
  overflow: hidden;
}

/* Animated background orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.25;
  animation: orbFloat 10s ease-in-out infinite;
}
.hero-orb:nth-child(1) {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -250px; left: -150px;
}
.hero-orb:nth-child(2) {
  width: 500px; height: 500px;
  background: var(--purple);
  bottom: -200px; right: -150px;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.94); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 36px;
  filter: drop-shadow(0 0 50px rgba(255,255,255,0.15));
  animation: fadeInUp 0.8s ease-out;
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  font-size: 13px;
  color: var(--accent-light);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out 0.05s both;
}
.hero-title {
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 32px var(--accent-glow-strong);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-light);
}

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

/* ========================================
   SECTION COMMON
   ======================================== */
.section {
  padding: 100px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.25;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(59,130,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  color: var(--accent-light);
}
.service-icon svg { flex-shrink: 0; }
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
}

/* ========================================
   CASES SECTION
   ======================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.case-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.case-tag {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  z-index: 2;
  letter-spacing: 0.3px;
}
.case-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-icon {
  color: rgba(255,255,255,0.2);
  transition: color var(--transition);
}
.case-card:hover .case-icon {
  color: rgba(255,255,255,0.4);
}
.case-content {
  padding: 28px;
}
.case-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}
.case-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.case-status {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.case-status.in-progress {
  background: rgba(59,130,246,0.12);
  color: var(--accent-light);
  border: 1px solid rgba(59,130,246,0.2);
}
.case-status.done {
  background: rgba(34,197,94,0.1);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.2);
}
.case-tech {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ========================================
   APPROACH SECTION (Why Us)
   ======================================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.approach-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.approach-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
}
.approach-num {
  font-size: 36px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-light), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.approach-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.approach-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2 { margin-bottom: 24px; }
.about-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-logo-large {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 60px rgba(255,255,255,0.12));
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  text-align: center;
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { position: relative; }
.cta-section .section-desc { margin: 0 auto 40px; position: relative; }
.cta-section .btn-primary { position: relative; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 32px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-info { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-size: 15px; font-weight: 600; }
.footer-slogan { font-size: 13px; color: var(--text-muted); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* No-JS fallback: show everything */
@media (scripting: none) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8,8,13,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .hero { padding: 60px 20px; min-height: auto; }
  .hero-title { font-size: 32px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-logo { width: 90px; height: 90px; margin-bottom: 28px; }
  .btn { width: 100%; max-width: 280px; justify-content: center; }

  .section { padding: 72px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { order: -1; }
  .about-logo-large { width: 140px; height: 140px; }
  .case-img { height: 160px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
