/* ===================== 基础 ===================== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #1b1b1f;
  color: #333;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; border: none; outline: none; background: none; }
button { cursor: pointer; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

.phone {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #f4f4f7;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,0,0,.45);
}

/* ===================== 顶部导航 ===================== */
.navbar {
  position: relative; z-index: 20;
  height: 44px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  color: #111;
}

/* 详情页导航 */
.navbar-detail { position: relative; justify-content: center; padding: 0 12px; }
.nav-title-center { position: absolute; left: 50%; transform: translateX(-50%); font-weight: 700; font-size: 16px; }
.nav-back-btn {
  position: absolute; left: 12px;
  height: 28px; padding: 0 12px;
  border-radius: 8px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 13px; font-weight: 600;
}

/* ===================== 内容区 ===================== */
.content { padding-bottom: 24px; }

/* ===================== 头图 ===================== */
.banner {
  margin: 12px 12px 14px;
  padding: 18px 16px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e9e4fb 0%, #f4e7f6 55%, #fbe9f0 100%);
}
.banner-title {
  font-size: 21px; font-weight: 700; color: #1f2937; letter-spacing: 1px;
}
.banner-sub {
  margin-top: 8px;
  font-size: 13px; color: #6b7280;
}

/* ===================== 星座宫格 ===================== */
.sign-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px;
}
.sign-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 10px 18px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 4px 16px rgba(31,41,55,.06);
  transition: transform .12s, box-shadow .12s;
}
.sign-card:active { transform: scale(.985); box-shadow: 0 2px 8px rgba(31,41,55,.08); }
.sign-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  box-shadow: 0 4px 10px rgba(124,58,237,.28);
  font-size: 23px; line-height: 1; color: #fff;
}
.sign-name {
  margin-top: 12px;
  font-size: 16px; font-weight: 700; color: #1f2937;
}
.sign-more {
  margin-top: 6px;
  font-size: 12px; color: #9ca3af;
}

/* ===================== 星座名片 ===================== */
.profile {
  margin: 12px 12px 14px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 16px 18px;
  box-shadow: 0 4px 16px rgba(31,41,55,.06);
}
.profile-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  box-shadow: 0 5px 12px rgba(124,58,237,.3);
  font-size: 26px; line-height: 1; color: #fff;
}
.profile-name {
  margin-top: 14px;
  font-size: 21px; font-weight: 700; color: #1f2937;
}
.profile-en {
  margin-top: 5px;
  font-size: 13px; color: #9ca3af;
}

/* ===================== 解码分项 ===================== */
.section-list { padding: 0 12px; }
.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(31,41,55,.06);
}
.section-title {
  display: flex; align-items: center; gap: 8px;
}
.section-bar {
  width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, #a855f7 0%, #6d28d9 100%);
}
.section-label {
  font-size: 16px; font-weight: 700; color: #4c1d95;
}
.section-text {
  display: block;
  margin-top: 11px;
  font-size: 13.5px; line-height: 1.78; color: #4b5563;
}

/* ===================== 小屏适配 ===================== */
@media (max-width: 360px) {
  .banner-title { font-size: 19px; }
  .sign-icon { width: 38px; height: 38px; font-size: 21px; }
  .sign-name { font-size: 15px; }
}
