/* ========================================
   赌博迷踪 - Main Stylesheet
   ======================================== */

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --phone-screen-w: 375px;
  --phone-screen-h: 750px;
  --phone-bezel: 12px;
  --wechat-green: #07C160;
  --chat-bg: #EDEDED;
  --bubble-me: #95EC69;
  --bubble-other: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #888888;
  --text-tertiary: #B0B0B0;
  --border-light: #E5E5E5;
  --header-bg: #EDEDED;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Screen System ===== */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== Intro Page ===== */
#screen-intro {
  overflow-y: auto;
  align-items: flex-start;
}

.intro-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(200, 200, 210, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 85%, rgba(210, 210, 220, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #FBFBFD 40%, #F8F8FA 100%);
  z-index: 0;
}

.intro-container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  padding: 60px 24px 100px;
  margin: 0 auto;
}

.game-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  color: #1a1a2e;
  letter-spacing: 6px;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(26,26,46,0.08);
  animation: fadeInDown 1s ease;
}

.intro-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--wechat-green), transparent);
  margin: 0 auto 36px;
  animation: fadeIn 1.2s ease 0.3s both;
}

.section-heading {
  font-size: 16px;
  font-weight: 600;
  color: #4a4a5a;
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--wechat-green);
  animation: fadeInUp 0.8s ease both;
}

.story-section p,
.gameplay-section p {
  font-size: 15px;
  line-height: 2;
  color: #3a3a4a;
  margin-bottom: 4px;
  animation: fadeInUp 0.8s ease both;
}

.story-section p:nth-child(2) { animation-delay: 0.1s; }
.story-section p:nth-child(3) { animation-delay: 0.15s; }
.story-section p:nth-child(4) { animation-delay: 0.2s; }
.story-section p:nth-child(5) { animation-delay: 0.25s; }
.story-section p:nth-child(6) { animation-delay: 0.3s; }
.story-section p:nth-child(7) { animation-delay: 0.35s; }

.gameplay-section { animation-delay: 0.2s; }

.warning-text {
  color: #c0781e !important;
  font-weight: 500;
}

.start-button {
  display: block;
  margin: 48px auto 0;
  background: var(--wechat-green);
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  padding: 14px 56px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(7, 193, 96, 0.35);
  animation: fadeInUp 1s ease 0.5s both, buttonPulse 2.5s ease-in-out 1.5s infinite;
}

.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(7, 193, 96, 0.55);
}

.start-button:active {
  transform: translateY(0);
}

/* ===== Phone Screen ===== */
#screen-phone {
  background: #F8F8FA;
}

.phone-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Phone Frame ===== */
.phone-frame {
  width: calc(var(--phone-screen-w) + var(--phone-bezel) * 2);
  height: calc(var(--phone-screen-h) + var(--phone-bezel) * 2);
  background: #1C1C1E;
  border-radius: 50px;
  padding: var(--phone-bezel);
  position: relative;
  box-shadow:
    0 0 0 2px #2A2A2C,
    0 0 0 3px #1A1A1C,
    0 25px 60px rgba(0,0,0,0.22),
    0 0 80px rgba(0,0,0,0.06),
    inset 0 0 2px rgba(255,255,255,0.08);
}

/* ===== Phone Notch ===== */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #1C1C1E;
  border-radius: 0 0 18px 18px;
  z-index: 20;
}

/* ===== Phone Display ===== */
.phone-display {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: transparent;
}

/* ===== Status Bar ===== */
.status-bar {
  height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  color: #1A1A1A;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.3s;
  background: transparent;
}

.status-bar.light-mode {
  color: #ffffff;
}

.status-time {
  letter-spacing: 0.5px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-signal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.signal-bar {
  width: 3px;
  background: currentColor;
  border-radius: 1px;
}

.status-wifi {
  display: flex;
  align-items: center;
}

.status-battery {
  display: flex;
  align-items: center;
  gap: 1px;
}

.battery-shell {
  width: 24px;
  height: 12px;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1.5px;
  display: flex;
  align-items: center;
}

.battery-fill {
  height: 100%;
  background: currentColor;
  border-radius: 1px;
}

.battery-tip {
  width: 2px;
  height: 5px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
}

/* ===== Screen Content ===== */
.screen-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ===== Side Home Button ===== */
.phone-side-button {
  position: absolute;
  right: -4px;
  top: 48%;
  width: 8px;
  height: 70px;
  background: linear-gradient(90deg, #3A3A3C 0%, #555558 50%, #2A2A2C 100%);
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow:
    1px 0 3px rgba(0,0,0,0.3),
    inset 0 1px 1px rgba(255,255,255,0.15),
    inset 0 -1px 1px rgba(0,0,0,0.3);
  z-index: 30;
}

.phone-side-button:hover {
  background: linear-gradient(90deg, #4A4A4C 0%, #656568 50%, #3A3A3C 100%);
}

.phone-side-button:active {
  background: linear-gradient(90deg, #2A2A2C 0%, #3A3A3C 50%, #1A1A1C 100%);
  transform: translateX(-2px);
}

.side-button-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.side-button-hint {
  position: absolute;
  right: -100px;
  top: 48%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(80,80,90,0.5);
  font-size: 13px;
  white-space: nowrap;
  animation: hintPulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

.hint-arrow {
  width: 24px;
  height: 1.5px;
  background: rgba(80,80,90,0.4);
  position: relative;
}

.hint-arrow::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid rgba(80,80,90,0.4);
  border-bottom: 1.5px solid rgba(80,80,90,0.4);
  transform: rotate(45deg);
}

/* ===== App View Container ===== */
.app-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  background: #fff;
  padding-top: 44px;
}

.app-header {
  flex-shrink: 0;
  background: var(--header-bg);
}

.app-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.app-body::-webkit-scrollbar {
  display: none;
}

.app-footer {
  flex-shrink: 0;
}

/* ===== Phone Desktop ===== */
.phone-desktop {
  height: 100%;
  background: linear-gradient(135deg, #c5d5e8 0%, #a8c4e0 50%, #8aafdb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 0 20px;
}

.desktop-clock {
  margin-top: 30px;
  text-align: center;
  color: #1a1a2e;
}

.clock-time {
  font-size: 48px;
  font-weight: 200;
  letter-spacing: 2px;
}

.clock-date {
  font-size: 14px;
  color: rgba(26,26,46,0.6);
  margin-top: 2px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 15px;
  padding: 40px 20px;
  width: 100%;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.app-icon:active {
  transform: scale(0.9);
}

.app-icon-img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.app-icon-img svg {
  width: 36px;
  height: 36px;
}

.app-icon-label {
  font-size: 12px;
  color: rgba(26,26,46,0.8);
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}

.desktop-dock {
  margin-top: auto;
  width: 100%;
  padding: 12px 20px;
}

/* ===== V信 App ===== */
.wechat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 44px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-light);
}

.wechat-header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.wechat-header-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.wechat-header-btn svg {
  width: 24px;
  height: 24px;
}

.search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #D7D7D7;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 8px 12px;
  font-size: 13px;
  color: #8E8E93;
  gap: 4px;
}

.search-bar svg {
  width: 14px;
  height: 14px;
}

/* ===== Chat List ===== */
.chat-list {
  background: #fff;
}

.chat-list-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  gap: 12px;
  border-bottom: 0.5px solid var(--border-light);
  transition: background 0.15s;
}

.chat-list-item:active {
  background: #ECECEC;
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  flex-shrink: 0;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  font-size: 14px;
}

.avatar-lg {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  font-size: 26px;
}

.chat-list-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-list-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-list-item-name {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-list-item-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-list-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.chat-list-item-message {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.unread-badge {
  background: #FA5151;
  color: #fff;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ===== Bottom Navigation ===== */
.bottom-nav {
  display: flex;
  background: #F7F7F7;
  border-top: 0.5px solid var(--border-light);
  padding-bottom: 4px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #7A7E82;
  font-size: 10px;
  gap: 2px;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--wechat-green);
}

.nav-item svg {
  width: 26px;
  height: 26px;
}

/* ===== Chat Detail ===== */
.chat-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 44px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-light);
  flex-shrink: 0;
}

.chat-header-back {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  color: var(--text-primary);
}

.chat-header-back svg {
  width: 24px;
  height: 24px;
}

.chat-header-back span {
  font-size: 15px;
  margin-left: -4px;
}

.chat-header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-header-more {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.chat-header-more svg {
  width: 24px;
  height: 24px;
}

/* ===== Chat Messages ===== */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--chat-bg);
  padding: 0 12px 12px;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.show-more {
  text-align: center;
  padding: 12px 0 8px;
}

.show-more-btn {
  display: inline-block;
  background: #C6C6C6;
  color: #5C5C5C;
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.show-more-btn:active {
  background: #B0B0B0;
}

.history-end {
  text-align: center;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 12px 0 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.history-end.visible {
  opacity: 1;
}

/* ===== Date Divider ===== */
.date-divider {
  text-align: center;
  padding: 10px 0 6px;
}

.date-divider span {
  display: inline-block;
  font-size: 12px;
  color: #999;
  background: #C6C6C633;
  padding: 2px 8px;
  border-radius: 4px;
}

/* ===== Time Stamp ===== */
.message-time {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin: 8px 0 4px;
}

/* ===== Message Row ===== */
.message-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0;
}

.message-row.me {
  flex-direction: row-reverse;
}

.message-row .avatar {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  font-size: 15px;
}

.message-content {
  display: flex;
  flex-direction: column;
  max-width: 230px;
}

.message-bubble {
  max-width: 230px;
  padding: 9px 12px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.5;
  word-wrap: break-word;
  position: relative;
  margin-top: 2px;
}

.message-row.other .message-bubble {
  background: var(--bubble-other);
  color: var(--text-primary);
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.message-row.me .message-bubble {
  background: var(--bubble-me);
  color: var(--text-primary);
}

/* Bubble tail */
.message-row.other .message-bubble::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid var(--bubble-other);
}

.message-row.me .message-bubble::before {
  content: '';
  position: absolute;
  right: -6px;
  top: 12px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--bubble-me);
}

/* ===== Group Chat Sender Name ===== */
.sender-name {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
  margin-left: 2px;
}

.message-row.me .sender-name {
  text-align: right;
  margin-right: 2px;
}

/* ===== Transfer Card ===== */
.transfer-card {
  width: 210px;
  border-radius: 8px;
  overflow: hidden;
  background: #FA9D3B;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  cursor: pointer;
  margin-top: 2px;
}

.transfer-card-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.transfer-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  font-weight: 700;
}

.transfer-card-info {
  flex: 1;
}

.transfer-card-label {
  font-size: 12px;
  opacity: 0.9;
}

.transfer-card-amount {
  font-size: 17px;
  font-weight: 600;
  margin-top: 1px;
}

.transfer-card-footer {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  font-size: 12px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== Chat Input Bar ===== */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #F7F7F7;
  border-top: 0.5px solid var(--border-light);
  flex-shrink: 0;
}

.chat-input-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-input-icon svg {
  width: 26px;
  height: 26px;
}

.chat-input-field {
  flex: 1;
  background: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 15px;
  outline: none;
  min-height: 36px;
}

/* ===== Chat Info Panel ===== */
.chat-info-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-info-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.chat-info-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 82%;
  max-width: 310px;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.chat-info-overlay.active .chat-info-panel {
  transform: translateX(0);
}

.chat-info-header {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 44px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-light);
}

.chat-info-back {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
}

.chat-info-back svg {
  width: 24px;
  height: 24px;
}

.chat-info-body {
  flex: 1;
  overflow-y: auto;
}

.chat-info-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: #fff;
  border-bottom: 8px solid #F7F7F7;
}

.chat-info-profile-info {
  flex: 1;
}

.chat-info-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-info-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.chat-info-menu {
  background: #fff;
}

.chat-info-menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--border-light);
  transition: background 0.15s;
}

.chat-info-menu-item:active {
  background: #ECECEC;
}

.chat-info-menu-item .menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  color: var(--text-secondary);
}

.chat-info-menu-item .menu-icon svg {
  width: 20px;
  height: 20px;
}

.chat-info-menu-item .menu-label {
  flex: 1;
  font-size: 16px;
  color: var(--text-primary);
}

.chat-info-menu-item .menu-arrow {
  color: #C0C0C0;
  font-size: 18px;
}

/* ===== V信 Contacts Tab ===== */
.contacts-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.contacts-list {
  flex: 1;
  overflow-y: auto;
}

.contacts-list::-webkit-scrollbar {
  display: none;
}

.contact-section-header {
  padding: 4px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #F7F7F7;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--border-light);
}

.contact-item:active {
  background: #ECECEC;
}

.contact-item-name {
  font-size: 16px;
  color: var(--text-primary);
}

.contacts-system-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--border-light);
}

.contacts-system-item:active {
  background: #ECECEC;
}

.contacts-system-icon {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

/* ===== V信 Moments Tab ===== */
.moments-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.moments-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 15px;
  flex-direction: column;
  gap: 12px;
}

.moments-placeholder svg {
  width: 60px;
  height: 60px;
  opacity: 0.2;
}

/* ===== V信 Me Tab ===== */
.me-tab {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #F7F7F7;
}

.me-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  background: #fff;
  margin-bottom: 8px;
}

.me-profile-info {
  flex: 1;
}

.me-profile-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.me-profile-id {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.me-profile-arrow {
  color: #C0C0C0;
  font-size: 18px;
}

.me-menu {
  background: #fff;
  margin-bottom: 8px;
}

.me-menu-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--border-light);
}

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

.me-menu-item:active {
  background: #ECECEC;
}

.me-menu-item .menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
}

.me-menu-item .menu-label {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
}

.me-menu-item .menu-arrow {
  color: #C0C0C0;
  font-size: 18px;
}

/* ===== Contacts App ===== */
.contacts-app {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.contacts-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 44px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-light);
}

.contacts-app-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.contacts-app-back {
  font-size: 16px;
  color: var(--wechat-green);
  cursor: pointer;
}

/* ===== Page Numbers ===== */
.page-number {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  color: rgba(80,80,90,0.3);
  letter-spacing: 1px;
  z-index: 100;
}

#screen-intro .page-number {
  color: rgba(80,80,90,0.25);
}

#screen-phone .page-number {
  color: rgba(80,80,90,0.2);
}

/* ===== Toast / Notification ===== */
.toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(40,40,50,0.8);
  color: #fff;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
}

/* ===== Animations ===== */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

@keyframes buttonPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(7, 193, 96, 0.35); }
  50% { box-shadow: 0 4px 35px rgba(7, 193, 96, 0.65); }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

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

.message-row {
  animation: messageSlideIn 0.3s ease;
}

/* ===== Responsive ===== */
@media (max-height: 850px) {
  .phone-wrapper {
    transform: scale(0.92);
  }
}

@media (max-height: 780px) {
  .phone-wrapper {
    transform: scale(0.82);
  }
}

@media (max-height: 700px) {
  .phone-wrapper {
    transform: scale(0.72);
  }
}

@media (max-width: 500px) {
  .phone-wrapper {
    transform: scale(0.85);
  }
  .side-button-hint {
    display: none;
  }
  .left-guide-area {
    display: none;
  }
}

/* ===== Left Guide Area ===== */
.left-guide-area {
  position: absolute;
  left: -320px;
  bottom: 140px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.left-guide-area.visible {
  opacity: 1;
}

.guide-hint {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(50, 50, 60, 0);
  text-align: right;
  font-style: italic;
  margin-bottom: 16px;
  max-height: 0;
  overflow: hidden;
  word-break: keep-all;
  transition: color 0.6s ease, max-height 0.6s ease, margin-bottom 0.6s ease, opacity 0.6s ease;
}

.guide-hint.show {
  color: rgba(50, 50, 60, 0.55);
  max-height: 120px;
}

.guide-hint.fade-out {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  color: rgba(50, 50, 60, 0);
}

/* ===== Chat Info Page ===== */
.chat-info-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #F7F7F7;
}

.chat-info-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 44px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-light);
}

.chat-info-page-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.chat-info-back {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
}

.chat-info-back svg {
  width: 24px;
  height: 24px;
}

.chat-info-page-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-info-page-body::-webkit-scrollbar {
  display: none;
}

/* ===== Chat Records Page ===== */
.chat-records {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
}

.chat-records-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 44px;
  background: var(--header-bg);
  border-bottom: 0.5px solid var(--border-light);
}

.chat-records-back {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
}

.chat-records-back svg {
  width: 24px;
  height: 24px;
}

.chat-records-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.records-search-bar {
  display: flex;
  align-items: center;
  background: #E8E8E8;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 8px 12px;
  gap: 6px;
  flex-shrink: 0;
}

.records-search-bar svg {
  width: 16px;
  height: 16px;
  color: #8E8E93;
  flex-shrink: 0;
}

.records-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  color: var(--text-primary);
}

.records-search-input::placeholder {
  color: #8E8E93;
}

.records-tabs {
  display: flex;
  border-bottom: 0.5px solid var(--border-light);
  flex-shrink: 0;
}

.records-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.records-tab.active {
  color: var(--text-primary);
  font-weight: 600;
}

.records-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--wechat-green);
  border-radius: 1px;
}

.records-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
}

.records-content::-webkit-scrollbar {
  display: none;
}

/* ===== Date Records ===== */
.date-record-group {
  margin-bottom: 4px;
}

.date-record-header {
  padding: 8px 16px 4px;
  font-size: 13px;
  color: var(--text-secondary);
  background: #F7F7F7;
  font-weight: 500;
}

.record-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 0.5px solid var(--border-light);
}

.record-item-sender {
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  min-width: 36px;
}

.record-item-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  flex: 1;
  word-break: break-word;
}

.transfer-inline.received {
  color: #07C160;
  font-weight: 600;
}

.transfer-inline.sent {
  color: #888;
}

.redpacket-inline {
  color: #FA5151;
  font-weight: 600;
}

.record-item-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ===== Transfer Records List ===== */
.transfer-record-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 0.5px solid var(--border-light);
  gap: 12px;
}

.transfer-record-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #FFF0E5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.transfer-record-info {
  flex: 1;
}

.transfer-record-type {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}

.transfer-record-note {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.transfer-record-date {
  font-size: 12px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-right: 8px;
}

.transfer-record-amount {
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}

.transfer-record-amount.received {
  color: #07C160;
}

.transfer-record-amount.sent {
  color: var(--text-secondary);
}

/* ===== Redpacket Card ===== */
.redpacket-card {
  width: 210px;
  border-radius: 8px;
  overflow: hidden;
  background: #FA5151;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
  margin-top: 2px;
}

.redpacket-card-body {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.redpacket-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.redpacket-card-info {
  flex: 1;
}

.redpacket-card-label {
  font-size: 12px;
  opacity: 0.9;
}

.redpacket-card-amount {
  font-size: 17px;
  font-weight: 600;
  margin-top: 1px;
}

.redpacket-card-note {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.redpacket-card-footer {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 5px 14px;
  font-size: 12px;
  opacity: 0.85;
}

/* ===== Records Empty ===== */
.records-empty {
  text-align: center;
  padding: 60px 0;
  font-size: 14px;
  color: var(--text-tertiary);
}
