/* 小脉健康 - 法律文档共享样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --brand: #6366F1;
  --brand-dark: #4F46E5;
  --brand-light: #EEF2FF;
  --text: #1F2937;
  --text-mid: #4B5563;
  --text-mute: #6B7280;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-mute: #F9FAFB;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg-mute);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 64px;
}

/* 顶部导航 */
.topnav {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topnav .brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav .brand-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.topnav a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
}

.topnav a:hover { color: var(--brand); }

/* 文档头部 */
.doc-header {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 20px;
}

.doc-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.doc-meta {
  font-size: 13px;
  color: var(--text-mute);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.doc-meta span::before {
  content: "·";
  margin-right: 6px;
  color: var(--border);
}

.doc-meta span:first-child::before { content: ""; margin: 0; }

/* 正文 */
.content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}

.content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 14px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  line-height: 1.4;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
}

.content p {
  margin: 10px 0;
  color: var(--text-mid);
}

.content ul,
.content ol {
  margin: 10px 0 10px 4px;
  padding-left: 20px;
  color: var(--text-mid);
}

.content li {
  margin: 6px 0;
  line-height: 1.7;
}

.content li ul,
.content li ol {
  margin: 6px 0;
}

.content strong {
  color: var(--text);
  font-weight: 600;
}

/* 联系卡片 */
.contact-card {
  margin-top: 20px;
  padding: 20px;
  background: var(--brand-light);
  border-radius: 10px;
  border-left: 3px solid var(--brand);
}

.contact-card h3 {
  margin-top: 0;
  color: var(--brand-dark);
}

.contact-card p {
  margin: 6px 0;
  color: var(--text);
}

/* 底部 */
.footer {
  max-width: 800px;
  margin: 32px auto 0;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.8;
}

.footer a {
  color: var(--brand);
  text-decoration: none;
}

/* 索引页 */
.doc-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.doc-item {
  display: block;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}

.doc-item:last-child { border-bottom: none; }

.doc-item:hover {
  background: var(--brand-light);
}

.doc-item-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-item-title::after {
  content: "→";
  color: var(--text-mute);
  font-size: 18px;
}

.doc-item-desc {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.5;
}

.doc-item-date {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 6px;
}

@media (max-width: 600px) {
  .container { padding: 16px 14px 48px; }
  .topnav { padding: 12px 14px; }
  .doc-header { padding: 20px 18px; }
  .doc-header h1 { font-size: 21px; }
  .content { padding: 20px 16px; }
  .content h2 { font-size: 17px; }
  body { font-size: 15px; }
}
