/* 小日历 Calmly 内页 — 与首页一致的 Nanotech 暗色风格 */
:root {
  color-scheme: dark;
  --bg: #0d0f0a;
  --bg-soft: #12140d;
  --card: #161910;
  --text: #f2f4ea;
  --muted: #9aa392;
  --line: rgba(242, 244, 234, .14);
  --accent: #b6f34c;
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
}
* { box-sizing: border-box; }
html { overflow-x: hidden; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 'DM Sans', -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(182, 243, 76, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 243, 76, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 90% 46% at 50% 0%, black 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 46% at 50% 0%, black 20%, transparent 78%);
}
::selection { background: var(--accent); color: #101408; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 顶栏 */
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 22px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .02em;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-block; width: 38px; height: 38px; flex: none; object-fit: cover; border-radius: 10px; }
.back-pill {
  border: 1px solid rgba(242, 244, 234, .28);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text);
  transition: background .3s, color .3s, border-color .3s;
}
.back-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #101408;
  text-decoration: none;
}

.page { max-width: 860px; margin: 0 auto; padding: 44px 22px 84px; }
.crumbs { font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -.02em;
  font-weight: 700;
}
h2 {
  font-size: 21px;
  margin: 42px 0 12px;
  letter-spacing: -.01em;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
h3 { font-size: 16px; margin: 24px 0 8px; color: var(--text); }
p, li { color: var(--text); }
.meta { font-size: 13px; color: var(--muted); }
.tagline { font-size: 18px; margin: 6px 0 4px; }
.hero { padding-bottom: 10px; }
ul { padding-left: 20px; }
li { margin: 6px 0; }
.callout {
  background: rgba(182, 243, 76, .07);
  border: 1px solid rgba(182, 243, 76, .3);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 15px;
}
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--card); font-weight: 600; }
details { margin-top: 26px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
summary { cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; }
.en { font-size: 15px; }
.features { list-style: none; padding: 0; }
.features li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
}
.links { display: flex; gap: 12px; margin: 26px 0 10px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #101408;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid rgba(182, 243, 76, .4); }
hr { border: none; border-top: 1px solid var(--line); margin: 34px 0 18px; }
.foot {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent); }

/* 内容进场 */
.page > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s var(--ease-out);
}
.page > *:not(.reveal-done) { transition-delay: calc(var(--i, 0) * 60ms); }
body.page-in .page > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .page > * { opacity: 1; transform: none; transition: none; }
}

/* 页面过渡帘幕 */
.wipe { position: fixed; inset: 0; z-index: 95; pointer-events: none; visibility: hidden; }
.wipe.is-active { visibility: visible; pointer-events: all; }
.wipe-panel { position: absolute; inset: 0; transform: translateY(101%); }
.wipe-panel-a { background: #b6f34c; }
.wipe-panel-b { background: #0a0c07; }
