/*
Theme Name: Kangyan - 康琰文化
Theme URI: https://www.kangyanwh.com
Description: 康琰文化(深圳)有限公司企业官网主题 — 深色底、青绿点缀、克制科技风格，支持全链路品牌传播服务展示。品牌叙事与数字传播。
Version: 1.0.0
Author: 康琰文化
Author URI: https://www.kangyanwh.com
License: Proprietary
Text Domain: kangyan
*/

/* ============================================================
   WordPress Theme: Kangyan
   Design: Dark surface (#0D1117) + Accent (#00D4AA) + JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --accent: #00D4AA;
  --accent-glow: #00FFCC;
}

.nav-scrolled {
  background: rgba(13, 17, 23, 0.92);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(120%);
}

.hero-grid {
  background-image:
    radial-gradient(ellipse at 70% 30%, rgba(0, 212, 170, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(0, 212, 170, 0.02) 0%, transparent 50%);
}

.text-glow {
  text-shadow: 0 0 48px rgba(0, 212, 170, 0.18);
}

.underline-accent {
  position: relative;
}

.underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.case-card:hover .case-overlay {
  opacity: 1;
}

.case-overlay {
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.input-field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.12);
}

.btn-primary {
  background: var(--accent);
  color: #0D1117;
  font-weight: 600;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 32px rgba(0, 212, 170, 0.25);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hamburger-line {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.hamburger-open .line-1 {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-open .line-2 {
  opacity: 0;
}

.hamburger-open .line-3 {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.open {
  max-height: 360px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.stat-number {
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
