/* =============================================
   动物世界主题 - 橙色系全息投影宠物
   包含丰富CSS3特效：动画、渐变、阴影、变换
   rem适配 - 设计稿宽度430px，基准rem=43px
   ============================================= */

/* 欢迎弹框样式 */
.welcome-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.welcome-modal.show {
  opacity: 1;
  visibility: visible;
}

.welcome-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 154, 86, 0.9) 0%, rgba(255, 107, 53, 0.95) 100%);
}

.welcome-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.welcome-content {
  animation: welcomeFadeIn 0.8s ease forwards;
}

@keyframes welcomeFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.698rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.welcome-dog-image {
  width: 4.651rem;
  height: auto;
  margin-bottom: 0.465rem;
  animation: dogBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0.233rem 0.698rem rgba(0, 0, 0, 0.3));
}

@keyframes dogBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.349rem); }
}

.welcome-title {
  font-size: 0.977rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.233rem;
  text-shadow: 0 0.093rem 0.465rem rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
  font-size: 0.419rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.698rem;
}

.welcome-btn {
  padding: 0.372rem 1.116rem;
  font-size: 0.419rem;
  font-weight: 600;
  color: #ff6b35;
  background: white;
  border: none;
  border-radius: 1.163rem;
  cursor: pointer;
  box-shadow: 0 0.186rem 0.698rem rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.welcome-btn:hover {
  transform: translateY(-0.070rem) scale(1.05);
  box-shadow: 0 0.279rem 0.930rem rgba(0, 0, 0, 0.3);
}

/* 信件模态框样式 */
.letter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.letter-modal.show {
  opacity: 1;
  visibility: visible;
}

.letter-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.186rem);
}

.letter-container {
  position: relative;
  z-index: 1;
  perspective: 23.256rem;
}

.letter-paper {
  width: 90vw;
  max-width: 13.953rem;
  max-height: 85vh;
  background: linear-gradient(145deg, #fefcf8 0%, #f8f4eb 50%, #f5efe3 100%);
  border-radius: 0.093rem;
  box-shadow: 
    0 0.698rem 1.395rem rgba(0, 0, 0, 0.3),
    0 0.233rem 0.465rem rgba(0, 0, 0, 0.2),
    inset 0 0.023rem 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
  transform: rotateX(10deg) scale(0.8);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.letter-modal.show .letter-paper {
  transform: rotateX(0deg) scale(1);
  opacity: 1;
}

.letter-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='none'/%3E%3Cpath d='M10 10h1v1h-1zM30 30h1v1h-1zM50 50h1v1h-1zM70 70h1v1h-1zM90 90h1v1h-1z' fill='%23d4c5a9' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.letter-decoration {
  position: absolute;
  top: -0.465rem;
  right: -0.465rem;
  width: 2.326rem;
  height: 2.326rem;
  background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
  border-radius: 50%;
  opacity: 0.1;
  animation: floatDecoration 6s ease-in-out infinite;
}

.letter-float-image {
  position: absolute;
  top: 0.233rem;
  right: 0.233rem;
  width: 1.86rem;
  height: auto;
  z-index: 10;
  animation: floatImage 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes floatImage {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-0.233rem) rotate(-5deg); }
}

@keyframes floatDecoration {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-0.233rem, 0.233rem) rotate(10deg); }
}

.wax-seal {
  position: absolute;
  top: 0.465rem;
  right: 0.465rem;
  width: 1.163rem;
  height: 1.163rem;
  background: linear-gradient(145deg, #c41e3a 0%, #8b0000 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.558rem;
  box-shadow: 
    0 0.093rem 0.349rem rgba(139, 0, 0, 0.4),
    inset 0 0.047rem 0.093rem rgba(255, 255, 255, 0.3);
  animation: sealPulse 2s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.letter-content {
  padding: 0.930rem 0.814rem;
  overflow-y: auto;
  max-height: 85vh;
}

.letter-title {
  font-size: 0.651rem;
  font-weight: 600;
  color: #4a3728;
  text-align: center;
  margin-bottom: 0.698rem;
  position: relative;
  font-family: 'Noto Serif SC', serif;
}

.letter-title::after {
  content: '';
  display: block;
  width: 1.86rem;
  height: 0.047rem;
  background: linear-gradient(90deg, transparent, #c9a86c, transparent);
  margin: 0.349rem auto 0;
}

.letter-body {
  font-size: var(--font-size-base, 0.326rem);
  line-height: 1.9;
  color: #5a4a3a;
  text-align: justify;
  font-family: 'Noto Serif SC', serif;
  white-space: pre-wrap;
}

.letter-body .char {
  opacity: 0;
  animation: fadeInChar 0.1s ease forwards;
}

@keyframes fadeInChar {
  to { opacity: 1; }
}

.letter-body p {
  margin-bottom: 0rem;
  text-indent: 2em;
}

.letter-close {
  position: absolute;
  top: 0.349rem;
  left: 0.349rem;
  width: 0.837rem;
  height: 0.837rem;
  border: none;
  background: linear-gradient(135deg, #e74c3c 0%, #3498db 100%);
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.419rem;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.letter-close:hover {
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0.093rem 0.349rem rgba(231, 76, 60, 0.4);
}

/* 响应式 */
@media (max-width: 768px) {
  .letter-paper {
    width: 95vw;
    max-height: 90vh;
  }
  
  .letter-content {
    padding: 0.698rem 0.581rem;
  }
  
  .letter-title {
    font-size: 0.558rem;
  }
  
  .letter-body {
    font-size: var(--font-size-base, 0.326rem);
    line-height: 1.8;
  }
  
  .wax-seal {
    width: 0.930rem;
    height: 0.930rem;
    font-size: 0.465rem;
    top: 0.349rem;
    right: 0.349rem;
  }
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--font-size-base, 0.326rem);
  background: linear-gradient(135deg, #fff8f0 0%, #fff0e6 50%, #ffe8d6 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景装饰 - 动物爪印 */
body::before {
  content: '\1F43E';
  position: fixed;
  font-size: 4.651rem;
  opacity: 0.03;
  top: 10%;
  right: 5%;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
  animation: floatPrint 20s ease-in-out infinite;
}

body::after {
  content: '\1F43E';
  position: fixed;
  font-size: 3.488rem;
  opacity: 0.02;
  bottom: 20%;
  left: 3%;
  transform: rotate(20deg);
  pointer-events: none;
  z-index: 0;
  animation: floatPrint 25s ease-in-out infinite reverse;
}

@keyframes floatPrint {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50% { transform: rotate(-15deg) translateY(-0.465rem); }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.930rem;
  padding: 0.558rem 0.651rem;
  padding-bottom: 1.395rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.465rem;
  box-shadow: 0 0.093rem 0.465rem rgba(255, 107, 53, 0.1);
  border: 0.047rem solid #fed7c2;
  position: relative;
  overflow: hidden;
}

.header-cat-image {
  position: absolute;
  left: 0.698rem;
  bottom: -0.884rem;
  height: 2.744rem;
  width: auto;
  z-index: 2;
  filter: drop-shadow(0 0.093rem 0.186rem rgba(0, 0, 0, 0.1));
}

.header-cats-row {
  position: absolute;
  left: 0.465rem;
  bottom: -0.884rem;
  z-index: 2;
  width: 6.977rem;
  height: 2.326rem;
}

.header-cat-row-image {
  position: absolute;
  height: 2.326rem;
  width: auto;
  filter: drop-shadow(0 0.093rem 0.186rem rgba(0, 0, 0, 0.1));
}

.cat-img-1 {
  left: 0;
}

.cat-img-2 {
  left: 2.349rem;
}

.cat-img-3 {
  left: 4.698rem;
}

.header-dog-image {
  position: absolute;
  right: 0.163rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.326rem;
  height: auto;
  opacity: 0.8;
  animation: animalFloat 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes animalFloat {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(-50%) rotate(5deg) translateX(0.233rem); }
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* =============================================
   侧边导航栏 - 动物世界风格
   ============================================= */
.sidebar {
  width: 6.047rem;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
  border-right: 0.047rem solid #fed7c2;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  box-shadow: 0.093rem 0 0.465rem rgba(255, 107, 53, 0.1);
}

.sidebar-header {
  padding: 0.651rem 0.465rem;
  border-bottom: 0.047rem solid #ffe4d6;
  background: linear-gradient(135deg, #ffffff 0%, #fff0e6 100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.279rem;
  position: relative;
}

.logo-icon {
  width: 1.116rem;
  height: 1.116rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 0.372rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.558rem;
  box-shadow: 0 0.093rem 0.349rem rgba(255, 107, 53, 0.4);
  animation: logoPulse 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 3s ease-in-out infinite;
}

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

@keyframes logoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0.093rem 0.349rem rgba(255, 107, 53, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0.140rem 0.581rem rgba(255, 107, 53, 0.6); }
}

.logo-text {
  font-size: 0.465rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.012rem;
}

.section-link {
  font-size: var(--font-size-base, 0.326rem);
  color: #ff6b35;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.186rem 0.372rem;
  border-radius: 0.465rem;
  background: rgba(255, 107, 53, 0.1);
}

.section-link:hover {
  background: #ff6b35;
  color: white;
  transform: translateX(0.093rem);
}

.pet-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.372rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0.093rem 0.465rem rgba(255, 107, 53, 0.1);
  border: 0.047rem solid #fed7c2;
  position: relative;
}

.pet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.093rem;
  background: linear-gradient(90deg, #ff6b35, #f7931e, #ffb347);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.pet-card:hover {
  transform: translateY(-0.186rem);
  box-shadow: 0 0.465rem 0.930rem rgba(255, 107, 53, 0.2);
  border-color: #ff6b35;
}

.pet-card:hover::before {
  transform: scaleX(1);
}

.profile-card {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffb347 100%);
  color: white;
  padding: 0.744rem;
  border-radius: 0.465rem;
  display: flex;
  align-items: center;
  gap: 0.465rem;
  margin-bottom: 0.558rem;
  box-shadow: 0 0.465rem 0.930rem rgba(255, 107, 53, 0.4);
  position: relative;
  overflow: hidden;
}

.profile-dog-image {
  position: absolute;
  right: 2rem;
  top: 86%;
  transform: translateY(-50%);
  width: 2.558rem;
  height: auto;
  opacity: 0.6;
  animation: lionFloat 6s ease-in-out infinite;
  pointer-events: none;
}

.profile-cat-image {
  position: absolute;
  right: 0.512rem;
  top: 91%;
  transform: translateY(-50%);
  width: 2.326rem;
  height: auto;
  opacity: 0.6;
  animation: catFloat 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes catFloat {
  0%, 100% { transform: translateY(-50%) rotate(5deg); }
  50% { transform: translateY(-50%) rotate(-5deg); }
}

@keyframes lionFloat {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(-50%) rotate(5deg); }
}

.section-header h2 {
  font-size: 0.465rem;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 0.186rem;
}

.section-header h2::before {
  content: '\1F43E';
  font-size: 0.512rem;
  animation: pawWiggle 2s ease-in-out infinite;
}

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

.create-card .action-icon {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  box-shadow: 0 0.186rem 0.581rem rgba(255, 107, 53, 0.4);
}

.hologram-card .action-icon {
  background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  color: white;
  box-shadow: 0 0.186rem 0.581rem rgba(249, 115, 22, 0.4);
}

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

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.action-card:hover .action-icon {
  transform: scale(1.15);
}

/* =============================================
   补充缺失的关键样式
   ============================================= */

.sidebar-nav {
  flex: 1;
  padding: 0.372rem 0.279rem;
  overflow-y: auto;
}

.sidebar-nav .nav-item {
  display: flex;
  align-items: center;
  padding: 0.279rem 0.372rem;
  border-radius: 0.233rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: 0.093rem;
}

.sidebar-nav .nav-item.active {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  box-shadow: 0 0.093rem 0.349rem rgba(255, 107, 53, 0.4);
}

/* 只在非触摸设备上应用hover效果 */
@media (hover: hover) and (pointer: fine) {
  .sidebar-nav .nav-item:hover {
    background: rgba(255, 107, 53, 0.08);
    color: #ff6b35;
  }
  
  .sidebar-nav .nav-item.active:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
  }
}

.sidebar-nav .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-footer {
  padding: 0.372rem 0.465rem;
  border-top: 0.047rem solid #ffe4d6;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.279rem;
}

.user-avatar {
  width: 0.930rem;
  height: 0.930rem;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.419rem;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: var(--font-size-base, 0.326rem);
  font-weight: 600;
  color: #111827;
}

.user-status {
  font-size: var(--font-size-xs, 0.279rem);
  color: #10b981;
}

.main-content {
  flex: 1;
  margin-left: 6.047rem;
  padding: 0.744rem 0.930rem;
  background: transparent;
  min-height: 100vh;
}

.page {
  display: none;
  max-width: 27.907rem;
  margin: 0 auto;
}

.page.active {
  display: block;
  animation: pageFade 0.3s ease;
}

@keyframes pageFade {
  from { opacity: 0; transform: translateY(0.233rem); }
  to { opacity: 1; transform: translateY(0); }
}

.welcome-text {
  padding-top: 0.233rem;
  color: #6b7280;
}

.header-actions {
  display: flex;
  gap: 0.279rem;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.465rem;
  margin-bottom: 0.930rem;
}

.action-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.372rem;
  padding: 0.558rem;
  display: flex;
  align-items: center;
  gap: 0.372rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 0.047rem solid #fed7c2;
  position: relative;
  overflow: visible;
}

.card-decoration {
  position: absolute;
  width: 1.86rem;
  height: 1.86rem;
  border-radius: 50%;
  opacity: 0.15;
}

.create-card {
  position: relative;
}

.card-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: auto;
  object-fit: contain;
  z-index: 0;
  opacity: 0.6;
}

.create-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.372rem;
  z-index: 1;
}

.create-card .action-icon,
.create-card .action-content,
.create-card .action-arrow {
  position: relative;
  z-index: 1;
}

.hologram-card {
  position: relative;
}

.hologram-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0.372rem;
  z-index: 1;
}

.hologram-card .action-icon,
.hologram-card .action-content,
.hologram-card .action-arrow {
  position: relative;
  z-index: 1;
}

@keyframes planetFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-0.116rem, -0.116rem) rotate(10deg); }
}

.action-card:hover {
  transform: translateY(-0.093rem);
  box-shadow: 0 0.279rem 0.558rem rgba(255, 107, 53, 0.2);
}

.action-card .action-icon {
  width: 1.488rem;
  height: 1.488rem;
  border-radius: 0.372rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-content {
  flex: 1;
}

.action-content h3 {
  font-size: 0.419rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.093rem;
}

.action-content p {
  font-size: var(--font-size-base, 0.326rem);
  color: #6b7280;
}

.action-arrow {
  color: #9ca3af;
  transition: all 0.3s ease;
}

.action-card:hover .action-arrow {
  transform: translateX(0.093rem);
  color: #ff6b35;
}

.section {
  margin-bottom: 0.930rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.465rem;
}

#homePetImage {
  position: absolute;
  right: 0.814rem;
  top: 7%;
  transform: translateY(-50%);
  height: 3.721rem;
  z-index: 1;
}

.section-character-image {
  position: absolute;
  right: 0.814rem;
  top: 50%;
  transform: translateY(-50%);
  height: 1.86rem;
  width: auto;
  z-index: 1;
}

.character-icon-img {
  width: 1.86rem;
  height: 1.86rem;
  object-fit: contain;
  opacity: 1 !important;
  filter: none !important;
}

.home-dog-extra {
  position: absolute;
  right: 3.256rem;
  top: 100%;
  transform: translateY(-50%);
  height: 1.488rem;
  z-index: 1;
}

.anime-images-row {
  position: absolute;
  top: 0.302rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  gap: 0;
  z-index: 10;
  transform: translateY(-100%);
}

.anime-img {
  height: 1.395rem;
  width: auto;
  object-fit: contain;
  border-radius: 0.186rem;
  opacity: 1;
  transition: transform 0.3s ease;
}

.anime-img:hover {
  transform: translateY(-0.070rem);
}

.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.651rem, 1fr));
  gap: 0.465rem;
}

.pet-card-image {
  width: 100%;
  height: 3.721rem;
  object-fit: cover;
  background: linear-gradient(135deg, #fff0e6 0%, #ffe4d6 100%);
}

.pet-card-placeholder {
  width: 100%;
  height: 3.721rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 50%, #a5b4fc 100%);
}

.default-avatar-img {
  width: 2.326rem;
  height: 2.326rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.070rem solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0.186rem 0.465rem rgba(0, 0, 0, 0.15);
}

.pet-card-info {
  padding: 0.372rem;
}

.pet-card-name {
  font-size: var(--font-size-lg, 0.372rem);
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.093rem;
}

.pet-card-meta {
  font-size: var(--font-size-sm, 0.302rem);
  color: #6b7280;
}

.empty-state {
  text-align: center;
  padding: 1.395rem 0.465rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.372rem;
  border: 0.047rem dashed #fed7c2;
  min-height: 4.651rem;
}

.empty-icon {
  font-size: 1.116rem;
  margin-bottom: 0.372rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 1.86rem;
  opacity: 1;
}

.empty-icon img {
  opacity: 1 !important;
}

.empty-state p {
  font-size: var(--font-size-md, 0.349rem);
  color: #6b7280;
  margin-bottom: 0.465rem;
}

/* 创建档案页 - 3D Tab按钮 */
.create-tabs {
  display: flex;
  gap: 0.465rem;
  margin-bottom: 0.744rem;
  justify-content: center;
}

.create-tab {
  flex: 1;
  max-width: 5.116rem;
  padding: 0.465rem 0.651rem;
  border: none;
  background: linear-gradient(145deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.465rem;
  font-size: var(--font-size-lg, 0.372rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.279rem;
  box-shadow: 
    0 0.186rem 0.581rem rgba(0, 0, 0, 0.08),
    inset 0 0.047rem 0.093rem rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.create-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 0.465rem;
  padding: 0.070rem;
  background: linear-gradient(135deg, #fed7c2, #ffb347);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.create-tab:hover {
  transform: translateY(-0.116rem) scale(1.02);
  box-shadow: 
    0 0.349rem 0.814rem rgba(255, 107, 53, 0.2),
    inset 0 0.047rem 0.093rem rgba(255, 255, 255, 0.8);
  color: #ff6b35;
}

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

.create-tab.active {
  background: linear-gradient(145deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  transform: translateY(-0.070rem);
  box-shadow: 
    0 0.349rem 0.814rem rgba(255, 107, 53, 0.4),
    inset 0 0.047rem 0.093rem rgba(255, 255, 255, 0.3);
}

.create-tab.active::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
}

.create-tab.active .tab-icon {
  transform: scale(1.15);
  animation: tabIconBounce 0.6s ease;
}

@keyframes tabIconBounce {
  0%, 100% { transform: scale(1.15); }
  50% { transform: scale(1.3) rotate(-10deg); }
}

.tab-icon {
  font-size: 0.558rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 激活指示器 */
.create-tab .tab-indicator {
  position: absolute;
  bottom: 0.186rem;
  width: 0.465rem;
  height: 0.093rem;
  background: rgba(255, 107, 53, 0.3);
  border-radius: 0.047rem;
  transition: all 0.3s ease;
}

.create-tab.active .tab-indicator {
  background: rgba(255, 255, 255, 0.8);
  width: 0.930rem;
}

.create-form {
  display: none;
}

.create-form.active {
  display: block;
  animation: formFade 0.3s ease;
}

@keyframes formFade {
  from { opacity: 0; transform: translateY(0.233rem); }
  to { opacity: 1; transform: translateY(0); }
}

.form-section {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  padding: 0.558rem;
  border-radius: 0.372rem;
  margin-bottom: 0.465rem;
  box-shadow: 0 0.093rem 0.465rem rgba(255, 107, 53, 0.1);
  border: 0.047rem solid #fed7c2;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 0.372rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.372rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.186rem;
}

.form-group label {
  font-size: var(--font-size-sm, 0.302rem);
  font-weight: 500;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.279rem 0.372rem;
  border: 0.047rem solid #fed7c2;
  border-radius: 0.233rem;
  font-size: var(--font-size-base, 0.326rem);
  color: #111827;
  background: #ffffff;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff6b35;
  background: white;
  box-shadow: 0 0 0 0.093rem rgba(255, 107, 53, 0.1);
}

.form-group textarea {
  min-height: 2.326rem;
  resize: vertical;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.233rem;
  cursor: pointer;
}

.checkbox-label input {
  display: none;
}

.checkbox-custom {
  width: 0.465rem;
  height: 0.465rem;
  border: 0.047rem solid #fed7c2;
  border-radius: 0.140rem;
  position: relative;
  transition: all 0.2s ease;
  background: white;
}

.checkbox-label input:checked + .checkbox-custom {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-color: #ff6b35;
}

.checkbox-label input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: var(--font-size-xs, 0.279rem);
  font-weight: bold;
}

/* 单选按钮样式 */
.radio-group {
  display: flex;
  gap: 0.465rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.186rem;
  cursor: pointer;
  font-size: var(--font-size-base, 0.326rem);
  color: #374151;
}

.radio-label input {
  display: none;
}

.radio-custom {
  width: 0.465rem;
  height: 0.465rem;
  border: 0.047rem solid #fed7c2;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s ease;
  background: white;
  flex-shrink: 0;
}

.radio-label:hover .radio-custom {
  border-color: #ff6b35;
}

.radio-label input:checked + .radio-custom {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

.radio-label input:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.186rem;
  height: 0.186rem;
  background: white;
  border-radius: 50%;
}

/* 性格多选样式 */
.personality-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.279rem;
}

.personality-group .checkbox-label {
  padding: 0.233rem 0.372rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border: 0.047rem solid #fed7c2;
  border-radius: 0.558rem;
  transition: all 0.3s ease;
}

.personality-group .checkbox-label:hover {
  border-color: #ffb347;
  transform: translateY(-0.047rem);
}

.personality-group .checkbox-label input:checked + .checkbox-custom {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-color: #ff6b35;
}

.personality-group .checkbox-label input:checked ~ span:last-child {
  color: #ff6b35;
  font-weight: 600;
}

.personality-group .checkbox-custom {
  width: 0.419rem;
  height: 0.419rem;
  border-radius: 0.140rem;
}

.personality-group .checkbox-label input:checked + .checkbox-custom::after {
  font-size: var(--font-size-xs, 0.256rem);
}

.upload-area {
  border: 0.047rem dashed #fed7c2;
  border-radius: 0.372rem;
  padding: 0.930rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
}

.upload-area:hover {
  border-color: #ff6b35;
  background: rgba(255, 107, 53, 0.05);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-icon {
  color: #ff6b35;
  margin-bottom: 0.372rem;
}

.upload-area p {
  font-size: var(--font-size-md, 0.349rem);
  color: #374151;
  margin-bottom: 0.186rem;
}

.upload-hint {
  font-size: var(--font-size-sm, 0.302rem);
  color: #9ca3af;
}

.upload-warning {
  display: block;
  font-size: var(--font-size-sm, 0.302rem);
  color: #dc2626;
  margin-top: 0.14rem;
  font-weight: 500;
}

.preview-image {
  max-width: 100%;
  max-height: 6.977rem;
  border-radius: 0.279rem;
}

.form-actions {
  display: flex;
  gap: 0.279rem;
  justify-content: flex-end;
  margin-top: 0.744rem;
}

.btn-primary,
.btn-secondary,
.btn-danger {
  padding: 0.279rem 0.558rem;
  border-radius: 0.233rem;
  font-size: var(--font-size-base, 0.326rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.186rem;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  box-shadow: 0 0.093rem 0.349rem rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-0.047rem);
  box-shadow: 0 0.186rem 0.581rem rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 0.047rem solid #fed7c2;
}

.btn-secondary:hover {
  background: #fff8f0;
  border-color: #ff6b35;
  color: #ff6b35;
}

.btn-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #dc2626;
  border: 0.047rem solid #fecaca;
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 0.372rem 0.744rem;
  font-size: var(--font-size-md, 0.349rem);
  border-radius: 0.372rem;
}

/* 全息投影页 */
.hologram-container {
  display: grid;
  grid-template-columns: 1fr 7.442rem;
  gap: 0.558rem;
}

.projection-screen {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border-radius: 0.465rem;
  height: 11.628rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0.465rem 0.930rem rgba(0,0,0,0.2);
  border: 0.070rem solid #ff6b35;
}

.hologram-display {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hologram-display video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hologram-video-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 12px;
}

.hologram-placeholder {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

.hologram-rings {
  position: relative;
  width: 2.791rem;
  height: 2.791rem;
  margin: 0 auto 0.465rem;
}

.holo-ring {
  position: absolute;
  border: 0.047rem solid rgba(255, 107, 53, 0.5);
  border-radius: 50%;
  animation: holoRotate 4s linear infinite;
}

.holo-ring:nth-child(1) {
  width: 100%;
  height: 100%;
}

.holo-ring:nth-child(2) {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  animation-delay: -1s;
}

.holo-ring:nth-child(3) {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  animation-delay: -2s;
}

@keyframes holoRotate {
  from { transform: rotateX(60deg) rotateZ(0deg); }
  to { transform: rotateX(60deg) rotateZ(360deg); }
}

.projection-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.465rem;
}

.selector-section {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.372rem;
  padding: 0.465rem;
  box-shadow: 0 0.093rem 0.465rem rgba(255, 107, 53, 0.1);
  border: 0.047rem solid #fed7c2;
}

.selector-section h3 {
  font-size: var(--font-size-base, 0.326rem);
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.372rem;
}

.selector-grid {
  display: flex;
  gap: 0.233rem;
  overflow-x: auto;
  padding-bottom: 0.233rem;
}

.selector-grid::-webkit-scrollbar {
  display: none;
}

.selector-item {
  flex-shrink: 0;
  width: 1.628rem;
  text-align: center;
  cursor: pointer;
  padding: 0.279rem 0.186rem;
  border-radius: 0.279rem;
  border: 0.047rem solid transparent;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
}

.selector-item:hover {
  background: #fff0e6;
}

.selector-item.selected {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #fff0e6 0%, #ffe4d6 100%);
}

.selector-avatar {
  width: 1.023rem;
  height: 1.023rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.186rem;
  font-size: 0.512rem;
}

.selector-name {
  font-size: var(--font-size-xs, 0.279rem);
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.233rem;
}

.action-btn {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border: 0.047rem solid #fed7c2;
  border-radius: 0.279rem;
  padding: 0.279rem 0.186rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.093rem;
}

.action-btn:hover {
  background: #fff0e6;
  border-color: #ff6b35;
}

.action-btn.selected {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

/* 全部动作按钮特殊样式 */
.action-btn-all {
  grid-column: span 2;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border: 0.047rem solid #fed7c2;
  font-weight: 600;
}

.action-btn-all:hover {
  background: #fff0e6;
  border-color: #ff6b35;
}

.action-btn-all.selected {
  border-color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

/* 动作按钮遮罩层 */
.action-mask {
  position: absolute;
  top: 0.884rem;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(0.047rem);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.279rem;
  z-index: 10;
}

.action-mask span {
  background: rgba(255, 107, 53, 0.9);
  color: white;
  padding: 0.186rem 0.372rem;
  border-radius: 0.465rem;
  font-size: var(--font-size-sm, 0.302rem);
  font-weight: 500;
}

.selector-section:has(#actionButtons) {
  position: relative;
}

.projection-controls {
  display: flex;
  flex-direction: column;
  gap: 0.279rem;
}

/* 个人中心 */
.profile-avatar {
  flex-shrink: 0;
}

.avatar-image {
  width: 1.86rem;
  height: 1.86rem;
  border-radius: 50%;
  object-fit: cover;
  border: 0.070rem solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0.093rem 0.279rem rgba(0, 0, 0, 0.15);
}

.avatar-circle {
  width: 1.86rem;
  height: 1.86rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.837rem;
  backdrop-filter: blur(0.233rem);
}

.profile-info h3 {
  font-size: 0.558rem;
  font-weight: 700;
  margin-bottom: 0.186rem;
}

.profile-status {
  font-size: var(--font-size-xs, 0.279rem);
  padding: 0.093rem 0.279rem;
  border-radius: 0.465rem;
  background: rgba(255,255,255,0.2);
  display: inline-block;
  margin-bottom: 0.186rem;
}

.profile-type {
  font-size: var(--font-size-base, 0.326rem);
  opacity: 0.9;
}

.profile-expire {
  font-size: var(--font-size-sm, 0.302rem);
  opacity: 0.7;
  margin-top: 0.093rem;
}

.activate-section {
  margin-bottom: 0.233rem;
}

.activate-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.372rem;
  padding: 0.465rem;
  box-shadow: 0 0.093rem 0.465rem rgba(255, 107, 53, 0.1);
  border: 0.047rem solid #fed7c2;
}

.activate-header {
  display: flex;
  align-items: center;
  gap: 0.233rem;
  margin-bottom: 0.372rem;
}

.activate-icon {
  font-size: 0.465rem;
}

.activate-title {
  font-size: var(--font-size-lg, 0.372rem);
  font-weight: 600;
  color: #111827;
}

.activate-input-group {
  display: flex;
  gap: 0.279rem;
  margin-top: 0.372rem;
}

.activate-input-group input {
  flex: 1;
  padding: 0.279rem 0.372rem;
  border: 0.047rem solid #fed7c2;
  border-radius: 0.233rem;
  font-size: var(--font-size-base, 0.326rem);
  background: #ffffff;
  color: #111827;
}

.activate-input-group input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 0.093rem rgba(255, 107, 53, 0.1);
}

.menu-section {
  margin-bottom: 0.233rem;
}

.menu-section h3 {
  font-size: var(--font-size-base, 0.326rem);
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.279rem;
  text-transform: uppercase;
  letter-spacing: 0.012rem;
}

.menu-list {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.372rem;
  overflow: hidden;
  box-shadow: 0 0.093rem 0.465rem rgba(255, 107, 53, 0.1);
  border: 0.047rem solid #fed7c2;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 0.372rem 0.465rem;
  border-bottom: 0.047rem solid #fff0e6;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.menu-item .menu-icon {
  width: 0.837rem;
  height: 0.837rem;
  border-radius: 0.233rem;
  background: linear-gradient(135deg, #fff0e6 0%, #ffe4d6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.279rem;
  color: #ff6b35;
  transition: all 0.3s ease;
}

.menu-text {
  flex: 1;
  font-size: var(--font-size-md, 0.349rem);
  font-weight: 500;
  color: #111827;
}

.menu-arrow {
  font-size: 0.419rem;
  color: #9ca3af;
  transition: all 0.3s ease;
}

/* 只在非触摸设备上应用hover效果 */
@media (hover: hover) and (pointer: fine) {
  .menu-item:hover {
    background: rgba(255, 107, 53, 0.05);
  }
  
  .menu-item:hover .menu-icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    transform: scale(1.1);
  }
  
  .menu-item:hover .menu-arrow {
    transform: translateX(0.093rem);
    color: #ff6b35;
  }
}

.logout-section {
  margin-top: 0.465rem;
}

/* Toast */
.toast {
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.372rem 0.744rem;
  border-radius: 0.279rem;
  font-size: var(--font-size-md, 0.349rem);
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  max-width: 7.442rem;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 0.186rem 0.744rem rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(0.186rem);
  -webkit-backdrop-filter: blur(0.186rem);
}

.toast.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  display: block;
  pointer-events: auto;
}

.toast.success {
  background: rgba(255, 165, 0, 0.9);
  color: white;
}

.toast.error {
  background: rgba(239, 68, 68, 0.9);
  color: white;
}

/* 3D建模加载遮罩层 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(0.233rem);
  -webkit-backdrop-filter: blur(0.233rem);
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-spinner {
  width: 1.395rem;
  height: 1.395rem;
  border: 0.093rem solid rgba(255, 165, 0, 0.3);
  border-top-color: #ffa500;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 0.465rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: var(--font-size-lg, 0.395rem);
  font-weight: 600;
  margin-bottom: 0.233rem;
  color: #ffa500;
}

.loading-tip {
  font-size: var(--font-size-sm, 0.302rem);
  color: rgba(255, 255, 255, 0.7);
}

.loading-warning {
  font-size: var(--font-size-xs, 0.256rem);
  color: rgba(255, 165, 0, 0.8);
  margin-top: 0.233rem;
  padding: 0.186rem 0.372rem;
  background: rgba(255, 165, 0, 0.1);
  border-radius: 0.093rem;
  border: 0.047rem solid rgba(255, 165, 0, 0.3);
}

/* 图片生成结果弹窗 */
.image-result-container {
  padding: 0.233rem;
}

.image-result-header {
  text-align: center;
  margin-bottom: 0.233rem;
}

.image-result-title {
  font-size: var(--font-size-lg, 0.395rem);
  font-weight: 600;
  color: #ffa500;
}

.image-result-viewer {
  position: relative;
  text-align: center;
  margin-bottom: 0.233rem;
}

.result-image {
  max-width: 100%;
  max-height: 5.581rem;
  border-radius: 0.186rem;
  box-shadow: 0 0.093rem 0.279rem rgba(0, 0, 0, 0.2);
}

.image-label {
  position: absolute;
  bottom: 0.186rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 165, 0, 0.9);
  color: white;
  padding: 0.093rem 0.279rem;
  border-radius: 0.14rem;
  font-size: var(--font-size-sm, 0.302rem);
  font-weight: 500;
}

.image-result-nav {
  display: flex;
  justify-content: center;
  gap: 0.233rem;
  margin-bottom: 0.233rem;
}

.image-result-nav .nav-btn {
  padding: 0.186rem 0.465rem;
  border: 0.047rem solid #ddd;
  background: white;
  border-radius: 0.186rem;
  font-size: var(--font-size-md, 0.349rem);
  cursor: pointer;
  transition: all 0.3s;
}

.image-result-nav .nav-btn.active {
  background: #ffa500;
  border-color: #ffa500;
  color: white;
}

.image-result-nav .nav-btn:hover {
  border-color: #ffa500;
}

.image-result-actions {
  text-align: center;
}

.image-result-tip {
  background: #fff8f0;
  border-radius: 0.14rem;
  padding: 0.186rem;
  margin-bottom: 0.233rem;
  text-align: center;
}

.image-result-tip p {
  font-size: var(--font-size-sm, 0.302rem);
  color: #ff6b35;
  margin: 0;
}

.image-result-actions .btn-primary {
  padding: 0.233rem 0.93rem;
  background: linear-gradient(135deg, #ffa500, #ff8c00);
  border: none;
  border-radius: 0.233rem;
  color: white;
  font-size: var(--font-size-md, 0.349rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s;
}

.image-result-actions .btn-primary:hover {
  transform: scale(1.05);
}

/* 宠物详情图片 */
.pet-detail-images {
  margin-bottom: 0.233rem;
}

.pet-image-viewer {
  position: relative;
  text-align: center;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 0.186rem;
  background: #f5f5f5;
}

.pet-detail-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.186rem;
}

.pet-image-label {
  position: absolute;
  bottom: 0.186rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 165, 0, 0.9);
  color: white;
  padding: 0.093rem 0.279rem;
  border-radius: 0.14rem;
  font-size: var(--font-size-sm, 0.302rem);
  font-weight: 500;
}

.pet-image-nav {
  display: flex;
  justify-content: center;
  gap: 0.186rem;
  margin-top: 0.186rem;
}

.pet-image-nav .nav-btn {
  padding: 0.14rem 0.372rem;
  border: 0.047rem solid #ddd;
  background: white;
  border-radius: 0.14rem;
  font-size: var(--font-size-sm, 0.302rem);
  cursor: pointer;
  transition: all 0.3s;
}

.pet-image-nav .nav-btn.active {
  background: #ffa500;
  border-color: #ffa500;
  color: white;
}

.pet-image-nav .nav-btn:hover {
  border-color: #ffa500;
}

/* 联系客服微信号 */
.contact-wechat {
  text-align: center;
  font-size: var(--font-size-md, 0.349rem);
  color: #ffa500;
  margin-top: 0.233rem;
  font-weight: 500;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(0.093rem);
  padding: 0.465rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #fff8f0 100%);
  border-radius: 0.465rem;
  width: 90%;
  max-width: 11.163rem;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 0.581rem 1.395rem rgba(0, 0, 0, 0.3);
  border: 0.047rem solid #fed7c2;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.465rem 0.558rem;
  border-bottom: 0.047rem solid #ffe4d6;
}

.modal-header h3 {
  font-size: 0.419rem;
  font-weight: 600;
  color: #111827;
}

.modal-close {
  width: 0.744rem;
  height: 0.744rem;
  border: none;
  background: linear-gradient(135deg, #fff0e6 0%, #ffe4d6 100%);
  border-radius: 0.186rem;
  font-size: 0.465rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
}

.modal-body {
  padding: 0.4rem;
  padding-bottom: 0.15rem;
  overflow-y: auto;
  max-height: 60vh;
}

/* 我的宠物/人物列表样式 */
.my-list-grid {
  display: flex;
  flex-direction: column;
  gap: 0.279rem;
}

.my-list-card {
  display: flex;
  align-items: center;
  padding: 0.372rem;
  background: #f9fafb;
  border-radius: 0.279rem;
  cursor: pointer;
  transition: all 0.2s;
}

.my-list-card:hover {
  background: #fff7ed;
  transform: translateX(0.093rem);
}

.my-list-avatar {
  width: 1.116rem;
  height: 1.116rem;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.558rem;
  margin-right: 0.279rem;
}

.my-list-info {
  flex: 1;
}

.my-list-info h4 {
  font-size: var(--font-size-lg, 0.372rem);
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.093rem;
}

.my-list-info p {
  font-size: var(--font-size-sm, 0.302rem);
  color: #6b7280;
}

.my-list-arrow {
  font-size: 0.465rem;
  color: #9ca3af;
}

/* 空状态样式 */
.empty-state {
  text-align: center;
  padding: 0.930rem 0.465rem;
}

.empty-state .empty-icon {
  font-size: 1.488rem;
  margin-bottom: 0.372rem;
}

.empty-state p {
  font-size: var(--font-size-lg, 0.372rem);
  color: #6b7280;
}

/* 设置列表样式 */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.186rem;
}

.settings-item {
  display: flex;
  align-items: center;
  padding: 0.372rem;
  background: #f9fafb;
  border-radius: 0.279rem;
  cursor: pointer;
  transition: all 0.2s;
}

.settings-item:hover {
  background: #fff7ed;
}

.settings-icon {
  font-size: 0.465rem;
  margin-right: 0.279rem;
}

.settings-text {
  flex: 1;
  font-size: var(--font-size-md, 0.349rem);
  color: #111827;
}

.settings-arrow {
  font-size: 0.419rem;
  color: #9ca3af;
}

/* 帮助列表样式 */
.help-list {
  display: flex;
  flex-direction: column;
  gap: 0.465rem;
}

.help-item h4 {
  font-size: var(--font-size-md, 0.349rem);
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.186rem;
}

.help-item p {
  font-size: var(--font-size-base, 0.326rem);
  color: #6b7280;
  line-height: 1.6;
}

/* 联系客服样式 */
.contact-service-content {
  text-align: center;
  padding: 0.465rem 0;
}

.contact-tip {
  font-size: var(--font-size-base, 0.326rem);
  color: #6b7280;
  margin-bottom: 0.465rem;
}

.qrcode-container {
  display: flex;
  justify-content: center;
  margin-bottom: 0.465rem;
}

.qrcode-image {
  width: 4.651rem;
  height: 4.651rem;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 0.093rem 0.279rem rgba(0, 0, 0, 0.1);
}

.qrcode-placeholder {
  padding: 0.930rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  color: var(--text-secondary);
}

.qrcode-placeholder .contact-email {
  margin-top: 0.233rem;
  font-size: var(--font-size-sm, 0.302rem);
  color: var(--primary-color);
}

.btn-save-qrcode {
  margin-top: 0.233rem;
}

/* 关于页面样式 */
.about-content {
  text-align: center;
  padding: 0.465rem 0;
}

.about-logo {
  font-size: 1.674rem;
  margin-bottom: 0.372rem;
}

.about-content h3 {
  font-size: 0.558rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.186rem;
}

.about-version {
  font-size: var(--font-size-base, 0.326rem);
  color: #9ca3af;
  margin-bottom: 0.372rem;
}

.about-desc {
  font-size: var(--font-size-base, 0.326rem);
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 0.558rem;
}

.about-info {
  padding-top: 0.372rem;
  border-top: 0.023rem solid #e5e7eb;
}

.about-info p {
  font-size: var(--font-size-xs, 0.279rem);
  color: #9ca3af;
}

.edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.372rem;
}

.edit-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.140rem;
}

.edit-form .form-group label {
  font-size: var(--font-size-base, 0.326rem);
  font-weight: 500;
  color: #374151;
}

.edit-form .form-input {
  padding: 0.233rem 0.326rem;
  border: 0.023rem solid #d1d5db;
  border-radius: 0.186rem;
  font-size: var(--font-size-base, 0.326rem);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.edit-form .form-input:focus {
  outline: none;
  border-color: #ff6b35;
  box-shadow: 0 0 0 0.070rem rgba(255, 107, 53, 0.1);
}

.personality-checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.233rem;
}

.personality-checkbox {
  display: flex;
  align-items: center;
  gap: 0.140rem;
  padding: 0.186rem 0.326rem;
  background: #f9fafb;
  border: 0.023rem solid #e5e7eb;
  border-radius: 0.186rem;
  cursor: pointer;
  transition: all 0.2s;
}

.personality-checkbox:hover {
  background: #fff7ed;
  border-color: #ff6b35;
}

.personality-checkbox input {
  display: none;
}

.personality-checkbox .checkbox-custom {
  width: 0.419rem;
  height: 0.419rem;
  border: 0.047rem solid #d1d5db;
  border-radius: 0.093rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.personality-checkbox input:checked + .checkbox-custom {
  background: #ff6b35;
  border-color: #ff6b35;
}

.personality-checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  color: white;
  font-size: var(--font-size-xs, 0.279rem);
  font-weight: bold;
}

.personality-checkbox input:checked ~ .checkbox-label {
  color: #ff6b35;
  font-weight: 500;
}

.personality-checkbox .checkbox-label {
  font-size: var(--font-size-base, 0.326rem);
  color: #374151;
}

/* 响应式 */
@media (max-width: 1024px) {
  .sidebar {
    width: 1.86rem;
  }
  
  .logo-text,
  .sidebar-nav .nav-text,
  .user-details {
    display: none;
  }
  
  .sidebar-header {
    padding: 0.465rem 0.372rem;
    justify-content: center;
  }
  
  .logo {
    justify-content: center;
  }
  
  .sidebar-nav .nav-item {
    justify-content: center;
    padding: 0.326rem;
  }
  
  .main-content {
    margin-left: 1.86rem;
    padding: 0.558rem;
  }
  
  .hologram-container {
    grid-template-columns: 1fr;
  }
  
  .projection-screen {
    height: 9.302rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
    padding: 0.465rem;
    padding-bottom: 2.326rem;
  }
  
  .quick-actions {
    grid-template-columns: 1fr;
  }
  
  .pet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.279rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .action-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .projection-screen {
    height: 6.977rem;
  }
}

@media (max-width: 480px) {
  .page-header {
    flex-direction: column;
    gap: 0.372rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .pet-grid {
    grid-template-columns: 1fr;
  }

  .create-tabs {
    flex-direction: column;
  }

  .create-tab {
    max-width: none;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }
}

/* 手机底部导航 */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f0 100%);
  border-top: 0.047rem solid #fed7c2;
  padding: 0.186rem 0 0.465rem;
  z-index: 1000;
  box-shadow: 0 -0.093rem 0.465rem rgba(255, 107, 53, 0.1);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #9ca3af;
  font-size: var(--font-size-xs, 0.256rem);
  font-weight: 500;
  padding: 0.186rem 0.279rem;
  transition: all 0.3s ease;
  gap: 0.093rem;
}

.mobile-nav-item svg {
  transition: all 0.3s ease;
}

.mobile-nav-item.active {
  color: #ff6b35;
}

.mobile-nav-item.active svg {
  transform: scale(1.1);
}

/* 只在非触摸设备上应用hover效果 */
@media (hover: hover) and (pointer: fine) {
  .mobile-nav-item:hover {
    color: #6b7280;
  }
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    justify-content: space-around;
  }
}

/* 输入框placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

/* 密码修改tab样式 */
.password-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.password-tab {
  flex: 1;
  padding: 10px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.password-tab.active {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border-color: transparent;
}

.password-tab:hover:not(.active) {
  border-color: #ff6b35;
}

/* 详情卡片行样式 */
.detail-row {
  display: flex;
  align-items: center;
  gap: 0.186rem;
}

/* 内联编辑按钮 */
.btn-edit-inline {
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  border: none;
  padding: 0.093rem 0.233rem;
  border-radius: 0.14rem;
  font-size: var(--font-size-xs, 0.256rem);
  cursor: pointer;
  margin-left: auto;
  transition: all 0.3s ease;
  box-shadow: 0 0.047rem 0.14rem rgba(255, 107, 53, 0.3);
}

.btn-edit-inline:hover {
  transform: scale(1.05);
  box-shadow: 0 0.093rem 0.233rem rgba(255, 107, 53, 0.4);
}

/* 人物审核提示弹框 */
.review-notice {
  text-align: center;
  padding: 0.233rem;
}

.review-icon {
  font-size: 0.930rem;
  margin-bottom: 0.233rem;
}

.review-title {
  font-size: var(--font-size-lg, 0.372rem);
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.186rem;
}

.review-text {
  font-size: var(--font-size-md, 0.349rem);
  color: #374151;
  margin-bottom: 0.093rem;
}

.review-reason {
  font-size: var(--font-size-sm, 0.302rem);
  color: #6b7280;
  margin-bottom: 0.279rem;
}

.review-steps {
  background: #fff8f0;
  border-radius: 0.186rem;
  padding: 0.233rem;
  margin-bottom: 0.279rem;
  text-align: left;
}

.review-step-title {
  font-size: var(--font-size-sm, 0.302rem);
  font-weight: 600;
  color: #ff6b35;
  margin-bottom: 0.14rem;
}

.review-steps p {
  font-size: var(--font-size-sm, 0.302rem);
  color: #374151;
  margin: 0.093rem 0;
}

.review-notice .btn-primary {
  width: 100%;
  margin-top: 0.14rem;
}

/* 上传图标 */
.upload-icon svg {
  stroke: #ff6b35;
}
