:root {
  --bg-deep: #090b1a;
  --card-bg: rgba(22, 27, 58, 0.72);
  --card-border: rgba(255, 255, 255, 0.11);
  --text-main: #f4f6ff;
  --text-muted: #a6b0d6;
  --gold: #f4c977;
  --gold-dark: #d9a441;
  --violet: #8b7cf6;
  --wechat: #07c160;
  --green: #38d9a9;
  --red: #ff6b6b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 42px rgba(3, 6, 23, 0.42);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #171c42 0%, var(--bg-deep) 68%);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
  touch-action: manipulation;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 星空背景与全屏点击特效层 */
.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.click-fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.34;
  will-change: transform, opacity;
}

.nebula-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #6c5ce7, transparent 70%);
  top: -140px;
  left: -100px;
  animation: nebulaFloatA 18s ease-in-out infinite alternate;
}

.nebula-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, #f4c977, transparent 70%);
  bottom: -160px;
  right: -120px;
  opacity: 0.2;
  animation: nebulaFloatB 22s ease-in-out infinite alternate;
}

.nebula-3 {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, #3bc9db, transparent 70%);
  top: 42%;
  left: 55%;
  opacity: 0.12;
  animation: nebulaFloatC 24s ease-in-out infinite alternate;
}

@keyframes nebulaFloatA {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.3; }
  to { transform: translate3d(55px, 40px, 0) scale(1.1); opacity: 0.42; }
}

@keyframes nebulaFloatB {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.16; }
  to { transform: translate3d(-50px, -35px, 0) scale(1.12); opacity: 0.26; }
}

@keyframes nebulaFloatC {
  from { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.08; }
  to { transform: translate3d(-40px, 30px, 0) scale(1.12); opacity: 0.18; }
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

/* ==================== 全屏开场封面 ==================== */
body.splash-locked {
  overflow: hidden;
}

.splash-cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(circle at 50% 42%, rgba(28, 34, 82, 0.92) 0%, rgba(9, 11, 26, 0.98) 72%);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.splash-cover.splash-exit {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.splash-art-bg {
  position: absolute;
  inset: 0;
  background: url("/og-cover.jpg") center / cover no-repeat;
  opacity: 0.22;
  filter: blur(6px) saturate(1.15);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
  width: 100%;
  animation: cardReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-emblem {
  width: min(230px, 58vw);
  height: min(230px, 58vw);
  border-radius: 50%;
  position: relative;
  margin-bottom: 22px;
  padding: 6px;
  background: radial-gradient(circle, rgba(244, 201, 119, 0.28), rgba(139, 124, 246, 0.14) 68%, transparent 72%);
  box-shadow: 0 0 55px rgba(244, 201, 119, 0.22);
}

.splash-wheel-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1.5px solid rgba(244, 201, 119, 0.55);
  will-change: transform;
  animation: slowSpin 48s linear infinite;
}

.splash-ring-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(244, 201, 119, 0.38);
  will-change: transform;
  animation: slowSpinReverse 32s linear infinite;
  pointer-events: none;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes slowSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

.splash-kicker {
  font-size: 11px;
  letter-spacing: 3.5px;
  color: var(--gold);
  opacity: 0.85;
  margin-bottom: 6px;
}

.splash-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #ffffff 15%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.splash-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.splash-enter-btn {
  min-width: 210px;
  min-height: 48px;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 12px 32px rgba(244, 201, 119, 0.32);
}

.splash-bgm-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(166, 176, 214, 0.72);
}

/* 顶部导航 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: env(safe-area-inset-top);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--violet), var(--gold));
  display: grid;
  place-items: center;
  font-size: 18px;
  color: #090b1a;
  font-weight: bold;
  flex-shrink: 0;
  will-change: transform;
  animation: iconBreath 4s ease-in-out infinite;
}

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

.brand-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-date {
  font-size: 11px;
  color: var(--gold);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* BGM 按钮 */
.bgm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.bgm-btn.playing {
  background: rgba(244, 201, 119, 0.16);
  border-color: rgba(244, 201, 119, 0.55);
  color: var(--gold);
}

.bgm-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.bgm-bars i {
  display: block;
  width: 2.5px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom;
  transform: scaleY(0.35);
}

.bgm-btn.playing .bgm-bars i:nth-child(1) {
  animation: eqBar 0.75s ease-in-out infinite alternate;
}
.bgm-btn.playing .bgm-bars i:nth-child(2) {
  animation: eqBar 0.55s ease-in-out 0.18s infinite alternate;
}
.bgm-btn.playing .bgm-bars i:nth-child(3) {
  animation: eqBar 0.85s ease-in-out 0.32s infinite alternate;
}

@keyframes eqBar {
  from { transform: scaleY(0.25); }
  to { transform: scaleY(1); }
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  font-size: 12.5px;
  max-width: 150px;
}

.user-chip .user-nick {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(139, 124, 246, 0.25);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.login-type-tag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(139, 124, 246, 0.24);
  color: #d6ceff;
  flex-shrink: 0;
}

.login-type-tag.wechat {
  background: rgba(7, 193, 96, 0.22);
  color: #7df2b2;
}

.login-type-tag.guest {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
}

/* 按钮 */
.btn {
  border: none;
  border-radius: 11px;
  padding: 10px 16px;
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.15s ease;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  will-change: transform;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: scale(0.96);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #6c5ce7);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #16141f;
}

.btn-wechat {
  background: var(--wechat);
  color: #ffffff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(139, 124, 246, 0.6);
  color: #d7d0ff;
}

.btn-sm {
  padding: 6px 11px;
  min-height: 34px;
  font-size: 12.5px;
}

.btn-block {
  width: 100%;
  min-height: 44px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--gold);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

/* 主体内容 */
.main-content {
  padding-top: 16px;
  padding-bottom: 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(244, 201, 119, 0.12);
  border: 1px solid rgba(244, 201, 119, 0.28);
  font-size: 13px;
  color: #f4e8c8;
}

/* 极简生日速查条 */
.hero-bar {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-bar-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(244, 201, 119, 0.13);
  padding: 4px 11px;
  border-radius: 999px;
}

.birthday-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.birthday-inputs {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 420px;
}

.birthday-inputs select {
  flex: 1;
  min-width: 82px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
}

.birthday-inputs select option {
  background: #171c3d;
  color: #fff;
}

/* 分区标题 */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.section-header h2 {
  font-size: 18px;
}

.my-sign-badge {
  font-size: 11px;
  font-weight: 700;
  color: #16141f;
  background: var(--gold);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.day-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}

.day-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.day-tab.active {
  background: var(--violet);
  color: #fff;
}

/* 详细运势网格 */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
  align-items: start;
}

.sign-overview-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.sign-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sign-symbol-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(139, 124, 246, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-shrink: 0;
  will-change: transform;
  animation: floatGentle 4.2s ease-in-out infinite;
}

@keyframes floatGentle {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -4px, 0); }
}

.sign-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sign-name-row h3 {
  font-size: 22px;
}

.sign-en {
  font-size: 13px;
  color: var(--text-muted);
}

.sign-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.tag-pill {
  font-size: 11.5px;
  color: #d6dcff;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.overall-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(9, 11, 26, 0.45);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.overall-score-ring {
  width: 82px;
  height: 82px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.score-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-bg {
  fill: rgba(244, 201, 119, 0.07);
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 5;
}

.score-ring-progress {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 245.04;
  stroke-dashoffset: 245.04;
  transition: stroke-dashoffset 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.overall-score-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.overall-score-num {
  font-size: 25px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.overall-score-label {
  font-size: 10.5px;
  color: var(--text-muted);
}

.stars-row {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 14px;
  margin-bottom: 4px;
}

.overall-summary {
  font-size: 14px;
  color: #eef0ff;
}

.lucky-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.lucky-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.lucky-clickable {
  cursor: pointer;
}

.lucky-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.lucky-val {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  display: inline-block;
}

.overview-actions {
  display: flex;
  gap: 10px;
}

.overview-actions .btn {
  flex: 1;
}

/* 右侧分项运势 */
.detail-right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dimensions-card {
  padding: 18px;
}

.dimensions-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dim-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dim-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.dim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.dim-title {
  font-weight: 600;
  font-size: 14px;
}

.dim-score {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transform-origin: left;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.dim-text {
  font-size: 13.5px;
  color: var(--text-muted);
}

.guidance-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guidance-card {
  padding: 14px 16px;
}

.guidance-title {
  margin-bottom: 8px;
}

.guidance-title span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.do-card .guidance-title span {
  background: rgba(56, 217, 169, 0.2);
  color: var(--green);
}

.dont-card .guidance-title span {
  background: rgba(255, 107, 107, 0.2);
  color: var(--red);
}

.guidance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: #e4e8ff;
}

.quote-card {
  padding: 15px 18px;
  background: linear-gradient(135deg, rgba(139, 124, 246, 0.16), rgba(244, 201, 119, 0.1));
}

.quote-card blockquote {
  font-size: 14px;
  color: #fff;
  font-style: italic;
}

/* 十二星座紧凑网格 */
.all-signs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sign-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 13px 12px;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease;
  position: relative;
  will-change: transform;
  animation: signStaggerIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-idx, 0) * 24ms);
}

.sign-card:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 201, 119, 0.45);
}

.sign-card:active {
  transform: scale(0.96);
}

.sign-card.active {
  border-color: var(--gold);
  background: rgba(34, 41, 86, 0.88);
}

.sign-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sign-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sign-card-symbol {
  font-size: 20px;
}

.sign-card-name {
  font-size: 14.5px;
  font-weight: 700;
}

.sign-card-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
}

.sign-card-dates {
  font-size: 11px;
  color: var(--text-muted);
}

.sign-card-mytag {
  position: absolute;
  top: -7px;
  right: 8px;
  background: var(--gold);
  color: #16141f;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
}

/* 登录弹窗 */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 7, 18, 0.76);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 400px;
  padding: 24px 22px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  width: 36px;
  height: 36px;
}

.modal-header {
  text-align: center;
  margin-bottom: 16px;
}

.modal-header h2 {
  font-size: 19px;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 11px;
  margin-bottom: 14px;
}

.login-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.login-tab.active {
  background: rgba(139, 124, 246, 0.35);
  color: #fff;
}

.form-group {
  margin-bottom: 12px;
}

.form-group input,
.wx-demo-box input {
  width: 100%;
  min-height: 42px;
  background: rgba(9, 11, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
}

.sms-row {
  display: flex;
  gap: 8px;
}

.sms-row .btn {
  white-space: nowrap;
}

.demo-tip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 201, 119, 0.12);
  border: 1px dashed rgba(244, 201, 119, 0.45);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.demo-tag {
  display: inline-block;
  font-size: 11px;
  background: var(--gold);
  color: #16141f;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  margin-right: 6px;
}

/* 微信扫码（GPU transform 扫描线） */
.wx-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.wx-qr-box {
  width: 156px;
  height: 156px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.wx-qr-svg {
  width: 100%;
  height: 100%;
}

.wx-scan-line {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--wechat);
  will-change: transform;
  animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, 128px, 0); }
}

.wx-status-text {
  font-size: 12.5px;
  color: var(--text-muted);
}

.wx-demo-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-divider {
  text-align: center;
  position: relative;
  margin: 14px 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.modal-divider::before { left: 0; }
.modal-divider::after { right: 0; }

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  background: rgba(18, 22, 51, 0.96);
  border: 1px solid rgba(244, 201, 119, 0.45);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  max-width: 90vw;
  text-align: center;
  z-index: 200;
}

/* 动效 */
.detail-animate {
  animation: cardReveal 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes signStaggerIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.modal-backdrop:not(.hidden) .modal-card {
  animation: modalPop 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalPop {
  from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.96); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* 手机浏览器深度适配 */
@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .all-signs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 12px;
  }
  .brand-name {
    font-size: 15px;
  }
  .bgm-label {
    display: none;
  }
  .bgm-btn {
    padding: 0 10px;
  }
  .hero-bar {
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
  }
  .birthday-inputs {
    max-width: none;
  }
  .all-signs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .sign-card {
    padding: 10px 8px;
    text-align: center;
  }
  .sign-card-top {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 2px;
  }
  .sign-card-title {
    flex-direction: column;
    gap: 2px;
  }
  .sign-card-symbol {
    font-size: 22px;
  }
  .sign-card-name {
    font-size: 13px;
  }
  .sign-card-dates {
    display: none;
  }
  /* 移动端底部抽屉式弹窗 */
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal-card {
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
