/* ========================================
   共享设计系统 - 科技回收风
   memoryrecycle.com & chipreclaim.com
   ======================================== */

:root {
  /* 主色系 - 科技深蓝 */
  --primary: #0A1628;
  --primary-light: #0F1F38;
  --accent: #00D4FF;        /* 电子蓝霓虹 */
  --accent-dim: #0099CC;
  --accent-glow: rgba(0, 212, 255, 0.15);
  
  /* 回收绿色 */
  --eco: #00E676;
  --eco-dim: #00B85D;
  --eco-glow: rgba(0, 230, 118, 0.12);
  
  /* 中性色 */
  --bg: #050B14;
  --bg-card: #0A1628;
  --bg-card-hover: #0F1F38;
  --border: rgba(0, 212, 255, 0.15);
  --border-hover: rgba(0, 212, 255, 0.4);
  --text: #E8F0FA;
  --text-dim: #8A9BB0;
  --text-muted: #5A6B80;
  
  /* 功能色 */
  --gold: #FFB800;
  --warn: #FF6B35;
  
  /* 尺寸 */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1200px;
  
  /* 动画 */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* === RESET === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--eco); }
img { max-width: 100%; height: auto; display: block; }

/* === LAYOUT === */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* === HEADER === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.site-header.scrolled { background: rgba(5, 11, 20, 0.95); box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--eco));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--primary);
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: 0.5px; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; color: var(--text-dim); }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--text-dim); font-size: 15px; font-weight: 500; position: relative; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 1px;
}
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone {
  color: var(--accent); font-size: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: var(--primary);
}
.btn-primary:hover { box-shadow: var(--glow); transform: translateY(-1px); color: var(--primary); }
.btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--border-hover);
}
.btn-outline:hover { background: var(--accent-glow); border-color: var(--accent); }
.btn-eco {
  background: linear-gradient(135deg, var(--eco), var(--eco-dim));
  color: var(--primary);
}
.btn-eco:hover { box-shadow: 0 0 20px var(--eco-glow); transform: translateY(-1px); }
.btn-lg { padding: 14px 32px; font-size: 16px; }

/* === HERO === */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: 
    radial-gradient(ellipse at 30% 40%, rgba(0, 212, 255, 0.08), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 230, 118, 0.06), transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image: 
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
  font-size: 48px; font-weight: 800; line-height: 1.2;
  color: var(--text); margin-bottom: 20px;
}
.hero h1 .highlight { color: var(--accent); }
.hero h1 .eco { color: var(--eco); }
.hero-subtitle {
  font-size: 20px; color: var(--text-dim); margin-bottom: 32px;
  line-height: 1.7;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-tag {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--accent); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 1;
  display: flex; gap: 40px; margin-top: 50px;
  padding-top: 30px; border-top: 1px solid var(--border);
}
.hero-stat strong { font-size: 36px; font-weight: 800; color: var(--accent); display: block; }
.hero-stat span { font-size: 14px; color: var(--text-dim); }

/* === SECTIONS === */
.section { padding: 80px 0; }
.section-alt { background: var(--primary-light); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 36px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-title p { font-size: 17px; color: var(--text-dim); }
.section-title .accent-bar {
  width: 60px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--eco));
  margin: 16px auto 0;
}

/* === CARDS === */
.card-grid { display: grid; gap: 24px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hover);
  transform: translateY(-2px); box-shadow: 0 10px 40px rgba(0, 212, 255, 0.08);
}
.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--accent-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.card h3 { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-dim); line-height: 1.7; }

/* === CHIP LIST === */
.chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.chip-tag {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  text-align: center; transition: var(--transition);
}
.chip-tag:hover {
  border-color: var(--accent); background: var(--bg-card-hover);
  box-shadow: var(--glow);
}
.chip-tag .chip-name { font-size: 16px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.chip-tag .chip-desc { font-size: 12px; color: var(--text-muted); }

/* === PROCESS === */
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.process-step { text-align: center; position: relative; counter-increment: step; }
.process-step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 0 auto 16px;
  border-radius: 50%; font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--eco));
  color: var(--primary);
}
.process-step h4 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.process-step p { font-size: 14px; color: var(--text-dim); }

/* === CTA === */
.cta-section { padding: 60px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl); padding: 50px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 60%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.cta-box p { font-size: 17px; color: var(--text-dim); margin-bottom: 28px; }

/* === FOOTER === */
.site-footer {
  background: var(--primary); border-top: 1px solid var(--border);
  padding: 50px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 30px;
}
.footer-brand { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.footer-grid p, .footer-grid li { font-size: 14px; color: var(--text-dim); line-height: 1.8; }
.footer-grid h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-grid ul { list-style: none; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  text-align: center; font-size: 13px; color: var(--text-muted);
}

/* === PAGE HERO === */
.page-hero {
  padding: 120px 0 40px; text-align: center;
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 36px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.page-hero p { font-size: 17px; color: var(--text-dim); }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero h1 { font-size: 32px; }
  .hero-subtitle { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .section { padding: 50px 0; }
  .section-title h2 { font-size: 26px; }
}

/* === ANIMATIONS === */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.3); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-pulse { animation: pulse-glow 3s ease-in-out infinite; }
.animate-float { animation: float 4s ease-in-out infinite; }

/* Fade-in animation - pure CSS, no JS needed */
.card, .chip-tag, .process-step {
  animation: fadeInUp 0.6s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Stagger animation for cards in sequence */
.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.15s; }
.card-grid .card:nth-child(3) { animation-delay: 0.2s; }
.card-grid .card:nth-child(4) { animation-delay: 0.25s; }
.card-grid .card:nth-child(5) { animation-delay: 0.3s; }
.card-grid .card:nth-child(6) { animation-delay: 0.35s; }
.chip-grid .chip-tag:nth-child(odd) { animation-delay: 0.1s; }
.chip-grid .chip-tag:nth-child(even) { animation-delay: 0.15s; }
.process-grid .process-step:nth-child(1) { animation-delay: 0.1s; }
.process-grid .process-step:nth-child(2) { animation-delay: 0.2s; }
.process-grid .process-step:nth-child(3) { animation-delay: 0.3s; }
.process-grid .process-step:nth-child(4) { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .card, .chip-tag, .process-step { animation: none; opacity: 1; transform: none; }
}
