/* 鹤鸣巷法律文档统一样式
 * 设计原则：适老化阅读 + 法务文件专业感 + 移动端友好
 * 字号基线：17px（兼顾老人 WebView 阅读 + 桌面端审核员审阅）
 */

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.75;
  color: #2c3e50;
  background: #f5f7fa;
  padding: 0;
}

/* ====== 顶部品牌条 ====== */
.brand-bar {
  background: linear-gradient(135deg, #00897B, #00695C);
  color: #fff;
  padding: 14px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brand-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-name a { color: #fff; text-decoration: none; }

.brand-meta {
  font-size: 13px;
  opacity: 0.9;
}

.brand-meta a {
  color: #fff;
  text-decoration: none;
  margin-left: 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  padding-bottom: 1px;
}

.brand-meta a:hover { border-bottom-style: solid; }

/* ====== 主容器 ====== */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.doc-card {
  background: #fff;
  border-radius: 12px;
  padding: 40px 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* ====== 文档头部信息 ====== */
.doc-header {
  border-bottom: 2px solid #00897B;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #6c7884;
}

.doc-meta span strong { color: #00695C; }

/* ====== 重点提醒框 ====== */
.notice {
  background: #fff8e1;
  border-left: 4px solid #ff8f00;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  color: #6d4c00;
  font-weight: 500;
}

.notice-strong {
  background: #ffebee;
  border-left-color: #d32f2f;
  color: #b71c1c;
  font-weight: 600;
}

.notice-info {
  background: #e3f2fd;
  border-left-color: #1976d2;
  color: #0d47a1;
  font-weight: 500;
}

/* ====== 章节 ====== */
h2 {
  font-size: 22px;
  font-weight: 700;
  color: #00695C;
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e6eb;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  margin-top: 24px;
  margin-bottom: 10px;
}

h4 {
  font-size: 16px;
  font-weight: 600;
  color: #455a64;
  margin-top: 18px;
  margin-bottom: 8px;
}

p { margin: 10px 0; }

ul, ol { padding-left: 28px; margin: 10px 0; }
li { margin: 6px 0; }

strong { color: #1a1a1a; font-weight: 600; }

/* ====== 表格 ====== */
.table-wrap { overflow-x: auto; margin: 20px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #eef0f3;
  vertical-align: top;
}

th {
  background: #00897B;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

tbody tr:nth-child(even) { background: #fafbfc; }
tbody tr:hover { background: #f0f7f6; }

td a {
  color: #00695C;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  word-break: break-all;
}

td a:hover { border-bottom-style: solid; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-required { background: #ffebee; color: #c62828; }
.tag-optional { background: #e8f5e9; color: #2e7d32; }
.tag-sensitive { background: #fff3e0; color: #e65100; }

/* ====== 入口页（index.html）专用 ====== */
.intro {
  text-align: center;
  padding: 40px 20px;
}

.intro h1 {
  font-size: 32px;
  border: none;
  margin-bottom: 12px;
}

.intro .subtitle {
  font-size: 16px;
  color: #6c7884;
  margin-bottom: 40px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.doc-item {
  background: #fff;
  border-radius: 12px;
  padding: 26px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
}

.doc-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.15);
  border-color: #00897B;
}

.doc-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00897B, #00695C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}

.doc-item-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.doc-item-desc {
  font-size: 14px;
  color: #6c7884;
  line-height: 1.6;
}

/* ====== 页脚 ====== */
.site-footer {
  background: #263238;
  color: #b0bec5;
  padding: 30px 20px;
  text-align: center;
  font-size: 14px;
  margin-top: 60px;
}

.site-footer a {
  color: #b0bec5;
  text-decoration: none;
  border-bottom: 1px dashed #546e7a;
}

.site-footer a:hover { color: #fff; }

.footer-line { margin: 6px 0; }

/* ====== 移动端 ====== */
@media (max-width: 720px) {
  html { font-size: 16px; }
  .container { padding: 20px 12px 40px; }
  .doc-card { padding: 24px 20px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .brand-meta { display: none; }
  .doc-meta { flex-direction: column; gap: 6px; }
}

/* ====== 打印样式 ====== */
@media print {
  body { background: #fff; }
  .brand-bar, .site-footer { background: #fff; color: #000; box-shadow: none; }
  .doc-card { box-shadow: none; padding: 20px 0; }
  a { color: #000; text-decoration: none; }
}
