/* 乐米惠圆体（中文正文，自托管）— 字体文件见 assets/fonts/README.md */
@font-face {
  font-family: 'LemiHuiYuanTi';
  src: url('fonts/lemi-huiyuan-ti.woff2') format('woff2'),
    url('fonts/lemi-huiyuan-ti.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* 极简编辑式配色：米白底 + 近黑字 + 一抹绿强调 */
  --bg: #faf9f6;
  --text: #50504b;
  --muted: #807d75;
  --line: #e8e6e0;
  --accent: #4a6b50;
  --glass-bg: rgba(250, 249, 246, 0.7);
  color-scheme: light;
}

/* 手动选择暗色 */
:root.dark {
  --bg: #1a1917;
  --text: #d8d5ce;
  --muted: #8f8b82;
  --line: #2c2b28;
  --accent: #8ab08f;
  --glass-bg: rgba(26, 25, 23, 0.72);
  color-scheme: dark;
}

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

/* 隐藏所有滚动条（保留滚动功能） */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  font-family: 'LemiHuiYuanTi', 'Yuanti SC', 'YouYuan', '幼圆',
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 标题用站酷小薇Logo体 */
.brand,
h1,
.display {
  font-family: "ZCOOL XiaoWei", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 600;
  font-size: 20px;
  font-family: "Comic Sans MS", cursive;
  letter-spacing: 0.06em;
  color: var(--text);
}

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

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  margin-left: 28px;
  letter-spacing: 0.02em;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

/* 语言切换按钮 */
.lang-toggle {
  margin-left: 24px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 12px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.6;
  transition: color 0.2s, border-color 0.2s;
}

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

/* 明暗切换按钮：太阳/月亮图标,尺寸与语言按钮一致 */
.theme-toggle {
  margin-left: 12px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 12px;
  font-family: inherit;
  line-height: 1.6;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

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

.theme-toggle svg {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
}

.theme-toggle .icon-moon {
  display: none;
}

.theme-toggle.is-dark .icon-sun {
  display: none;
}

.theme-toggle.is-dark .icon-moon {
  display: inline-block;
}

/* i18n 加载中:隐藏待翻译文本与切换按钮,避免跳页时中英闪动 */
html.i18n-loading [data-i18n],
html.i18n-loading .lang-toggle {
  visibility: hidden;
}

/* ============ 主内容流 ============ */
main {
  flex: 1;
}

/* 区块：用细分隔线 + 留白分节，而非卡片 */
.block {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.block:last-child {
  border-bottom: none;
}

/* 联系区收尾：居中标题 + 图标行 */
.contact-block {
  padding: 24px 0 56px;
}

/* 联系列表一行排布,无分隔线,整体居中 */
.contact-block .link-list {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 44px;
}

.contact-block .link-list li {
  border: none;
  display: flex;
}

.contact-block .eyebrow {
  margin-bottom: 18px;
  text-align: center;
}

.contact-block .link-item {
  padding: 12px 0;
  justify-content: flex-start;
  gap: 14px;
  align-items: center;
}

.link-icon {
  display: block;
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

.link-item:hover .link-icon {
  color: var(--accent);
  transform: translateY(-1px);
}

.contact-block .link-item .label {
  font-size: 11px;
  width: auto;
  line-height: 1;
  white-space: nowrap;
}

/* 取消联系区链接的 hover 效果 */
.contact-block .link-item:hover {
  color: var(--text);
  padding-left: 0;
}

.contact-block .link-item:hover .link-icon {
  color: var(--muted);
  transform: none;
}

/* 小红书图标放大,其他图标保持 20px */
.contact-block .link-item .link-icon-xhs {
  width: 30px;
  height: 30px;
}

.contact-block .link-item .value {
  font-size: 14px;
}

/* 章节小标题：大写 + 宽字距，编辑式 */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
}

/* ============ Hero / 名片区 ============ */
.hero {
  text-align: center;
  padding: 72px 0 56px;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 14px;
}

.hero h1 {
  font-size: 36px;
  font-family: "Comic Sans MS", cursive;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero .role {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}

.hero .role .dot {
  margin: 0 10px;
  opacity: 0.4;
}

.hero .bio {
  font-size: 18px;
  color: var(--text);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 32px;
}

.tags li {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  position: relative;
  padding-left: 14px;
}

.tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ============ 联系列表 ============ */
.link-list {
  list-style: none;
}

.link-list li {
  border-bottom: 1px solid var(--line);
}

.link-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  transition: padding 0.25s ease;
}

.link-item:hover {
  padding-left: 8px;
}

.link-item .label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  width: 80px;
}

.link-item .value {
  font-size: 16px;
  color: var(--text);
  flex: 1;
}

.link-item .arrow {
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-item:hover .value,
.link-item:hover .arrow {
  color: var(--accent);
}

.link-item:hover .arrow {
  transform: translate(3px, -3px);
}

/* ============ 关于：定义列表式 ============ */
.def-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
}

.def dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.def dd {
  font-size: 15px;
  color: var(--text);
}

/* ============ Payment 投喂页 ============ */
.pay-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 96px 0 72px;
  width: 80vw;
  margin-inline: calc(50% - 40vw);
}

.hero-cats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}

.hero-cats img {
  position: absolute;
  width: auto;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.pay-hero h1 {
  position: relative;
  z-index: 1;
  font-size: 40px;
  letter-spacing: -0.01em;
  margin: 0 auto 16px;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 10px;
  padding: 6px 20px;
  width: fit-content;
}

.pay-hero .bio {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  width: fit-content;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 6px 16px;
}

/* 收款码：图片 + 文字,无卡片框 */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 8px;
}

.qr {
  text-align: center;
}

.qr img {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto 16px;
}

.qr-wechat {
  width: 360px;
}

.qr-wechat img {
  width: 270px;
  height: 360px;
  max-width: none;
}

.qr .name {
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.04em;
}

.qr .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.thanks {
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero .bio {
    font-size: 16px;
  }

  .pay-hero {
    width: auto;
    margin-inline: 0;
    padding: 64px 0 56px;
  }

  .pay-hero h1 {
    font-size: 32px;
  }

  .qr-wechat {
    width: auto;
  }

  .qr-wechat img {
    width: 100%;
    height: auto;
  }

  .def-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .block {
    padding: 40px 0;
  }

  .contact-block {
    padding: 28px 0;
  }

  .contact-block .link-list {
    gap: 24px;
    flex-wrap: wrap;
  }
}
