/* Duole Kasvomaalaus — main.css */

/* ── CSS 变量默认值（Laventeli 主题，由 Customizer 覆盖） ── */
:root {
  --pastel:      #F3F0FF;
  --pastel-2:    #FBF9FF;
  --tint:        #E9E3FF;
  --accent:      #7C3AED;
  --accent-soft: #A78BFA;
  --ink:         #1E1B4B;
  --font-display: 'Playfair Display', serif;
}

/* ── 字体 ─────────────────────────────────────────────────── */
.font-display { font-family: var(--font-display); }

/* ── 渐变魔法背景 ─────────────────────────────────────────── */
.grad-magic {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
}
.text-grad {
  background: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── 玻璃效果 ─────────────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* ── 按钮发光 ─────────────────────────────────────────────── */
.btn-glow {
  box-shadow: 0 8px 28px -8px rgba(124, 58, 237, 0.55);
  transition: box-shadow 0.3s, transform 0.3s;
}
.btn-glow:hover {
  box-shadow: 0 14px 36px -8px rgba(124, 58, 237, 0.7);
  transform: translateY(-1px);
}

/* ── Reveal 滚动动画 ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ── 浮动卡片动画 ─────────────────────────────────────────── */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes floaty2 {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%       { transform: translateY(-14px) rotate(-1deg); }
}
.floaty  { animation: floaty  6s ease-in-out infinite; }
.floaty2 { animation: floaty2 8s ease-in-out infinite; }

/* ── Masonry 画廊 ─────────────────────────────────────────── */
.masonry { column-gap: 1.5rem; }
.masonry > * { break-inside: avoid; margin-bottom: 1.5rem; }

/* ── rounded-4xl ─────────────────────────────────────────── */
.rounded-4xl { border-radius: 2rem; }

/* ── Contact Form 7 样式覆盖 ──────────────────────────────── */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(30, 27, 75, 0.12);
  background: #ffffff;
  padding: 0.75rem 1rem;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--tint);
}
.wpcf7-form textarea { resize: none; }
.wpcf7-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(135deg, #7C3AED, #EC4899);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px -8px rgba(124, 58, 237, 0.55);
  transition: opacity 0.2s, transform 0.2s;
  font-family: inherit;
}
.wpcf7-form input[type="submit"]:hover { opacity: 0.9; transform: translateY(-1px); }
.wpcf7-form .wpcf7-not-valid-tip { color: #f43f5e; font-size: 12px; margin-top: 4px; display: block; }
.wpcf7-form .wpcf7-not-valid { border-color: #f43f5e !important; box-shadow: 0 0 0 4px rgba(244,63,94,.12) !important; }

/* CF7 成功状态 */
.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
