.zr-article-app {
  --zr-article-page-bg: #f3f4f6;
  --zr-article-card-bg: #ffffff;
  --zr-article-border: #e5e7eb;
  --zr-article-text: #111827;
  --zr-article-subtle: #4b5563;
  --zr-article-primary: #2f6eb5;
  --zr-article-primary-strong: #285d96;
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--zr-article-text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  isolation: isolate;
}

.zr-article-app,
.zr-article-app * {
  box-sizing: border-box;
}

.zr-article-app :where(button, input, select, textarea) {
  font: inherit;
}

.zr-article-app > .zr-article-page,
.zr-article-app > .zr-article-modal {
  max-width: none !important;
  margin: 0 !important;
}

.zr-article-page {
  margin: 0;
  padding: 36px 0 56px;
  background: var(--zr-article-page-bg);
  color: var(--zr-article-text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.zr-article-page a {
  color: inherit;
  text-decoration: none;
}

.zr-article-shell {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.zr-article-reading {
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.zr-article-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
}

.zr-article-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  min-width: 132px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid #d6deeb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--zr-article-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.zr-article-back:hover {
  border-color: var(--zr-article-primary);
  background: #f5f8fc;
  color: var(--zr-article-primary-strong);
}

.zr-article-title {
  margin: 18px 0 10px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--zr-article-text);
  text-align: center;
}

.zr-article-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  width: fit-content;
  max-width: min(100%, 980px);
  margin: 10px auto 0;
  padding: 10px 16px;
  border: 1px solid #ebeef2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.zr-article-category {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #606266;
  font-size: 14px;
  line-height: 1.5;
}

.zr-article-date {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 28px;
  margin-left: 14px;
  padding: 0 0 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #8c8c8c;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.zr-article-date::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  background: #e5e7eb;
  transform: translateY(-50%);
}

.zr-article-category-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid #ebeef5;
  border-radius: 999px;
  background: #f7f8fa;
  color: #606266;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.zr-article-category-trail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.zr-article-category-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 2px;
  border-radius: 999px;
  color: #606266;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.zr-article-category-link.is-current {
  padding: 0 10px;
  border: 1px solid #ebeef5;
  background: #f7f8fa;
  color: #303133;
  font-weight: 700;
}

.zr-article-category-separator {
  color: #c0c4cc;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.zr-article-category-link:hover {
  color: #1f6fbf;
  background: #f5f9ff;
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 768px) {
  .zr-article-meta {
    display: flex;
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    gap: 10px;
  }

  .zr-article-category {
    width: 100%;
  }

  .zr-article-date {
    width: 100%;
    margin-left: 0;
    padding: 10px 0 0;
    border-top: 1px solid #e8eef5;
  }

  .zr-article-date::before {
    display: none;
  }
}

.zr-article-state {
  padding: 18px 20px;
  border: 1px solid var(--zr-article-border);
  border-radius: 16px;
  background: var(--zr-article-card-bg);
  color: var(--zr-article-subtle);
}

.zr-article-app .zr-article-loading-mask[hidden] {
  display: none !important;
}

.zr-article-app .zr-article-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 110000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(4px);
}

.zr-article-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 220px;
  padding: 28px 30px 24px;
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.12),
    0 4px 12px rgba(15, 23, 42, 0.06);
}

.zr-article-loading-spinner {
  width: 44px;
  height: 44px;
  animation: zr-article-loading-rotate 2s linear infinite;
}

.zr-article-loading-path {
  stroke: #409eff;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1, 126;
  stroke-dashoffset: 0;
  animation: zr-article-loading-dash 1.5s ease-in-out infinite;
}

.zr-article-loading-text {
  margin: 0;
  color: #606266;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.zr-article-state-error {
  border-color: #f0c7c7;
  background: #fff5f5;
  color: #b42318;
}

.zr-article-body {
  border: 1px solid var(--zr-article-border);
  border-radius: 20px;
  background: var(--zr-article-card-bg);
  padding: 34px 34px 40px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.zr-article-content {
  color: var(--zr-article-text);
}

.zr-article-content > *:first-child {
  margin-top: 0 !important;
}

.zr-article-content > *:last-child {
  margin-bottom: 0 !important;
}

.zr-article-content p,
.zr-article-content div,
.zr-article-content li,
.zr-article-content span {
  color: var(--zr-article-text) !important;
}

.zr-article-content p {
  margin: 0 0 20px !important;
  line-height: 1.95 !important;
  font-size: 16px !important;
}

.zr-article-content strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}

.zr-article-content img {
  display: block;
  max-width: 100% !important;
  height: auto !important;
  margin: 20px auto !important;
  border-radius: 14px;
}

.zr-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.zr-article-content table td,
.zr-article-content table th {
  border: 1px solid var(--zr-article-border);
  padding: 10px 12px;
}

.zr-article-post-nav {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.zr-article-post-link {
  flex: 1 1 0;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--zr-article-border);
  border-radius: 16px;
  background: var(--zr-article-card-bg);
}

.zr-article-post-link.is-next {
  text-align: right;
}

.zr-article-post-label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 13px;
}

.zr-article-post-title {
  display: block;
  color: var(--zr-article-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.zr-article-recommend {
  margin-top: 42px;
}

.zr-article-recommend-head {
  margin-bottom: 16px;
}

.zr-article-recommend-head h2 {
  margin: 0;
  color: var(--zr-article-text);
  font-size: 26px;
  font-weight: 700;
}

.zr-article-recommend-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.zr-article-recommend-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--zr-article-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--zr-article-card-bg);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zr-article-recommend-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.zr-article-recommend-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #eef1f5;
}

.zr-article-recommend-body {
  padding: 10px 10px 10px;
}

.zr-article-recommend-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 0;
  color: var(--zr-article-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.zr-article-app .zr-article-modal[hidden] {
  display: none !important;
}

.zr-article-app .zr-article-modal {
  position: fixed;
  inset: 0;
  z-index: 110001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.zr-article-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  animation: zr-article-modal-fade-in 0.24s ease;
}

.zr-article-modal-card {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 30px 28px 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.24),
    0 10px 24px rgba(15, 23, 42, 0.12);
  text-align: center;
  animation: zr-article-modal-zoom-in 0.3s cubic-bezier(0.2, 0.82, 0.2, 1);
}

.zr-article-modal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #fb7185);
  box-shadow:
    0 14px 26px rgba(249, 115, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.zr-article-modal-title {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.zr-article-modal-text {
  margin: 14px 0 0;
  color: #606266;
  font-size: 16px;
  line-height: 1.7;
}

.zr-article-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.zr-article-modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 144px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #409eff, #337ecc);
  box-shadow: 0 14px 28px rgba(64, 158, 255, 0.28);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zr-article-modal-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(64, 158, 255, 0.34);
}

@keyframes zr-article-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zr-article-loading-rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes zr-article-loading-dash {
  0% {
    stroke-dasharray: 1, 126;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 80, 126;
    stroke-dashoffset: -32;
  }

  100% {
    stroke-dasharray: 80, 126;
    stroke-dashoffset: -124;
  }
}

@keyframes zr-article-modal-zoom-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.92);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .zr-article-app .zr-article-modal {
    padding: 18px;
  }

  .zr-article-app .zr-article-modal-card {
    padding: 26px 20px 22px;
    border-radius: 20px;
  }

  .zr-article-app .zr-article-modal-title {
    font-size: 24px;
  }

  .zr-article-app .zr-article-modal-text {
    font-size: 15px;
  }

  .zr-article-app .zr-article-modal-button {
    width: 100%;
  }
}
