/**
 * 毛孩子守护者 - 粉紫Tiffany蓝小黄鸭风格样式表
 * 粉色 · 紫色 · Tiffany蓝 · 小黄鸭黄 · 温暖明亮 · 治愈可爱
 */

:root {
  /* 主色调 - 粉紫Tiffany蓝小黄鸭黄 */
  --pink: #F2B5C8;
  --pink-light: #FADCE6;
  --pink-soft: #FFF0F4;
  --purple: #B8A0D4;
  --purple-light: #D8CCF0;
  --purple-soft: #F0ECFA;
  --tiffany: #7ECAD6;
  --tiffany-light: #B0E4EE;
  --tiffany-soft: #E8F8FC;
  --ducky: #F5D76E;
  --ducky-light: #FAE8A0;
  --ducky-soft: #FFF8E0;

  /* 页面基底 - 温暖明亮 */
  --bg-warm: #FFF8F4;
  --bg-deep: #F8F0EC;
  --surface: #FFFFFF;
  --surface-hover: #FFFDFC;
  --text-primary: #3A3050;
  --text-secondary: #6A6080;
  --text-muted: #9A90A8;

  /* 功能色映射 */
  --brand: #7ECAD6;
  --brand-dark: #4A98A8;
  --brand-light: #D0F0F6;
  --accent: #C4A0E0;
  --success: #7AC49A;
  --warning: #F0C050;
  --danger: #E8808A;
  --dark: #3A3050;
  --gray: #8A80A0;
  --light: #F8F0F4;
  --white: #FFFFFF;

  --radius: 18px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --shadow-sm: 0 3px 10px rgba(58, 48, 80, 0.05), 0 1px 4px rgba(58, 48, 80, 0.03);
  --shadow: 0 8px 28px rgba(58, 48, 80, 0.07), 0 4px 10px rgba(58, 48, 80, 0.03);
  --shadow-lg: 0 16px 48px rgba(58, 48, 80, 0.09), 0 8px 20px rgba(58, 48, 80, 0.05);
  --shadow-glow: 0 4px 20px rgba(126, 202, 214, 0.18);
  --shadow-pink: 0 4px 16px rgba(242, 181, 200, 0.2);
  --shadow-purple: 0 4px 16px rgba(184, 160, 212, 0.2);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background:
    radial-gradient(ellipse at 10% 15%, rgba(242, 181, 200, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(184, 160, 212, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%, rgba(126, 202, 214, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 25% 65%, rgba(245, 215, 110, 0.08) 0%, transparent 45%),
    linear-gradient(180deg, #FFF8F4 0%, #FFF2F0 50%, #F8F0F4 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
}

/* 导航栏 - 粉紫Tiffany蓝梦幻渐变 */
.navbar {
  background: linear-gradient(135deg, #B8A0D4 0%, #C8B0E0 20%, #7ECAD6 50%, #A0D8E8 75%, #B8A0D4 100%);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #FFFDF8;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 24px rgba(184, 160, 212, 0.2);
  border-bottom: 2px solid rgba(255, 253, 248, 0.18);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(58, 48, 80, 0.15);
}

.logo span:first-child {
  display: inline-block;
  animation: pawWave 2s ease-in-out infinite;
}

@keyframes pawWave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-link {
  color: rgba(255, 253, 248, 0.85);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255, 253, 248, 0.22);
  color: #FFFDF8;
  border-color: rgba(255, 253, 248, 0.18);
  box-shadow: 0 2px 12px rgba(58, 48, 80, 0.08);
  transform: translateY(-1px);
}

/* 导航栏下拉菜单 */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(255, 253, 248, 0.98);
  border-radius: var(--radius-lg);
  padding: 10px 8px;
  min-width: 170px;
  box-shadow: 0 12px 40px rgba(58, 48, 80, 0.12), 0 4px 12px rgba(58, 48, 80, 0.06);
  border: 1px solid rgba(184, 160, 212, 0.15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 101;
  backdrop-filter: blur(12px);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(255, 253, 248, 0.98);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(126, 202, 214, 0.15) 0%, rgba(242, 181, 200, 0.1) 100%);
  color: var(--brand-dark);
  transform: translateX(4px);
}

/* 页面容器 */
.page {
  display: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 28px;
  animation: cuteFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page.active {
  display: block;
}

@keyframes cuteFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero 区域 - 漫画风格装饰 */
.hero {
  text-align: center;
  padding: 56px 32px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(245, 215, 110, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 40%, rgba(242, 181, 200, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 40% 75%, rgba(126, 202, 214, 0.16) 0%, transparent 40%),
    linear-gradient(135deg, #C4A0E0 0%, #B8A0D4 15%, #A0C8E0 35%, #7ECAD6 55%, #90D4D8 75%, #B8C8E0 100%);
  color: #FFFDF8;
  border-radius: var(--radius-xl);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 253, 248, 0.2);
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -40%;
  width: 180%;
  height: 220%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(245, 215, 110, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(184, 160, 212, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(242, 181, 200, 0.12) 0%, transparent 40%);
  animation: gentleDrift 10s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/hero-banner.jpg') center/cover no-repeat;
  opacity: 0.15;
  mix-blend-mode: soft-light;
  border-radius: inherit;
  pointer-events: none;
}

@keyframes gentleDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-1.5%, 1%) scale(1.01); }
  66% { transform: translate(1.5%, -0.5%) scale(1.01); }
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 14px;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(58, 48, 80, 0.15);
}

.hero p {
  font-size: 1.08rem;
  opacity: 0.95;
  max-width: 520px;
  margin: 0 auto 28px;
  position: relative;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(58, 48, 80, 0.1);
}

/* 按钮 - 柔糖质感 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 28px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.3px;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.btn-primary {
  background: rgba(255, 253, 248, 0.92);
  color: #4A3860;
  box-shadow: 0 4px 16px rgba(58, 48, 80, 0.08);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(58, 48, 80, 0.12);
  background: #FFFDF8;
}

.btn-primary:active {
  transform: translateY(0) scale(0.97);
}

.btn-brand {
  background: linear-gradient(135deg, #7ECAD6 0%, #90D4E0 40%, #B0A0D8 100%);
  color: #FFFDF8;
  box-shadow: 0 4px 16px rgba(126, 202, 214, 0.25);
}

.btn-brand:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(126, 202, 214, 0.35);
  filter: brightness(1.06);
}

.btn-brand:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 253, 248, 0.5);
  color: #FFFDF8;
}

.btn-outline:hover {
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 253, 248, 0.8);
  transform: translateY(-3px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
  border-radius: 22px;
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 1px solid rgba(42, 74, 80, 0.06);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7ECAD6, #F2B5C8, #F5D76E, #B8A0D4);
  opacity: 0.7;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 120% 120%, rgba(138, 186, 200, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 138, 138, 0.12);
  background: var(--surface-hover);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 14px;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.2) rotate(-5deg);
}

.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 宠物卡片 */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 22px;
}

.pet-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  border: 1px solid rgba(42, 74, 80, 0.06);
}

.pet-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(74, 138, 138, 0.10);
  background: var(--surface-hover);
}

.pet-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pet-card:hover .pet-image {
  transform: scale(1.05);
}

.pet-info {
  padding: 18px;
}

.pet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pet-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.match-badge {
  background: linear-gradient(135deg, #7ECAD6 0%, #90D4E0 100%);
  color: #FFFDF8;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(126, 202, 214, 0.15);
}

.match-badge.high { background: linear-gradient(135deg, #7AC49A 0%, #90D4AA 100%); }
.match-badge.medium { background: linear-gradient(135deg, #F5D76E 0%, #F0C850 100%); }

.pet-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.pet-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pet-tag {
  background: linear-gradient(135deg, rgba(126, 202, 214, 0.2) 0%, rgba(242, 181, 200, 0.15) 100%);
  color: var(--brand-dark);
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  border: 1px solid rgba(126, 202, 214, 0.1);
}

/* 问卷 */
.questionnaire {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid rgba(42, 74, 80, 0.06);
  position: relative;
}

.questionnaire::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, #7ECAD6, #B8A0D4, #F2B5C8, #F5D76E);
  border-radius: 3px;
  opacity: 0.6;
}

.question-step {
  margin-bottom: 24px;
}

.question-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-primary);
}

.options-grid {
  display: grid;
  gap: 12px;
}

.option-btn {
  padding: 16px 20px;
  border: 2px solid #D0C8BC;
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-primary);
}

.option-btn:hover {
  border-color: #B8A0D4;
  background: linear-gradient(135deg, rgba(126, 202, 214, 0.12) 0%, rgba(242, 181, 200, 0.08) 100%);
  transform: translateX(6px);
}

.option-btn.selected {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(126, 202, 214, 0.1) 0%, rgba(184, 160, 212, 0.08) 100%);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(126, 202, 214, 0.12);
}

.progress-bar {
  height: 8px;
  background: rgba(200, 196, 184, 0.4);
  border-radius: 6px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid rgba(42, 74, 80, 0.06);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7ECAD6, #B8A0D4, #F2B5C8, #F5D76E);
  border-radius: 6px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 详情页 */
.detail-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid rgba(42, 74, 80, 0.06);
}

.detail-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.detail-info {
  padding: 32px;
}

.detail-info h2 {
  font-size: 1.7rem;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.detail-section {
  margin-bottom: 22px;
}

.detail-section h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.detail-section p {
  color: var(--text-primary);
  line-height: 1.8;
}

/* 匹配分析 */
.match-analysis {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  border: 1px solid rgba(42, 74, 80, 0.06);
}

.match-score-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: conic-gradient(#7ECAD6 calc(var(--score) * 0.25%), #B8A0D4 calc(var(--score) * 0.5%), #F2B5C8 calc(var(--score) * 0.75%), #F5D76E calc(var(--score) * 1%), #F8F0F4 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  box-shadow: 0 4px 20px rgba(126, 202, 214, 0.15);
}

.match-score-ring::before {
  content: '';
  position: absolute;
  width: 96px;
  height: 96px;
  background: var(--surface);
  border-radius: 50%;
}

.match-score-value {
  position: relative;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(42, 74, 80, 0.06);
}

.score-item:last-child {
  border-bottom: none;
}

.score-bar {
  width: 120px;
  height: 8px;
  background: rgba(200, 196, 184, 0.4);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(42, 74, 80, 0.04);
}

.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #7ECAD6, #B8A0D4);
  border-radius: 6px;
}

/* 表单 */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-size: 0.92rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #E0D8E8;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: inherit;
  background: var(--surface);
  color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(126, 202, 214, 0.1);
  background: var(--surface-hover);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* 鼻纹上传 */
.nose-upload {
  border: 3px dashed #E0D8E8;
  border-radius: var(--radius-xl);
  padding: 44px 28px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  background: linear-gradient(135deg, rgba(240, 232, 216, 0.6) 0%, rgba(248, 244, 238, 0.4) 100%);
}

.nose-upload:hover,
.nose-upload.dragover {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(126, 202, 214, 0.15) 0%, rgba(242, 181, 200, 0.1) 100%);
  box-shadow: 0 4px 20px rgba(126, 202, 214, 0.1);
}

.nose-upload.has-image {
  border-style: solid;
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(122, 196, 154, 0.08) 0%, rgba(122, 196, 154, 0.05) 100%);
}

.nose-preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: var(--radius-lg);
  margin: 12px auto;
}

/* 协议 */
.agreement-box {
  background: linear-gradient(135deg, rgba(240, 232, 216, 0.5) 0%, rgba(248, 244, 238, 0.7) 100%);
  border: 1px solid #E0D8E8;
  border-radius: var(--radius-lg);
  padding: 22px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 18px;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--text-primary);
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 64px 28px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 4.5rem;
  margin-bottom: 18px;
  opacity: 0.5;
  animation: emptyBounce 3s ease-in-out infinite;
}

@keyframes emptyBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #C4A0E0 0%, #7ECAD6 100%);
  color: #FFFDF8;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 0.92rem;
  z-index: 200;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 28px rgba(184, 160, 212, 0.2);
  border: 1px solid rgba(255, 253, 248, 0.08);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 48, 80, 0.25);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 150;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: cuteModalIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(42, 74, 80, 0.06);
}

@keyframes cuteModalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* 通知卡片 */
.announcement-card {
  background: linear-gradient(135deg, rgba(242,181,200,0.15) 0%, rgba(184,160,212,0.1) 50%, rgba(126,202,214,0.1) 100%);
  border: 1px solid rgba(242,181,200,0.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.announcement-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-pink);
  border-color: rgba(242,181,200,0.35);
}

.announcement-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #F2B5C8, #B8A0D4);
  border-radius: 2px;
}

.announcement-card.high::before {
  background: linear-gradient(180deg, #F2B5C8, #F5D76E);
}

.announcement-card .ann-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.announcement-card .ann-content {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.announcement-card .ann-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.announcement-banner {
  background: linear-gradient(135deg, #F2B5C8 0%, #B8A0D4 50%, #7ECAD6 100%);
  color: white;
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.announcement-banner::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.announcement-banner .ann-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
  position: relative;
}

.announcement-banner .ann-content {
  font-size: 0.88rem;
  line-height: 1.7;
  opacity: 0.95;
  position: relative;
}

.announcement-banner .ann-date {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 10px;
  position: relative;
}

/* 悬浮客服按钮 */
.chat-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ECAD6 0%, #B8A0D4 50%, #F2B5C8 100%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(126, 202, 214, 0.35);
  z-index: 200;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid rgba(255,255,255,0.3);
}

.chat-float-btn:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 32px rgba(126, 202, 214, 0.45);
}

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

/* 客服对话窗口 */
.chat-widget {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 360px;
  max-width: calc(100vw - 56px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  z-index: 199;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(42, 74, 80, 0.06);
  animation: cuteModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chat-widget.active {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, #7ECAD6 0%, #B8A0D4 100%);
  color: white;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(126,202,214,0.04) 0%, rgba(242,181,200,0.03) 100%);
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  animation: cuteFadeIn 0.3s ease;
}

.chat-bubble-bot {
  background: linear-gradient(135deg, rgba(126,202,214,0.15) 0%, rgba(184,160,212,0.1) 100%);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(126,202,214,0.1);
}

.chat-bubble-user {
  background: linear-gradient(135deg, #7ECAD6 0%, #B8A0D4 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(42, 74, 80, 0.06);
  background: var(--surface);
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #E0D8E8;
  border-radius: 22px;
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.chat-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(126, 202, 214, 0.1);
}

.chat-send-btn {
  padding: 10px 20px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(135deg, #7ECAD6 0%, #B8A0D4 100%);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

/* 响应式 */
@media (max-width: 640px) {
  .navbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav-link {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  .hero {
    padding: 36px 20px;
    border-radius: var(--radius-lg);
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .detail-header {
    grid-template-columns: 1fr;
  }
  .page {
    padding: 16px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .pet-grid {
    grid-template-columns: 1fr;
  }
  .questionnaire {
    padding: 24px;
  }
}

/* 首页寻宠滚动 */
.lost-pets-marquee {
  overflow: hidden;
  position: relative;
}

.lost-pets-track {
  display: flex;
  gap: 12px;
  animation: marqueeScroll 20s linear infinite;
  width: max-content;
}

.lost-pets-marquee:hover .lost-pets-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 满意度评分 */
.satisfaction-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0;
}

.satisfaction-bar span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 1.1rem;
}

.satisfaction-bar span:hover,
.satisfaction-bar span.active {
  background: linear-gradient(135deg, #C4A0E0 0%, #D8B0F0 100%);
  color: white;
  transform: scale(1.2);
  box-shadow: 0 4px 14px rgba(196, 160, 224, 0.35);
}

/* 搜索高亮 */
.search-highlight { background: rgba(245, 215, 110, 0.25); padding: 0 3px; border-radius: 2px; }

/* 知识列表 */
.knowledge-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(42, 74, 80, 0.06);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.knowledge-item:hover {
  box-shadow: var(--shadow);
  border-color: rgba(74, 138, 138, 0.10);
  background: var(--surface-hover);
  transform: translateX(4px);
}

.knowledge-item h3 { margin-bottom: 8px; font-size: 1.05rem; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.knowledge-item .meta { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.knowledge-item p { color: var(--text-secondary); line-height: 1.7; font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.knowledge-item .source { margin-top: 10px; font-size: 0.8rem; }
.knowledge-item .source a { color: var(--brand); text-decoration: none; }
.knowledge-item .source a:hover { text-decoration: underline; }

/* 配送追踪 */
.shipping-tracker {
  display: flex;
  justify-content: space-between;
  margin: 28px 0;
  position: relative;
}

.shipping-tracker::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 40px;
  right: 40px;
  height: 3px;
  background: rgba(200, 196, 184, 0.4);
  border-radius: 2px;
}

.shipping-step {
  text-align: center;
  position: relative;
  flex: 1;
}

.shipping-step .circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #E8E0D0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 2px solid transparent;
}

.shipping-step.active .circle {
  background: linear-gradient(135deg, #7ECAD6, #B0A0D8);
  color: white;
  box-shadow: 0 4px 12px rgba(126, 202, 214, 0.22);
}

.shipping-step .label { font-size: 0.78rem; color: var(--text-muted); }
.shipping-step.active .label { color: var(--brand-dark); font-weight: 600; }
