/* 文章页「补充线索」页签（灯塔 fdd610e8；来源 91dsj-web 1e9a8ce article-optimization.css，去掉推荐区块与评论按钮改色的规则） */
.dsj-article-tabs {
  display:flex;
  gap:24px;
  border-bottom:1px solid #333;
  margin:24px 0}

.dsj-article-tabs button {
  background:none;
  border:0;
  border-bottom:2px solid transparent;
  padding:16px 0;
  font:inherit;
  font-weight:600;
  color:#999;
  cursor:pointer}

.dsj-article-tabs button[aria-selected=true] {
  color:#ff9903;
  border-bottom-color:#ff9903}

#comments[data-active=supplement]>:not(.dsj-article-tabs):not(.dsj-supplement):not(.dsj-article-actions) {
  display:none!important}

.dsj-article-actions {
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  background:#241b17;
  border:1px solid #48362c;
  border-radius:8px;
  margin-bottom:24px}

.dsj-article-actions strong {
  margin-right:auto}

.dsj-article-actions a {
  padding:10px 12px;
  border:1px solid #ff9903;
  border-radius:6px;
  color:#ffae35!important;
  text-decoration:none}

.dsj-primary {
  background:#ff9903!important;
  color:#111!important;
  border:0!important;
  border-radius:6px;
  padding:12px 20px;
  font:inherit;
  cursor:pointer}

.dsj-supplement-form {
  padding:24px;
  background:#141414;
  border:1px solid #303030;
  border-radius:8px}

.dsj-supplement-form h2 {
  margin:0 0 20px!important;
  font-size:24px!important}

.dsj-source-article {
  padding:12px;
  margin-bottom:24px;
  border:1px solid #333;
  background:#1c1c1c;
  border-radius:6px;
  color:#999}

.dsj-source-article a {
  color:#08b8a7}

.dsj-supplement-form fieldset {
  border:0;
  padding:0;
  margin:0 0 24px}

.dsj-supplement-form legend {
  font-size:16px;
  font-weight:600;
  margin-bottom:12px}

.dsj-type-options {
  display:flex;
  gap:8px;
  flex-wrap:wrap}

.dsj-type-options label {
  cursor:pointer;
  position:relative}

.dsj-type-options input {
  position:absolute;
  opacity:0;
  inset:0}

.dsj-type-options span {
  display:block;
  padding:10px 12px;
  background:#202020;
  border:1px solid #444;
  border-radius:6px;
  font-size:14px}

.dsj-type-options input:checked+span {
  border-color:#ff9903;
  color:#ffae35;
  background:#2a2113}

.dsj-type-options input:focus-visible+span {
  outline:2px solid #fff;
  outline-offset:3px}

.dsj-field {
  display:block;
  font-weight:600;
  margin:0 0 24px}

.dsj-field>span,.dsj-supplement-form legend>span {
  color:#ff9903}

.dsj-field em,.dsj-media-field em {
  font-size:12px;
  font-style:normal;
  color:#999;
  font-weight:400;
  margin-left:8px}

.dsj-field input,.dsj-field textarea {
  display:block;
  width:100%;
  box-sizing:border-box;
  border:1px solid #444;
  background:#1b1b1b;
  color:#eee;
  border-radius:6px;
  padding:12px;
  margin-top:12px;
  font:inherit;
  font-weight:400}

.dsj-field textarea {
  resize:vertical;
  min-height:140px}

.dsj-field small {
  display:block;
  text-align:right;
  color:#888;
  margin-top:4px;
  font-size:12px;
  font-weight:400}

.dsj-media-field {
  margin-bottom:24px}

.dsj-media-field>label:first-child {
  font-weight:600}

.dsj-media-field p,.dsj-form-privacy {
  font-size:12px!important;
  color:#999;
  line-height:1.6}

.dsj-upload-control {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:96px;
  height:96px;
  border:1px dashed #666;
  border-radius:6px;
  font-size:12px;
  color:#bbb;
  cursor:pointer;
  margin-top:12px}

.dsj-upload-control b {
  font-size:28px;
  font-weight:400}

.dsj-media-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:12px}

.dsj-media-item {
  position:relative;
  min-width:0;
  background:#222;
  border-radius:6px;
  overflow:hidden}

.dsj-media-item img,.dsj-media-item video {
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  display:block}

.dsj-media-item button {
  background:#222;
  color:#eee;
  border:1px solid #777;
  cursor:pointer;
  border-radius:4px}

.dsj-media-remove {
  position:absolute;
  right:4px;
  top:4px;
  width:24px;
  height:24px}

.dsj-media-caption {
  font-size:11px;
  color:#bbb;
  padding:4px;
  overflow-wrap:anywhere}

.dsj-media-item a {
  display:block}

.dsj-submit {
  width:100%}

#dsj-supplement-status {
  font-size:14px;
  color:#ffc16a}

#dsj-media-preview {
  width:min(90vw,900px);
  max-height:90vh;
  padding:16px;
  background:#111;
  border:1px solid #555;
  color:#fff;
  border-radius:8px}

#dsj-media-preview::backdrop {
  background:#000c}

#dsj-media-preview img,#dsj-media-preview video {
  display:block;
  max-width:100%;
  max-height:75vh;
  margin:auto}

#dsj-media-preview button {
  display:block;
  margin:0 0 12px auto;
  background:#333;
  color:#fff;
  border:1px solid #777;
  padding:8px 16px;
  cursor:pointer}

.dsj-refresh:focus-visible,.dsj-primary:focus-visible,.dsj-article-tabs button:focus-visible {
  outline:2px solid #fff;
  outline-offset:4px}

@media(max-width:600px) {
.dsj-supplement-form {
  padding:16px}
.dsj-article-actions {
  gap:8px;
  flex-wrap:wrap;
  padding:12px}
.dsj-article-actions strong {
  width:100%;
  font-size:14px}
.dsj-article-actions a {
  flex:1;
  text-align:center;
  font-size:14px}
.dsj-field em {
  display:inline;
  font-size:11px}
.dsj-type-options span {
  padding:10px 8px;
  font-size:12px}
}

/* Keep supplement controls independent from the legacy comment form styles. */
#comments .dsj-supplement-form .dsj-field {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  line-height: 1.5;
}

#comments .dsj-supplement-form .dsj-field input,
#comments .dsj-supplement-form .dsj-field textarea {
  display: block;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: auto;
  margin: 12px 0 0;
  padding: 12px;
  line-height: 1.5;
}

#comments .dsj-source-article,
#comments .dsj-source-article a {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#comments .dsj-article-actions a.dsj-primary {
  color: #111 !important;
}

@media (min-width: 1000px) {
body.article-template-page > #wrap > #body > .container,
  body.article-template-page #body-bottom > .container {
    width: 860px !important;
    max-width: calc(100% - 64px) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
body.article-template-page > #wrap > #body > .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
body.article-template-page > #wrap > #body > .container > .row > #post {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 767px) {
body.article-template-page > #wrap > #body > .container,
  body.article-template-page #body-bottom > .container {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
body.article-template-page > #wrap > #body > .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
body.article-template-page #body #post,
  body.article-template-page #body-bottom div#comments {
    width: 100% !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
  }
body.article-template-page #dsj-supplement,
  body.article-template-page #dsj-supplement-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}
