:root{
  --ink:#111;
  --paper:#fff;
  --accent:#ff5a36;
}


/* =========================================================
   Base
   ========================================================= */

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;

  line-height:1.72;
}

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

.wrap{
  max-width:1180px;
  margin:auto;
  padding:0 28px;
}


/* =========================================================
   Top Bar
   ========================================================= */

.topbar{
  position:sticky;
  top:0;
  z-index:50;

  background:#fff;
  border-bottom:1px solid #111;
}

.topbar-inner{
  height:64px;

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;

  font-weight:800;
}

.brand-mark{
  width:10px;
  height:10px;

  border-radius:50%;
  background:var(--accent);
}

.pill{
  border:1px solid #111;
  border-radius:999px;

  padding:6px 10px;

  font-size:12px;
}


/* =========================================================
   Hero / Page Head
   ========================================================= */

.hero,
.page-head{
  padding:72px 0 54px;
  border-bottom:1px solid #111;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;

  margin-bottom:20px;

  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.eyebrow:before{
  content:"";

  width:28px;
  height:3px;

  background:var(--accent);
}

h1{
  margin:0;

  font-size:clamp(42px,7vw,82px);
  line-height:.98;
  letter-spacing:-.05em;
}

.lead{
  max-width:790px;

  margin:30px 0 0;

  font-size:20px;
}

.lead strong{
  color:var(--accent);
}


/* =========================================================
   Breadcrumb
   ========================================================= */

.breadcrumb{
  margin-bottom:28px;

  font-size:13px;
}

.breadcrumb a{
  border-bottom:1px solid #111;
}


/* =========================================================
   Main Layout
   ========================================================= */

.layout,
.guide-layout{
  display:grid;
  grid-template-columns:240px 1fr;
  gap:58px;

  padding:58px 0 96px;
}

.sidebar,
.guide-nav{
  position:sticky;
  top:92px;
  align-self:start;
}

.sidebar-title{
  margin-bottom:14px;

  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
}


/* =========================================================
   Navigation
   ========================================================= */

.nav a,
.guide-nav a{
  display:block;

  padding:10px 0;

  border-bottom:1px solid rgba(17,17,17,.18);

  font-size:14px;
}

.nav b,
.guide-nav b{
  display:inline-block;

  width:34px;

  color:var(--accent);
}


/* =========================================================
   Content Sections
   ========================================================= */

.content-section,
.chapter{
  padding-bottom:66px;
  margin-bottom:66px;

  border-bottom:1px solid #111;

  scroll-margin-top:92px;
}

.section-kicker{
  color:var(--accent);

  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}

h2{
  margin:7px 0 15px;

  font-size:clamp(30px,4vw,48px);
  line-height:1.08;
  letter-spacing:-.03em;
}

.section-copy{
  max-width:760px;
}


/* =========================================================
   Definition
   ========================================================= */

.definition{
  margin:28px 0;
  padding:28px;

  border:2px solid #111;

  font-size:24px;
  font-weight:750;
}

.definition span{
  color:var(--accent);
}


/* =========================================================
   Cards
   ========================================================= */

.cards,
.system-grid,
.tasks,
.directory{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}

.card,
.system-card,
.task,
.directory-card{
  padding:24px;

  border:1px solid #111;
}

.card small,
.task small,
.directory-card small{
  color:var(--accent);

  font-weight:900;
  letter-spacing:.1em;
}


/* =========================================================
   Flow
   ========================================================= */

.flow{
  margin-top:28px;

  border:1px solid #111;
}

.flow-row{
  display:grid;
  grid-template-columns:80px 1fr 190px;
  gap:16px;

  padding:20px;

  border-bottom:1px solid #111;
}

.flow-row:last-child{
  border:0;
}

.flow-row.current{
  padding-left:17px;

  border-left:3px solid var(--accent);
}

.flow-step{
  color:var(--accent);

  font-size:12px;
  font-weight:900;
}

.flow-main{
  font-weight:800;
}

.flow-sub{
  text-align:right;

  font-size:13px;
}


/* =========================================================
   Checklist
   ========================================================= */

.checklist{
  border-top:1px solid #111;

  counter-reset:c;
}

.check{
  display:grid;
  grid-template-columns:50px 1fr;

  padding:18px 0;

  border-bottom:1px solid #111;
}

.check:before{
  counter-increment:c;
  content:counter(c,decimal-leading-zero);

  color:var(--accent);

  font-size:12px;
  font-weight:900;
}

.check h3{
  margin:0;
}


/* =========================================================
   System / Directory Cards
   ========================================================= */

.system-card,
.directory-card{
  display:flex;
  flex-direction:column;

  min-height:220px;
}

.system-card a,
.directory-card a{
  margin-top:auto;
  padding-top:16px;

  border-top:1px solid #111;

  font-weight:800;
}

.arrow{
  color:var(--accent);
}


/* =========================================================
   Details
   ========================================================= */

details{
  margin-bottom:10px;

  border:1px solid #111;
}

summary{
  cursor:pointer;

  padding:16px 18px;

  font-weight:800;
}

.detail{
  padding:16px 18px;

  border-top:1px solid #111;

  font-size:14px;
}


/* =========================================================
   Directory
   ========================================================= */

.directory{
  padding:48px 0 90px;
}

.directory-card h2{
  font-size:30px;
}

.directory-card p{
  font-size:14px;
}


/* =========================================================
   Guide Chapter
   ========================================================= */

.chapter > h2{
  font-size:34px;
}


/* =========================================================
   Guide STEP
   ========================================================= */

.guide-step{
  margin:34px 0 52px;
}

.guide-step + .guide-step{
  padding-top:44px;

  border-top:1px solid #111;
}


/* =========================================================
   STEP Heading
   ========================================================= */

.step-label{
  display:block;

  margin-bottom:5px;

  color:var(--accent);

  font-size:12px;
  font-weight:900;
  letter-spacing:.12em;
}

.step-heading h3{
  margin:0 0 22px;

  font-size:22px;
}


/* =========================================================
   STEP Media Group
   图片 + 编号说明 + 注意事项 整体间距
   ========================================================= */

.step-media{
  margin-bottom:36px;
}

.step-media:last-child{
  margin-bottom:0;
}


/* =========================================================
   STEP Image
   ========================================================= */

.step-image{
  margin:0 0 22px;
}

.step-image img{
  display:block;

  width:auto;
  max-width:100%;
  height:auto;

  border:1px solid #111;
}


/* =========================================================
   STEP Notes
   ========================================================= */

.step-notes{
  display:grid;
  gap:14px;
}

.step-note{
  display:grid;
  grid-template-columns:32px 1fr;
  gap:10px;
}

.step-note-number{
  color:var(--accent);

  font-weight:900;
}

.step-note p{
  margin:0;

  font-size:14px;
}


/* =========================================================
   STEP Additional Text
   ========================================================= */

.step-after{
  margin:16px 0 0 42px;

  font-size:14px;
}


/* =========================================================
   STEP Alert
   ========================================================= */

.step-alert{
  margin-top:22px;

  padding-left:15px;

  border-left:3px solid var(--accent);

  font-size:14px;
}

.step-alert strong{
  display:block;

  margin-bottom:3px;
}


/* =========================================================
   Footer
   ========================================================= */

.footer{
  padding:26px 0 46px;

  border-top:1px solid #111;

  font-size:12px;
}


/* =========================================================
   Responsive / Tablet
   ========================================================= */

@media(max-width:900px){

  .layout,
  .guide-layout{
    grid-template-columns:1fr;
  }

  .sidebar,
  .guide-nav{
    position:relative;
    top:auto;
  }

  .cards,
  .system-grid,
  .tasks,
  .directory{
    grid-template-columns:1fr;
  }

  .flow-row{
    grid-template-columns:62px 1fr;
  }

  .flow-sub{
    grid-column:2;

    text-align:left;
  }

}


/* =========================================================
   Responsive / Mobile
   ========================================================= */

@media(max-width:560px){

  .wrap{
    padding:0 18px;
  }

  .hero,
  .page-head{
    padding:52px 0 40px;
  }

  h1{
    font-size:46px;
  }

  .definition{
    padding:20px;

    font-size:20px;
  }

}