/*! MP Tool · 页面视图：公众号卡片 / 素材库 / 开发文档 / 用户中心 */

/* ================= 我的公众号 ================= */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  max-width: 760px;
}

.account-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.account-card:hover { border-color: #dcdcd0; box-shadow: var(--shadow); }

.account-card__head { display: flex; align-items: flex-start; gap: 12px; }
.account-card__avatar { display: flex; }
.account-card__meta { flex: 1; min-width: 0; }
.account-card__name { font-size: 15.5px; font-weight: 700; letter-spacing: -.2px; }
.account-card__id {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-card__status { flex-shrink: 0; }

.account-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 12px;
  background: #f7f8f2;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .12s;
}
.stat:hover { background: var(--brand-50); border-color: #dee7c6; }
.stat:active { transform: scale(.975); }
.stat:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(91, 122, 30, .16); }
.stat__hint {
  position: absolute;
  top: 50%;
  right: 9px;
  display: inline-flex;
  color: var(--brand);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .15s;
}
.stat:hover .stat__hint, .stat:focus-visible .stat__hint { opacity: 1; }
.stat__value { font-size: 20px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; }
.stat__label { font-size: 11.5px; color: var(--muted); }

.account-card__foot { display: flex; align-items: center; justify-content: space-between; }
.account-card__tools { display: flex; align-items: center; gap: 2px; }

/* ================= 素材库 ================= */
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: #fcfcf9;
  flex-wrap: wrap;
}
.panel__head-extra { display: flex; align-items: center; gap: 10px; }
.bulk { font-size: 12.5px; color: var(--text-2); }
.bulk b { color: var(--brand-700); }

.asset-list { display: flex; flex-direction: column; }
.asset {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #f2f3ec;
  transition: background .13s;
}
.asset:last-child { border-bottom: 0; }
.asset:hover { background: #fbfcf7; }

.asset--skeleton { height: 80px; border-radius: 0; background: linear-gradient(90deg, #f7f8f3 25%, #f1f3ea 37%, #f7f8f3 63%); background-size: 400% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -400% 0; } }

.asset__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.asset__title-row { display: flex; align-items: center; gap: 9px; min-width: 0; }
.asset__title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.asset__wxv { font-family: var(--mono); }
.asset__sep { width: 3px; height: 3px; border-radius: 50%; background: #ccd0c4; flex-shrink: 0; }

.asset__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ================= 播放链接弹窗 ================= */
.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  background: #fafbf6;
  border: 1px solid #eeefe6;
  border-radius: 12px;
}
.link-item__info { flex: 1; min-width: 0; }
.link-item__title { display: flex; align-items: baseline; gap: 6px; font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.link-item__tag { font-size: 12px; font-weight: 500; color: var(--muted); }
.link-item__desc { margin-top: 2px; font-size: 12px; color: var(--muted); }
.link-item__url {
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #8b9083;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

/* ================= 开发文档 ================= */
.doc-card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.doc-card__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.doc-card__title .icon { color: var(--brand); }

.doc-notes { display: flex; flex-direction: column; gap: 9px; }
.doc-notes li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
.doc-notes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #b8bfa6;
}
.doc-notes code {
  padding: 1px 5px;
  background: #f3f5ec;
  border-radius: 5px;
  font-size: 12px;
  color: var(--brand-700);
}
.doc-notes b { color: var(--text); }

.doc-endpoints { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.doc-endpoint {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.doc-endpoint__head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; flex-wrap: wrap; }
.method {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ok-bg);
  color: var(--ok-fg);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
}
.doc-endpoint__path { font-size: 14px; font-weight: 700; color: var(--text); }
.doc-endpoint__name { font-size: 13px; font-weight: 600; color: var(--muted); }
.doc-endpoint__desc { font-size: 13px; line-height: 1.75; color: var(--text-2); }
.doc-endpoint__desc code {
  padding: 1px 5px;
  background: #f3f5ec;
  border-radius: 5px;
  font-size: 12px;
}

.url-row { display: flex; align-items: center; gap: 8px; margin-top: 13px; flex-wrap: wrap; }
.url-row__text {
  flex: 1;
  min-width: 160px;
  padding: 9px 12px;
  background: #f7f8f2;
  border: 1px solid #eef0e6;
  border-radius: 9px;
  font-size: 12px;
  color: #6f7566;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  background: #f8f9f4;
  border: 1px solid #eef0e6;
  border-radius: 12px;
  overflow: auto;
}
.code-block code { font-size: 12.5px; line-height: 1.9; color: #3d4234; white-space: pre; }
.c-comment { color: #9aa191; }

/* ================= 用户中心 ================= */
.member-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  margin-bottom: 16px;
  background: #fdf8e9;
  border: 1px solid #f2e5bf;
  border-radius: 12px;
  font-size: 13px;
  color: #8a6a1c;
}
.member-bar .icon { color: #c9a13a; }
.member-bar b { color: #6f530f; }

.profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.profile-head__text { min-width: 0; }
.profile-head__name { font-size: 16px; font-weight: 700; }
.profile-head__mail { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.profile-head__mail .icon { color: #a5aa9c; }

.profile-form { max-width: 380px; }
.profile-form .field { margin-bottom: 14px; }
.profile-form .btn { margin-top: 4px; }
