:root {
  --gold: #d4af37;
  --gold-light: #f4d03f;
  --gold-dark: #b8860b;
  --purple: #6b5b95;
  --dark: #0a0a1a;
  --dark-light: #15152b;
  --dark-card: #1a1a3e;
  --text: #e8e6f0;
  --text-dim: #a09cc0;
  --accent: #c0a0ff;
  --card-w: 200px;
  --card-h: 340px;
  --center-scale: 1.5;          /* 新增：桌面端中央放大倍数 */
}

* { margin:0; 
  padding:0; 
  box-sizing:border-box; 
  -webkit-tap-highlight-color:transparent;
  -webkit-touch-callout: none;   /* 新增：禁用 iOS 长按菜单 */
  -webkit-user-select: none;      /* 新增：禁用文本选择 */
  user-select: none;              /* 新增：标准属性 */ }

  /* 新增：全局图片不响应触摸事件，防止 iOS 微信长按呼出菜单 */
img {
  pointer-events: none;
  -webkit-user-drag: none;
}

body {
  font-family: 'Noto Serif SC', serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

#starfield {
  position: fixed; top:0; left:0; width:100%; height:100%;
  z-index: 0; pointer-events: none;
}

.container {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
  padding: 20px; min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  animation: fadeIn 0.8s ease;
  padding-top: 20px;
}
.page.active { display: flex; }

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

.hidden { display: none !important; }
.invisible { opacity: 0; pointer-events: none; }

@media (max-width: 480px) {
  :root { --card-w: 105px; --card-h: 178px; --center-scale: 2.2; }  /* 手机端放大到2.2倍 */
}