:root {
  --dld-accent: #ed3b1c;
  --dld-page: #0e1720;
  --dld-panel: #141d25;
  --dld-section-start: #833312;
  --dld-subsection: #1a2731;
  --dld-text: #f2f2ee;
  --dld-muted: #8b989e;
  --dld-rule: #26323a;
  --dld-content-width: 1200px;
  --dld-title: "Reaver", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --dld-body: "Radiance", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dld-body { margin: 0; color: var(--dld-text); background: #080e14 url("../images/background.svg") center top / 960px auto repeat; font-family: var(--dld-body); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
.dld-site-header { position: relative; z-index: 2; background: rgba(5, 8, 11, .96); border-bottom: 1px solid rgba(255,255,255,.08); }
.dld-header-inner { width: min(var(--dld-content-width), calc(100% - 40px)); margin: 0 auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dld-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.dld-brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--dld-accent); color: var(--dld-accent); font: 700 13px/1 var(--dld-body); letter-spacing: 1px; }
.dld-brand-name { color: #f1f1ed; font: 600 17px/1 var(--dld-title); letter-spacing: 2px; }
.dld-nav { display: flex; gap: 28px; color: #b7c0c3; font-size: 14px; letter-spacing: 1px; }
.dld-nav a { text-decoration: none; transition: color .2s ease; }
.dld-nav a:hover, .dld-read-more:hover { color: var(--dld-accent); }
.dld-main { width: min(var(--dld-content-width), calc(100% - 40px)); margin: 0 auto; min-height: 70vh; }
.dld-patch-hero { background: #000; margin: 0 calc((var(--dld-content-width) - min(var(--dld-content-width), calc(100vw - 40px))) / -2) 34px; }
.dld-patch-hero-inner { width: min(var(--dld-content-width), calc(100% - 40px)); margin: 0 auto; padding: 72px 0 52px; }
.dld-patch-label { color: var(--dld-accent); font: 400 32px/1.1 var(--dld-body); letter-spacing: 4px; }
.dld-patch-version { color: var(--dld-accent); font: 700 clamp(52px, 7vw, 72px)/1 var(--dld-body); letter-spacing: 8px; margin-top: 14px; }
.dld-patch-date { margin-top: 18px; color: #69757b; font: 500 14px/1 var(--dld-body); letter-spacing: 1px; }
.dld-page-title { padding: 64px 0 46px; }
.dld-page-title span { color: var(--dld-accent); font-size: 18px; letter-spacing: 3px; }
.dld-page-title h1 { margin: 12px 0 0; font: 600 clamp(38px, 6vw, 64px)/1 var(--dld-title); letter-spacing: 3px; }
.dld-section-title { margin: 30px 0 0; min-height: 62px; padding: 12px 20px; border-left: 2px solid #ff5005; color: #fff; background: linear-gradient(to right, var(--dld-section-start), rgba(131,51,18,0)); font: 600 25.6px/1.5 var(--dld-title); letter-spacing: 2px; text-shadow: 0 0 5px #000; }
.dld-subsection-title { margin: 0; padding: 10px 20px; color: #fff; background: linear-gradient(to right, #1d2d39, rgba(26,39,49,.25)); font: 600 19.5px/1.3 var(--dld-title); letter-spacing: 1px; }
.dld-patch-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; align-items: start; }
.dld-toc-panel { position: sticky; top: 20px; }
.dld-toc { border-left: 1px solid rgba(139,152,158,.28); padding: 8px 0 8px 15px; }
.dld-toc a { display: block; padding: 6px 0; color: #8b989e; text-decoration: none; font-size: 13px; line-height: 1.3; }
.dld-toc a:hover, .dld-toc a.is-active { color: var(--dld-accent); }
.dld-toc .dld-toc-h3 { padding-left: 12px; font-size: 12px; }
.dld-toc-toggle { display: none; }
.dld-patch-content { min-width: 0; padding-bottom: 80px; }
.dld-patch-content > .wp-block-group, .dld-patch-content > .wp-block-columns, .dld-patch-content > p, .dld-patch-content > ul, .dld-patch-content > .dld-entity-change { max-width: 100%; }
.dld-patch-content p, .dld-patch-content li { color: var(--dld-muted); font: 600 17px/1.3 var(--dld-body); }
.dld-patch-content ul { margin: 12px 0 24px; padding-left: 28px; }
.dld-patch-content li { margin: 6px 0; }
.dld-generic-change { margin: 28px 0; padding: 0 22px 20px; border-left: 1px solid rgba(255,255,255,.1); background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(6,37,65,.18)); }
.dld-generic-change h3 { margin: 0 -22px 14px; padding: 10px 22px; color: #fff; background: rgba(26,39,49,.7); font: 600 20px/1.3 var(--dld-title); letter-spacing: 1px; }
.dld-entity-change { position: relative; margin: 28px 0; padding: 0 28px 22px; border-left: 1px solid rgba(255,255,255,.1); background: linear-gradient(90deg, rgba(0,0,0,.38) 3%, rgba(6,37,65,.2) 88%); }
.dld-entity-heading { display: flex; align-items: center; gap: 16px; min-height: 78px; padding-top: 14px; border-bottom: 1px solid rgba(255,255,255,.09); }
.dld-entity-image { display: block; width: 72px; height: 52px; object-fit: cover; background: #081017; }
.dld-hero-change .dld-entity-image { width: 140px; height: 79px; }
.dld-ability-change .dld-entity-image { width: 64px; height: 64px; object-fit: cover; }
.dld-entity-title-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dld-entity-title { margin: 0; color: #f5f5f5; font: 600 20px/1.3 var(--dld-title); letter-spacing: 1px; }
.dld-hero-change .dld-entity-title { font-size: 25.4px; letter-spacing: 2px; }
.dld-ability-change .dld-entity-title { font-size: 16.4px; letter-spacing: 2px; }
.dld-attribute-icon { width: 45px; height: 45px; object-fit: contain; }
.dld-change-list { margin: 14px 0 0 !important; }
.dld-change-list li { margin: 5px 0; }
.dld-home-latest { margin-bottom: 38px; padding: 24px 28px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(16,32,45,.55)); }
.dld-home-latest-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #fff; font: 600 20px/1.3 var(--dld-title); }
.dld-home-latest-header a { color: var(--dld-accent); font: 600 14px/1 var(--dld-body); text-decoration: none; }
.dld-home-excerpt { margin-top: 16px; }
.dld-release-list { border-left: 1px solid var(--dld-rule); }
.dld-release-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 15px; padding: 17px 20px; border-bottom: 1px solid rgba(255,255,255,.08); color: #c3ccce; text-decoration: none; }
.dld-release-row:hover { background: rgba(25,45,59,.5); }
.dld-release-row span { color: var(--dld-accent); font-weight: 700; }
.dld-release-row strong { color: #f5f5f0; font-family: var(--dld-title); }
.dld-release-row time { color: #7c898e; text-align: right; font-size: 13px; }
.dld-archive-list { padding-bottom: 80px; }
.dld-archive-card { margin: 24px 0; padding: 26px 30px 30px; border-left: 2px solid rgba(255,80,5,.65); background: linear-gradient(90deg, rgba(16,30,41,.88), rgba(7,13,18,.55)); }
.dld-archive-card-meta { color: var(--dld-accent); font-size: 13px; letter-spacing: 2px; }
.dld-archive-card h2 { margin: 12px 0 8px; font: 600 34px/1.2 var(--dld-title); letter-spacing: 2px; }
.dld-archive-card h2 a { text-decoration: none; }
.dld-archive-card p { max-width: 850px; }
.dld-read-more { color: var(--dld-accent); font-size: 14px; text-decoration: none; }
.dld-empty, .dld-generic-article { padding: 90px 0; }
.dld-muted { color: var(--dld-muted); }
.dld-site-footer { border-top: 1px solid rgba(255,255,255,.08); background: rgba(5,8,11,.92); color: #6d7a80; font-size: 12px; }
.dld-footer-inner { width: min(var(--dld-content-width), calc(100% - 40px)); margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; }
.dld-editor-entity { padding: 16px; border: 1px dashed #72828a; background: #15222c; }
.dld-editor-entity-heading { display: flex; align-items: center; gap: 12px; color: #eef2f0; }
.dld-editor-entity-image { width: 96px; height: 54px; object-fit: cover; }
.dld-editor-change-preview { margin: 12px 0 0; white-space: pre-wrap; color: #aebcc0; }
@media (max-width: 900px) {
  .dld-patch-layout { display: block; }
  .dld-toc-panel { position: static; margin-bottom: 20px; }
  .dld-toc-toggle { display: inline-flex; padding: 9px 14px; border: 1px solid rgba(255,255,255,.15); color: #fff; background: #192b36; font: 600 14px var(--dld-body); }
  .dld-toc { display: none; margin-top: 8px; }
  .dld-toc-panel.is-open .dld-toc { display: block; }
}
@media (max-width: 600px) {
  .dld-header-inner, .dld-main, .dld-footer-inner, .dld-patch-hero-inner { width: calc(100% - 32px); }
  .dld-patch-hero { margin-left: -16px; margin-right: -16px; }
  .dld-header-inner { min-height: 60px; }
  .dld-brand-name { font-size: 15px; }
  .dld-nav { gap: 14px; font-size: 12px; }
  .dld-patch-hero-inner { padding: 50px 0 38px; }
  .dld-patch-label { font-size: 22px; letter-spacing: 3px; }
  .dld-patch-version { font-size: 50px; letter-spacing: 5px; }
  .dld-section-title { font-size: 24px; min-height: 54px; }
  .dld-entity-change { padding-left: 16px; padding-right: 16px; }
  .dld-hero-change .dld-entity-image { width: 104px; height: 58px; }
  .dld-hero-change .dld-entity-title { font-size: 24px; }
  .dld-release-row { grid-template-columns: 1fr; gap: 6px; }
  .dld-release-row time { text-align: left; }
  .dld-footer-inner { flex-direction: column; }
}
