:root {
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-soft: #f2f2f2;
  --text: #111111;
  --muted: #8e8e93;
  --line: #ededed;
  --accent: #000000;
  --shadow: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  width: min(100%, 414px);
  margin: 0 auto;
  padding: 18px 12px 40px;
}

.wechat-home {
  min-height: calc(100vh - 58px);
}

.account-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.account-main {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
}

.account-copy {
  min-width: 0;
}

.account-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.account-name {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0;
}

.account-badge {
  color: #f7b500;
  font-size: 13px;
  transform: translateY(-1px);
}

.account-desc,
.account-meta,
.feed-date,
.feed-summary,
.feed-stats,
.guide-block p {
  margin: 0;
}

.account-desc {
  margin-top: 11px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.account-meta {
  margin-top: 6px;
  color: #b1b1b4;
  font-size: 13px;
}

.account-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a4f55;
  padding-top: 2px;
}

.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.tool-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon:last-child svg {
  fill: currentColor;
  stroke: none;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.action-button {
  flex: 1;
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 4px;
  border: 0;
  background: #f2f2f2;
  font-size: 14px;
  color: #222222;
}

.action-button-primary {
  background: #fff;
  box-shadow: inset 0 0 0 1px #ececec;
}

.action-check {
  font-size: 13px;
  font-weight: 600;
}

.tab-row {
  display: flex;
  gap: 23px;
  margin-top: 18px;
}

.tab-link {
  position: relative;
  padding-bottom: 12px;
  color: #6e737a;
  font-size: 16px;
}

.tab-link-active {
  color: var(--accent);
  font-weight: 600;
}

.tab-link-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #1f1f1f;
}

.article-feed {
  margin-top: 18px;
}

.feed-card + .feed-card {
  margin-top: 16px;
}

.feed-date {
  margin-bottom: 10px;
  padding-left: 16px;
  color: #b1b1b4;
  font-size: 13px;
}

.feed-card-link {
  display: block;
}

.feed-card-body {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feed-copy {
  flex: 1;
  min-width: 0;
}

.feed-copy h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-stats {
  margin-top: 12px;
  color: #b4b5b8;
  font-size: 13px;
}

.feed-cover {
  width: 95px;
  min-width: 95px;
  border-radius: 6px;
  background: linear-gradient(135deg, #0f1217 0%, #171b25 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.feed-cover small {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.92;
}

.guide-block {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.guide-block h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

.guide-block p {
  color: #8c9199;
  font-size: 13px;
  line-height: 1.8;
}

.guide-block p + p {
  margin-top: 6px;
}

code {
  padding: 0.08em 0.35em;
  border-radius: 4px;
  background: var(--surface-soft);
  font-size: 0.95em;
}

@media (max-width: 420px) {
  .account-name {
    font-size: 17px;
  }

  .feed-card-body {
    gap: 12px;
  }

  .feed-cover {
    width: 84px;
    min-width: 84px;
    font-size: 21px;
  }
}
