/* 插件详情页 v2：一张内容主纸 + 清晰分区 + 固定安装侧栏 */
.page {
  max-width: 1240px;
  padding-bottom: 72px;
}

.detail-crumb {
  padding: 20px 0 18px;
  color: #98a2b3;
  font-size: 12px;
}

.detail-crumb a {
  color: #667085;
}

.detail-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
  width: 100%;
}

.detail-main {
  min-width: 0;
  gap: 0;
  padding: 36px 40px 8px;
  background: #fff;
  border: 1px solid #e9edf3;
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(31, 41, 55, 0.055);
}

.detail-head {
  position: relative;
  padding: 0 0 30px;
  margin: 0 0 2px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  border-radius: 0;
  background: linear-gradient(135deg, #fff8f2 0%, #fff 58%, #fff 100%);
  box-shadow: none;
  gap: 22px;
  overflow: visible;
}

.detail-head:after {
  display: none;
}

.detail-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff0e7, #ffe0d0);
  color: #ff4d00;
  font-size: 30px;
  box-shadow: 0 12px 28px rgba(255, 77, 0, 0.14);
}

.detail-kicker {
  margin: 0 0 8px;
  color: #ff4d00;
  font-size: 10px;
  letter-spacing: 2.6px;
  font-weight: 800;
}

.detail-title-row h1 {
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -1.6px;
  font-weight: 800;
}

.detail-author {
  margin: 12px 0 0;
  color: #667085;
  font-size: 12.5px;
}

.detail-tags {
  gap: 8px;
  margin-top: 17px;
}

.plugin-tag {
  max-width: none;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f6f8fb;
  color: #475467;
  font-size: 11px;
  font-weight: 500;
}

.detail-verify {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 16px 0 0;
  padding: 13px 16px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #f9fbfd;
  color: #667085;
  font-size: 11.5px;
}

.detail-verify-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: #175cd3;
  font-size: 10px;
}

.detail-verify-note {
  color: #98a2b3;
}

.detail-card {
  min-width: 0;
  padding: 29px 0 28px;
  border: 0;
  border-bottom: 1px solid #eef1f5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.detail-card:last-of-type {
  border-bottom: 0;
}

.detail-card-title {
  gap: 0;
  margin-bottom: 14px;
}

.detail-card-icon {
  display: none;
}

.detail-card h2 {
  position: relative;
  padding-left: 13px;
  margin: 0;
  color: #1f2937;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.detail-card h2:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 15px;
  border-radius: 3px;
  background: #ff4d00;
  transform: translateY(-50%);
}

.detail-description {
  color: #475467;
  font-size: 14.5px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

#audience-card .detail-description,
#problem-card .detail-description {
  max-width: 820px;
}

.detail-example {
  max-height: none;
  padding: 17px 18px;
  border: 1px solid #edf1f5;
  border-radius: 12px;
  background: #f9fbfd;
  color: #475467;
  font-size: 13px;
  line-height: 1.8;
}

.install-steps {
  padding-left: 20px;
  color: #475467;
  font-size: 13.5px;
  line-height: 2.1;
}

.install-steps li::marker {
  color: #ff4d00;
  font-weight: 700;
}

.install-name {
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #edf1f5;
  border-radius: 10px;
  background: #f9fbfd;
}

.install-name span {
  font-size: 11px;
  color: #98a2b3;
}

.install-name code {
  font-size: 12px;
  color: #344054;
}

.install-name button {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.detail-side {
  top: 92px;
  gap: 16px;
}

.detail-side-card {
  padding: 26px;
  border: 1px solid #e7ebf0;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.07);
}

.side-kicker {
  margin-bottom: 10px;
  color: #98a2b3;
  font-size: 9.5px;
  letter-spacing: 1.8px;
}

.side-price {
  color: #16a34a;
  font-size: 38px;
  letter-spacing: -1.6px;
  line-height: 1.15;
}

.side-price-note {
  margin: 8px 0 18px;
  color: #667085;
  font-size: 11.5px;
}

.side-primary {
  height: 50px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(255, 77, 0, 0.24);
}

.side-secondary {
  height: 42px;
  border-radius: 10px;
  font-size: 12px;
  margin-top: 9px;
}

.side-divider {
  margin: 20px 0 14px;
}

.side-meta {
  gap: 12px;
}

.side-meta div {
  font-size: 11.5px;
}

.side-meta dt {
  color: #1f2937;
  font-weight: 500;
}

.side-meta dd {
  max-width: 190px;
  color: #344054;
  font-weight: 500;
}

.side-trust {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed #e7ebf0;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1.7;
}

.side-tip {
  padding: 0 4px;
  color: #98a2b3;
  font-size: 10.5px;
  line-height: 1.8;
}

.side-author-plugins {
  margin-top: 18px;
  padding-top: 16px;
}

.side-author-head {
  color: #667085;
  font-size: 10.5px;
}

.side-author-item {
  padding: 8px 7px;
}

.side-author-item-copy strong {
  font-size: 11px;
}

.side-author-item-copy small {
  font-size: 10px;
}

.detail-related {
  margin-top: 34px;
  padding-top: 28px;
}

.detail-section-head {
  margin-bottom: 18px;
}

.detail-section-head h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
}

.section-eyebrow {
  font-size: 9.5px;
  letter-spacing: 2px;
}

.section-count {
  padding: 5px 10px;
  font-size: 11px;
}

.author-plugin-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.author-plugin-card {
  padding: 16px;
  border-radius: 15px;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.035);
}

.author-plugin-copy strong {
  font-size: 13px;
}

.author-plugin-copy small {
  font-size: 11px;
}

.author-plugin-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

@media (max-width: 1060px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 22px;
  }
  .detail-main {
    padding: 30px 30px 6px;
  }
  .detail-title-row h1 {
    font-size: 33px;
  }
}

@media (max-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }
  .detail-main {
    border-radius: 20px;
  }
  .author-plugin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .page {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }
  .detail-layout {
    display: block;
    width: 100%;
  }
  .detail-main,
  .detail-side {
    width: 100%;
    max-width: 100%;
  }
  .detail-head {
    display: block;
  }
  .detail-head-copy {
    width: 100%;
    margin-top: 14px;
  }
  .detail-tags {
    max-width: 100%;
  }
  .detail-head,
  .detail-card,
  .detail-verify {
    width: 100%;
    max-width: 100%;
  }
  .detail-crumb {
    padding-top: 15px;
    font-size: 11px;
  }
  .detail-main {
    padding: 22px 18px 4px;
    border-radius: 16px;
  }
  .detail-head {
    padding-bottom: 23px;
    gap: 16px;
  }
  .detail-icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
    font-size: 22px;
  }
  .detail-title-row h1 {
    font-size: 27px;
    letter-spacing: -1px;
  }
  .detail-kicker {
    font-size: 8.5px;
    letter-spacing: 1.8px;
  }
  .detail-author {
    font-size: 11px;
  }
  .detail-verify {
    padding: 11px 12px;
    font-size: 10.5px;
  }
  .detail-card {
    padding: 23px 0 22px;
  }
  .detail-card h2 {
    font-size: 17px;
  }
  .detail-description {
    font-size: 13.5px;
  }
  .detail-example,
  .install-steps {
    font-size: 12.5px;
  }
  .detail-side-card {
    padding: 21px;
    border-radius: 18px;
  }
  .side-price {
    font-size: 32px;
  }
  .detail-section-head h2 {
    font-size: 20px;
  }
  .author-plugin-grid {
    grid-template-columns: 1fr;
  }
}
