/* ===== 梁雯婷专属网页 - 自然色调主题 ===== */

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

body { -webkit-font-smoothing: antialiased; }

/* 滚动条 */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #B0CCB4; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #8FB394; }

/* ===== 动画 ===== */
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fade-in 0.35s ease-out; }

@keyframes scale-in { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.animate-scale-in { animation: scale-in 0.3s ease-out; }

@keyframes slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.animate-slide-down { animation: slide-down 0.3s ease-out; }

@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }
.animate-pop { animation: pop 0.25s ease-out; }

@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin-slow { animation: spin-slow 8s linear infinite; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(124, 152, 133, 0.3); }
  70% { box-shadow: 0 0 0 12px rgba(124, 152, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 152, 133, 0); }
}
.animate-pulse-ring { animation: pulse-ring 2s infinite; }

/* ===== 卡片 ===== */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 1.25rem;
  box-shadow: 0 2px 20px rgba(124, 152, 133, 0.06);
  transition: all 0.25s ease;
}
.glass-card:hover {
  box-shadow: 0 8px 30px rgba(124, 152, 133, 0.12);
  transform: translateY(-2px);
}

.solid-card {
  background: white;
  border-radius: 1.25rem;
  border: 1px solid #F0F5F0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}
.solid-card:hover {
  box-shadow: 0 4px 16px rgba(124, 152, 133, 0.1);
  border-color: #D2E1D4;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { background: #7C9885; color: white; }
.btn-primary:hover { background: #5F7B68; }

.btn-ghost { background: #F5F8F5; color: #5F7B68; }
.btn-ghost:hover { background: #E8F0E9; }

.btn-danger { background: #C08497; color: white; }
.btn-danger:hover { background: #A66B7E; }

.btn-success { background: #6B9B7E; color: white; }
.btn-success:hover { background: #557D65; }

.btn-outline { background: transparent; border: 1.5px solid #D2E1D4; color: #5F7B68; }
.btn-outline:hover { border-color: #8FB394; background: #F5F8F5; }

.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-icon { padding: 0.5rem; border-radius: 0.625rem; }

/* ===== 输入框 ===== */
.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1.5px solid #E0E5E0;
  background: #FAFBFA;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.18s ease;
  color: #374151;
}
.input:focus {
  outline: none;
  border-color: #8FB394;
  background: white;
  box-shadow: 0 0 0 3px rgba(143, 179, 148, 0.15);
}
.input::placeholder { color: #B0CCB4; }

/* ===== 标签 ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* ===== 导航 ===== */
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.18s ease;
  font-weight: 500;
  font-size: 0.875rem;
  color: #6B7280;
  position: relative;
}
.nav-item:hover { background: #F5F8F5; color: #5F7B68; }
.nav-item.active {
  background: #7C9885;
  color: white;
  box-shadow: 0 2px 8px rgba(124, 152, 133, 0.3);
}

/* ===== 时间线 ===== */
.timeline-line {
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #D2E1D4, #E8F0E9, transparent);
}
.timeline-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid #7C9885;
  z-index: 1;
}
.timeline-dot.done { border-color: #6B9B7E; }

/* ===== 瀑布流 ===== */
.masonry-grid { column-count: 3; column-gap: 1rem; }
@media (max-width: 768px) { .masonry-grid { column-count: 2; } }
@media (max-width: 480px) { .masonry-grid { column-count: 1; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }

/* ===== 复选框 ===== */
.check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #D1D5DB;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: white;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}
.check-box:checked { background: #7C9885; border-color: #7C9885; }
.check-box:checked::after {
  content: '';
  position: absolute;
  top: 3px; left: 6px;
  width: 6px; height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ===== 开关 ===== */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #E5E7EB;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.on { background: #7C9885; }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.on::after { transform: translateX(20px); }

/* ===== 模态框 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(55, 48, 50, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

/* ===== 背景装饰 ===== */
.bg-deco {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ===== 图标默认样式 ===== */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ===== 首页轮播 ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-slide.active {
  opacity: 1;
}
.carousel-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  padding: 0;
}
.carousel-dot.active {
  width: 28px;
  border-radius: 4px;
  background: white;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,0.3);
}
.carousel-arrow.prev { left: 1rem; }
.carousel-arrow.next { right: 1rem; }

/* ===== 移动端适配 ===== */
@media (max-width: 640px) {
  .nav-item { padding: 0.5rem 0.625rem; font-size: 0.75rem; gap: 0.25rem; }
  .slot-machine { width: 100%; max-width: 260px; }
  .modal-overlay { padding: 0.5rem; }
  .btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .btn-sm { padding: 0.3rem 0.6rem; font-size: 0.7rem; }
  .btn-icon { padding: 0.4rem; }
  .solid-card { border-radius: 1rem; }
  .glass-card { border-radius: 1rem; }
  .input { font-size: 0.8rem; padding: 0.5rem 0.75rem; }
  .tag { font-size: 0.65rem; padding: 0.15rem 0.5rem; }
}

/* 隐藏滚动条但保留功能 */
nav::-webkit-scrollbar { display: none; }
nav { -ms-overflow-style: none; scrollbar-width: none; }

/* ===== 灯光滚动筛选器 ===== */
.slot-machine {
  position: relative;
  width: 260px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #F5F8F5, #EDF1ED);
  box-shadow: inset 0 2px 8px rgba(124,152,133,0.08), 0 4px 20px rgba(124,152,133,0.1);
  border: 2px solid rgba(124,152,133,0.12);
}
.slot-viewport {
  overflow: hidden;
  position: relative;
}
.slot-list {
  will-change: transform;
}
.slot-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
}
.slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.slot-text {
  pointer-events: none;
}
.slot-highlight {
  position: absolute;
  top: 50%;
  left: 4px;
  right: 4px;
  height: 56px;
  transform: translateY(-50%);
  border-radius: 12px;
  background: rgba(124,152,133,0.06);
  border: 1.5px solid rgba(124,152,133,0.15);
  z-index: 2;
  pointer-events: none;
  transition: all 0.4s ease;
}
.slot-highlight-active {
  background: color-mix(in srgb, var(--hl-color, #7C9885) 10%, transparent);
  border-color: var(--hl-color, #7C9885);
  box-shadow: 0 0 20px color-mix(in srgb, var(--hl-color, #7C9885) 30%, transparent);
}
.slot-indicator-left,
.slot-indicator-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  pointer-events: none;
}
.slot-indicator-left {
  left: 6px;
  border-left: 8px solid #7C9885;
}
.slot-indicator-right {
  right: 6px;
  border-right: 8px solid #7C9885;
}
.slot-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1;
  pointer-events: none;
}
.slot-mask-top {
  top: 0;
  background: linear-gradient(to bottom, #F5F8F5 0%, rgba(245,248,245,0.6) 50%, transparent 100%);
}
.slot-mask-bottom {
  bottom: 0;
  background: linear-gradient(to top, #F5F8F5 0%, rgba(245,248,245,0.6) 50%, transparent 100%);
}
