/* 广州昇龙宠物用品有限公司 - 全局与定制样式 */
@charset "UTF-8";

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #ecfdf5;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --dark: #0f172a;
  --gray-bg: #f8fafc;
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 30px -10px rgba(16, 185, 129, 0.15);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body {
  background-color: var(--gray-bg);
  color: #334155;
  overflow-x: hidden;
}

/* 玻璃拟态与阴影 */
.glass-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(241, 245, 249, 1);
}

/* 渐变文本与背景 */
.text-gradient {
  background: linear-gradient(135deg, #059669 0%, #10b981 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient-bg {
  background: radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
              #ffffff;
}

/* 商品卡片悬浮动效 */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* 徽章跳动动效 */
@keyframes badge-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.badge-bump {
  animation: badge-bounce 0.3s ease-in-out;
}

/* 购物车抽屉滑出 */
.cart-overlay {
  transition: opacity 0.3s ease;
}

.cart-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 模态框渐变出现 */
.modal-enter {
  opacity: 0;
  transform: scale(0.95);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 自定义选中的 Radio / Button 样式 */
.spec-btn.active {
  border-color: #10b981;
  background-color: #ecfdf5;
  color: #065f46;
  font-weight: 600;
}

/* 浮动客服脉冲动画 */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

.pulse-ring::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  z-index: -1;
  animation: pulse-ring 2s infinite;
}

/* 二维码扫描雷达线 */
@keyframes scan-line {
  0% { top: 0%; }
  50% { top: 90%; }
  100% { top: 0%; }
}

.scan-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10b981, transparent);
  box-shadow: 0 0 8px #10b981;
  animation: scan-line 2.5s ease-in-out infinite;
}

/* 审核进度条动效 */
@keyframes progress-stripe {
  0% { background-position: 1rem 0; }
  100% { background-position: 0 0; }
}

.progress-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
  animation: progress-stripe 1s linear infinite;
}

/* 导航链接下划线动效 */
.nav-link-item {
  position: relative;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #10b981;
  border-radius: 9999px;
  transition: width 0.25s ease-in-out;
}

.nav-link-item:hover::after {
  width: 100%;
}

