:root {
  /* 颜色系统 */
  --color-primary: #333;
  --color-text: #333;
  --color-text-light: #666;
  --color-text-lighter: #999;
  --color-bg: #ffffff;
  --color-bg-page: #fafafa;
  --color-border: #f0f0f0;
  --color-shadow: rgba(0, 0, 0, 0.06);
  
  /* 渐变色 */
  --gradient-orange: linear-gradient(90deg, #ff7a45, #ff4d4f);
  --gradient-orange-135: linear-gradient(135deg, #ff7a45 0%, #ff4d4f 100%);
  
  /* 间距系统 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  
  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 50%;
  
  /* 阴影 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "Helvetica Neue", Arial, sans-serif;
  color: #333;
  -webkit-tap-highlight-color: rgba(255, 122, 69, 0.1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  background: #ffffff;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  overflow-x: hidden;
  touch-action: pan-y pinch-zoom;
}

/* 桌面端最大宽度 */
@media (min-width: 1200px) {
  .app {
    max-width: 60%;
  }
  
  .fixed-header,
  .fixed-header.sticky {
    max-width: 60%;
  }
  
  .page-footer {
    max-width: 60%;
  }
}

/* 手机端自适应 */
@media (max-width: 768px) {
  .app {
    box-shadow: none;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .fixed-header,
  .fixed-header.sticky {
    max-width: 100% !important;
  }
  
  .page-footer {
    max-width: 100% !important;
  }
  
  /* 头像区域自适应 */
  .avatar-wrapper {
    width: 70px;
    height: 70px;
  }
  
  /* 主体内容自适应 */
  main {
    padding: 0 16px;
    width: 100%;
  }
  
  /* 自定义弹窗自适应 */
  .custom-alert-content {
    width: 90%;
    padding: 20px;
  }
  
  /* 图片自适应 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* 移动端隐藏ID徽章 */
  .badge-desktop-only {
    display: none;
  }
}

/* 小屏幕优化 */
@media (max-width: 375px) {
  .message-card-title {
    font-size: 14px;
  }
  
  .message-card-subtitle {
    font-size: 12px;
  }
  
  .footer-text {
    font-size: 13px;
  }
}

/* 固定顶部导航栏 */

.fixed-header {
  position: relative;
  width: 100%;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border-bottom: 1px solid #f0f0f0;
  z-index: 100;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.fixed-header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(250, 250, 250, 0.9) 100%);
  border-bottom: 1px solid rgba(240, 240, 240, 0.8);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.header-logo {
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #007aff;
}

.logo-image {
  height: 28px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.5px;
}

.header-logo::before {
  content: none;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.menu-toggle:hover {
  background: #f5f5f5;
  transform: scale(1.1);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-icon {
  font-size: 24px;
  color: #333;
  line-height: 1;
  transition: all 0.3s ease;
}

.menu-toggle:hover .menu-icon {
  color: #ff4d4f;
}

/* 侧边菜单 */

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  pointer-events: none;
}

.side-menu.active {
  pointer-events: auto;
}

.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-menu.active .menu-overlay {
  opacity: 1;
}

.menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 80%;
  height: 100%;
  background: #ffffff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.side-menu.active .menu-content {
  transform: translateX(0);
}

.menu-header {
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.menu-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.menu-close {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.menu-close:hover {
  background: #f5f5f5;
}

.close-icon {
  font-size: 28px;
  color: #666;
  line-height: 1;
}

.menu-list {
  padding: 8px 0;
}

.menu-item {
  display: block;
  padding: 14px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.menu-item:hover {
  background: #f5f5f5;
  border-left-color: #007aff;
}

.menu-item:active {
  background: #e8e8e8;
}

/* 主体 */

.main {
  padding: 0 16px 16px;
}

body.header-sticky .app {
  margin-top: 56px;
}

/* 头像 + 昵称 + 点赞 */

.profile {
  display: flex;
  align-items: center;
  padding: 16px;
  max-width: 100%;
  overflow: visible;
  margin-bottom: 12px;
  margin-top: 24px;
  animation: fadeInUp 0.6s ease-out;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.avatar-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e0e0, #d0d0d0, #e0e0e0);
  opacity: 0.4;
  animation: breathe 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.avatar-wrapper:hover {
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.2));
}

.avatar-wrapper:hover::before {
  opacity: 0.5;
  transform: scale(1.15);
}

.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  clip-path: circle(50%);
  transition: all 0.3s ease;
}

.avatar-wrapper:hover .avatar {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-center {
  flex: 1;
  padding: 0 12px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nickname {
  font-size: 22px;
  font-weight: 700;
  color: #ff3333;
}

.like-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  margin-left: auto;
}

.like-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  padding: 6px;
  line-height: 1;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
  border-radius: 50%;
}

.like-btn:hover {
  background: rgba(255, 77, 79, 0.1);
  transform: scale(1.1);
}

.like-icon {
  width: 24px;
  height: 24px;
  fill: #333;
  transition: all 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.like-btn:hover .like-icon {
  fill: #ff6b6b;
  filter: drop-shadow(0 2px 4px rgba(255, 77, 79, 0.3));
}

.like-btn:active {
  transform: scale(0.95);
  background: rgba(255, 77, 79, 0.15);
}

.like-btn:active .like-icon {
  fill: #ff4d4f;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.15); }
}

.like-count {
  font-size: 11px;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.like-btn:hover + .like-count {
  color: #ff4d4f;
  transform: scale(1.05);
}

.like-petals {
  position: absolute;
  top: -10px;
  right: -6px;
  display: flex;
  gap: 2px;
  pointer-events: none;
}

.petal {
  font-size: 10px;
}

.falling-petals-container {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 150px;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.falling-petal-item {
  position: absolute;
  bottom: -20px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 35%, 
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(200, 220, 255, 0.15) 60%,
    rgba(150, 200, 255, 0.2) 100%);
  border-radius: 50%;
  border: 1.5px solid transparent;
  background-clip: padding-box;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset -3px -3px 6px rgba(255, 255, 255, 0.4),
    inset 3px 3px 6px rgba(100, 150, 255, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 0 2px rgba(200, 150, 255, 0.2),
    0 0 0 3px rgba(150, 200, 255, 0.15);
  animation: bubbleRise linear infinite;
  opacity: 0;
  backdrop-filter: blur(2px);
}

.falling-petal-item::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 35%;
  height: 35%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.falling-petal-item::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: 25%;
  width: 20%;
  height: 20%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

@keyframes bubbleRise {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    bottom: 150px;
    opacity: 0;
    transform: translateX(var(--drift-x, 0px)) scale(1.2);
  }
}

/* +1 提示效果 */
.plus-one {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff3333;
  font-size: 18px;
  font-weight: bold;
  pointer-events: none;
  animation: plusOneFloat 1s ease-out forwards;
  z-index: 100;
}

@keyframes plusOneFloat {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
}

/* 飘落花瓣动画 */
.floating-petal {
  position: absolute;
  top: 0;
  left: 50%;
  font-size: 16px;
  pointer-events: none;
  animation: petalFloat 1.5s ease-out forwards;
  z-index: 99;
}

@keyframes petalFloat {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--random-x, 0px)), -60px) rotate(var(--random-rotate, 360deg));
  }
}

/* 靓号 */

.id-badges {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.badge > * {
  position: relative;
  z-index: 2;
}

.badge-main {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  color: white;
  font-weight: 600;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.badge-main::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.badge-main:hover::before {
  left: 100%;
}

.badge-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.5);
}

.badge-sub {
  background: linear-gradient(135deg, #FFB74D 0%, #FFA726 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 4px rgba(255, 183, 77, 0.3);
}

/* 分割线 + 签名 */

.divider {
  margin: 12px 0 10px;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #e0e0e0 10%, 
    #d0d0d0 50%, 
    #e0e0e0 90%, 
    transparent 100%);
  border: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.signature-text {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  font-style: italic;
  background: linear-gradient(90deg, #999, #666, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.6s ease-out 0.15s both;
  position: relative;
  padding-left: 12px;
}

.signature-text::before {
  content: '"';
  position: absolute;
  left: 0;
  color: #ccc;
  font-size: 16px;
}

/* 徽章区 */

.badge-section {
  margin-bottom: 10px;
  max-width: 100%;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  max-width: 100%;
}

.badge-row:last-child {
  margin-bottom: 0;
}

.vip-pill {
  padding: 4px 14px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ff7a45, #ff4d4f);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 122, 69, 0.3);
}

.vip-pill:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 122, 69, 0.4);
}

.icon-pill {
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.icon-pill:hover {
  transform: translateY(-2px) scale(1.1) rotate(5deg);
}

.icon-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.icon-pill:hover img {
  transform: rotate(-5deg);
}

.privilege-row {
  display: flex;
  align-items: center;
  padding: 6px 0;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: hidden;
}

.privilege-icons-image {
  height: 32px;
  width: auto;
  object-fit: contain;
  max-width: 100%;
}

/* 列表行 */

.list-row {
  padding: 12px 0;
  border-top: 1px solid #f5f5f5;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.list-row:nth-child(2) {
  animation-delay: 0.25s;
}

.list-row::before {
  content: '';
  position: absolute;
  left: -12px;
  right: -12px;
  top: 0;
  bottom: 0;
  background: rgba(255, 122, 69, 0.03);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.list-row:hover::before {
  opacity: 1;
}

.list-row:hover {
  transform: translateX(2px);
}

.list-row + .list-row {
  border-top: none;
}

.list-row-left {
  color: #333;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list-row-icon-left {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-row-right {
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.list-row-icon {
  font-size: 14px;
}

.list-row-arrow {
  font-size: 18px;
  color: #999;
  font-weight: 300;
  margin-left: 4px;
}

.dot-red {
  color: #ff4d4f;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 77, 79, 0.6));
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

/* QQ空间标题特殊样式 */
.list-row.qq-header {
  background: linear-gradient(135deg, rgba(255, 183, 77, 0.05), rgba(255, 152, 38, 0.05));
  border-radius: 8px;
  padding: 12px;
  margin: 0 -12px;
  border-top: none;
  border-bottom: none;
}

.list-row.qq-header .list-row-icon-left {
  animation: iconBounce 2s ease-in-out infinite;
}

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

.list-row.qq-header .list-row-right span:first-child {
  color: #ff7a45;
  font-weight: 600;
}

/* QQ 图片 */

.space-gallery {
  padding: 10px 0;
  margin-bottom: 0;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.space-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.space-scroll::-webkit-scrollbar {
  display: none;
}

.space-item {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.space-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.1), rgba(255, 77, 79, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.space-item:hover::before {
  opacity: 1;
}

.space-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.space-item:active {
  transform: translateY(-2px) scale(1.02);
}

.space-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.space-item:hover img {
  transform: scale(1.1);
}


.message-card-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #d0d0d0;
}

.message-card-toggle:active {
  transform: translateY(0);
}

.message-card-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.message-card-content {
  flex: 1;
  text-align: left;
}

.message-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
}

.message-card-subtitle {
  font-size: 13px;
  color: #666;
}

.message-emoji-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.emoji-face {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 28px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  line-height: 1;
}

.emoji-sad {
  opacity: 1;
  transform: scale(1);
}

.emoji-happy {
  opacity: 0;
  transform: scale(0.5);
}

.message-card-toggle.open .emoji-sad {
  opacity: 0;
  transform: scale(0.5);
}

.message-card-toggle.open .emoji-happy {
  opacity: 1;
  transform: scale(1);
}



.back-button {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.back-button:hover {
  background: #f5f5f5;
}

.back-icon {
  font-size: 28px;
  line-height: 1;
}

.page-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}


/* 底部信息栏 */

.page-footer {
  position: relative;
  width: 100%;

  margin: 0 auto;
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  box-sizing: border-box;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.footer-info {
  flex: 1;
}

.footer-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #666;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.footer-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.footer-link svg {
  width: 14px;
  height: 14px;
}

/* 电池指示器 */
.battery-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 14px;
  color: #666;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.battery-indicator:hover {
  transform: translateY(-1px);
  box-shadow: 
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.battery-icon {
  width: 16px;
  height: 16px;
  color: #666;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

.battery-level {
  transition: width 0.3s ease, fill 0.3s ease;
  filter: drop-shadow(0 0 1px currentColor);
}

.battery-percent {
  font-size: 10px;
  font-weight: 600;
  min-width: 24px;
  text-align: right;
  letter-spacing: 0.3px;
}

/* 电池电量颜色 */
.battery-indicator.high {
  background: linear-gradient(135deg, #f0fff4 0%, #d9f7e6 100%);
  border-color: rgba(82, 196, 26, 0.2);
}

.battery-indicator.high .battery-icon,
.battery-indicator.high .battery-percent {
  color: #52c41a;
}

.battery-indicator.medium {
  background: linear-gradient(135deg, #fffbf0 0%, #fff4d9 100%);
  border-color: rgba(250, 173, 20, 0.2);
}

.battery-indicator.medium .battery-icon,
.battery-indicator.medium .battery-percent {
  color: #faad14;
}

.battery-indicator.low {
  background: linear-gradient(135deg, #fff1f0 0%, #ffd9d9 100%);
  border-color: rgba(255, 77, 79, 0.2);
}

.battery-indicator.low .battery-icon,
.battery-indicator.low .battery-percent {
  color: #ff4d4f;
}

.battery-indicator.charging {
  background: linear-gradient(135deg, #fff7e6 0%, #ffe7ba 100%);
  border-color: rgba(255, 152, 0, 0.3);
}

.battery-indicator.charging .battery-icon {
  animation: charging-pulse 1.5s ease-in-out infinite;
  color: #ff9800;
}

.battery-indicator.charging .battery-percent {
  color: #ff9800;
}

@keyframes charging-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.08);
  }
}

/* 假验证码游戏 */
.captcha-game-section {
  margin: 12px 0;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  border: none;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.game-header {
  text-align: center;
  margin-bottom: 8px;
}

.game-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 3px 0;
  text-shadow: none;
  letter-spacing: 0.3px;
}

.game-subtitle {
  font-size: 11px;
  color: #999;
  margin: 0;
  font-style: normal;
  font-weight: 400;
}

.game-container {
  position: relative;
  z-index: 1;
}

/* 统计面板 */
.stats-panel {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.stat-item {
  flex: 1;
  background: rgba(248, 248, 248, 0.6);
  padding: 6px;
  border-radius: 6px;
  text-align: center;
  box-shadow: none;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 122, 69, 0.05), rgba(255, 77, 79, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-item:hover::before {
  opacity: 1;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.stat-icon {
  font-size: 18px;
  display: block;
  margin-bottom: 1px;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.2) rotate(5deg);
  opacity: 1;
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  display: block;
  margin: 1px 0;
  transition: all 0.3s ease;
}

.stat-item:hover .stat-value {
  color: #ff4d4f;
  transform: scale(1.1);
}

.stat-label {
  font-size: 10px;
  color: #999;
  display: block;
}

/* 状态面板 */
.status-panel {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.status-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  padding: 10px 8px;
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.status-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}

.status-value {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.status-unit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
  display: block;
}

/* 游戏区域 */
.game-zone {
  position: relative;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
}

.target-button {
  padding: 16px 32px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.target-button::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: left 0.5s ease;
}

.target-button:hover::before {
  left: 100%;
}

.target-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.target-button:active {
  transform: translateY(-1px) scale(0.98);
}

.target-button.shrink {
  animation: buttonShrink 0.3s ease;
}

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

.target-button.shake {
  animation: buttonShake 0.5s ease;
}

@keyframes buttonShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25% { transform: translateX(-8px) rotate(-3deg); }
  75% { transform: translateX(8px) rotate(3deg); }
}

.button-face {
  font-size: 44px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
  line-height: 1;
}

.button-label {
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 嘲讽文字 */
.taunt-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  font-weight: 700;
  color: #ffeb3b;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 235, 59, 0.6);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  backdrop-filter: blur(5px);
}

.taunt-text.show {
  animation: tauntPop 0.6s ease;
}

@keyframes tauntPop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(-5deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1) rotate(2deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

/* 开始按钮 */
.begin-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(81, 207, 102, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.begin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(81, 207, 102, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.begin-btn.hidden {
  display: none;
}

/* 通关彩蛋 */
.victory-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: overlayFadeIn 0.5s ease;
}

.victory-overlay.show {
  display: flex;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.victory-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 32px 24px;
  border-radius: 20px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: victorySlideIn 0.5s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes victorySlideIn {
  from {
    transform: translateY(-100px) scale(0.8);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.fireworks {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 24px;
}

.fireworks::before,
.fireworks::after {
  content: '✨';
  position: absolute;
  font-size: 30px;
  animation: fireworkBurst 1s ease-out infinite;
}

.fireworks::before {
  top: 20%;
  left: 20%;
  animation-delay: 0.2s;
}

.fireworks::after {
  top: 30%;
  right: 20%;
  animation-delay: 0.5s;
}

@keyframes fireworkBurst {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(3) rotate(180deg);
    opacity: 0;
  }
}

.victory-title {
  font-size: 28px;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: titleBounce 0.8s ease infinite;
}

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

.victory-stats {
  background: rgba(255, 255, 255, 0.15);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.victory-stats p {
  margin: 10px 0;
  font-size: 15px;
  color: #ffffff;
}

.highlight {
  font-size: 22px;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.secret-unlock {
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  animation: unlockGlow 2s ease-in-out infinite;
}

@keyframes unlockGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
  }
}

.unlock-badge {
  font-size: 18px;
  font-weight: 700;
  color: #8e44ad;
  margin-bottom: 8px;
}

.unlock-text {
  font-size: 16px;
  color: #333;
  margin: 8px 0;
  font-weight: 600;
}

.secret-code {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
}

.secret-code .code {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #8e44ad;
  font-size: 18px;
  letter-spacing: 2px;
}

.retry-game-btn {
  padding: 14px 40px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.retry-game-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

/* 手机端优化 */
@media (max-width: 768px) {
  .extreme-game-section {
    padding: 16px;
    margin: 16px 8px;
  }
  
  .game-title {
    font-size: 18px;
  }
  
  .game-subtitle {
    font-size: 13px;
  }
  
  .status-panel {
    gap: 8px;
  }
  
  .status-item {
    padding: 10px 8px;
  }
  
  .status-icon {
    font-size: 18px;
  }
  
  .status-value {
    font-size: 20px;
  }
  
  .game-zone {
    min-height: 140px;
  }
  
  .target-button {
    padding: 14px 28px;
  }
  
  .button-face {
    font-size: 40px;
  }
  
  .button-label {
    font-size: 13px;
  }
  
  .taunt-text {
    font-size: 16px;
    padding: 6px 12px;
  }
  
  .victory-content {
    padding: 24px 16px;
  }
  
  .victory-title {
    font-size: 22px;
  }
  
  .victory-stats p {
    font-size: 14px;
  }
  
  .highlight {
    font-size: 18px;
  }
  
  .unlock-badge {
    font-size: 16px;
  }
  
  .unlock-text {
    font-size: 14px;
  }
}

/* 自定义弹窗 */
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.custom-alert.show {
  display: flex;
}

.custom-alert-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 90%;
  width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: alertSlideIn 0.3s ease-out;
  border: 1px solid #f5f5f5;
}

.custom-alert-message {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
  white-space: pre-line;
  word-wrap: break-word;
}

.custom-alert-btn {
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #FF7A45 0%, #FF4D4F 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.25);
}

.custom-alert-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 77, 79, 0.35);
}

.custom-alert-btn:active {
  transform: translateY(0);
}

@keyframes alertSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

