/* ========== CSS Variables ========== */
:root {
  color-scheme: light;
  --paw-primary: #007C8C;
  --paw-deep: #004C5C;
  --paw-light: #F6F6F1;
  --paw-dark: #0F1114;
  --paw-accent: #00FFE0;
  --paw-gradient-1: #00D9FF;
  --paw-gradient-2: #00FFE0;
}

/* ========== Body & Background ========== */
body {
  background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
  background-attachment: fixed;
  position: relative;
}

/* 科技网格背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 124, 140, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 140, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ========== Glass Card ========== */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 124, 140, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ========== Gradient Button ========== */
.btn-gradient {
  background: linear-gradient(135deg, #004C5C 0%, #007C8C 50%, #004C5C 100%);
  background-size: 200% 200%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-gradient::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.btn-gradient:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-gradient:hover::before {
  left: 100%;
}

/* ========== Gradient Text ========== */
.gradient-text {
  background: linear-gradient(135deg, #007C8C 0%, #004C5C 50%, #007C8C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradient-move 6s ease infinite;
}

/* ========== Input Styles ========== */
.glass-input {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 124, 140, 0.2);
  transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: #007C8C;
  box-shadow: 0 0 0 3px rgba(0, 124, 140, 0.1);
}

/* ========== Claw Logo Box ========== */
.claw-logo-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 124, 140, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  font-weight: 600;
  /* color: var(--paw-deep); */
}

.claw-logo-box img {
  height: 24px;
  width: auto;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(248, 249, 250, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007C8C, #004C5C);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #004C5C, #007C8C);
}

/* ========== Selection ========== */
::selection {
  background: rgba(0, 124, 140, 0.3);
  color: var(--paw-dark);
}

/* ========== Progress Bar ========== */
.progress-glow {
  box-shadow: none;
}

/* ========== Animation Delays ========== */
.float-delay-1 { animation-delay: 0.2s; }
.float-delay-2 { animation-delay: 0.4s; }
.float-delay-3 { animation-delay: 0.6s; }

/* ========== Shimmer Effect ========== */
.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}

/* ========== Viewer Host ========== */
.viewer-host {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 2px solid rgba(0, 124, 140, 0.1);
}

/* ========== Nice Scroll ========== */
.nice-scroll::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.nice-scroll::-webkit-scrollbar-track {
  background: rgba(248, 249, 250, 0.5);
}

.nice-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #007C8C, #004C5C);
  border-radius: 6px;
}

.nice-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #004C5C, #007C8C);
}

/* ========== Button ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--paw-deep);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  transform: scale(1.05);
}

.btn:active {
  transform: scale(0.95);
}

/* ========== Skeleton ========== */
.skeleton {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1) 25%, rgba(0, 0, 0, 0.05) 37%, rgba(0, 0, 0, 0.1) 63%);
  background-size: 400% 100%;
  animation: shimmer 2s ease infinite;
}
