: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 0 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; }
.dld-sidebar { display: none; }
.dld-balance-panel { margin: 52px 0 90px; }
.dld-balance-intro { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid rgba(255,255,255,.1); border-top: 0; background: linear-gradient(90deg, rgba(10,24,35,.9), rgba(10,15,21,.7)); }
.dld-balance-intro strong { display: block; color: #fff; font: 600 20px/1.3 var(--dld-title); letter-spacing: 1px; }
.dld-balance-intro span { display: block; margin-top: 5px; color: var(--dld-muted); font-size: 13px; }
.dld-balance-counts { display: flex; gap: 18px; color: var(--dld-muted); font-size: 13px; text-align: right; white-space: nowrap; }
.dld-balance-counts b { color: var(--dld-accent); font-size: 20px; }
.dld-balance-tabs { display: flex; gap: 2px; margin-top: 24px; border-bottom: 1px solid rgba(255,255,255,.13); }
.dld-balance-tabs button { appearance: none; border: 0; border-bottom: 2px solid transparent; padding: 12px 18px; color: #819096; background: rgba(14,28,38,.72); cursor: pointer; font: 600 15px var(--dld-body); }
.dld-balance-tabs button:hover, .dld-balance-tabs button.is-active { border-bottom-color: var(--dld-accent); color: #fff; background: rgba(131,51,18,.55); }
.dld-balance-pane { padding-top: 22px; }
.dld-balance-note { margin: 0 0 18px; color: #8b989e; font-size: 13px; }
.dld-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dld-balance-card { min-width: 0; border: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, rgba(21,37,49,.94), rgba(5,11,16,.8)); box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.dld-balance-card-head, .dld-skill-group-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.1); background: linear-gradient(90deg, rgba(29,51,65,.92), rgba(13,24,32,.64)); }
.dld-balance-card-head img, .dld-skill-group-head img { width: 80px; height: 46px; object-fit: cover; background: #071017; }
.dld-balance-card-head h3, .dld-skill-group-head h3 { margin: 0; color: #f5f5f0; font: 600 19px/1.25 var(--dld-title); letter-spacing: 1px; }
.dld-balance-card-head span { display: block; margin-top: 3px; color: #82939a; font-size: 12px; }
.dld-balance-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); }
.dld-balance-stats > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; background: rgba(5,13,19,.72); }
.dld-balance-stats small { color: #8b989e; font-size: 12px; }
.dld-balance-stats strong { color: #8ed49d; font-size: 20px; letter-spacing: 1px; }
.dld-balance-stats strong.is-negative { color: #ff8b77; }
.dld-balance-stats > div:nth-child(2) strong.is-positive { color: #ff8b77; }
.dld-balance-stats > div:nth-child(2) strong.is-negative { color: #8ed49d; }
.dld-balance-effect { margin: 0; padding: 12px 16px 15px; color: #b1c0c4; font-size: 13px; }
.dld-balance-toolbar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(7,16,23,.75); }
.dld-balance-toolbar label { color: #c6d0d2; font-size: 13px; white-space: nowrap; }
.dld-balance-toolbar input { width: min(100%, 360px); border: 1px solid #3a4c55; padding: 9px 12px; color: #e9eeed; background: #0d171e; font: 14px var(--dld-body); }
.dld-balance-toolbar input:focus { outline: 1px solid var(--dld-accent); border-color: var(--dld-accent); }
.dld-skill-group { margin: 20px 0; border: 1px solid rgba(255,255,255,.08); background: rgba(7,15,21,.72); }
.dld-skill-group-head img { width: 100px; height: 56px; }
.dld-skill-table-wrap { overflow-x: auto; }
.dld-skill-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dld-skill-table th, .dld-skill-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: #aebdc1; vertical-align: top; text-align: left; font-size: 13px; line-height: 1.5; }
.dld-skill-table thead th { color: #f2f2ee; background: rgba(26,39,49,.72); font-weight: 600; }
.dld-skill-table th:first-child { width: 17%; color: #f5f5f0; font-family: var(--dld-title); }
.dld-skill-table th:nth-child(2), .dld-skill-table th:nth-child(3) { width: 41.5%; }
.dld-skill-table tbody tr:nth-child(even) td, .dld-skill-table tbody tr:nth-child(even) th { background: rgba(17,32,42,.32); }
.dld-skill-table tbody tr:hover td, .dld-skill-table tbody tr:hover th { background: rgba(123,49,18,.2); }
.dld-balance-empty { padding: 28px; border: 1px dashed rgba(255,255,255,.16); color: var(--dld-muted); text-align: center; }
@media (min-width: 1100px) {
  .dld-sidebar { position: fixed; z-index: 1; top: 69px; bottom: 0; left: 0; display: block; width: 188px; overflow-y: auto; border-right: 1px solid rgba(255,255,255,.08); background: linear-gradient(180deg, rgba(6,14,21,.98), rgba(6,12,18,.9)); }
  .dld-sidebar-title { padding: 25px 20px 14px; color: #718087; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
  .dld-sidebar-nav { padding-bottom: 20px; }
  .dld-sidebar-link { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 9px 16px 9px 20px; border-left: 2px solid transparent; color: #89979c; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease; }
  .dld-sidebar-link:hover, .dld-sidebar-link.is-active { border-left-color: var(--dld-accent); color: #fff; background: linear-gradient(90deg, rgba(131,51,18,.52), rgba(131,51,18,0)); }
  .dld-sidebar-index { min-width: 20px; color: #526269; font-size: 10px; letter-spacing: 1px; }
  .dld-sidebar-link.is-active .dld-sidebar-index { color: var(--dld-accent); }
  .dld-sidebar-date { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
  .dld-sidebar-date small { color: #62737a; font-size: 11px; }
  .dld-sidebar-link.is-active .dld-sidebar-date small { color: #b5c0c2; }
  .dld-main { width: min(var(--dld-content-width), calc(100% - 260px)); margin-left: 220px; margin-right: auto; }
  .dld-footer-inner { width: min(var(--dld-content-width), calc(100% - 260px)); margin-left: 220px; margin-right: auto; }
}
@media (min-width: 601px) and (max-width: 1099px) {
  .dld-sidebar { display: block; width: calc(100% - 40px); margin: 18px auto 0; border: 1px solid rgba(255,255,255,.08); background: rgba(6,14,21,.92); }
  .dld-sidebar-title { padding: 12px 16px 5px; color: #718087; font-size: 11px; letter-spacing: 2px; }
  .dld-sidebar-nav { display: flex; overflow-x: auto; }
  .dld-sidebar-link { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 44px; padding: 8px 15px; border-bottom: 2px solid transparent; color: #89979c; text-decoration: none; }
  .dld-sidebar-link:hover, .dld-sidebar-link.is-active { border-bottom-color: var(--dld-accent); color: #fff; background: rgba(131,51,18,.35); }
  .dld-sidebar-index { display: none; }
  .dld-sidebar-date { display: block; font-size: 13px; }
  .dld-sidebar-date small { margin-left: 6px; color: #62737a; font-size: 11px; }
  .dld-main { width: calc(100% - 40px); margin: 0 auto; }
  .dld-footer-inner { width: calc(100% - 40px); }
}
@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-sidebar { display: block; width: calc(100% - 32px); margin: 14px auto 0; border: 1px solid rgba(255,255,255,.08); background: rgba(6,14,21,.92); }
  .dld-sidebar-title { padding: 10px 13px 3px; color: #718087; font-size: 10px; letter-spacing: 2px; }
  .dld-sidebar-nav { display: flex; overflow-x: auto; }
  .dld-sidebar-link { display: flex; align-items: center; flex: 0 0 auto; min-height: 40px; padding: 7px 12px; border-bottom: 2px solid transparent; color: #89979c; text-decoration: none; }
  .dld-sidebar-link:hover, .dld-sidebar-link.is-active { border-bottom-color: var(--dld-accent); color: #fff; }
  .dld-sidebar-index { display: none; }
  .dld-sidebar-date { display: block; font-size: 12px; }
  .dld-sidebar-date small { display: none; }
  .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; }
  .dld-balance-intro { display: block; }
  .dld-balance-counts { margin-top: 15px; text-align: left; }
  .dld-balance-tabs { overflow-x: auto; }
  .dld-balance-tabs button { flex: 0 0 auto; padding-left: 12px; padding-right: 12px; font-size: 13px; }
  .dld-balance-grid { grid-template-columns: 1fr; }
  .dld-balance-toolbar { display: block; }
  .dld-balance-toolbar input { display: block; width: 100%; margin-top: 8px; }
  .dld-skill-table { min-width: 680px; }
}
