
.gd-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 15px 40px;
  color: rgba(255, 255, 255, 0.86);
}

.gd-c-cyan    { --gd-c: #00e5ff; --gd-rgb: 0, 229, 255; }
.gd-c-violet  { --gd-c: #a78bfa; --gd-rgb: 167, 139, 250; }
.gd-c-blue    { --gd-c: #5b9dff; --gd-rgb: 91, 157, 255; }
.gd-c-green   { --gd-c: #2ee59d; --gd-rgb: 46, 229, 157; }
.gd-c-lime    { --gd-c: #b6ff00; --gd-rgb: 182, 255, 0; }
.gd-c-orange  { --gd-c: #ff9a3c; --gd-rgb: 255, 154, 60; }
.gd-c-pink    { --gd-c: #ff5fd2; --gd-rgb: 255, 95, 210; }
.gd-c-yellow  { --gd-c: #ffd84d; --gd-rgb: 255, 216, 77; }
.gd-c-red     { --gd-c: #ff6b81; --gd-rgb: 255, 107, 129; }

.gd-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gd-intro {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(0, 229, 255, 0.07));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 28px;
}
.gd-intro h1 { font-size: 1.9rem; margin: 0 0 10px; color: #fff; }
.gd-intro p { font-size: 1.02rem; line-height: 1.6; margin: 0 0 8px; color: rgba(255, 255, 255, 0.84); }
.gd-intro p:last-child { margin-bottom: 0; }

.gd-toc {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 10px;
  font-size: 0.9rem;
}
.gd-toc summary {
  list-style: none;
  cursor: default;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px 10px;
}
.gd-toc summary::-webkit-details-marker { display: none; }
.gd-toc ol { list-style: none; margin: 0; padding: 0; }
.gd-toc a {
  display: block;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  line-height: 1.3;
}
.gd-toc a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.gd-toc-ch > a { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.gd-toc-num { color: var(--gd-c); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.gd-toc-ch.is-soon > a { color: rgba(255, 255, 255, 0.45); font-weight: 500; }
.gd-toc-sub { margin: 2px 0 6px 18px !important; border-left: 2px solid rgba(var(--gd-rgb), 0.35); }
.gd-toc-sub a { font-size: 0.84rem; padding: 4px 10px; color: rgba(255, 255, 255, 0.62); }
.gd-toc a.is-current { background: rgba(var(--gd-rgb), 0.14); color: #fff; }
.gd-toc-pages { margin: 0 0 8px !important; padding-bottom: 8px !important; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.gd-toc-pages a { font-weight: 600; }
.gd-toc-pages a.is-page { background: rgba(124, 92, 255, 0.18); color: #fff; }
.gd-toc-platforms { margin: 2px 0 6px 14px !important; border-left: 2px solid rgba(124, 92, 255, 0.35); }
.gd-toc-platforms a { padding: 4px 10px; font-size: 0.86rem; font-weight: 500; color: rgba(255, 255, 255, 0.66); }
.gd-toc-platforms a.is-page { background: rgba(124, 92, 255, 0.18); color: #fff; }

.gd-chapter { margin-bottom: 44px; scroll-margin-top: 90px; }
.gd-chapter-head {
  position: relative;
  border-radius: 14px;
  padding: 24px 26px 22px 30px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(var(--gd-rgb), 0.18), rgba(var(--gd-rgb), 0.04) 60%, rgba(12, 18, 32, 0.6));
  border: 1px solid rgba(var(--gd-rgb), 0.38);
  overflow: hidden;
}
.gd-chapter-head::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--gd-c);
}
.gd-chapter-kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gd-c);
  margin-bottom: 6px;
}
.gd-chapter-head h2 { font-size: 1.6rem; margin: 0 0 10px; color: #fff; }
.gd-chapter-head p { margin: 0; line-height: 1.6; color: rgba(255, 255, 255, 0.82); }
.gd-soon {
  padding: 18px 22px;
  border-radius: 10px;
  border: 1px dashed rgba(var(--gd-rgb), 0.4);
  color: rgba(255, 255, 255, 0.55);
}

.gd-feature {
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.97), rgba(12, 18, 32, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(var(--gd-rgb), 0.55);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 18px;
  scroll-margin-top: 90px;
}
.gd-feature-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.gd-intro .gd-feature-head { flex-direction: column; align-items: stretch; margin-bottom: 0; }
.gd-intro .gd-feature-head > .gd-tag { align-self: flex-end; }
.gd-feature h3 { font-size: 1.22rem; margin: 0; color: #fff; }
.gd-feature h4 { font-size: 1rem; margin: 18px 0 8px; color: var(--gd-c); }
.gd-feature p, .gd-feature li { line-height: 1.6; font-size: 0.97rem; }
.gd-feature p { margin: 0 0 12px; }
.gd-feature ul, .gd-feature ol { margin: 0 0 12px; padding-left: 22px; }
.gd-feature li { margin-bottom: 6px; }
.gd-intro p > a,
.gd-feature a { color: #6fc8ff; text-decoration: none; }
.gd-intro p > a:hover,
.gd-feature a:hover { text-decoration: underline; }
.gd-lead { font-size: 1.02rem !important; color: rgba(255, 255, 255, 0.9); }

.gd-where { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 4px; 
  border: 1px solid currentColor;
  white-space: nowrap;
}
.gd-tag--free  { color: #2ee59d; }
.gd-tag--image { color: #5b9dff; }
.gd-tag--video { color: #ff9a3c; }
.gd-tag--audio { color: #ff5fd2; }
.gd-tag--tools { color: #ffd84d; }

.gd-ui {
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 0 5px;
  white-space: nowrap;
}
.gd-page kbd {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}

.gd-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 14px 0;
}
.gd-boxes > .gd-box { margin: 0; }
.gd-box {
  --gd-box: 124, 92, 255;
  position: relative;
  border-radius: 10px;
  padding: 14px 16px 12px;
  margin: 14px 0;
  background: rgba(var(--gd-box), 0.08);
  border: 1px solid rgba(var(--gd-box), 0.3);
}
.gd-box-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--gd-box));
  margin-bottom: 8px;
}
.gd-box-title::before { font-size: 14px; letter-spacing: 0; }
.gd-box p:last-child, .gd-box ul:last-child, .gd-box ol:last-child { margin-bottom: 0; }

.gd-why    { --gd-box: var(--gd-rgb); }                 
.gd-why    .gd-box-title::before { content: '◎'; }
.gd-effect { --gd-box: 91, 157, 255; }                  
.gd-effect .gd-box-title::before { content: '⇄'; }
.gd-steps  { --gd-box: 0, 229, 255; }                   
.gd-steps  .gd-box-title::before { content: '▶'; font-size: 11px; }
.gd-tip    { --gd-box: 46, 229, 157; }                  
.gd-tip    .gd-box-title::before { content: '✓'; }
.gd-hack   { --gd-box: 255, 95, 210; }                  
.gd-hack   .gd-box-title::before { content: '⚡'; }
.gd-warn   { --gd-box: 255, 154, 60; }                  
.gd-warn   .gd-box-title::before { content: '!'; font-weight: 800; }
.gd-price  { --gd-box: 255, 216, 77; }                  
.gd-price  .gd-box-title::before { content: '◈'; }
.gd-keys   { --gd-box: 167, 139, 250; }                 
.gd-keys   .gd-box-title::before { content: '⌨'; }

.gd-steps ol { counter-reset: gd-step; list-style: none; padding-left: 0; }
.gd-steps ol > li { counter-increment: gd-step; position: relative; padding-left: 34px; margin-bottom: 9px; }
.gd-steps ol > li::before {
  content: counter(gd-step);
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  color: #0b1220;
  background: rgb(var(--gd-box));
}

.gd-table-wrap { overflow-x: auto; margin: 12px 0 14px; }
.gd-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.gd-table th, .gd-table td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}
.gd-table th {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.gd-table td:first-child { white-space: nowrap; }
.gd-table td.gd-nowrap { white-space: nowrap; } 

.gd-mark {
  display: inline-grid;
  place-items: center;
  min-width: 20px; height: 20px;
  border-radius: 5px;
  font-size: 12px; font-weight: 700;
  color: #0b1220;
  background: var(--gd-mark, #aebad8);
}
.gd-mark--ai    { --gd-mark: #a78bfa; }
.gd-mark--you   { --gd-mark: #5b9dff; }
.gd-mark--file  { --gd-mark: #2ee59d; }
.gd-mark--done  { --gd-mark: #8fa0bf; }
.gd-mark--warn  { --gd-mark: #ff9a3c; }
.gd-mark--err   { --gd-mark: #ff6b81; }
.gd-mark--info  { --gd-mark: #00e5ff; }

@media (max-width: 960px) {
  .gd-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .gd-toc { position: static; max-height: none; }
  .gd-toc summary { cursor: pointer; padding-bottom: 0; }
  .gd-toc summary::after { content: ' ▾'; }
  .gd-toc[open] summary { padding-bottom: 10px; }
  .gd-toc-sub { display: none; }
}
@media (max-width: 600px) {
  .gd-page { padding: 12px 0 30px; }
  .gd-intro, .gd-chapter-head, .gd-feature { padding: 18px 16px; }
  .gd-chapter-head { padding-left: 20px; }
  .gd-intro h1 { font-size: 1.5rem; }
  .gd-chapter-head h2 { font-size: 1.35rem; }
}
