/* ============================================
   旬颜 - 文章详情页独有样式
   ============================================ */

/* ---------- 文章头部 ---------- */
.article-header {
  width: min(var(--content-width), calc(100vw - 40px));
  margin: 18px auto 22px;
  padding: 32px 36px;
}

.article-title {
  margin: 6px 0 16px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 文章正文 ---------- */
.article-content {
  padding: 36px 40px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 68px rgba(21, 32, 51, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -18px 36px rgba(91, 140, 255, 0.03);
  backdrop-filter: blur(26px) saturate(165%);
  -webkit-backdrop-filter: blur(26px) saturate(165%);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.article-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(68, 163, 255, 0.06), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 107, 125, 0.06), transparent 24%);
  opacity: 0.9;
}

.article-content::after {
  content: "";
  position: absolute;
  inset: 10px 14px auto;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.52) 50%, transparent 84%);
  filter: blur(4px);
  pointer-events: none;
  opacity: 0.45;
}

.article-content > * {
  position: relative;
  z-index: 1;
}

.article-content h2 {
  margin: 40px 0 18px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  margin: 28px 0 14px;
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: 0;
}

.article-content p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-light);
}

.article-content strong {
  color: var(--text);
  font-weight: 700;
}

.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-light);
}

.article-content li {
  margin-bottom: 10px;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(68, 163, 255, 0.06), rgba(255, 107, 125, 0.04)),
    rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--accent-2);
  border: 1px solid rgba(68, 163, 255, 0.10);
  color: #3a4a62;
  font-size: 15px;
  line-height: 1.85;
  font-style: italic;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.article-content blockquote p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.article-content .article-image {
  margin: 28px 0;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 107, 125, 0.12), transparent 50%),
    radial-gradient(circle at 70% 75%, rgba(68, 163, 255, 0.12), transparent 50%),
    linear-gradient(135deg, #f8faff, #eef3ff);
  border: 1px solid rgba(255, 255, 255, 0.96);
  aspect-ratio: 16 / 9;
  position: relative;
}

.article-content .article-image::before {
  content: "📷 配图占位";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.article-content .article-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(transparent, rgba(21, 32, 51, 0.6));
  color: #fff;
  font-size: 13px;
  text-align: center;
}

/* 信息提示框 */
.article-content .info-box {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(39, 240, 198, 0.06), rgba(68, 163, 255, 0.04)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(39, 240, 198, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.article-content .info-box h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1a8a6f;
}

.article-content .info-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* 风险提示框 */
.article-content .warning-box {
  margin: 28px 0;
  padding: 22px 26px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 107, 125, 0.06), rgba(255, 170, 68, 0.04)),
    rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 107, 125, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.article-content .warning-box h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #b94658;
}

.article-content .warning-box p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* 文章目录 */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.toc-list li a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.toc-list li a:hover {
  background: rgba(68, 163, 255, 0.05);
  color: var(--text-light);
}

.toc-list li.active a {
  background: rgba(68, 163, 255, 0.08);
  border-left-color: var(--accent-2);
  color: #2858a6;
  font-weight: 500;
}

/* ---------- 文章底部 ---------- */
.article-footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.article-tags .tag {
  background: rgba(68, 163, 255, 0.06);
  border-color: rgba(68, 163, 255, 0.10);
  color: #2858a6;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--glass-weak);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.article-share span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 32, 51, 0.08);
}

/* ---------- 相关推荐 ---------- */
.related-section {
  margin-top: 32px;
}

.related-title {
  margin: 0 0 18px;
  font-size: 20px;
  letter-spacing: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 32px rgba(21, 32, 51, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: all 0.2s ease;
}

.related-card .article-kicker {
  align-self: start;
  margin-bottom: 2px;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(21, 32, 51, 0.08);
}

.related-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.related-card .article-meta {
  color: var(--muted-light);
  font-size: 12px;
}

/* ---------- 作者卡片 ---------- */
.author-card {
  text-align: center;
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 107, 125, 0.2), transparent 50%),
    radial-gradient(circle at 70% 75%, rgba(68, 163, 255, 0.2), transparent 50%),
    linear-gradient(135deg, #f8faff, #eef3ff);
  border: 3px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(21, 32, 51, 0.1);
}

.author-name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.author-title {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.author-desc {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.author-btn {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(68, 163, 255, 0.2);
  background: rgba(68, 163, 255, 0.08);
  color: #2858a6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

.author-btn:hover {
  background: rgba(68, 163, 255, 0.12);
  border-color: rgba(68, 163, 255, 0.3);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid.narrow-sidebar {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding: 24px 20px;
  }

  .article-header {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .content-grid,
  .content-grid.narrow-sidebar {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .sidebar {
    position: static !important;
    width: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .article-header {
    width: min(100vw - 24px, var(--content-width));
    padding: 20px;
    border-radius: 28px;
    margin: 14px auto 18px;
  }

  .article-title {
    margin-top: 4px;
    font-size: 28px;
  }

  .panel {
    padding: 18px;
    border-radius: 26px;
  }

  .article-content {
    padding: 20px;
    border-radius: 26px;
  }

  .article-content h2 {
    font-size: 20px;
  }

  .article-content p {
    font-size: 15px;
  }
}
/* ---------- Doctor Detail ---------- */
.doctor-hero {
  width: min(var(--content-width), calc(100vw - 40px));
  margin: 18px auto 24px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.doctor-avatar-wrap {
  width: 156px;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(225, 244, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(43, 94, 145, 0.14);
}

.doctor-avatar-img,
.doctor-avatar-fallback {
  width: 100%;
  height: 100%;
}

.doctor-avatar-img {
  display: block;
  object-fit: cover;
}

.doctor-avatar-fallback {
  display: grid;
  place-items: center;
  color: #2b5f99;
  font-size: 54px;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(225, 244, 255, 0.92), rgba(255, 232, 238, 0.7));
}

.doctor-hero-main {
  min-width: 0;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.doctor-name {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.doctor-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.doctor-title-line span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: #2858a6;
  background: rgba(68, 163, 255, 0.08);
  border: 1px solid rgba(68, 163, 255, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.doctor-summary {
  margin: 18px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.doctor-hero-specialties {
  margin: 0;
}

.doctor-intro-block {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(220, 235, 248, 0.88);
}

.doctor-intro-block h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.doctor-intro-block p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.doctor-profile-card,
.doctor-credentials {
  margin-bottom: 24px;
  padding: 26px;
  border-radius: 28px;
}

.doctor-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.doctor-section-head h2,
.doctor-specialties h3,
.doctor-credentials h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.doctor-consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #2f86e8, #15b894);
  box-shadow: 0 14px 28px rgba(47, 134, 232, 0.18);
}

.doctor-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doctor-fact-item {
  min-width: 0;
  padding: 15px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 235, 248, 0.9);
}

.doctor-fact-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

.doctor-fact-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  word-break: break-word;
}

.doctor-specialties {
  margin-top: 22px;
}

.doctor-chip-list,
.doctor-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.doctor-chip-list span,
.doctor-side-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: #1f6f61;
  background: rgba(35, 184, 150, 0.10);
  border: 1px solid rgba(35, 184, 150, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.doctor-content {
  margin-bottom: 24px;
}

.doctor-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.doctor-credentials ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.doctor-credentials li {
  margin-bottom: 8px;
}

.doctor-side-card p {
  margin: 14px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

@media (max-width: 900px) {
  .doctor-hero {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
  }

  .doctor-avatar-wrap {
    width: 120px;
    border-radius: 22px;
  }

  .doctor-name {
    font-size: 30px;
  }

  .doctor-fact-grid,
  .doctor-credentials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .doctor-hero {
    width: min(100vw - 24px, var(--content-width));
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 28px;
  }

  .doctor-avatar-wrap {
    width: 108px;
  }

  .doctor-name {
    font-size: 28px;
  }

  .doctor-section-head {
    display: block;
  }

  .doctor-consult-btn {
    margin-top: 12px;
  }

  .doctor-profile-card,
  .doctor-credentials {
    padding: 20px;
    border-radius: 24px;
  }
}

/* ---------- Project Detail ---------- */
.project-hero {
  width: min(var(--content-width), calc(100vw - 40px));
  margin: 18px auto 24px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.project-cover-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 248, 243, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(43, 94, 145, 0.14);
}

.project-cover-img,
.project-cover-fallback {
  width: 100%;
  height: 100%;
}

.project-cover-img {
  display: block;
  object-fit: cover;
}

.project-cover-fallback {
  display: grid;
  place-items: center;
  color: #23786c;
  font-size: 58px;
  font-weight: 800;
  background: linear-gradient(145deg, rgba(226, 247, 239, 0.92), rgba(255, 238, 230, 0.72));
}

.project-hero-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-kicker-row,
.project-chip-list,
.project-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-kicker-row {
  margin-bottom: 12px;
}

.project-kicker-row span,
.project-chip-list span,
.project-side-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: #1f7469;
  background: rgba(46, 169, 139, 0.1);
  border: 1px solid rgba(46, 169, 139, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.project-name {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

.project-hero-summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.project-profile-card,
.project-detail-card {
  margin-bottom: 24px;
  padding: 26px;
  border-radius: 28px;
}

.project-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.project-section-head h2,
.project-info-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.project-section-head span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: #b94658;
  background: rgba(255, 116, 132, 0.1);
  border: 1px solid rgba(255, 116, 132, 0.16);
  font-size: 13px;
  font-weight: 800;
}

.project-fact-grid,
.project-people-grid,
.project-detail-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-fact-item,
.project-people-card,
.project-info-block {
  min-width: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.project-fact-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 700;
}

.project-fact-item strong {
  display: block;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.project-people-grid {
  margin-top: 16px;
}

.project-people-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
}

.project-people-card ul,
.project-info-block ul,
.project-info-block ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.project-people-card li,
.project-info-block li {
  margin-bottom: 8px;
}

.project-people-card-muted {
  background: rgba(255, 245, 246, 0.68);
}

.project-content {
  margin-bottom: 24px;
}

.project-info-block-wide,
.project-risk-block {
  grid-column: 1 / -1;
}

.project-info-block p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.project-risk-block {
  background: rgba(255, 245, 246, 0.72);
  border-color: rgba(255, 116, 132, 0.18);
}

.project-side-card p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  word-break: break-word;
}

.project-side-tags {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .project-name {
    font-size: 30px;
  }

  .project-fact-grid,
  .project-people-grid,
  .project-detail-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .project-hero {
    width: min(100vw - 24px, var(--content-width));
    grid-template-columns: 1fr;
    padding: 20px;
    border-radius: 28px;
  }

  .project-cover-wrap {
    border-radius: 22px;
  }

  .project-name {
    font-size: 28px;
  }

  .project-section-head {
    display: block;
  }

  .project-section-head span {
    margin-top: 12px;
  }

  .project-profile-card,
  .project-detail-card {
    padding: 20px;
    border-radius: 24px;
  }
}