/* =========================================
   Asolica 首页样式
   ========================================= */

body {
  font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { text-decoration:none; color:inherit; }
ul { list-style:none; }

@keyframes fadeInUp {
  0% { opacity:0; transform: translateY(32px) scale(0.96); }
  100% { opacity:1; transform: translateY(0) scale(1); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px) rotate(var(--r,0deg)); }
  50% { transform: translateY(-16px) rotate(var(--r,0deg)); }
}
@keyframes pulseGlow {
  0%, 100% { opacity:0.5; transform: scale(1); }
  50% { opacity:0.8; transform: scale(1.05); }
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes scrollBounce {
  0% { transform: translateY(0px); opacity:0.5; }
  30% { transform: translateY(8px); opacity:1; }
  60% { transform: translateY(2px); opacity:1; }
  100% { transform: translateY(0px); opacity:0.5; }
}
@keyframes typingCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ambient-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow.blue { background: rgba(59, 130, 246, 0.18); }
.ambient-glow.orange { background: rgba(249, 115, 22, 0.15); }
.ambient-glow.purple { background: rgba(168, 85, 247, 0.12); }

.reveal, .reveal-left, .reveal-right, .reveal-up, .reveal-scale {
  opacity: 0;
  transition: opacity 1.0s cubic-bezier(0.16, 1, 0.3, 1), transform 1.0s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal { transform: translateY(28px); }
.reveal-left { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-up { transform: translateY(40px); }
.reveal-scale { transform: scale(0.93); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible, .reveal-up.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}
.reveal-d1, .delay-1 { transition-delay: 0.1s; }
.reveal-d2, .delay-2 { transition-delay: 0.2s; }
.reveal-d3, .delay-3 { transition-delay: 0.3s; }
.reveal-d4, .delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-weight:600; transition: all 0.25s var(--ease-out); cursor:pointer; border:none; font-family:var(--font); font-size:13px; white-space:nowrap; }
.btn-primary { padding:9px 24px; border-radius:9999px; background:var(--primary); color:#fff; box-shadow: 0 2px 10px rgba(37,99,235,0.25); }
.btn-primary:hover { background:var(--primary-dark); transform:translateY(-1.5px); box-shadow: 0 6px 20px rgba(37,99,235,0.32); }
.btn-outline { padding:9px 24px; border-radius:9999px; background:transparent; color:var(--text); border:1.6px solid var(--border); }
.btn-outline:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-light); transform:translateY(-1px); }
.btn-lg { padding:16px 40px; border-radius:9999px; font-size:15px; font-weight:700; letter-spacing:-0.2px; }
.btn-lg svg { width:18px; height:18px; transition:transform 0.25s; }
.btn-lg:hover svg { transform: translateX(3px); }
.btn-ghost-white { padding:16px 40px; border-radius:9999px; background:transparent; color:#fff; border:1.8px solid rgba(255,255,255,0.4); font-size:15px; font-weight:700; }
.btn-ghost-white:hover { border-color:#fff; background:rgba(255,255,255,0.1); transform:translateY(-1px); }

.hero {
  min-height:100vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; position:relative; overflow:hidden;
  padding:100px 80px 80px;
  background: linear-gradient(135deg, #FFEDD5 0%, #FED7AA 8%, #FFE4CC 20%, #DBEAFE 55%, #EFF6FF 78%, #F8FAFC 100%);
}
.hero-orb {
  position:absolute !important; border-radius:50%; filter:blur(100px); pointer-events:none; z-index:0;
  animation: pulseGlow 6s ease-in-out infinite;
}
.orb-1 { width:600px; height:600px; background:rgba(251,146,60,0.28); top:-15%; right:-10%; }
.orb-2 { width:550px; height:550px; background:rgba(96,165,250,0.25); bottom:-12%; left:-10%; animation-delay:-2s; }
.orb-3 { width:400px; height:400px; background:rgba(249,115,22,0.15); top:20%; left:50%; animation-delay:-4s; }
.hero > * { position:relative; z-index:2; }

.hero-badge {
  display:inline-flex; align-items:center; gap:7px; padding:7px 18px;
  border-radius:9999px; background:rgba(37,99,235,0.08);
  color:var(--primary); font-size:12px; font-weight:700; letter-spacing:0.5px;
  border:1px solid rgba(37,99,235,0.12); margin-bottom:32px;
}
.hero-title {
  font-size: clamp(44px, 6vw, 72px); font-weight:800; line-height:1.1;
  color:var(--text); max-width:900px; letter-spacing:-1.5px;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  justify-content: center;
}
#typewriter {
  color: var(--primary);
  min-width: 1ch;
  display: inline-block;
}
@keyframes pulseCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
#typewriter::after {
  content: '';
  display:inline-block; width:4px; height:0.9em; background:var(--primary);
  margin-left:4px; vertical-align:text-bottom;
  box-shadow: 0 0 8px var(--primary);
  border-radius: 2px;
  animation: pulseCursor 1.1s ease-in-out infinite;
}
.hero-sub {
  font-size:17px; font-weight:400; color:var(--text-2); max-width:600px;
  margin-top:24px; line-height:1.75;
}
.hero-actions { display:flex; align-items:center; gap:14px; margin-top:44px; }
.scroll-hint {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:var(--text-3); font-size:11px; font-weight:500;
  animation: scrollBounce 2s ease-in-out infinite; z-index:2; cursor:pointer;
  transition: opacity 0.3s;
  margin-top: 56px;
}
.scroll-hint svg { width:22px; height:22px; opacity:0.6; }

.section {
  padding: 160px 80px;
  position: relative;
  background: #FFFFFF;
  overflow: hidden;
}
.section-alt {
  padding: 160px 80px;
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  overflow: hidden;
}
.section-head { text-align:center; margin-bottom:72px; max-width:640px; margin-left:auto; margin-right:auto; }
.section-head .label {
  display:inline-block; font-size:12px; font-weight:700;
  color:var(--primary); letter-spacing:2px; text-transform:uppercase;
  margin-bottom:14px;
}
.section-head h2 { font-size:clamp(28px, 3.5vw, 40px); font-weight:800; color:var(--text); letter-spacing:-0.8px; line-height:1.2; }
.section-head p { font-size:16px; color:var(--text-2); margin-top:14px; line-height:1.65; }

.tech-showcase {
  display:grid; grid-template-columns:repeat(3,1fr); gap:48px; max-width:1120px; margin:0 auto;
}
.tech-card {
  background:transparent; border:none; border-radius:0;
  padding:28px; display:flex; flex-direction:column; align-items:center; text-align:center;
  gap:20px; transition:all 0.4s var(--ease-spring); position:relative; overflow:visible;
  border-radius:20px;
}
.tech-card::before { display:none; }
.tech-card:hover { transform:translateY(-12px); }
.tech-card:hover {
  background: #FFFFFF;
  box-shadow: var(--shadow-hover);
}
.tech-icon-wrap {
  width:96px; height:96px; border-radius:22px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(135deg, var(--c1,#2563EB), var(--c2,#60A5FA));
  transition:transform 0.4s var(--ease-spring), box-shadow 0.4s;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.15);
}
.tech-card:hover .tech-icon-wrap {
  transform: translateY(-8px) scale(1.08) rotate(-4deg);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}
.tech-card h3 { font-size:24px; font-weight:800; color:var(--text); letter-spacing:-0.4px; }
.tech-card p { font-size:14.5px; color:var(--text-2); line-height:1.75; max-width:280px; }
.tech-tags { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin-top:4px; }
.tech-tag { padding:6px 14px; border-radius:9999px; font-size:11px; font-weight:600; background:rgba(15,23,42,0.04); color:var(--text-2); transition:all 0.2s; }
.tech-card:hover .tech-tag { background:var(--primary-light); color:var(--primary); }

.feature-block {
  display:flex; align-items:center; gap:80px; max-width:1200px; margin:0 auto;
  padding:80px 0;
}
.feature-block.reverse { flex-direction:row-reverse; }
.feature-text { flex:1; }
.feature-text h3 { font-size:clamp(24px,3vw,36px); font-weight:800; color:var(--text); letter-spacing:-0.6px; line-height:1.2; }
.feature-text p { font-size:16px; color:var(--text-2); margin-top:16px; line-height:1.75; }
.feature-text ul { margin-top:24px; display:flex; flex-direction:column; gap:12px; }
.feature-text li { display:flex; align-items:flex-start; gap:10px; font-size:14px; color:var(--text-2); line-height:1.6; }
.feature-text li::before {
  content:''; flex-shrink:0; width:20px; height:20px; border-radius:50%;
  background: var(--primary-light); margin-top:2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 10l4 4 6-6'/%3E%3C/svg%3E");
  background-size:12px; background-position:center; background-repeat:no-repeat;
}
.feature-visual {
  flex:1; display:flex; align-items:center; justify-content:center;
  min-height:320px; position:relative;
}
.visual-card {
  width:100%; max-width:480px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}
.visual-card:hover { transform: translateY(-8px) scale(1.02); }
.feature-svg-graphic {
  width: 100%;
  height: 220px;
  display: block;
  transition: transform 0.6s var(--ease-spring), filter 0.6s;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.04));
}
.visual-card:hover .feature-svg-graphic {
  transform: scale(1.04);
  filter: drop-shadow(0 20px 40px rgba(37, 99, 235, 0.12));
}

.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.why-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all 0.35s var(--ease-out);
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37,99,235,0.2);
  box-shadow: 0 20px 40px rgba(37,99,235,0.1);
}
.why-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.why-card-icon.blue { background: var(--primary-light); color: var(--primary); }
.why-card-icon.orange { background: #FFF7ED; color: var(--accent); }
.why-card-icon.green { background: #F0FDF4; color: #10B981; }
.why-card-icon.purple { background: #FAF5FF; color: #8B5CF6; }
.why-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

.terminal-workspace {
  display: flex;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.terminal-sidebar {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: transparent;
  border: 1.5px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  font-family: var(--font);
}
.tab-btn:hover { background: rgba(37, 99, 235, 0.04); }
.tab-btn.active {
  background: #FFFFFF;
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-sm);
}
.tab-btn .tab-icon {
  width: 24px;
  height: 24px;
  stroke: var(--text-2);
  transition: stroke 0.25s;
}
.tab-btn.active .tab-icon { stroke: var(--primary); }
.tab-btn h4 { font-size: 14px; font-weight: 700; color: var(--text); }
.tab-btn p { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.terminal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.terminal-window {
  background: #0F172A;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(15,23,42,0.2);
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  height: 100%;
}
.terminal-header {
  background: #1E293B;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: relative;
}
.terminal-dots { display: flex; gap: 5px; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.t-dot.close { background: #EF4444; }
.t-dot.minimize { background: #F59E0B; }
.t-dot.maximize { background: #10B981; }
.terminal-title {
  font-size: 10px; font-weight: 600; color: #64748B; font-family: var(--font);
  position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.copy-btn {
  background: transparent; border: none; color: #64748B; cursor: pointer;
  padding: 4px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.copy-btn:hover { color: #F8FAFC; background: rgba(255,255,255,0.08); }
.copy-btn svg { width: 14px; height: 14px; }
.terminal-body {
  padding: 24px;
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 14px; color: #38BDF8; overflow-x: auto;
  white-space: pre; line-height: 1.6; min-height: 60px;
}
.terminal-body .prompt { color: #10B981; }
.terminal-cursor {
  display: inline-block; width: 8px; height: 16px; background: #38BDF8;
  margin-left: 2px; vertical-align: text-bottom; animation: typingCursor 0.8s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; padding-top: 64px; }
  .section, .section-alt { padding: 140px 80px !important; }
  .tech-showcase { gap: 48px; }
}
@media (max-width: 1024px) {
  .tech-showcase { grid-template-columns: repeat(2, 1fr); }
  .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-block { flex-direction:column; gap:48px; }
  .feature-block.reverse { flex-direction:column; }
  .hero, .section, .section-alt { padding-left:40px; padding-right:40px; }
}
@media (max-width:640px) {
  .tech-showcase, .why-choose-grid { grid-template-columns: 1fr; }
  .hero { padding:120px 24px 100px; min-height:auto; }
  .section, .section-alt { padding:80px 24px; }
  .hero-title { letter-spacing:-0.5px; font-size: clamp(32px, 9vw, 48px); gap: 8px; }
  .hero-sub { font-size: 14px; line-height: 1.7; }
  .hero-actions { flex-direction:column; width:100%; }
  .hero-actions .btn-lg { width:100%; }
}
@media (max-width: 860px) {
  .terminal-workspace { flex-direction: column; padding: 20px; gap: 20px; }
  .terminal-sidebar { flex: none; flex-direction: row; overflow-x: auto; padding-bottom: 8px; width: 100%; }
  .tab-btn { flex: 1; padding: 12px 16px; white-space: nowrap; justify-content: center; }
  .tab-btn p { display: none; }
}