/* ============================================================
   星澪科技 · Identity Page —— 内容区块
   与 theme.css 配合使用
   ============================================================ */

/* ---------- 主体面板：上移压住品牌色块 ---------- */
.panel {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 24px var(--pad) 0;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

@media (min-width: 720px) {
  .panel { border-radius: 24px 24px 0 0; }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: var(--accent-tint);
  font-size: 13px;
  font-weight: 600;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2fa36b;
  box-shadow: 0 0 0 3px rgba(47, 163, 107, 0.16);
  flex: none;
}

.status small { font-weight: 500; color: var(--ink-soft); }

.status[data-state="expired"] { background: rgba(61, 32, 68, 0.07); }
.status[data-state="expired"] .dot {
  background: #c25a5a;
  box-shadow: 0 0 0 3px rgba(194, 90, 90, 0.16);
}

/* ---------- 信息行 ---------- */
.facts {
  margin: 24px 0 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}

.facts .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}

.facts dt {
  font-size: 13.5px;
  color: var(--ink-soft);
  flex: none;
}

.facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.facts dd.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.06em; }

/* ---------- 操作 ---------- */
.cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  appearance: none;
  border: 1px solid var(--hair);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:active { transform: scale(0.975); }

.btn.primary {
  flex: 1;
  background: var(--accent);
  border-color: transparent;
  color: var(--ink);
}

[data-tier="friend"] .btn.primary { color: #fdf6fe; }

/* ---------- 公司与说明 ---------- */
.about {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hair);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about .slogan {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 600;
}

.about p { margin: 0; }

.about a {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-decoration: none;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 2px;
}

.about a:hover { color: var(--pink-deep); }

.foot {
  margin-top: auto;
  padding: 26px 0 calc(30px + env(safe-area-inset-bottom));
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 14px);
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
  max-width: 84vw;
  text-align: center;
}

.toast[data-show="1"] { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 目录页 ---------- */
.hub-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.hub-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  text-decoration: none;
}

.hub-item:hover { border-color: var(--accent); }

.hub-item .avatar {
  width: 42px;
  height: 42px;
  border: 0;
  flex: none;
  font-size: 16px;
  color: var(--ink);
  background: var(--accent-tint);
  box-shadow: none;
}

.hub-item .who { min-width: 0; }

.hub-item .who strong {
  display: block;
  font-size: 15.5px;
}

.hub-item .who span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-note {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.empty-note code {
  font-size: 12.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(61, 32, 68, 0.06);
}
