/* ============================================================
 * 每日宜修 · 法律与政策静态站点（legal.loopowner.com）
 * 供 App Store 审核及用户访问，需部署到二级域名 legal.loopowner.com
 * ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
    "Segoe UI", Arial, sans-serif;
  background: #FCF7F7;
  color: #444;
  line-height: 1.9;
  font-size: 16px;
}

/* 顶部品牌栏 */
.site-header {
  background: linear-gradient(160deg, #FDF8EF, #F8EEDD);
  border-bottom: 2px solid #F0E2CF;
  padding: 28px 20px 24px;
  text-align: center;
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.site-header .brand .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #A70101, #D43F3F);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
}
.site-header .brand .name {
  font-size: 22px;
  font-weight: 700;
  color: #5D3A1A;
}
.site-header .subtitle {
  margin-top: 6px;
  font-size: 13px;
  color: #A08A72;
}

/* 语言切换 */
.lang-switch {
  text-align: right;
  max-width: 760px;
  margin: 0 auto;
  padding: 14px 20px 0;
}
.lang-switch a {
  color: #A70101;
  text-decoration: none;
  font-size: 13px;
  border: 1px solid #E8DCC8;
  padding: 4px 12px;
  border-radius: 20px;
  background: #fff;
}
.lang-switch a:hover {
  background: #F8EEDD;
}

/* 正文容器 */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 80px;
}

.doc-title {
  font-size: 30px;
  font-weight: 700;
  color: #5D3A1A;
  text-align: center;
  margin-bottom: 10px;
}
.doc-meta {
  text-align: center;
  color: #A08A72;
  font-size: 13px;
  margin-bottom: 8px;
}
.divider {
  width: 64px;
  height: 3px;
  background: #C6A981;
  border-radius: 2px;
  margin: 18px auto 30px;
}

/* 章节 */
h2.section {
  font-size: 19px;
  font-weight: 700;
  color: #5D3A1A;
  margin: 30px 0 12px;
  line-height: 1.5;
}
h3.sub {
  font-size: 16px;
  font-weight: 700;
  color: #8B6B4D;
  margin: 18px 0 8px;
}
p {
  margin: 0 0 14px;
  text-align: justify;
}
ul, ol {
  margin: 0 0 14px 22px;
}
li {
  margin-bottom: 6px;
}
a.inline {
  color: #A70101;
  text-decoration: none;
  border-bottom: 1px solid rgba(167, 1, 1, 0.35);
}
strong {
  color: #5D3A1A;
}

/* 联系方式卡片 */
.contact-card {
  background: #FDF9F2;
  border: 1px solid #E8DCC8;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 18px 0;
}
.contact-card .label {
  font-size: 13px;
  color: #A08A72;
  margin-bottom: 4px;
}
.contact-card .email {
  font-size: 17px;
  font-weight: 700;
  color: #A70101;
}

/* 提示框 */
.note {
  background: #FDF8EF;
  border-left: 4px solid #C6A981;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  color: #8B6B4D;
  margin: 16px 0;
}

/* 导航首页卡片 */
.nav-grid {
  display: grid;
  gap: 16px;
  margin-top: 10px;
}
.nav-card {
  display: block;
  background: #fff;
  border: 1px solid #E8DCC8;
  border-radius: 16px;
  padding: 22px 24px;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
}
.nav-card:hover {
  box-shadow: 0 8px 24px rgba(93, 58, 26, 0.10);
  transform: translateY(-2px);
}
.nav-card .nc-title {
  font-size: 18px;
  font-weight: 700;
  color: #5D3A1A;
  margin-bottom: 6px;
}
.nav-card .nc-desc {
  font-size: 14px;
  color: #8B6B4D;
  line-height: 1.7;
}
.nav-card .nc-lang {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #A70101;
  background: #F8EEDD;
  border-radius: 20px;
  padding: 3px 10px;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid #E8DCC8;
  background: #FDF8EF;
  text-align: center;
  padding: 24px 20px 36px;
  font-size: 13px;
  color: #A08A72;
  line-height: 1.8;
}
.site-footer a {
  color: #A70101;
  text-decoration: none;
}

@media (max-width: 480px) {
  .doc-title { font-size: 24px; }
  .container { padding: 20px 18px 60px; }
}
