/* 我的 —— 个人中心入口 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Microsoft YaHei", sans-serif;
  background: #f3f5f8;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

.phone {
  width: 375px;
  max-width: 100%;
  height: 100%;
  max-height: 100vh;
  margin: 0 auto;
  background: #f3f5f8;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nav-bar {
  height: 44px;
  background: #008dff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: relative;
  flex-shrink: 0;
}

.nav-bar .title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
}

.nav-bar .capsule {
  margin-left: auto;
  display: flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.nav-bar .capsule .cap-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-bar .capsule .cap-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
}

.nav-bar .capsule .dots {
  display: flex;
  gap: 3px;
}

.nav-bar .capsule .dots i {
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.nav-bar .capsule .ring {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.nav-bar .capsule .ring::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

.header-bg {
  background: linear-gradient(180deg, #008dff 0%, #008dff 72%, #f3f5f8 72%);
  padding: 8px 0 0;
  flex-shrink: 0;
}

.profile-card {
  background: #fff;
  border-radius: 0;
  padding: 16px 14px 14px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #e8f4ff;
  background: #fff;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.profile-school {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #008dff;
  background: #eef6ff;
  padding: 2px 8px;
  border-radius: 10px;
}

.profile-school img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.profile-meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f2f2f2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.meta-item {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.meta-item strong {
  display: block;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

.main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: 0;
  padding: 14px 8px;
}

.stat-item {
  text-align: center;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}

.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: #f0f0f0;
}

.stat-num {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  line-height: 1.2;
}

.stat-num.hl {
  color: #ff4d4f;
}

.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #999;
}

.section-card {
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.section-title {
  padding: 12px 14px 6px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 12px 14px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px 12px;
  border: none;
  border-radius: 12px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.entry-card.tuition {
  background: linear-gradient(145deg, #e8f4ff 0%, #f5faff 100%);
}

.entry-card.product {
  background: linear-gradient(145deg, #fff3e8 0%, #fffaf5 100%);
}

.entry-card:active {
  opacity: 0.88;
  transform: scale(0.98);
}

.entry-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.entry-card.tuition .entry-icon {
  background: #008dff;
  color: #fff;
}

.entry-card.product .entry-icon {
  background: #ff8a00;
  color: #fff;
}

.entry-icon svg {
  width: 20px;
  height: 20px;
}

.entry-name {
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.entry-desc {
  font-size: 11px;
  color: #999;
  line-height: 1.35;
}

.entry-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #ff4d4f;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-list {
  padding: 2px 0 4px;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  text-align: left;
}

.menu-item:active {
  background: #f7f8fa;
}

.menu-item .mi-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-item .mi-icon svg {
  width: 14px;
  height: 14px;
}

.menu-item .mi-icon.blue { background: #e8f4ff; color: #008dff; }
.menu-item .mi-icon.green { background: #e8f8ef; color: #22c55e; }
.menu-item .mi-icon.orange { background: #fff3e8; color: #ff8a00; }
.menu-item .mi-icon.purple { background: #f3e8ff; color: #8b5cf6; }
.menu-item .mi-icon.gray { background: #f0f0f0; color: #666; }

.menu-item .mi-text {
  flex: 1;
}

.menu-item .mi-extra {
  font-size: 12px;
  color: #bbb;
  margin-right: 4px;
}

.menu-item .mi-arrow {
  width: 12px;
  height: 12px;
  color: #ccc;
}

.tip {
  text-align: center;
  font-size: 11px;
  color: #c0c0c0;
  padding: 4px 0 8px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tab-bar {
  flex-shrink: 0;
  height: 52px;
  background: #fff;
  border-top: 1px solid #ececec;
  display: flex;
  align-items: stretch;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 10px;
  color: #999;
  cursor: pointer;
  text-decoration: none;
}

.tab-item.active {
  color: #008dff;
}

.tab-item svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 375px) {
  .phone {
    width: 100%;
  }
}
