/* ========== 详情页专用样式 ========== */

/* 详情页布局 */
.detail-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1rem 8rem;
  flex: 1;
}

.detail-layout {
  display: block;
}

.sidebar-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-align: center;
}

.sidebar-avatar {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sidebar-code {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  color: white;
  margin-bottom: 0.65rem;
}

.sidebar-card h2,
.sidebar-card .slogan {
  display: none;
}

/* 主内容区 */
.detail-main {
  min-width: 0;
}

.detail-article {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 1.5rem;
  padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 1024px) {
  .detail-article {
    padding: 2.25rem 2.5rem 2.5rem;
  }
}

.detail-hero {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eef2f6;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .detail-hero-grid {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2.25rem;
  }
}

.detail-hero-aside {
  width: 100%;
  padding-top: 0.25rem;
}

.detail-hero-content {
  min-width: 0;
}

.detail-hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.detail-hero h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.85rem;
}

.detail-hero p {
  font-size: 1rem;
  line-height: 1.9;
  color: #5b6472;
}

.detail-hero-summary {
  margin-top: 0.9rem;
}

.detail-hero-slogan {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4f5a69;
  margin-bottom: 0.6rem;
}

.detail-section {
  padding: 0 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #eef2f6;
  scroll-margin-top: 5rem;
}

.detail-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* 文章正文 */
.detail-section h3 {
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 1rem;
}

.detail-section p {
  color: #4f5a69;
  line-height: 1.95;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.detail-section p:last-child {
  margin-bottom: 0;
}

/* 优劣势对比 */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .pros-cons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pros-box,
.cons-box {
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid;
}

.pros-box {
  background: #f3fbf5;
  border-color: #d6f0dd;
}

.pros-box .title {
  font-weight: 800;
  color: #15803d;
  margin-bottom: 0.75rem;
}

.pros-box ul,
.cons-box ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pros-box li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #166534;
}

.cons-box {
  background: #fff7f7;
  border-color: #f4d9d9;
}

.cons-box .title {
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 0.75rem;
}

.cons-box li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #991b1b;
}

/* 底部固定CTA浮窗 */
.fixed-bottom-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 0 0 12px;
  pointer-events: none;
}

.fixed-bottom-cta.visible {
  transform: translateY(0);
}

.cta-banner {
  max-width: 1120px;
  margin: 0 auto;
  background: linear-gradient(135deg, #343c4b 0%, #4b5568 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.24);
  border-radius: 1.1rem;
  color: #fff;
  padding: 0.9rem 1rem;
  pointer-events: auto;
}

.cta-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-text p {
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

@media (min-width: 768px) {
  .cta-text p {
    font-size: 1rem;
  }
}

.cta-text .subtitle {
  display: none;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .cta-text .subtitle {
    display: block;
  }
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: #343c4b !important;
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}
