/**
 * 模板 · 日系樱花科技 (Sakura Tech & Cyber Minimal Engine)
 * 绯樱粉彩 + 墨曜极简 + 赛博微光 + 樱花花瓣物理渲染系统
 */

:root {
  --color-obsidian: #090c13;
  --color-obsidian-subtle: #111724;
  --color-obsidian-card: rgba(17, 24, 38, 0.75);
  --color-obsidian-hover: rgba(26, 36, 56, 0.85);

  --color-sakura-primary: #ff758c;
  --color-sakura-secondary: #ff7eb3;
  --color-sakura-light: #ffd1dc;
  --color-sakura-glow: rgba(255, 117, 140, 0.35);
  --color-sakura-border: rgba(255, 117, 140, 0.2);

  --color-cyber-purple: #7928ca;
  --color-cyber-cyan: #00f2fe;
  --color-emerald-active: #10b981;

  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-subtle: #64748b;

  --sakura-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #7928ca 100%);
  --sakura-gradient-soft: linear-gradient(135deg, rgba(255, 117, 140, 0.15) 0%, rgba(255, 126, 179, 0.08) 100%);
  --sakura-glow-shadow: 0 10px 30px -5px rgba(255, 117, 140, 0.3);
}

/* 页面背景与樱花画板 */
body {
  background-color: var(--color-obsidian);
  color: var(--color-text-main);
  position: relative;
  overflow-x: hidden;
}

#sakura-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
}

/* 科技背景微光晕 (Aura Spheres) */
.sakura-tech-glow-1 {
  position: absolute;
  top: -150px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 117, 140, 0.18) 0%, rgba(121, 40, 202, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.sakura-tech-glow-2 {
  position: absolute;
  top: 40%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 126, 179, 0.12) 0%, rgba(0, 242, 254, 0.05) 50%, transparent 70%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

/* 日系樱花科技毛玻璃卡片 */
.sakura-card {
  position: relative;
  background: var(--color-obsidian-card);
  border: 1px solid var(--color-sakura-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.sakura-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 117, 140, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sakura-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 117, 140, 0.45);
  box-shadow: 0 22px 48px -10px rgba(255, 117, 140, 0.22);
}

.sakura-card:hover::before {
  opacity: 1;
}

/* 日系樱花科技行动按钮 */
.btn-sakura {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff !important;
  text-decoration: none;
  background: var(--sakura-gradient);
  box-shadow: var(--sakura-glow-shadow);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-sakura::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.25) 50%, transparent 60%);
  transform: rotate(35deg) translateY(-100%);
  transition: transform 0.8s ease;
}

.btn-sakura:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px -4px rgba(255, 117, 140, 0.55);
}

.btn-sakura:hover::after {
  transform: rotate(35deg) translateY(100%);
}

.btn-sakura-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  color: #ff9bb0 !important;
  text-decoration: none;
  background: rgba(255, 117, 140, 0.08);
  border: 1px solid rgba(255, 117, 140, 0.35);
  backdrop-filter: blur(8px);
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn-sakura-outline:hover {
  background: rgba(255, 117, 140, 0.18);
  border-color: rgba(255, 117, 140, 0.6);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* 日系和印章戳 (Wabi-Sabi Stamp) */
.sakura-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1.5px solid #ff758c;
  color: #ff758c;
  font-family: var(--zen-font-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 4px;
  background: rgba(255, 117, 140, 0.06);
  user-select: none;
}

/* 科技樱花脉冲点 */
.sakura-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-sakura-primary);
  position: relative;
}

.sakura-pulse-dot::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 117, 140, 0.4);
  animation: sakuraPulse 2s infinite ease-out;
}

@keyframes sakuraPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 科技高光文本 */
.text-sakura-gradient {
  background: var(--sakura-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}