/* 晨阶 DawnStair 官网样式。配色取自应用内主题（晨光渐变）。 */

:root {
  --bg: #FFF8E7;
  --bg-mid: #FFE4B5;
  --card: #FFFFFF;
  --text: #2D1B00;
  --text-2: #8B6914;
  --accent: #FFB347;
  --line: rgba(139, 105, 20, 0.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 100%);
  background-attachment: fixed;
  line-height: 1.75;
  font-size: 16px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶栏 */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { font-size: 26px; line-height: 1; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 17px; }
.brand-text em { font-size: 11px; font-style: normal; color: var(--text-2); letter-spacing: 0.06em; }

.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}

.site-nav a:hover { color: var(--text); }

/* 首页英雄区 */
.hero { text-align: center; padding: 56px 0 32px; }
.hero-mark { font-size: 64px; line-height: 1; }
.hero h1 { margin: 12px 0 4px; font-size: 34px; letter-spacing: 0.02em; }
.hero h1 .en { font-size: 16px; color: var(--text-2); font-weight: 400; letter-spacing: 0.1em; }
.hero-tagline { margin: 0 0 24px; color: var(--text-2); font-size: 17px; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 20px 0 8px; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(139, 105, 20, 0.16); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
  font-weight: 500;
}

/* 内容区块 */
section { margin: 40px 0; }

h2 {
  font-size: 22px;
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

h3 { font-size: 16px; margin: 0 0 6px; }

p { margin: 0 0 14px; }

a { color: #B8761F; }

code {
  background: rgba(139, 105, 20, 0.1);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 14px;
}

.muted { color: var(--text-2); }
.small { font-size: 13px; }

/* 功能卡片 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* 隐私要点 */
.highlight {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 26px;
}

ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }

ul.plain li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
}

ul.plain li::before {
  content: "☀";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* 协议正文：由应用源码逐字生成，保留原文换行与符号，不做 Markdown 渲染 */
article h2 { margin-top: 32px; }
.verbatim {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0 0 18px;
  font-size: 15px;
}

/* 页脚 */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  padding: 28px 0 40px;
}

.site-footer p { margin: 0 0 6px; font-size: 14px; }
.site-footer .muted { color: var(--text-2); font-size: 12.5px; }

/* 备案号：页脚署名，链接到工信部备案系统 */
.site-footer .icp { margin-top: 10px; }
.site-footer .icp a {
  color: var(--text-2);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.site-footer .icp a:hover { text-decoration: underline; }