﻿/*! theme_v4_compact.css */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #eef2f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #1a2a3a;
  padding: 12px;
}

/* 主容器 - 窄屏紧凑 */
.main-container {
  max-width: 760px;
  margin: 0 auto;
}

/* 标题卡片 - 极简 */
.title-card {
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}

/* 隐藏原来的装饰图标 */
.title-icon {
  display: none;
}

/* 主标题 - 变小变紧凑 */
.title-main {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
  margin: 0;
  padding: 0;
}

/* 元信息 */
.title-meta {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #edf2f7;
  font-size: 10px;
  color: #94a3b8;
  display: flex;
  gap: 12px;
}

.title-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* 内容卡片 */
.content-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
}

/* 正文 */
.content-card p {
  margin-bottom: 10px;
  font-size: 14.7px !important;  
  line-height: 1.6;
  color: #334155;
}

.content-card h2 {
  font-size: 16px;
  margin: 14px 0 8px;
  padding-left: 8px;
  border-left: 3px solid #e74c3c;
  font-weight: 600;
  color: #1e293b;
}

.content-card h3 {
  font-size: 14px;
  margin: 10px 0 6px;
  color: #475569;
  font-weight: 600;
}

.content-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
  border-radius: 4px;
}

.content-card ul,
.content-card ol {
  margin: 6px 0 6px 18px;
}

.content-card li {
  margin: 3px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.content-card blockquote {
  margin: 10px 0;
  padding: 6px 14px;
  background: #f8fafc;
  border-left: 3px solid #e74c3c;
  font-size: 12.5px;
  color: #64748b;
}

/* 推荐阅读区 */
.demo-wrap {
  max-width: 760px;
  margin: 12px auto 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.related-title {
  background: #f8fafc;
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
}

.footer-links a {
  display: inline-block;
  padding: 3px 10px;
  background: #f1f5f9;
  border-radius: 20px;
  font-size: 11px;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.footer-links a:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: #fff;
}

/* 底部首页按钮 */
center {
  max-width: 760px;
  margin: 12px auto 0;
  text-align: center;
}

center a {
  display: inline-block;
  padding: 5px 18px;
  background: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 500;
}

center a:hover {
  background: #c0392b;
}

/* 响应式 */
@media (max-width: 640px) {
  body {
    padding: 6px;
  }
  
  .title-card {
    padding: 10px 14px;
  }
  
  .title-main {
    font-size: 15px;
  }
  
  .content-card {
    padding: 12px 14px;
  }
  

  
  .footer-links {
    gap: 5px;
    padding: 8px 12px;
  }
  
  .footer-links a {
    padding: 2px 8px;
    font-size: 10px;
  }
}