/* ============================================================
   文档中心 · docs.css
   与站内淡青渐变风格保持一致
   ============================================================ */
.dc-page,
.dc-detail-page,
.dc-editor-page {
  --dc-deep: #0B5F57;
  --dc-main: #0F766E;
  --dc-mid: #1F9D90;
  --dc-light: #59CBB5;
  --dc-mint: #EAF8F5;
  --dc-pale: #F7FBFA;
  --dc-ink: #103B36;
  --dc-muted: #6F8F89;
  --dc-soft: #93AAA5;
  --dc-line: #DCEEE9;
  --dc-amber: #D97706;
  --dc-blue: #0E7490;
  --dc-violet: #6D28D9;
  --dc-rose: #BE185D;
  --dc-danger: #DC2626;
  background: var(--dc-pale);
}
.dc-page *,
.dc-detail-page *,
.dc-editor-page * { box-sizing: border-box; }

.dc-container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* ---------------- 首页 Hero ---------------- */
.dc-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 36px;
  background:
    radial-gradient(circle at 82% 2%, rgba(79, 195, 173, .34), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(15, 118, 110, .09), transparent 44%),
    linear-gradient(135deg, #E9F9F5 0%, #F8FCFB 56%, #EFF9F6 100%);
}
.dc-hero::before,
.dc-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dc-hero::before {
  width: 320px;
  height: 320px;
  right: -110px;
  top: -150px;
  border: 1px solid rgba(15, 118, 110, .13);
  box-shadow: 0 0 0 38px rgba(15, 118, 110, .035), 0 0 0 82px rgba(15, 118, 110, .022);
}
.dc-hero::after {
  width: 180px;
  height: 180px;
  left: -80px;
  bottom: 8px;
  background: rgba(79, 195, 173, .10);
}
.dc-hero__inner { position: relative; z-index: 1; text-align: center; }
.dc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, .16);
  background: rgba(255, 255, 255, .72);
  color: var(--dc-main);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .8px;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .06);
}
.dc-eyebrow i { color: var(--dc-mid); }
.dc-hero h1 {
  margin: 18px 0 10px;
  color: var(--dc-ink);
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.5px;
}
.dc-hero h1 span {
  background: linear-gradient(120deg, #0B5F57 8%, #0F766E 45%, #35A995 86%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dc-hero p.dc-sub {
  margin: 0;
  color: #66847F;
  font-size: 14px;
  line-height: 1.8;
}
.dc-searchbar {
  position: relative;
  max-width: 760px;
  margin: 26px auto 0;
  display: flex;
  align-items: center;
  padding: 7px 7px 7px 20px;
  border-radius: 17px;
  border: 1px solid rgba(15, 118, 110, .14);
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 118, 110, .12), 0 3px 10px rgba(15, 118, 110, .05);
}
.dc-searchbar i.fa-search {
  flex: 0 0 auto;
  color: #8BA8A2;
  font-size: 16px;
}
.dc-searchbar input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dc-ink);
  font-size: 14px;
}
.dc-searchbar input::placeholder { color: #97AEA9; }
.dc-searchbar button {
  flex: 0 0 auto;
  height: 46px;
  min-width: 96px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0C645C 0%, #1F9D90 58%, #4FC3AD 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
  transition: transform .15s ease, filter .15s ease;
}
.dc-searchbar button:hover { transform: translateY(-1px); filter: brightness(1.03); }
.dc-hot {
  max-width: 760px;
  margin: 13px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #7C9893;
  font-size: 11.5px;
}
.dc-hot b { color: #5E7F79; font-weight: 600; }
.dc-hot button {
  padding: 4px 10px;
  border: 1px solid rgba(15, 118, 110, .13);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  color: #4F7770;
  font-size: 11px;
  cursor: pointer;
  transition: all .15s ease;
}
.dc-hot button:hover,
.dc-hot button.is-on {
  border-color: rgba(15, 118, 110, .32);
  background: #fff;
  color: var(--dc-main);
  box-shadow: 0 4px 12px rgba(15, 118, 110, .10);
}
.dc-hero__stats {
  max-width: 640px;
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  gap: 0;
}
.dc-hero__stat {
  padding: 0 32px;
  text-align: center;
  border-right: 1px solid rgba(15, 118, 110, .13);
}
.dc-hero__stat:first-child { padding-left: 0; }
.dc-hero__stat:last-child { border-right: 0; padding-right: 0; }
.dc-hero__stat b {
  display: block;
  color: var(--dc-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.dc-hero__stat span {
  display: block;
  margin-top: 3px;
  color: #78948F;
  font-size: 10.5px;
  letter-spacing: .4px;
}

/* ---------------- 列表区 ---------------- */
.dc-body { padding: 30px 0 86px; }
.dc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dc-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: #EDF7F4;
  border: 1px solid #E0F0EC;
}
.dc-tabs button {
  height: 34px;
  padding: 0 15px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6E8C86;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
}
.dc-tabs button.is-on {
  background: #fff;
  color: var(--dc-main);
  box-shadow: 0 3px 9px rgba(15, 118, 110, .12);
}
.dc-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.dc-select {
  position: relative;
}
.dc-select select {
  height: 36px;
  margin: 0;
  padding: 0 30px 0 12px;
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #466A64;
  font-size: 12px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.dc-select .nice-select {
  width: 100%;
  height: 36px;
  float: none;
  padding: 0 30px 0 12px;
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  background: #fff;
  color: #466A64;
  font-size: 12px;
  line-height: 34px;
}
.dc-select .nice-select .current { color: #466A64; font-size: 12px; line-height: 34px; }
.dc-select .nice-select .list { width: 100%; border-radius: 9px; background: #fff; box-shadow: 0 10px 24px rgba(15, 74, 67, .12); }
.dc-select .nice-select .option { font-size: 12px; line-height: 34px; min-height: 34px; }
.dc-sorts {
  display: inline-flex;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--dc-line);
  border-radius: 9px;
  background: #fff;
}
.dc-sorts button {
  padding: 0 11px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #799690;
  font-size: 11.5px;
  cursor: pointer;
}
.dc-sorts button.is-on { background: var(--dc-mint); color: var(--dc-main); font-weight: 700; }
.dc-write-btn {
  height: 38px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0C645C, #1F9D90 62%, #4FC3AD);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
  transition: transform .15s ease, box-shadow .15s ease;
}
.dc-write-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(15, 118, 110, .24); }
.dc-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 14px;
  color: #7D9893;
  font-size: 11.5px;
}
.dc-result-line b { color: var(--dc-ink); font-size: 13px; }
.dc-result-line span em { color: var(--dc-main); font-style: normal; font-weight: 700; }

.dc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.dc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E0F0EC;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 74, 67, .055);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.dc-card:hover {
  transform: translateY(-4px);
  border-color: #BFE5DA;
  box-shadow: 0 18px 38px rgba(15, 74, 67, .11);
}
.dc-card__cover {
  position: relative;
  height: 118px;
  padding: 16px 18px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0C645C 0%, #1F9D90 62%, #59CBB5 100%);
}
.dc-card__cover::before,
.dc-card__cover::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .10);
}
.dc-card__cover::before { width: 130px; height: 130px; right: -44px; top: -68px; }
.dc-card__cover::after { width: 62px; height: 62px; left: 42%; bottom: -34px; background: rgba(255, 255, 255, .07); }
.dc-card__cat {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 10px;
  font-weight: 600;
}
.dc-card__icon {
  position: absolute;
  right: 20px;
  bottom: 15px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: 20px;
}
.dc-card__status {
  position: absolute;
  left: 18px;
  bottom: 13px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(11, 95, 87, .55);
  color: #fff;
  font-size: 9.5px;
}
.dc-card__body { flex: 1 1 auto; display: flex; flex-direction: column; padding: 16px 18px 14px; }
.dc-card__title {
  margin: 0 0 8px;
  color: var(--dc-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 50px;
}
.dc-card__title a { color: inherit; text-decoration: none !important; }
.dc-card__title a:hover { color: var(--dc-main); }
.dc-card__summary {
  margin: 0;
  color: #6C8983;
  font-size: 12px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}
.dc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 21px;
  margin: 11px 0 13px;
}
.dc-tag {
  display: inline-block;
  max-width: 100%;
  padding: 2px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 5px;
  background: #F0F9F6;
  border: 1px solid #E1F1EC;
  color: #4E8279;
  font-size: 9.5px;
  line-height: 1.5;
}
.dc-card__foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #F0F7F5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dc-avatar {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  background: linear-gradient(135deg, #0C645C, #1F9D90, #59CBB5);
}
.dc-author {
  min-width: 0;
  flex: 1 1 auto;
  color: #79938E;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dc-author b { color: #4F716B; font-weight: 600; }
.dc-metrics {
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  color: #9AB0AC;
  font-size: 10px;
}
.dc-metrics i { margin-right: 2px; color: #8AA8A2; }

/* 分类配色 */
.dc-card__cover.is-blue { background: linear-gradient(135deg, #0B5E75 0%, #0E7490 62%, #38BDF8 100%); }
.dc-card__cover.is-amber { background: linear-gradient(135deg, #9A5400 0%, #D97706 62%, #FBBF24 100%); }
.dc-card__cover.is-violet { background: linear-gradient(135deg, #4C1D95 0%, #6D28D9 60%, #A78BFA 100%); }
.dc-card__cover.is-rose { background: linear-gradient(135deg, #9D174D 0%, #BE185D 60%, #F472B6 100%); }
.dc-card__cover.is-cyan { background: linear-gradient(135deg, #155E75 0%, #0891B2 60%, #67E8F9 100%); }
.dc-card__cover.is-slate { background: linear-gradient(135deg, #334155 0%, #475569 60%, #94A3B8 100%); }

/* 空状态 / 分页 */
.dc-empty {
  padding: 70px 24px;
  text-align: center;
  border: 1px dashed #CFE7E0;
  border-radius: 18px;
  background: rgba(255, 255, 255, .75);
}
.dc-empty__ico {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dc-mint);
  color: var(--dc-main);
  font-size: 27px;
}
.dc-empty b { display: block; color: var(--dc-ink); font-size: 15px; }
.dc-empty p { margin: 7px 0 16px; color: #839C97; font-size: 12px; line-height: 1.7; }
.dc-empty .dc-write-btn { display: inline-flex; }
.dc-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 30px;
}
.dc-pager button {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #DAECE7;
  border-radius: 9px;
  background: #fff;
  color: #52766F;
  font-size: 12px;
  cursor: pointer;
}
.dc-pager button.is-on {
  border-color: transparent;
  background: linear-gradient(135deg, #0C645C, #1F9D90);
  color: #fff;
  box-shadow: 0 6px 14px rgba(15, 118, 110, .18);
}
.dc-pager button:disabled { opacity: .45; cursor: default; }
.dc-loading {
  grid-column: 1 / -1;
  padding: 70px 0;
  text-align: center;
  color: #8FA6A1;
  font-size: 12.5px;
}
.dc-loading::before {
  content: "";
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 12px;
  border: 2px solid #D7ECE6;
  border-top-color: var(--dc-mid);
  border-radius: 50%;
  animation: dcSpin .8s linear infinite;
}
@keyframes dcSpin { to { transform: rotate(360deg); } }

/* ---------------- 详情页 ---------------- */
.dc-detail-hero {
  position: relative;
  padding: 140px 0 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% -10%, rgba(79, 195, 173, .30), transparent 48%),
    linear-gradient(135deg, #EDFAF7 0%, #FBFDFC 60%, #F2FAF8 100%);
}
.dc-detail-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -160px;
  border-radius: 50%;
  border: 1px solid rgba(15, 118, 110, .10);
  box-shadow: 0 0 0 34px rgba(15, 118, 110, .03);
}
.dc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8BA6A1;
  font-size: 11px;
  margin-bottom: 14px;
}
.dc-breadcrumb a { color: #5D837C; text-decoration: none !important; }
.dc-breadcrumb a:hover { color: var(--dc-main); }
.dc-detail-hero__head { position: relative; z-index: 1; max-width: 900px; }
.dc-detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(15, 118, 110, .16);
  color: var(--dc-main);
  font-size: 10.5px;
  font-weight: 700;
}
.dc-detail-title {
  margin: 15px 0 11px;
  color: var(--dc-ink);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.34;
  font-weight: 800;
  letter-spacing: -.4px;
}
.dc-detail-summary {
  margin: 0 0 16px;
  color: #637F7A;
  font-size: 14px;
  line-height: 1.85;
  max-width: 820px;
}
.dc-detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #829B96;
  font-size: 11px;
}
.dc-detail-meta .dc-avatar { width: 30px; height: 30px; font-size: 11px; }
.dc-detail-meta b { color: #416761; font-size: 12px; }
.dc-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dc-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }

.dc-detail-body { padding: 28px 0 84px; }
.dc-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 28px;
  align-items: start;
}
.dc-article {
  min-width: 0;
  padding: 30px 38px 26px;
  border: 1px solid #DFF0EB;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 74, 67, .065);
}
.dc-article__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 17px;
  margin-bottom: 22px;
  border-bottom: 1px solid #F0F7F5;
}
.dc-article__top .dc-article__hint { color: #91A8A3; font-size: 10.5px; }
.dc-draft-badge {
  padding: 4px 9px;
  border-radius: 6px;
  background: #FFF7E8;
  border: 1px solid #F5D9A8;
  color: #B45309;
  font-size: 10px;
  font-weight: 700;
}
.dc-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dc-act {
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #DCEDE8;
  border-radius: 9px;
  background: #fff;
  color: #587B74;
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all .15s ease;
}
.dc-act:hover { border-color: #B9E0D5; background: #F5FBF9; color: var(--dc-main); }
.dc-act.is-on { border-color: #B7E3D8; background: var(--dc-mint); color: var(--dc-main); font-weight: 700; }
.dc-act.dc-act--danger:hover { border-color: #F2C9C9; background: #FFF7F7; color: var(--dc-danger); }

.dc-prose {
  color: #294D48;
  font-size: 15px;
  line-height: 1.95;
  word-break: break-word;
}
.dc-prose > *:first-child { margin-top: 0 !important; }
.dc-prose h1,
.dc-prose h2,
.dc-prose h3,
.dc-prose h4 {
  color: var(--dc-ink);
  font-weight: 800;
  line-height: 1.5;
  scroll-margin-top: 96px;
}
.dc-prose h1 { margin: 34px 0 16px; font-size: 28px; }
.dc-prose h2 {
  margin: 32px 0 14px;
  padding-left: 12px;
  font-size: 22px;
  border-left: 4px solid var(--dc-mid);
}
.dc-prose h3 { margin: 26px 0 12px; font-size: 18px; }
.dc-prose h4 { margin: 22px 0 10px; font-size: 16px; }
.dc-prose p { margin: 0 0 15px; }
.dc-prose a { color: var(--dc-main); text-decoration: underline; text-underline-offset: 2px; }
.dc-prose strong { color: #19443E; font-weight: 700; }
.dc-prose ul,
.dc-prose ol { margin: 0 0 16px; padding-left: 24px; }
.dc-prose li { margin: 5px 0; }
.dc-prose blockquote {
  margin: 18px 0;
  padding: 13px 18px;
  border-left: 4px solid #7FD0BF;
  border-radius: 0 10px 10px 0;
  background: #F3FAF8;
  color: #52766F;
}
.dc-prose code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #EFF8F5;
  color: #0B665D;
  font-size: 12.5px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.dc-prose pre {
  margin: 18px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border-radius: 12px;
  background: #10332F;
  color: #DDF3EE;
  font-size: 13px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.dc-prose pre code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}
.dc-prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 10px 0; display: block; }
.dc-prose hr { margin: 28px 0; border: 0; border-top: 1px solid #E5F1ED; }
.dc-table-wrap { overflow-x: auto; margin: 18px 0; }
.dc-prose table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dc-prose th {
  padding: 9px 11px;
  border: 1px solid #DCEFE9;
  background: #F0F9F6;
  color: #28524B;
  text-align: left;
  font-weight: 700;
}
.dc-prose td { padding: 9px 11px; border: 1px solid #E4F1ED; }

.dc-article__end {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #F0F7F5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #8CA39E;
  font-size: 10.5px;
}
.dc-share-copy {
  border: 0;
  background: transparent;
  color: #5C817A;
  font-size: 11px;
  cursor: pointer;
}
.dc-share-copy:hover { color: var(--dc-main); }

/* 侧栏 */
.dc-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.dc-side-card {
  padding: 18px 18px 17px;
  border: 1px solid #DFF0EB;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 74, 67, .05);
}
.dc-side-card__title {
  margin: 0 0 12px;
  color: var(--dc-ink);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dc-side-card__title i { color: var(--dc-mid); }
.dc-author-card { text-align: center; }
.dc-author-card .dc-avatar { width: 54px; height: 54px; font-size: 19px; margin: 0 auto 10px; }
.dc-author-card b { display: block; color: var(--dc-ink); font-size: 14px; }
.dc-author-card p { margin: 5px 0 13px; color: #8AA29D; font-size: 10.5px; line-height: 1.6; }
.dc-author-card .dc-author-stats { display: flex; justify-content: center; gap: 20px; padding-top: 12px; border-top: 1px solid #F0F7F5; }
.dc-author-stats span { color: #8CA49F; font-size: 10px; }
.dc-author-stats b { display: block; color: #315B54; font-size: 14px; margin-bottom: 2px; }
.dc-toc { max-height: 46vh; overflow-y: auto; }
.dc-toc a {
  display: block;
  padding: 4px 0 4px 8px;
  border-left: 2px solid transparent;
  color: #66857F;
  font-size: 11.5px;
  line-height: 1.5;
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dc-toc a.is-l2 { padding-left: 8px; }
.dc-toc a.is-l3 { padding-left: 20px; color: #829B97; font-size: 11px; }
.dc-toc a:hover, .dc-toc a.is-on { color: var(--dc-main); border-left-color: var(--dc-mid); background: #F4FBF9; }
.dc-related { display: flex; flex-direction: column; gap: 11px; }
.dc-related a {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px dashed #E7F2EF;
  color: #385F58;
  font-size: 11.5px;
  line-height: 1.55;
  text-decoration: none !important;
}
.dc-related a:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-related a:hover { color: var(--dc-main); }
.dc-related span { display: block; margin-top: 3px; color: #9AB0AC; font-size: 9.5px; }

/* 评论 */
.dc-comments { margin-top: 18px; }
.dc-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dc-comments__head h3 { margin: 0; color: var(--dc-ink); font-size: 17px; font-weight: 800; }
.dc-comments__head span { color: #8CA49F; font-size: 10.5px; }
.dc-comment-form {
  display: flex;
  gap: 10px;
  padding: 14px;
  border: 1px solid #E2F0EC;
  border-radius: 14px;
  background: #F8FCFB;
  margin-bottom: 18px;
}
.dc-comment-form .dc-avatar { width: 34px; height: 34px; font-size: 12px; }
.dc-comment-form__main { flex: 1 1 auto; min-width: 0; }
.dc-comment-form textarea {
  width: 100%;
  height: 70px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #DDEDE9;
  border-radius: 9px;
  outline: 0;
  resize: vertical;
  background: #fff;
  color: var(--dc-ink);
  font-size: 12.5px;
  line-height: 1.6;
}
.dc-comment-form textarea:focus { border-color: #83CBBB; box-shadow: 0 0 0 3px rgba(79, 195, 173, .11); }
.dc-comment-form__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.dc-comment-form__foot span { color: #9BB0AC; font-size: 9.5px; }
.dc-comment-form button {
  height: 32px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0C645C, #1F9D90);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.dc-comment-guest {
  padding: 16px;
  border: 1px dashed #D7EAE4;
  border-radius: 12px;
  background: #F8FCFB;
  text-align: center;
  color: #7E9A94;
  font-size: 12px;
  margin-bottom: 18px;
}
.dc-comment-guest a { color: var(--dc-main); font-weight: 700; text-decoration: none; }
.dc-comment-list { display: flex; flex-direction: column; gap: 14px; }
.dc-comment {
  display: flex;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid #F2F8F6;
}
.dc-comment:last-child { border-bottom: 0; padding-bottom: 0; }
.dc-comment .dc-avatar { width: 32px; height: 32px; font-size: 11px; }
.dc-comment__main { flex: 1 1 auto; min-width: 0; }
.dc-comment__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dc-comment__head b { color: #315B54; font-size: 11.5px; }
.dc-comment__head span { color: #9AB0AC; font-size: 9.5px; }
.dc-comment__head button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #A4B6B2;
  font-size: 9.5px;
  cursor: pointer;
}
.dc-comment__head button:hover { color: var(--dc-danger); }
.dc-comment p { margin: 4px 0 0; color: #496D66; font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.dc-comment-empty { padding: 18px; text-align: center; color: #95ABA6; font-size: 11.5px; }

/* 阅读进度 */
.dc-read-progress {
  position: fixed;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  z-index: 1201;
  background: linear-gradient(90deg, #0C645C, #59CBB5);
  box-shadow: 0 0 10px rgba(79, 195, 173, .5);
  transition: width .1s linear;
}

/* ---------------- 编辑器 ---------------- */
.dc-editor-hero {
  padding: 140px 0 26px;
  background:
    radial-gradient(circle at 82% 0%, rgba(79, 195, 173, .28), transparent 45%),
    linear-gradient(135deg, #EDFAF7 0%, #FBFDFC 65%, #F3FAF8 100%);
}
.dc-editor-hero h1 {
  margin: 0;
  color: var(--dc-ink);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
}
.dc-editor-hero p { margin: 8px 0 0; color: #6E8D87; font-size: 12.5px; line-height: 1.75; }
.dc-editor-body { padding: 24px 0 80px; }
.dc-editor-card {
  border: 1px solid #DDEFEA;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 74, 67, .07);
  overflow: hidden;
}
.dc-editor-card__head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid #F0F7F5;
  background: linear-gradient(180deg, #FBFEFD 0%, #fff 100%);
}
.dc-editor-title {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--dc-ink);
  font-size: 25px;
  font-weight: 800;
  line-height: 48px;
}
.dc-editor-title::placeholder { color: #A6B9B5; font-weight: 700; }
.dc-editor-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  margin-top: 12px;
}
.dc-editor-meta select,
.dc-editor-meta input {
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid #DDEDE9;
  border-radius: 9px;
  outline: 0;
  background: #F8FCFB;
  color: #355E57;
  font-size: 12px;
}
.dc-editor-meta select:focus,
.dc-editor-meta input:focus { border-color: #83CBBB; background: #fff; }
.dc-editor-summary {
  width: 100%;
  height: 64px;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #DDEDE9;
  border-radius: 9px;
  outline: 0;
  resize: vertical;
  background: #F8FCFB;
  color: #355E57;
  font-size: 12px;
  line-height: 1.6;
}
.dc-editor-summary:focus { border-color: #83CBBB; background: #fff; }

.dc-md-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  padding: 8px 14px;
  border-bottom: 1px solid #EFF7F4;
  background: #F7FBFA;
}
.dc-md-toolbar button {
  width: 30px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #62827C;
  font-size: 11.5px;
  cursor: pointer;
}
.dc-md-toolbar button:hover { background: #E9F6F2; color: var(--dc-main); }
.dc-md-toolbar .dc-md-sep { width: 1px; height: 16px; background: #DFEEE9; margin: 0 4px; }
.dc-md-toolbar span { margin-left: auto; color: #9BB0AC; font-size: 9.5px; }

.dc-editor-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; }
.dc-editor-pane { min-width: 0; }
.dc-editor-pane + .dc-editor-pane { border-left: 1px solid #EFF7F4; }
.dc-editor-pane__hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid #F2F8F6;
  color: #8CA49F;
  font-size: 9.5px;
}
.dc-editor-textarea {
  width: 100%;
  height: 466px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  outline: 0;
  resize: none;
  background: #FBFEFD;
  color: #244A44;
  font-size: 13px;
  line-height: 1.8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.dc-editor-preview {
  height: 466px;
  overflow-y: auto;
  padding: 16px 22px;
  background: #fff;
}
.dc-editor-preview .dc-prose { font-size: 13.5px; line-height: 1.85; }
.dc-editor-preview .dc-prose h1 { font-size: 22px; margin-top: 18px; }
.dc-editor-preview .dc-prose h2 { font-size: 18px; margin-top: 20px; }
.dc-editor-preview .dc-prose h3 { font-size: 15px; margin-top: 16px; }
.dc-editor-preview .dc-prose p { margin-bottom: 11px; }
.dc-editor-preview .dc-prose pre { font-size: 11.5px; padding: 12px 14px; }

.dc-editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid #EFF7F4;
  background: #FBFEFD;
}
.dc-editor-foot__info { color: #8EA6A1; font-size: 10.5px; line-height: 1.5; }
.dc-editor-foot__info b { color: #4E7770; }
.dc-editor-foot__btns { display: flex; align-items: center; gap: 8px; }
.dc-btn-ghost {
  height: 38px;
  padding: 0 16px;
  border: 1px solid #DCEDE8;
  border-radius: 9px;
  background: #fff;
  color: #5E817A;
  font-size: 12px;
  cursor: pointer;
}
.dc-btn-ghost:hover { border-color: #B7E1D6; color: var(--dc-main); }
.dc-btn-main {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0C645C, #1F9D90 62%, #4FC3AD);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .19);
}
.dc-btn-main:disabled { opacity: .55; cursor: default; box-shadow: none; }
.dc-editor-msg {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.5;
}
.dc-editor-msg.is-err { background: #FFF4F4; color: #B91C1C; border: 1px solid #F6D4D4; }
.dc-editor-msg.is-ok { background: #F1FBF8; color: #0F766E; border: 1px solid #C9EBE2; }
.dc-editor-msg[hidden] { display: none !important; }

/* Toast */
.dc-toast {
  position: fixed;
  left: 50%;
  bottom: 42px;
  z-index: 1300;
  transform: translateX(-50%);
  max-width: min(92vw, 520px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(12, 65, 59, .94);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  box-shadow: 0 12px 28px rgba(8, 45, 41, .22);
}
.dc-toast[hidden] { display: none !important; }

/* 响应式 */
@media (max-width: 1099px) {
  .dc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-detail-layout { grid-template-columns: minmax(0, 1fr) 256px; gap: 20px; }
  .dc-article { padding: 26px 28px; }
}
@media (max-width: 900px) {
  .dc-detail-layout { grid-template-columns: 1fr; }
  .dc-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .dc-side-card:first-child { grid-column: 1 / -1; }
  .dc-toc { max-height: none; }
  .dc-editor-grid { grid-template-columns: 1fr; }
  .dc-editor-pane + .dc-editor-pane { border-left: 0; border-top: 1px solid #EFF7F4; }
  .dc-editor-textarea,
  .dc-editor-preview { height: 360px; }
}
@media (max-width: 767px) {
  .dc-container { width: calc(100% - 28px); }
  .dc-hero { padding-top: 104px; padding-bottom: 28px; }
  .dc-detail-hero,
  .dc-editor-hero { padding-top: 104px; }
  .dc-hero h1 { font-size: 29px; }
  .dc-searchbar { padding-left: 15px; }
  .dc-searchbar input { font-size: 13px; padding: 0 9px; }
  .dc-searchbar button { min-width: 70px; padding: 0 14px; }
  .dc-hero__stats { gap: 0; }
  .dc-hero__stat { padding: 0 18px; }
  .dc-hero__stat b { font-size: 17px; }
  .dc-toolbar { align-items: stretch; }
  .dc-tabs { width: 100%; justify-content: space-between; }
  .dc-tabs button { flex: 1 1 0; padding: 0 8px; }
  .dc-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .dc-select { width: 100%; flex: none; }
  .dc-select select { width: 100%; }
  .dc-sorts { width: 100%; justify-content: space-between; }
  .dc-sorts button { flex: 1 1 0; padding: 0 4px; }
  .dc-write-btn { grid-column: 1 / -1; width: 100%; height: 38px; justify-content: center; flex: none; }
  .dc-grid { grid-template-columns: 1fr; gap: 16px; }
  .dc-card__cover { height: 104px; }
  .dc-detail-hero__head { max-width: 100%; }
  .dc-detail-title { font-size: 25px; }
  .dc-detail-summary { font-size: 13px; }
  .dc-article { padding: 20px 18px; border-radius: 16px; }
  .dc-article__top { align-items: flex-start; }
  .dc-actions { width: 100%; }
  .dc-act { flex: 1 1 auto; justify-content: center; }
  .dc-prose { font-size: 14px; }
  .dc-prose h2 { font-size: 19px; }
  .dc-side { grid-template-columns: 1fr; }
  .dc-side-card:first-child { grid-column: auto; }
  .dc-comments__head { align-items: flex-start; }
  .dc-comment-form .dc-avatar { width: 30px; height: 30px; }
  .dc-editor-hero { padding-top: 104px; }
  .dc-editor-card__head { padding: 16px 16px 13px; }
  .dc-editor-title { height: 42px; font-size: 21px; line-height: 42px; }
  .dc-editor-meta { grid-template-columns: 1fr; }
  .dc-editor-foot { padding: 12px 14px; }
  .dc-editor-foot__btns { width: 100%; }
  .dc-editor-foot__btns button { flex: 1 1 auto; }
  .dc-hero__stats { flex-wrap: wrap; row-gap: 8px; }
  .dc-hero__stat:nth-child(2) { border-right: 0; }
}
@media (max-width: 420px) {
  .dc-searchbar button { min-width: 58px; padding: 0 10px; font-size: 11.5px; }
  .dc-sorts button { padding: 0 8px; }
  .dc-write-btn { padding: 0 12px; font-size: 11.5px; }
  .dc-hero__stat { padding: 0 12px; }
}

/* ---------------- 详情页视觉优化 20261125 ---------------- */
.dc-detail-hero {
  padding: 112px 0 30px;
}
.dc-detail-hero__head { max-width: 920px; }
.dc-detail-title {
  max-width: 860px;
  margin: 13px 0 10px;
  font-size: clamp(29px, 2.8vw, 36px);
  line-height: 1.34;
  letter-spacing: -.55px;
}
.dc-detail-summary {
  max-width: 780px;
  margin: 0 0 15px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #5f7d77;
}
.dc-detail-meta {
  gap: 10px 15px;
  font-size: 11.5px;
  color: #7f9a94;
}
.dc-detail-meta .dc-avatar { width: 32px; height: 32px; font-size: 12px; }
.dc-detail-meta b { font-size: 12.5px; }
.dc-detail-tags { gap: 7px; margin-top: 11px; }
.dc-detail-tags .dc-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  border-color: rgba(31, 157, 144, .16);
  color: #447c72;
  font-size: 10.5px;
}
.dc-detail-body { padding: 24px 0 64px; }
.dc-detail-layout { grid-template-columns: minmax(0, 1fr) 292px; gap: 26px; }
.dc-article {
  padding: 30px 40px 28px;
  border-radius: 18px;
}
.dc-article__top {
  padding-bottom: 16px;
  margin-bottom: 24px;
}
.dc-article__top .dc-article__hint { font-size: 11px; color: #93aaa5; }
.dc-prose {
  font-size: 15.5px;
  line-height: 2;
  color: #264d46;
}
.dc-prose p { margin: 0 0 16px; text-wrap: pretty; }
.dc-prose h2 {
  margin: 30px 0 13px;
  padding-left: 13px;
  font-size: 21px;
  border-left-width: 4px;
}
.dc-prose h3 { margin: 24px 0 11px; font-size: 17px; }
.dc-prose li { margin: 6px 0; }
.dc-prose table { font-size: 13px; }
.dc-prose th, .dc-prose td { padding: 10px 12px; }

.dc-side-card__title { margin-bottom: 12px; }
.dc-toc-count {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: #F1F9F7;
  color: #6f928b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}
.dc-author-card { text-align: left; }
.dc-author-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
}
.dc-author-head .dc-avatar {
  width: 48px;
  height: 48px;
  margin: 0;
  font-size: 18px;
  flex: 0 0 auto;
}
.dc-author-info { min-width: 0; }
.dc-author-label {
  display: block;
  color: #9bb0ac;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .1em;
}
.dc-author-info b {
  display: block;
  margin-top: 1px;
  color: var(--dc-ink);
  font-size: 15px;
  line-height: 1.4;
}
.dc-author-info p {
  margin: 4px 0 0;
  color: #8AA29D;
  font-size: 10.5px;
  line-height: 1.55;
}
.dc-author-card .dc-author-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-top: 13px;
  margin-top: 2px;
  border-top: 1px solid #F0F7F5;
}
.dc-author-stats span {
  padding: 0 6px;
  border-left: 1px solid #F0F7F5;
  line-height: 1.25;
}
.dc-author-stats span:first-child { border-left: 0; }
.dc-author-stats b { font-size: 15px; margin-bottom: 2px; }
.dc-toc a { padding: 5px 0 5px 9px; font-size: 12px; }
.dc-toc a.is-l3 { padding-left: 21px; font-size: 11.5px; }
.dc-related a { font-size: 12.5px; line-height: 1.6; }

@media (max-width: 900px) {
  .dc-detail-hero { padding-top: 108px; padding-bottom: 26px; }
  .dc-detail-title { max-width: 100%; font-size: 30px; }
}
@media (max-width: 767px) {
  .dc-detail-hero { padding-top: 100px; padding-bottom: 22px; }
  .dc-detail-title { margin: 11px 0 9px; font-size: 25px; letter-spacing: -.4px; }
  .dc-detail-summary { font-size: 13px; line-height: 1.75; }
  .dc-detail-meta { gap: 8px 12px; }
  .dc-detail-body { padding: 20px 0 52px; }
  .dc-article { padding: 20px 18px; }
  .dc-prose { font-size: 15px; line-height: 1.95; }
  .dc-author-head .dc-avatar { width: 44px; height: 44px; }
  .dc-author-stats b { font-size: 14px; }
}
@media (max-width: 900px) {
  .dc-detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .dc-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .dc-side-card:first-child { grid-column: 1 / -1; }
  .dc-toc { max-height: none; }
}
@media (max-width: 767px) {
  .dc-detail-layout { gap: 16px; }
  .dc-side { grid-template-columns: 1fr; }
  .dc-side-card:first-child { grid-column: auto; }
}

/* ---------------- 文档打赏 ---------------- */
.dc-act--tip {
  border-color: #CBE8DF;
  background: linear-gradient(135deg, #F0FBF7, #FFFDF4);
  color: #0D766C;
  font-weight: 700;
}
.dc-act--tip:hover {
  border-color: #9ED8C9;
  background: #E8F8F2;
  color: #0A685F;
}
.dc-author-card .dc-author-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dc-author-stats span { padding: 0 4px; }
.dc-tip-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 18px;
  padding: 16px 18px;
  border: 1px solid #DCEFE9;
  border-radius: 14px;
  background: linear-gradient(135deg, #F3FBF8 0%, #FFFDF5 100%);
}
.dc-tip-cta__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc-tip-cta__ico {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F766E, #4FC3AD);
  color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(15, 118, 110, .18);
}
.dc-tip-cta__main b { display: block; color: #264E47; font-size: 13.5px; }
.dc-tip-cta__main p { margin: 3px 0 0; color: #7C9791; font-size: 11px; }
.dc-tip-cta__btn {
  height: 38px;
  padding: 0 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F766E, #149287);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .18);
}
.dc-tip-cta__btn:hover { filter: brightness(1.04); transform: translateY(-1px); }

.dc-tip-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dc-tip-modal[hidden] { display: none !important; }
body.dc-tip-open { overflow: hidden; }
.dc-tip-mask {
  position: absolute;
  inset: 0;
  background: rgba(7, 38, 34, .5);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.dc-tip-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 0 0 18px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(7, 38, 34, .28);
  animation: dcTipIn .18s ease-out;
}
@keyframes dcTipIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dc-tip-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  color: #6E8983;
  cursor: pointer;
}
.dc-tip-close:hover { background: #fff; color: #0F766E; }
.dc-tip-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px 16px;
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 100% 0, rgba(79, 195, 173, .18), transparent 52%),
    linear-gradient(135deg, #EAF9F5, #FFFCF3);
}
.dc-tip-head__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, #0F766E, #4FC3AD);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
}
.dc-tip-head h3 { margin: 0; color: #214B44; font-size: 17px; font-weight: 800; }
.dc-tip-head p { margin: 3px 0 0; color: #77938D; font-size: 11px; }
.dc-tip-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 24px 0;
  padding: 10px 12px;
  border: 1px solid #E3F2ED;
  border-radius: 13px;
  background: #F7FCFA;
}
.dc-tip-author__who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dc-tip-author__who .dc-avatar { width: 38px; height: 38px; font-size: 14px; flex: 0 0 auto; }
.dc-tip-author__who div span { display: block; color: #91A9A4; font-size: 9px; line-height: 1.4; }
.dc-tip-author__who div b { display: block; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #2E5A52; font-size: 13px; }
.dc-tip-balance { text-align: right; color: #7F9993; font-size: 10px; white-space: nowrap; }
.dc-tip-balance b { display: block; color: #0F766E; font-size: 19px; line-height: 1.2; }
.dc-tip-balance a { display: block; margin-top: 2px; color: #6C918A; font-size: 9px; text-decoration: underline; text-underline-offset: 2px; }
.dc-tip-label {
  margin: 17px 24px 8px;
  color: #466A63;
  font-size: 11.5px;
  font-weight: 700;
}
.dc-tip-label span { margin-left: 5px; color: #9AAEA9; font-weight: 400; font-size: 9.5px; }
.dc-tip-amounts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 0 24px;
}
.dc-tip-amounts button {
  height: 42px;
  border: 1px solid #DCEBE7;
  border-radius: 10px;
  background: #fff;
  color: #4B746C;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}
.dc-tip-amounts button:hover { border-color: #B6DED4; background: #F6FCFA; }
.dc-tip-amounts button.is-on {
  border-color: #0F766E;
  background: #EAF8F3;
  color: #0F766E;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .12);
}
.dc-tip-custom {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 24px 0;
  color: #78918C;
  font-size: 10.5px;
}
.dc-tip-custom > div {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #DCEBE7;
  border-radius: 9px;
  background: #fff;
}
.dc-tip-custom input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2E5A52;
  font-size: 14px;
  font-weight: 700;
}
.dc-tip-custom span { flex: 0 0 auto; white-space: nowrap; color: #8AA39D; font-size: 10px; }
.dc-tip-dialog textarea {
  display: block;
  width: calc(100% - 48px);
  min-height: 72px;
  margin: 0 24px;
  padding: 10px 12px;
  border: 1px solid #DCEBE7;
  border-radius: 10px;
  background: #FBFEFD;
  color: #315B54;
  font-size: 12.5px;
  line-height: 1.6;
  resize: vertical;
  outline: 0;
}
.dc-tip-dialog textarea:focus, .dc-tip-custom > div:focus-within { border-color: #9FD8CA; box-shadow: 0 0 0 3px rgba(79, 195, 173, .12); }
.dc-tip-anon {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 11px 24px 0;
  color: #5E7E77;
  font-size: 11px;
  cursor: pointer;
}
.dc-tip-anon input { width: 14px; height: 14px; accent-color: #0F766E; }
.dc-tip-anon small { width: 100%; margin-left: 21px; color: #9AAEA9; font-size: 9.5px; line-height: 1.4; }
.dc-tip-error {
  margin: 10px 24px 0;
  padding: 8px 10px;
  border: 1px solid #F5D8C7;
  border-radius: 8px;
  background: #FFF8F2;
  color: #B45309;
  font-size: 10.5px;
  line-height: 1.5;
}
.dc-tip-note { margin: 10px 24px 0; color: #A2B3AF; font-size: 9.5px; line-height: 1.5; }
.dc-tip-foot { display: flex; gap: 9px; margin: 14px 24px 0; }
.dc-tip-cancel, .dc-tip-submit {
  height: 42px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.dc-tip-cancel { flex: 0 0 94px; border: 1px solid #DCEBE7; background: #fff; color: #6D8983; }
.dc-tip-cancel:hover { background: #F7FCFA; }
.dc-tip-submit {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  background: linear-gradient(135deg, #0F766E, #149287);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .2);
}
.dc-tip-submit:hover { filter: brightness(1.04); }
.dc-tip-submit:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

@media (max-width: 767px) {
  .dc-tip-cta { flex-wrap: wrap; padding: 15px 16px; margin: 18px 0 16px; }
  .dc-tip-cta__main { flex: 1 1 100%; }
  .dc-tip-cta__btn { width: 100%; justify-content: center; }
  .dc-tip-modal { padding: 0; align-items: flex-end; }
  .dc-tip-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    animation: dcTipSheetIn .2s ease-out;
  }
  @keyframes dcTipSheetIn { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
  .dc-tip-head { padding: 20px 20px 15px; border-radius: 22px 22px 0 0; }
  .dc-tip-author, .dc-tip-amounts, .dc-tip-label, .dc-tip-custom, .dc-tip-anon, .dc-tip-error, .dc-tip-note, .dc-tip-foot { margin-left: 20px; margin-right: 20px; }
  .dc-tip-dialog textarea { width: calc(100% - 40px); margin-left: 20px; margin-right: 20px; }
  .dc-tip-foot { padding-bottom: max(6px, env(safe-area-inset-bottom)); }
  .dc-tip-submit { height: 44px; }
}

/* 独立站品牌标记 */
.kb-brand-tag{display:inline-block;white-space:nowrap;margin-left:10px;padding:3px 10px;border-radius:999px;
  background:rgba(15,118,110,.10);color:#0d6b60;font-size:12px;font-weight:700;letter-spacing:.08em;
  vertical-align:middle;transform:translateY(-2px)}
@media (max-width:575px){.kb-brand-tag{font-size:11px;padding:2px 8px;margin-left:6px}}
