/* =============================================================
   小瑞润助理 · 官网全站样式
   设计原则沿用小程序：字大、按钮大、颜色纯、对比度高、老人友好
   无外部依赖 / 无动画 / 移动优先
   ============================================================= */

:root {
  --green: #43A047;
  --green-dark: #2E7D32;
  --green-bg: #E8F5E9;
  --green-line: #C8E6C9;
  --text: #333333;
  --text-2: #5C5C5C;
  --bg: #F5F5F5;
  --line: #E0E0E0;
  --warn: #C25E00;
  --warn-bg: #FFF4E5;
  --red: #C62828;
  --max: 880px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ===================== 顶部导航 ===================== */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 16px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--green-dark); }
.site-nav a[aria-current="page"] {
  color: var(--green-dark);
  font-weight: 700;
  border-bottom-color: var(--green);
}

/* ===================== 首屏 ===================== */
.hero {
  background: var(--green-bg);
  border-bottom: 1px solid var(--green-line);
  padding: 44px 0 40px;
}
.hero h1 { font-size: 31px; line-height: 1.4; margin: 0 0 16px; }
.hero .lead { font-size: 18px; color: var(--text-2); margin: 0 0 26px; max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* 内页页头 */
.page-head {
  background: var(--green-bg);
  border-bottom: 1px solid var(--green-line);
  padding: 34px 0 30px;
}
.page-head h1 { font-size: 27px; margin: 0 0 10px; }
.page-head p { margin: 0; color: var(--text-2); max-width: 660px; }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-bg); }
.btn-block { display: block; width: 100%; }

/* ===================== 区块 ===================== */
.section { padding: 44px 0; }
.section-white { background: #fff; }
.section-tight { padding: 32px 0; }
h2 { font-size: 24px; line-height: 1.4; margin: 0 0 18px; }
h3 { font-size: 19px; line-height: 1.5; margin: 0 0 10px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 14px; padding-left: 1.3em; }
li { margin-bottom: 6px; }
.muted { color: var(--text-2); }
.small { font-size: 15px; line-height: 1.7; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* ===================== 网格与卡片 ===================== */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card-green { background: var(--green-bg); border-color: var(--green-line); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.step-no {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.card-icon { font-size: 22px; line-height: 1; margin-bottom: 8px; }

/* ===================== 提示框 ===================== */
.notice {
  background: var(--green-bg);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 0 0 18px;
}
.notice p:last-child { margin-bottom: 0; }

/* 待填占位：上线前必须全部搜出来替换或删除 */
.todo {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px dashed var(--warn);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.92em;
  white-space: nowrap;
}

/* ===================== 表格 ===================== */
.table-wrap { overflow-x: auto; margin: 0 0 18px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 16px; }
th, td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
th { background: var(--green-bg); font-weight: 700; }

/* ===================== 二维码 ===================== */
.qr-row { display: flex; flex-wrap: wrap; gap: 24px; }
.qr {
  width: 190px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.qr img { display: block; width: 100%; }
.qr-hint { display: none; font-size: 14px; line-height: 1.6; color: var(--warn); }
.qr.qr-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  border: 2px dashed var(--warn);
  background: var(--warn-bg);
}
.qr.qr-empty .qr-hint { display: block; }
.qr-caption { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }

/* ===================== 表单 ===================== */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-row .req { color: var(--red); }
input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  color: var(--text);
  background: #fff;
  padding: 12px 14px;
  border: 1px solid #BDBDBD;
  border-radius: 8px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--green-line); border-color: var(--green); }

/* ===================== 页脚 ===================== */
.site-footer {
  background: #3A3A3A;
  color: #D8D8D8;
  padding: 30px 0;
  margin-top: 10px;
  font-size: 15px;
  line-height: 2;
}
.site-footer a { color: #D8D8D8; }
.site-footer .beian { color: #BDBDBD; }
.site-footer p { margin: 0 0 6px; }

/* 长文档（隐私政策、服务协议）排版 */
.doc { background: #fff; padding: 36px 0 44px; }
.doc h1 { font-size: 26px; margin: 0 0 8px; }
.doc h2 { font-size: 21px; margin: 32px 0 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { font-size: 16px; }
.doc strong { color: #000; }
.doc hr { border: none; border-top: 1px solid var(--line); margin: 28px 0; }
.doc-meta { color: var(--text-2); font-size: 15px; margin-bottom: 24px; }

/* ===================== 移动端 ===================== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 32px 0 30px; }
  .hero h1 { font-size: 25px; }
  .hero .lead { font-size: 17px; }
  .page-head h1 { font-size: 23px; }
  h2 { font-size: 21px; }
  .section { padding: 34px 0; }
  .hero-actions .btn { width: 100%; }
  .site-nav { gap: 2px 16px; }
  .site-nav a { font-size: 15px; }
}
