/* ============================================================
   淘窝莱下载站 - 详情页专用样式
   ============================================================ */

/* === 三栏布局 === */
#detail-wrap {
  width: 1200px;
  margin: 15px auto;
}
.detail-layout {
  display: flex;
  gap: 15px;
}
.detail-left { width: 200px; flex-shrink: 0; }
.detail-main { flex: 1; min-width: 0; }
.detail-right { width: 240px; flex-shrink: 0; }

/* === 左侧栏 === */
.left-block {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.left-block .block-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: bold;
  border-left: 4px solid #3c9b3c;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}
.left-app-list { padding: 5px 0; }
.left-app-list li { border-bottom: 1px dashed #f0f0f0; }
.left-app-list li:last-child { border-bottom: none; }
.left-app-list li a {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  gap: 8px;
  transition: background 0.2s;
}
.left-app-list li a:hover { background: #f9f9f9; }
.left-app-list li img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.la-info { flex: 1; min-width: 0; }
.la-name {
  display: block;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.la-size {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 2px;
}

/* 标签云 */
.tag-cloud { padding: 10px 12px; }
.tag-item {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px 4px;
  background: #f0f7f0;
  border: 1px solid #d4e8d4;
  border-radius: 3px;
  font-size: 12px;
  color: #3c9b3c;
  transition: all 0.2s;
}
.tag-item:hover {
  background: #3c9b3c;
  color: #fff;
  border-color: #3c9b3c;
}

/* === 中间主内容 === */
/* 应用头部 */
.app-header {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 15px;
  display: flex;
  gap: 20px;
}
.app-icon-wrap { flex-shrink: 0; }
.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.app-meta { flex: 1; min-width: 0; }
.app-title {
  font-size: 22px;
  color: #333;
  margin-bottom: 8px;
  font-weight: bold;
}
.app-info-row {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}
.app-info-row span { margin-right: 15px; }
.app-rating {
  color: #ff9800;
  font-size: 14px;
  margin-bottom: 10px;
}
.app-short-desc {
  font-size: 13px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 12px;
}
.btn-download {
  display: inline-block;
  background: linear-gradient(135deg, #43a843, #2e8b2e);
  color: #fff;
  padding: 10px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 3px 8px rgba(46,139,46,0.3);
}
.btn-download:hover {
  background: linear-gradient(135deg, #2e8b2e, #1e6b1e);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(46,139,46,0.4);
}
.download-info {
  margin-top: 10px;
  font-size: 12px;
  color: #999;
}
.download-info span { margin-right: 15px; }

/* === Tab 切换 === */
.tab-nav {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px 4px 0 0;
  display: flex;
  border-bottom: none;
}
.tab-btn {
  padding: 12px 24px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: #2e8b2e; }
.tab-btn.active {
  color: #2e8b2e;
  border-bottom-color: #2e8b2e;
  font-weight: bold;
}
.tab-panel {
  display: none;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 4px 4px;
  padding: 20px;
  margin-bottom: 15px;
}
.tab-panel.active { display: block; }

/* 应用介绍内容 */
.app-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.app-desc h3 {
  font-size: 16px;
  color: #333;
  margin: 15px 0 8px;
  padding-left: 10px;
  border-left: 3px solid #3c9b3c;
}
.app-desc p { margin-bottom: 10px; }
.app-desc ul { padding-left: 20px; margin-bottom: 10px; }
.app-desc ul li {
  list-style: disc;
  margin-bottom: 5px;
  color: #555;
}

/* 截图 */
.screenshot-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}
.screenshot-list img {
  height: 200px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
  border: 1px solid #eee;
}
.screenshot-list img:hover { transform: scale(1.03); }

/* 特色功能 */
.feature-list { padding: 0; }
.feature-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #f0f0f0;
  font-size: 14px;
  color: #555;
  padding-left: 20px;
  position: relative;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3c9b3c;
  font-weight: bold;
}
.feature-list li:last-child { border-bottom: none; }

/* 更新日志 */
.changelog-list { padding: 0; }
.changelog-list li {
  padding: 6px 0;
  font-size: 13px;
  color: #555;
  padding-left: 15px;
  position: relative;
}
.changelog-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3c9b3c;
}

/* === 区块标题 === */
.section-block {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.section-title {
  padding: 12px 15px;
  font-size: 15px;
  font-weight: bold;
  color: #333;
  border-left: 4px solid #3c9b3c;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}

/* === FAQ === */
.faq-list { padding: 10px 15px; }
.faq-item { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  font-weight: 500;
  padding: 5px 0;
}
.faq-q:hover { color: #2e8b2e; }
.faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #3c9b3c;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}
.faq-a-icon { background: #ff9800; }
.faq-arrow {
  margin-left: auto;
  font-size: 10px;
  color: #999;
  transition: transform 0.2s;
}
.faq-a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0 5px 0;
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* === 评论 === */
.comment-list { padding: 15px; }
.comment-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-item:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px;
  height: 36px;
  background: #3c9b3c;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 12px;
}
.comment-author { color: #333; font-weight: 500; }
.comment-stars { color: #ff9800; }
.comment-date { color: #aaa; }
.comment-text { font-size: 13px; color: #555; line-height: 1.6; }
.comment-actions { margin-top: 6px; }
.comment-like {
  font-size: 12px;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
}
.comment-like:hover { color: #2e8b2e; }
.comment-form { padding: 15px; border-top: 1px solid #f0f0f0; }
.comment-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  font-size: 13px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.comment-form textarea:focus { border-color: #3c9b3c; }
.btn-submit-comment {
  margin-top: 8px;
  background: #3c9b3c;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-submit-comment:hover { background: #2e8b2e; }

/* === 右侧栏 === */
.right-block {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.right-block .block-title {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: bold;
  border-left: 4px solid #3c9b3c;
  background: #f8f8f8;
  border-bottom: 1px solid #e8e8e8;
}
.right-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}
.right-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 4px;
  border-radius: 4px;
  transition: background 0.2s;
}
.right-app-item:hover { background: #f5f5f5; }
.right-app-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 4px;
}
.right-app-item span {
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.right-block .rank-list { padding: 8px 0; }
.right-block .rank-list li {
  padding: 5px 12px;
  font-size: 12px;
}
.right-block .rank-list li.top3 .rank-num { background: #ff4d4d; color: #fff; }

/* === 灯箱 === */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.show { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* === 响应式 === */
@media (max-width: 1240px) {
  #detail-wrap { width: auto; margin: 15px; }
  .detail-left { display: none; }
  .detail-right { width: 220px; }
}
@media (max-width: 768px) {
  .detail-layout { flex-direction: column; }
  .detail-right { width: 100%; }
  .app-header { flex-direction: column; align-items: center; text-align: center; }
  .right-app-grid { grid-template-columns: repeat(4, 1fr); }
  .screenshot-list img { height: 150px; }
}
