/* 详情页专用样式 */
.detail-header {
  background: linear-gradient(135deg, #0f9d90 0%, #0d6e81 100%);
  padding: 24px 0;
  color: #fff;
}

.detail-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.detail-header__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.detail-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-header__info {
  flex: 1;
}

.detail-header__info h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
}

.detail-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.9;
}

.detail-header__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-header__actions {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: var(--brand-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-favorited {
  background: rgba(255, 107, 107, 0.9) !important;
  color: #fff !important;
}

.btn-favorited:hover {
  background: rgba(255, 82, 82, 1) !important;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--brand-strong);
}

.breadcrumb__sep {
  opacity: 0.5;
}

.breadcrumb__current {
  color: var(--ink);
  font-weight: 500;
}

/* 详情布局 */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin: 0 auto 60px;
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* 主内容区 */
.detail-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.detail-section h2 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-section h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--brand), #2ec4b6);
  border-radius: 2px;
}

.detail-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.detail-desc p {
  margin: 0 0 12px;
}

.detail-desc p:last-child {
  margin-bottom: 0;
}

/* 标签 */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #e9f8f6 100%);
  border: 1px solid rgba(15, 157, 144, 0.15);
  border-radius: 20px;
  font-size: 13px;
  color: var(--brand-strong);
  text-decoration: none;
  transition: all 0.2s ease;
}

.detail-tag:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

/* 功能特点 */
.feature-list {
  display: grid;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fbfd;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.feature-item__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand) 0%, #2ec4b6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.feature-item__text h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.feature-item__text p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* 使用数据 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8fbfd 0%, #f0f7fa 100%);
  border-radius: 16px;
  border: 1px solid var(--line);
}

.stat-item__value {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item__label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* 侧边栏 */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-card h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

/* 广告位 */
.ad-placeholder {
  background: linear-gradient(135deg, #f8fbfd 0%, #f0f7fa 100%);
  border: 2px dashed var(--line);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  color: var(--ink-soft);
}

.ad-placeholder__icon {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ad-placeholder__text {
  font-size: 14px;
}

/* 相关工具 */
.related-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-item:hover {
  background: #f8fbfd;
}

.related-item__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 4px;
  flex-shrink: 0;
}

.related-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.related-item__info {
  flex: 1;
  min-width: 0;
}

.related-item__info h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-item__info p {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 访问信息 */
.visit-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visit-info__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.visit-info__item span:first-child {
  width: 20px;
  text-align: center;
}

/* 图片展示 */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.screenshot-item {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 13px;
}

@media (max-width: 768px) {
  .detail-header__inner {
    flex-direction: column;
    text-align: center;
  }

  .detail-header__actions {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .screenshot-gallery {
    grid-template-columns: 1fr;
  }
}

/* Toast 提示消息 */
.toast-message {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 157, 144, 0.95);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
