/* ============================================
   合肥创深科技 - 企业官网样式
   设计方向：深蓝科技风 + 金色点缀 + 现代极简
   ============================================ */

/* ---- CSS Variables (方便后期主题切换) ---- */
:root {
  /* 主色 */
  --bg-deep: #060b1a;
  --bg-primary: #0a0e27;
  --bg-secondary: #0d1b3e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);

  /* 强调色 */
  --accent: #00d4ff;
  --accent2: #1e90ff;
  --gold: #c9a96e;
  --gold-light: #d4af37;

  /* 文字 */
  --text-primary: #ffffff;
  --text-secondary: #c0c8e0;
  --text-muted: #7a8099;

  /* 边框 */
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.3);

  /* 渐变 */
  --gradient-hero: linear-gradient(180deg, #060b1a 0%, #0a0e27 50%, #0d1b3e 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent2));
  --gradient-gold: linear-gradient(135deg, var(--gold), var(--gold-light));

  /* 圆角 & 阴影 */
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.1);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.4);

  /* 间距 */
  --section-pad: 120px;
  --nav-height: 72px;

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }

/* ---- SECTION BASE ---- */
.section { padding: var(--section-pad) 0; position: relative; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.05);
}
.section-title { font-size: clamp(28px, 5vw, 44px); font-weight: 700; letter-spacing: 2px; margin-bottom: 16px; }
.section-desc { color: var(--text-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ---- SCROLL ANIMATION BASE ---- */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left  { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-up.revealed, .reveal-left.revealed, .reveal-right.revealed {
  opacity: 1;
  transform: translate(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.60s; }
.delay-5 { transition-delay: 0.75s; }
.delay-6 { transition-delay: 0.90s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 10;
}
.logo-icon {
  color: var(--accent);
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
}

.nav-menu { display: flex; gap: 36px; align-items: center; }
.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
  letter-spacing: 1px;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 10;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
}
#particleCanvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 30%, rgba(30, 144, 255, 0.04) 0%, transparent 70%);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-badge {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 30px;
  padding: 8px 20px;
  margin-bottom: 32px;
  background: rgba(0, 212, 255, 0.05);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: 3px;
}
.title-line { display: block; }
.title-line.accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.8;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
}

/* ---- HERO SCROLL INDICATOR ---- */
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 3;
  animation: float 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 2px;
}
.scroll-text { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; }
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about { background: var(--bg-primary); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-intro {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.9;
}
.about-intro strong { color: var(--accent); font-weight: 600; }
.about-detail { color: var(--text-muted); margin-bottom: 40px; line-height: 1.8; }

.about-stats {
  display: flex; gap: 40px;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 13px; color: var(--text-muted); letter-spacing: 2px; }

/* ---- Tech Orb ---- */
.about-visual { display: flex; justify-content: center; align-items: center; }
.tech-orb {
  position: relative;
  width: 280px; height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.2);
  animation: orbSpin 20s linear infinite;
}
.ring-1 { width: 100%; height: 100%; border-color: rgba(0, 212, 255, 0.15); animation-duration: 20s; }
.ring-2 { width: 75%; height: 75%; border-color: rgba(0, 212, 255, 0.25); animation-duration: 15s; animation-direction: reverse; }
.ring-3 { width: 50%; height: 50%; border-color: rgba(0, 212, 255, 0.4); animation-duration: 10s; }
.orb-core {
  font-size: 36px; font-weight: 800; letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}
@keyframes orbSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services { background: var(--bg-deep); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.service-card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 56px; height: 56px;
  margin-bottom: 24px;
  color: var(--accent);
}
.card-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 18px; font-weight: 600;
  margin-bottom: 12px; letter-spacing: 1px;
}
.service-card p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.card-arrow {
  display: inline-block; font-size: 18px; color: var(--accent);
  transition: transform 0.3s ease;
}
.service-card:hover .card-arrow { transform: translateX(6px); }

/* ============================================
   ADVANTAGES SECTION
   ============================================ */
.advantages { background: var(--bg-primary); position: relative; }
.advantages::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 80% 0%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.advantage-item { text-align: center; padding: 32px 20px; }
.adv-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border: 2px solid rgba(0, 212, 255, 0.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all 0.4s ease;
}
.adv-icon span {
  font-size: 20px; font-weight: 700;
  color: var(--accent);
}
.advantage-item:hover .adv-icon {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
  transform: scale(1.05);
}
.advantage-item h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.advantage-item p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }

/* ============================================
   CASES SECTION
   ============================================ */
.cases { background: var(--bg-deep); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--shadow-glow);
}
.case-image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.case-placeholder {
  width: 60%;
  color: var(--text-muted);
  transition: all 0.4s ease;
}
.case-card:hover .case-placeholder { color: var(--accent); transform: scale(1.05); }
.case-placeholder svg { width: 100%; height: auto; }
.case-tag {
  position: absolute; top: 16px; right: 16px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 4px 12px;
  border-radius: 30px;
}
.case-info { padding: 24px; }
.case-info h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.case-info p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   PARTNERS SECTION
   ============================================ */
.partners { background: var(--bg-primary); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.partner-item {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 20px;
  background: var(--bg-card);
  transition: all 0.3s ease;
  cursor: default;
}
.partner-item span {
  font-size: 15px; font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  transition: color 0.3s;
}
.partner-item:hover { background: var(--bg-card-hover); }
.partner-item:hover span { color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #040816;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo svg { display: none; }
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 700; letter-spacing: 2px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.8; }
.footer-links h4, .footer-contact h4, .footer-qr h4 {
  font-size: 14px; font-weight: 600;
  letter-spacing: 2px; margin-bottom: 20px;
  color: var(--text-primary);
}
.footer-links ul, .footer-contact ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact li {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 13px;
}
.footer-contact svg { flex-shrink: 0; color: var(--accent); }
.footer-qr { text-align: center; }
.qr-placeholder {
  width: 100px; height: 100px;
  margin: 0 auto 12px;
  color: var(--text-muted);
  opacity: 0.6;
}
.qr-placeholder svg { width: 100%; height: 100%; }
.footer-qr span { font-size: 12px; color: var(--text-muted); }

.footer-bottom {
  display: flex; justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--accent); }

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

@media (max-width: 768px) {
  :root { --section-pad: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .tech-orb { width: 200px; height: 200px; }
  .about-stats { justify-content: space-around; }

  .nav-menu {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    flex-direction: column;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.4s ease;
  }
  .nav-menu.active { right: 0; }
  .nav-link { font-size: 16px; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .advantages-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 240px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { flex-wrap: wrap; justify-content: center; gap: 28px; }
}
