:root {
  --canvas: #fafafa;
  --surface: #ffffff;
  --night: #141517;
  --night-border: #262930;
  --emerald: #3ecf8e;
  --emerald-deep: #24b47e;
  --emerald-ink: #0f5132;
  --ink: #171717;
  --ink-secondary: #52525b;
  --ink-mute: #8a8a93;
  --hairline: #e4e4e7;
}

html, body, div, h1, h3, h4, p, ul, li, a, img, header, footer, article {
  margin: 0;
  padding: 0;
  border: 0;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  color: var(--ink);
  background: var(--canvas);
  font-family: "Inter", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald-deep);
  text-decoration: none;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
}

.wrap {
  width: min(860px, calc(100% - 28px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--night);
  border-bottom: 1px solid var(--night-border);
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.name a .brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.name a .brand-cn {
  font-size: 1em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.name a .brand-en {
  font-style: normal;
  font-size: 0.5em;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.46);
  margin-top: 4px;
}

.name a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.22);
}

.menu ul {
  display: flex;
  list-style: none;
  gap: 10px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--night-border);
  background: #1f2125;
  color: #e4e4e7;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.menu a:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

.main {
  flex: 1 0 auto;
  padding: 20px 0 44px;
}

.sitemap {
  padding: 0 0 14px;
  color: var(--ink-mute);
  font-size: 13px;
}

.sitemap a {
  color: var(--ink-secondary);
}

.sitemap a:hover {
  color: var(--emerald-deep);
}

.content {
  padding-bottom: 12px;
}

.block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 28px rgba(0, 0, 0, 0.03);
  padding: 30px 32px;
}

.post h1 {
  margin: 0 0 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f2;
  color: var(--ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.postcon h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  font-style: normal;
}

.postcon h3::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--emerald);
}

.postcon p {
  margin: 0 0 13px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.postcon strong {
  color: var(--ink);
  font-weight: 600;
}

.postcon strong.mark-brand {
  color: #0f172a;
  font-weight: 700;
  border-bottom: 2px solid rgba(62, 207, 142, 0.65);
  padding-bottom: 1px;
}

.postcon img {
  display: block;
  max-width: min(480px, 100%);
  max-height: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 10px auto 16px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: #ffffff;
}

.keyword {
  color: #e4e4e7;
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 强规则 / 防走偏重点：高对比警示珊瑚红（权重压过 .postcon strong） */
.postcon .mark,
.postcon strong.mark {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid rgba(220, 38, 38, 0.22);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
}

/* 利益点 / 官方福利钩子：深翡翠绿配薄荷轻底 */
.postcon .mark-benefit,
.postcon strong.mark-benefit {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
}

/* 必读强提示卡片 */
.postcon .must-read {
  padding: 13px 16px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #fff7f7;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  color: #3f3f46;
}

.postcon .must-read-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: #dc2626;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: 1px;
}

/* 步骤数字徽章 */
.postcon .step-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.postcon .step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 6px;
  background: var(--night);
  color: var(--emerald);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hint {
  color: var(--emerald-deep);
}

.tip-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #b45309 !important;
  font-size: 14.5px;
  font-weight: 700;
}

.tip-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.tip-box {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  color: #78350f !important;
  font-size: 13.5px !important;
  line-height: 1.75;
  font-weight: 500;
}

.footer {
  padding: 20px 0 28px;
  color: var(--ink-mute);
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 720px) {
  .header .wrap {
    height: 56px;
  }

  .name a {
    font-size: 16px;
  }

  .block {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .post h1 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .postcon p,
  .postcon h3 {
    font-size: 14.5px;
  }
}
