/**
 * 模板 · 梦幻流沙 (Dreamy Quicksand & Shifting Golden Dunes Engine)
 * 金沙流转 + 极光琥珀 + 霞光粉彩 + 粒子流体 Canvas 动效系统
 */

:root {
  --color-sand-bg: #090d16;
  --color-sand-surface: rgba(15, 21, 35, 0.78);
  --color-sand-gold: #f6d365;
  --color-sand-amber: #fda085;
  --color-sand-rose: #ff758c;
  --color-sand-violet: #7928ca;
  --color-sand-cyan: #38ef7d;

  --color-text-bright: #ffffff;
  --color-text-sand-muted: #cbd5e1;
  --color-text-sand-subtle: #748398;

  --quicksand-gradient: linear-gradient(135deg, #f6d365 0%, #fda085 40%, #ff758c 100%);
  --quicksand-gradient-hover: linear-gradient(135deg, #ffd200 0%, #f7971e 50%, #ff5e62 100%);
  --quicksand-shadow: 0 10px 32px -4px rgba(253, 160, 133, 0.42);
  --quicksand-border: rgba(253, 160, 133, 0.24);
}

/* 梦幻流沙画板覆盖层 */
#quicksand-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

/* 梦幻流沙核心行动按钮 */
.btn-quicksand {
  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: #111827 !important;
  text-decoration: none;
  background: var(--quicksand-gradient);
  box-shadow: var(--quicksand-shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

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

.btn-quicksand:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--quicksand-gradient-hover);
  box-shadow: 0 18px 44px -4px rgba(253, 160, 133, 0.6);
}

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

.btn-quicksand-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: #f6d365 !important;
  text-decoration: none;
  background: rgba(246, 211, 101, 0.08);
  border: 1px solid var(--quicksand-border);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
  cursor: pointer;
}

.btn-quicksand-outline:hover {
  background: rgba(246, 211, 101, 0.18);
  border-color: rgba(246, 211, 101, 0.6);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* 梦幻流沙徽章 */
.quicksand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(246, 211, 101, 0.08);
  border: 1px solid var(--quicksand-border);
  color: #f6d365;
  backdrop-filter: blur(8px);
}

.quicksand-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #f6d365;
  position: relative;
}

.quicksand-pulse-dot::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(246, 211, 101, 0.4);
  animation: quicksandPulse 2.2s infinite ease-out;
}

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

/* 流沙渐变高光文本 */
.text-quicksand-gradient {
  background: var(--quicksand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}