/* ==========================================================================
   教程页样式。复用 styles.css 的配色变量与顶栏，这里只写正文排版。
   ========================================================================== */

.gbody { padding-bottom: 40px; }

.gwrap {
  width: calc(100% - 36px);
  max-width: 920px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- 头部 */
.ghero { padding: 56px 0 30px; }
.geyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  color: var(--a1);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.ghero h1 {
  font-size: 36px;
  line-height: 1.32;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
.glede {
  margin-top: 18px;
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}
.gmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.gmeta span {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.gmeta b { color: var(--a1); font-family: var(--mono); font-weight: 500; }

.g-price {
  font-size: 12.5px;
  color: #ffd9a3;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 120, .30);
  background: linear-gradient(135deg, rgba(255, 206, 120, .14), rgba(255, 255, 255, .03));
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 目录 */
.gtoc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.gtoc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  transition: .18s;
}
.gtoc a:hover { color: var(--ink); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .16); }
.gtoc em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--a1);
  letter-spacing: .08em;
}

/* ---------------------------------------------------------------- 章节 */
.gsec { padding: 46px 0 6px; scroll-margin-top: 80px; }
.gsec-head { margin-bottom: 22px; }
.gsec-head h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
}
.gsec-head p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

/* 流程步骤 */
.gstep {
  display: flex;
  gap: 20px;
  padding: 22px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.gstep:first-of-type { border-top: none; padding-top: 4px; }
.gstep-no {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--a1);
  background: rgba(110, 231, 255, .08);
  border: 1px solid rgba(110, 231, 255, .20);
}
.gstep-body { flex: 1; min-width: 0; }
.gstep-body h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.gstep-body p {
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-2);
}
.gstep-body p + p { margin-top: 9px; }
.gstep-body b { color: var(--ink); font-weight: 600; }

.gtips {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gtips li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--ink-2);
}
.gtips li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--a2);
  opacity: .8;
}

.gnote {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: 13px;
  background: rgba(110, 231, 255, .06);
  border: 1px solid rgba(110, 231, 255, .16);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--ink-2) !important;
}
.gnote.wide { margin-top: 18px; }
.gnote code {
  font-family: var(--mono);
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  color: #ffd9a3;
}

/* 三列卡片 */
.gcols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gcard {
  padding: 18px 17px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .08);
  min-width: 0;
}
.gcard h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
.gcard p { font-size: 12.5px; line-height: 1.8; color: var(--ink-2); }
.gcard b { color: #ffd9a3; font-weight: 500; }

/* 计费表 */
.gtable {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}
.gtable table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.gtable th {
  text-align: left;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  white-space: nowrap;
}
.gtable td {
  padding: 13px 16px;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  line-height: 1.6;
}
.gtable tr:last-child td { border-bottom: none; }
.gtable td b { color: var(--a1); font-family: var(--mono); font-weight: 500; }

/* 价格卡 */
.gplans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gplan {
  padding: 20px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(255, 206, 120, .10), rgba(255, 255, 255, .022));
  border: 1px solid rgba(255, 205, 130, .20);
  min-width: 0;
}
.gplan h3 {
  font-size: 14.5px;
  font-weight: 600;
  color: #ffd9a3;
  letter-spacing: .02em;
}
.gplan .gplan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 12px 0 4px;
  font-family: var(--mono);
  color: #fff;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}
.gplan .gplan-price em { font-style: normal; font-size: 15px; color: #ffd9a3; }
.gplan .gplan-price span {
  font-family: var(--sans);
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 5px;
}
.gplan ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.gplan li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.gplan li b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* FAQ */
.gfaq {
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  padding: 4px 0;
}
.gfaq summary {
  cursor: pointer;
  padding: 15px 2px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.gfaq summary::-webkit-details-marker { display: none; }
.gfaq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 16px;
  color: var(--muted);
  transition: .18s;
}
.gfaq[open] summary::after { content: "−"; color: var(--a1); }
.gfaq p {
  padding: 0 2px 16px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 68ch;
}

/* 结尾 */
.gend {
  margin-top: 46px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.gbtn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #06090f;
  text-decoration: none;
  background: linear-gradient(135deg, var(--a1), var(--a2) 60%, var(--a3));
  box-shadow: 0 14px 34px -14px rgba(110, 231, 255, .8), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: .18s;
}
.gbtn:hover { transform: translateY(-1px); }
.gend p { font-size: 12.5px; color: var(--muted); }

.gfoot {
  max-width: 920px;
  margin: 34px auto 0;
  padding: 0 0 10px;
  text-align: center;
}
.gfoot p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: #5c6474;
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 820px) {
  .ghero { padding: 38px 0 22px; }
  .ghero h1 { font-size: 27px; line-height: 1.36; }
  .glede { font-size: 13.5px; }
  .gsec { padding: 36px 0 4px; }
  .gsec-head h2 { font-size: 19.5px; }
  .gcols, .gplans { grid-template-columns: 1fr; }
  .gstep { gap: 15px; }
  .gstep-no { width: 38px; height: 38px; border-radius: 12px; font-size: 12px; }
  .gtable { overflow-x: auto; }
  .gtable table { min-width: 480px; }
}

@media (max-width: 560px) {
  .gwrap { width: calc(100% - 28px); }
  .ghero h1 { font-size: 24px; }
  .gmeta span { font-size: 11.5px; padding: 5px 11px; }
  .gtoc { gap: 6px; }
  .gtoc a { padding: 7px 12px; font-size: 12.5px; }
  .gstep-body p, .gtips li { font-size: 13px; line-height: 1.85; }
}
