/* 焕阅网站：只有这一个样式表，没有脚本、外部字体和统计 */

:root {
  color-scheme: light dark;
  --bg: #faf8f4;
  --surface: #ffffff;
  --text: #1e2830;
  --muted: #5b6872;
  --line: #e3ddd2;
  --accent: #2f4c63;
  --accent-soft: #ebf0f3;
  --icon-tile: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --surface: #1b2026;
    --text: #e6e2db;
    --muted: #a2acb4;
    --line: #2c333a;
    --accent: #9dbcd3;
    --accent-soft: #1f2a33;
    --icon-tile: #222a31;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

[lang="en"] {
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 600px) {
  .wrap {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* 顶栏 */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

/* 图标：浅色是白底，深色是透明底的浅色线条，都放在圆角方块里 */

.app-icon img,
.brand img {
  display: block;
  border-radius: 22.5%;
  background: var(--icon-tile);
  border: 1px solid var(--line);
}

/* 正文 */

main {
  padding-top: 32px;
  padding-bottom: 48px;
}

h1 {
  margin: 0 0 4px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h2 {
  margin: 40px 0 8px;
  font-size: 21px;
  line-height: 1.4;
}

h3 {
  margin: 28px 0 6px;
  font-size: 17px;
  line-height: 1.5;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 6px;
}

.meta {
  color: var(--muted);
  font-size: 15px;
}

.lead {
  font-size: 19px;
}

.note {
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
}

hr {
  margin: 48px 0 8px;
  border: 0;
  border-top: 1px solid var(--line);
}

/* 首页 */

.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.hero .app-icon img {
  width: 88px;
  height: 88px;
}

.hero p {
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
}

@media (min-width: 520px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.card:hover {
  border-color: var(--accent);
}

.card strong {
  display: block;
  color: var(--accent);
}

.card span {
  color: var(--muted);
  font-size: 15px;
}

/* 常见问题 */

.faq h3 {
  margin-top: 32px;
}

.contact {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.contact p:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

/* 页脚 */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  padding-top: 18px;
  padding-bottom: 28px;
}

.site-footer p {
  margin: 0;
}
