:root {
  --page: #050505;
  --panel: #0b0b0b;
  --panel-soft: #10110e;
  --ink: #f5f5f2;
  --muted: #92928d;
  --quiet: #64645f;
  --line: #272724;
  --accent: #acba82;
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--page); }
body {
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 0%, rgba(172, 186, 130, .085), transparent 34rem),
    var(--page);
  font-family: "HarmonyOS Sans SC", "MiSans", "OPPO Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { color: #080808; background: var(--accent); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.article-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 5, 5, .84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.article-nav {
  width: min(100% - 48px, var(--maxw));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.article-brand { display: inline-flex; align-items: center; gap: 10px; }
.article-brand img:first-child { width: 42px; height: 42px; object-fit: contain; }
.article-brand img:last-child { width: 142px; height: auto; filter: invert(1) grayscale(1) brightness(2.4) contrast(1.5); }
.article-nav-links { display: flex; align-items: center; gap: 30px; color: #aaa; font-size: 14px; font-weight: 560; }
.article-nav-links a { transition: color .2s ease; }
.article-nav-links a:hover, .article-nav-links a[aria-current="page"] { color: #fff; }
.article-nav-cta { padding: 10px 18px; border-radius: 999px; color: #050505 !important; background: #fff; }

.article-page { width: min(100% - 80px, var(--maxw)); margin: 0 auto; padding: 74px 0 120px; }
.article-back {
  width: fit-content;
  margin-bottom: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  transition: color .2s ease, transform .2s ease;
}
.article-back:hover { color: #fff; transform: translateX(-3px); }
.article-layout { display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: clamp(54px, 7vw, 112px); align-items: start; }

.article-sidebar {
  position: sticky;
  top: 116px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(13, 13, 12, .86);
}
.article-sidebar-inner { padding: 26px; }
.article-author { display: flex; align-items: center; gap: 13px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-author-mark {
  width: 42px;
  height: 42px;
  margin-top: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  color: transparent;
  background: var(--accent);
  font-size: 0;
}
.article-author-mark::before {
  width: 22px;
  height: 22px;
  display: block;
  content: "";
  background: #0b0b0b;
  -webkit-mask: url("inflowx-mark-original-v1.png") center / contain no-repeat;
  mask: url("inflowx-mark-original-v1.png") center / contain no-repeat;
}
.article-author strong { display: block; color: #f1f1ed; font-size: 15px; font-weight: 650; }
.article-author > div > span { display: block; margin-top: 2px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: .08em; }
.article-overview { margin: 24px 0; padding: 18px; border: 1px solid rgba(255,255,255,.05); border-radius: 14px; background: #080907; }
.article-side-label { display: block; margin-bottom: 10px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.article-overview p { color: #a3a39d; font-size: 13px; line-height: 1.75; }
.article-toc { padding: 2px 0 24px; border-bottom: 1px solid var(--line); }
.article-toc ol { padding-left: 20px; color: var(--quiet); font-size: 13px; }
.article-toc li + li { margin-top: 8px; }
.article-toc a { color: #9a9a94; transition: color .2s ease; }
.article-toc a:hover { color: #fff; }
.article-product { padding-top: 22px; display: flex; align-items: center; gap: 12px; }
.article-product-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(172,186,130,.24); border-radius: 9px; background: rgba(172,186,130,.08); }
.article-product-icon::before { content: ""; width: 11px; height: 11px; display: block; background: var(--accent); transform: rotate(45deg); }
.article-product small { display: block; color: var(--quiet); font-size: 9px; letter-spacing: .1em; }
.article-product strong { display: block; margin-top: 2px; color: #ddd; font-size: 13px; font-weight: 580; }

.article-main { min-width: 0; }
.article-kicker { margin-bottom: 18px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; letter-spacing: .12em; }
.article-main h1 { max-width: 920px; color: #fff; font-size: clamp(48px, 6vw, 82px); font-weight: 620; letter-spacing: -.065em; line-height: 1.02; text-wrap: balance; }
.article-meta { margin: 24px 0 42px; color: #6d6d68; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.article-body { max-width: 800px; padding-top: 42px; border-top: 1px solid var(--line); color: #a3a39d; font-size: 18px; font-weight: 390; line-height: 1.9; }
.article-body > * + * { margin-top: 25px; }
.article-body .article-lead { color: #d1d1cc; font-size: 22px; line-height: 1.75; }
.article-body h2 { margin-top: 66px; color: #f3f3ef; font-size: clamp(29px, 3vw, 39px); font-weight: 580; letter-spacing: -.035em; line-height: 1.25; scroll-margin-top: 112px; }
.article-body h3 { margin-top: 42px; color: #e2e2dd; font-size: 22px; font-weight: 580; line-height: 1.4; }
.article-body strong { color: #e7e7e2; font-weight: 620; }
.article-body ul, .article-body ol { padding-left: 1.35em; }
.article-body li + li { margin-top: 10px; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote { margin: 46px 0; padding: 6px 0 6px 24px; border-left: 2px solid var(--accent); color: #edede8; font-size: 25px; line-height: 1.55; }
.article-note { margin: 42px 0; padding: 26px 28px; border: 1px solid #30302c; border-radius: 18px; background: var(--panel-soft); color: #b4b4ad; }
.article-note strong { display: block; margin-bottom: 8px; color: var(--accent); font-size: 13px; letter-spacing: .04em; }
.article-steps { margin: 34px 0; list-style: none; padding: 0 !important; counter-reset: step; }
.article-steps li { position: relative; min-height: 50px; padding: 2px 0 22px 56px; border-bottom: 1px solid var(--line); counter-increment: step; }
.article-steps li + li { margin-top: 20px; }
.article-steps li::before { content: "0" counter(step); position: absolute; top: 0; left: 0; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.article-ending { margin-top: 70px !important; padding-top: 34px; border-top: 1px solid var(--line); color: #c8c8c2; font-size: 21px; }
.article-next { max-width: 800px; margin-top: 82px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid var(--line); border-radius: 18px; background: #090909; transition: border-color .25s ease, transform .25s ease; }
.article-next:hover { border-color: #555; transform: translateY(-2px); }
.article-next small { color: #6f6f69; font-size: 11px; letter-spacing: .1em; }
.article-next strong { display: block; margin-top: 7px; color: #eee; font-size: 19px; font-weight: 560; }
.article-next b { color: var(--accent); font-size: 23px; font-weight: 400; }

.article-footer { border-top: 1px solid var(--line); }
.article-footer-inner { width: min(100% - 48px, var(--maxw)); min-height: 130px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #62625d; font-size: 12px; }
.article-footer a:hover { color: #fff; }

@media (max-width: 920px) {
  .article-page { width: min(100% - 48px, var(--maxw)); padding-top: 54px; }
  .article-layout { grid-template-columns: 1fr; gap: 58px; }
  .article-sidebar { position: static; }
  .article-main { grid-row: 1; }
  .article-sidebar { grid-row: 2; }
}

@media (max-width: 680px) {
  .article-nav { width: calc(100% - 36px); height: 68px; }
  .article-brand img:first-child { width: 38px; height: 38px; }
  .article-brand img:last-child { width: 126px; }
  .article-nav-links a:not(.article-nav-cta) { display: none; }
  .article-nav-cta { padding: 9px 14px; font-size: 12px; }
  .article-page { width: calc(100% - 36px); padding: 42px 0 82px; }
  .article-back { margin-bottom: 36px; }
  .article-layout { gap: 44px; }
  .article-main h1 { font-size: clamp(42px, 12.5vw, 58px); }
  .article-meta { margin-bottom: 30px; line-height: 1.8; }
  .article-body { padding-top: 30px; font-size: 16.5px; line-height: 1.85; }
  .article-body .article-lead { font-size: 19px; }
  .article-body h2 { margin-top: 52px; font-size: 30px; }
  .article-body blockquote { margin: 38px 0; font-size: 21px; }
  .article-sidebar { display: block; border-radius: 21px; }
  .article-next { margin-top: 62px; padding: 23px; }
  .article-next strong { font-size: 16px; }
  .article-footer-inner { min-height: 150px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
