/* 表格样式优化 - 简洁风格 */

/* 详情表格样式 */
.markdown-content details {
  margin: 1.5em 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.markdown-content details:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

/* 摘要标题样式 */
.markdown-content summary {
  padding: 1.2em 1.5em;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  position: relative;
  list-style: none;
  border-bottom: 1px solid #ffffff;
}

.markdown-content summary::-webkit-details-marker {
  display: none;
}

.markdown-content summary::after {
  content: '▶';
  position: absolute;
  right: 1.5em;
  transition: transform 0.3s ease;
  font-size: 0.9em;
  color: #64748b;
}

.markdown-content details[open] summary::after {
  transform: rotate(90deg);
}

.markdown-content summary:hover {
  background: #f8fafc;
}

/* 详情内容样式 */
.markdown-content details > div {
  padding: 1.5em;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
  line-height: 1.6;
}

/* 特殊强调的标题样式 - 针对RedteaGo红茶移动等需要突出的内容 */
.markdown-content summary strong {
  color: #000000;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1.05em;
}

.markdown-content summary code {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
}

/* 代码块样式 */
.markdown-content details > div code {
  background-color: #e2e8f0;
  color: #1e293b;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* 链接样式 */
.markdown-content details > div a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.markdown-content details > div a:hover {
  color: #4338ca;
  border-bottom-color: #4338ca;
}

/* 分类页面样式 */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 2em 0;
}

.category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.category-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.category-card h3 {
  color: #1e293b;
  font-size: 1.3em;
  margin: 0 0 0.8em 0;
  font-weight: 600;
  border-bottom: 2px solid #4f46e5;
  padding-bottom: 0.5em;
}

.category-card p {
  color: #475569;
  line-height: 1.6;
  margin: 0 0 1.2em 0;
  font-size: 0.95em;
}

.category-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9em;
}

.category-link:hover {
  background: rgba(79, 70, 229, 0.2);
  color: #4338ca;
  transform: translateX(4px);
}

.category-status {
  display: inline-block;
  padding: 6px 12px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .markdown-content details {
    margin: 1em 0;
    border-radius: 8px;
  }
  
  .markdown-content summary {
    padding: 1em 1.2em;
    font-size: 1em;
  }
  
  .markdown-content details > div {
    padding: 1.2em;
  }
  
  .markdown-content summary::after {
    right: 1.2em;
  }
  
  .category-grid {
    gap: 15px;
  }
  
  .category-card {
    padding: 1.2em;
  }
  
  .category-card h3 {
    font-size: 1.2em;
  }
}

/* 商店页面样式 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 2em 0;
}

.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1em;
}

.product-flag {
  font-size: 1.5em;
  line-height: 1;
}

.product-card h4 {
  color: #1e293b;
  font-size: 1.2em;
  margin: 0;
  font-weight: 600;
}

.product-description {
  color: #475569;
  line-height: 1.5;
  margin: 0 0 1em 0;
  font-size: 0.95em;
}

.product-price {
  margin-bottom: 1em;
}

.price-range {
  color: #dc2626;
  font-size: 1.1em;
  font-weight: 600;
  background: rgba(220, 38, 38, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 500;
}

/* 商店页面响应式设计 */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .product-card {
    padding: 1.2em;
  }
  
  .product-header {
    gap: 8px;
  }
  
  .product-flag {
    font-size: 1.3em;
  }
  
  .product-card h4 {
    font-size: 1.1em;
  }
  
  .product-tags {
    gap: 4px;
  }
  
  .tag {
    font-size: 0.75em;
    padding: 3px 6px;
  }
}