/* ==================== NEW PROUD NAILS - 样式文件 ==================== */
/* 【修改指南】
   - 改颜色 → 修改 :root 变量
   - 改按钮样式 → 搜索对应的 class
   - 改布局 → 修改对应元素的定位
   - 改动画 → 修改 @keyframes
*/

* {
  user-select: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-color: #FF5B5F;
  --success-color: #32CD32;
  --gold-color: #FFD700;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  background-image: url('../images/background.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  background-color: #667eea;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.4); border-radius: 3px; }

/* ==================== ★★★ 新透明玻璃三行 Logo（最终版） ★★★ ==================== */

#logo {
  position: absolute;
  /* 上方留出分数栏空间，logo 竖向居中偏上 */
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  width: 100vw;
  line-height: 0.88;
}

/* NEW 和 NAILS 跟随 PROUD 等比 */
#logo .line {
  display: block;
  font-weight: 900;
  color: transparent;
  letter-spacing: -0.02em;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.38);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.28),
    0 5px 10px rgba(0, 0, 0, 0.5),
    0 -2px 4px rgba(255, 255, 255, 0.28);
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.5));
}

/* 三行统一字号 */
#logo .line {
  font-size: clamp(96px, 26vw, 280px);
}

/* U字母 */
.letter-u {
  /* 🎨 和其他字母颜色一致 - 透明玻璃效果 */
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  /* 保留发光动画，提示这是收集区域 */
  animation: uGlow 2s ease-in-out infinite;
}

@keyframes uGlow {
  /* 🔧 更柔和的发光效果 */
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.7)); }
}

.letter-u.tilting { animation: tiltU 1s ease-out forwards; }
@keyframes tiltU {
  100% { transform: rotate(90deg) translateY(40px) translateX(100px); }
}

/* 分数显示 */
.score-display {
  position: fixed;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  padding: 15px 25px;
  border-radius: 15px;
  z-index: 999;
  text-align: center;
}

.music-toggle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.music-toggle.muted { background: rgba(255, 59, 63, 0.3); }
.score-value { font-size: 32px; font-weight: 800; color: #fff; }
.ball-count { font-size: 13px; color: rgba(255, 255, 255, 0.8); }

/* ========== 花盆构图：语言切换 = 盆沿 / 按钮 = 花盆 ========== */

/* 花盆沿：语言切换一行，略宽于按钮区 */
.language-switcher {
  position: absolute;
  bottom: calc(10% + 148px); /* 在按钮区上方紧贴 */
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 440px);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 998;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 18px 18px 0 0;   /* 上圆下直，与花盆顶口衔接 */
  padding: 10px 16px;
}

.lang-btn {
  flex: 1;
  height: 40px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lang-btn.active {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255,255,255,0.7);
}

/* 花盆：功能按钮 2×2，底部圆润像盆底 */
#buttons {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 440px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-top: none;                 /* 与盆沿无缝连接 */
  border-radius: 0 0 28px 28px;    /* 底部圆润如盆底 */
  padding: 14px 16px 20px;
}

.glass-btn {
  height: 62px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  cursor: pointer;
  transition: all 0.12s ease;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.glass-btn:active { transform: translateY(2px) scale(0.97); }
.glass-btn.satisfied { animation: giftPulse 0.5s ease-in-out 3; }
@keyframes giftPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
/* 精灵 */
.light-dot {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.95);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  top: -100px;
  transition: opacity 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.light-dot.visible { opacity: 1; }
.light-dot.scared { animation: shake 0.3s ease; }

@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
}

.face {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.eyes { display: flex; width: 100%; }
.eye { position: relative; width: 26px; height: 34px; }
.eye-white { width: 100%; height: 100%; background: #fff; border-radius: 50% / 60%; }

.pupil {
  width: 12px;
  height: 12px;
  background: #000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.eye.closed .eye-white { height: 2px; }

.mouth {
  width: 12px;
  height: 6px;
  border-bottom: 2px solid #000;
  border-radius: 0 0 6px 6px;
}

/* 球 */
.glass-ball {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(200, 200, 255, 0.4));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.glass-ball.gold {
  background: radial-gradient(circle, #FFD700, #FFA500);
  animation: goldGlow 1s ease infinite;
}

.glass-ball.silver {
  background: radial-gradient(circle, #E8E8E8, #C0C0C0);
}

@keyframes goldGlow {
  0%, 100% { box-shadow: 0 8px 24px rgba(255, 215, 0, 0.6); }
  50% { box-shadow: 0 8px 24px rgba(255, 215, 0, 0.9), 0 0 40px var(--gold-color); }
}

/* 面板 */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s ease;
}

.panel-overlay.show {
  opacity: 1;
  visibility: visible;
}

.function-detail-panel {
  position: fixed;
  top: 0;
  left: -100%;
  width: 85%;
  max-width: 600px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(100px) saturate(300%) brightness(1.15);
  border-right: 8px solid rgba(255, 255, 255, 0.7);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  box-shadow:
    20px 0 60px rgba(0, 0, 0, 0.3),
    10px 0 30px rgba(0, 0, 0, 0.2),
    5px 0 15px rgba(0, 0, 0, 0.1);
}

.function-detail-panel.show {
  animation: panelSlideIn 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.function-detail-panel.closing {
  animation: panelSlideOut 0.8s cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes panelSlideIn {
  0% { left: -100%; }
  60% { left: 0; }
  75% { left: -4%; }
  85% { left: 0; }
  92% { left: -1%; }
  100% { left: 0; }
}

@keyframes panelSlideOut {
  0% { left: 0; }
  15% { left: 2%; }
  100% { left: -100%; }
}

.panel-header {
  background: rgba(255, 255, 255, 0.35);
  padding: 35px 30px 30px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.panel-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.panel-datetime {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.panel-date {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 1px;
}

.panel-time {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  font-family: 'Arial', monospace;
  letter-spacing: 2px;
}

.panel-title {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
}

.panel-close-btn {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  font-size: 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel-content {
  padding: 40px 30px;
  overflow-y: auto;
  flex: 1;
}

.panel-footer {
  background: rgba(255, 255, 255, 0.35);
  padding: 15px 30px;
  border-top: 3px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  display: none;
}

.confirm-booking-btn {
  width: 100%;
  padding: 20px;
  background: linear-gradient(135deg, var(--success-color), #228B22);
  border: none;
  border-radius: 16px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

/* 可展开区域 */
.expandable-section {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  margin-bottom: 28px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
}

.section-header {
  padding: 25px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.date-icon {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

.date-number {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 900;
  color: #333;
  text-shadow: none;
  font-family: Arial, sans-serif;
}

.expand-icon {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.expand-icon.expanded {
  transform: rotate(180deg);
}

.section-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 32px;
}

.section-details.expanded {
  max-height: 2000px;
  padding: 0 32px 25px;
}

.content-section {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  padding: 32px;
  margin-bottom: 28px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}

/* 日期网格 */
.date-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.date-option {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.date-option:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.date-option.selected {
  background: var(--accent-color);
  border-color: var(--accent-color);
  box-shadow: 0 4px 12px rgba(255, 91, 95, 0.4);
}

.date-weekday {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 4px;
}

.date-day {
  font-size: 16px;
  font-weight: 700;
}

/* 时间网格 */
.time-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.time-option {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.time-option:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.time-option.selected {
  background: var(--success-color);
  border-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(50, 205, 50, 0.4);
}

/* 服务网格 */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.service-option {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.service-option:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.service-option.selected {
  background: var(--gold-color);
  border-color: var(--gold-color);
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.service-option .service-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-option .service-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-color);
}

.service-option.selected .service-price {
  color: #000;
}

/* 输入框 */
.booking-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.booking-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(255, 91, 95, 0.2);
}

.booking-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.feature-list { list-style: none; }

.feature-item {
  background: rgba(255, 255, 255, 0.25);
  padding: 17px 22px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #fff;
}

/* 客户信息表单 */
.customer-info-form { margin: 20px 0; }

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(255, 91, 95, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* 服务列表 */
.service-list { margin-top: 15px; }

.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 18px 22px;
  margin-bottom: 12px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(5px);
}

.service-name {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.service-price {
  color: var(--gold-color);
  font-size: 18px;
  font-weight: 700;
}

/* 时间选择器 */
.time-picker-container {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.picker-column {
  flex: 1;
  max-width: 120px;
}

.picker-label {
  font-size: 14px;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.picker-wheel {
  height: 150px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  scroll-snap-type: y mandatory;
}

.picker-option {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  scroll-snap-align: center;
}

.picker-option.selected {
  color: var(--gold-color);
  font-size: 22px;
  background: rgba(255, 255, 255, 0.15);
}

.picker-option.booked {
  color: rgba(150, 150, 150, 0.5) !important;
  cursor: not-allowed;
  text-decoration: line-through;
  font-size: 15px;
  position: relative;
  background: rgba(0,0,0,0.2) !important;
  border-radius: 8px;
  pointer-events: none;
}

.picker-option.booked::after {
  content: '✗';
  font-size: 11px;
  margin-left: 4px;
  color: rgba(255, 80, 80, 0.6);
}

/* 呼吸动画 */
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 20px 60px rgba(102,126,234,0.4); }
  50% { opacity: 0.85; transform: scale(0.995); box-shadow: 0 20px 60px rgba(102,126,234,0.8); }
}

@keyframes miniBreath {
  0%, 100% { box-shadow: 0 8px 24px rgba(102,126,234,0.5); transform: translateY(0); }
  50% { box-shadow: 0 12px 32px rgba(102,126,234,0.8); transform: translateY(-2px); }
}

.picker-loading {
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  padding: 6px 0;
  letter-spacing: 1px;
}

/* 选择器 */
.staff-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.staff-option,
.detail-item {
  padding: 15px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  position: relative;
}

.staff-role {
  display: block;
  font-size: 11px;
  color: var(--gold-color);
  margin-top: 3px;
  letter-spacing: 1px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
}

.detail-item[style*="display: none"] {
  display: none !important;
}

.staff-option.selected,
.detail-item.selected {
  background: rgba(255, 215, 0, 0.3);
  border-color: var(--gold-color);
  color: var(--gold-color);
}

.detail-price {
  font-weight: 800;
  color: var(--gold-color);
  font-size: 18px;
}

/* 提示框 */
.booking-alert {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 20px;
  z-index: 1001;
  max-width: 350px;
  opacity: 0;
  transition: all 0.4s ease;
}

.booking-alert.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.booking-alert-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.booking-alert-title.error { color: var(--accent-color); }
.booking-alert-title.success { color: var(--success-color); }

.booking-alert-message {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
  white-space: pre-line;
}

.booking-alert-btn {
  padding: 12px 30px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* 其他 */
#promoCard {
  position: absolute;
  width: 90%;
  max-width: 400px;
  height: 250px;
  background: linear-gradient(135deg, var(--accent-color), #FF6B6F);
  border-radius: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.8s ease;
}

#promoCard.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.promo-text {
  font-size: 32px;
  font-weight: 700;
}

.speech-bubble {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 12px 20px;
  color: var(--accent-color);
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

.speech-bubble.show { opacity: 1; }

#fireworkCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9;
  pointer-events: none;
}

/* 响应式 */
@media (max-width: 400px) {
  #logo { top: 60px; }
  .glass-btn { min-width: 110px; height: 50px; }
}


