:root {
  --bg: #f6f9fc;
  --band: #ffffff;
  --card: #ffffff;
  --text: #0f1b2d;
  --muted: #52627a;
  --line: #dbe4ef;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --sea-top: #06142b;
  --sea-bottom: #0b2f5c;
  --ink: #9fd8ff;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1020;
    --band: #0e1628;
    --card: #131d33;
    --text: #e6edf7;
    --muted: #9aa8bd;
    --line: #22304a;
    --accent: #5b8cff;
    --accent-text: #06142b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1020;
  --band: #0e1628;
  --card: #131d33;
  --text: #e6edf7;
  --muted: #9aa8bd;
  --line: #22304a;
  --accent: #5b8cff;
  --accent-text: #06142b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--line) 60%, transparent); padding: 1px 5px; border-radius: 5px; }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--sea-top) 88%, transparent);
  backdrop-filter: blur(10px);
  color: #e6f2ff;
}
.brand { color: inherit; font-weight: 700; font-size: 17px; white-space: nowrap; }
.top nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.top nav a { color: #c6dcf5; font-size: 14px; white-space: nowrap; }
.top nav a:hover { color: #fff; text-decoration: none; }
.top nav .star { color: #fff; font-weight: 600; }

/* the sea */
.hero {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center;
  padding: 56px max(16px, calc((100% - 1080px) / 2)) 48px;
  background: linear-gradient(180deg, var(--sea-top), var(--sea-bottom));
  color: #e6f2ff;
}
.eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: .04em; color: #8fb6e0; }
.hero h1 { margin: 0; font-size: clamp(32px, 5vw, 50px); line-height: 1.2; letter-spacing: .02em; }
.lead { margin: 14px 0 6px; font-size: 18px; color: #d4e6fb; }
.en { margin: 0 0 22px; font-size: 14px; color: #8fb6e0; font-style: italic; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.ghost { color: #e6f2ff; border-color: #4b6f9c; }

.sea-box { margin: 0; min-width: 0; }
#sea { display: block; width: 100%; aspect-ratio: 16 / 9; cursor: pointer; border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.sea-box figcaption { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.sea-note { margin: 10px 0 0; text-align: center; font-size: 13px; color: #8fb6e0; }
.sea-note code { background: rgba(255, 255, 255, .1); color: #d4e6fb; }
.sea-note a { color: #7dd3fc; font-weight: 600; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.seg button {
  border: 0; background: none; color: #b5cde8; font: inherit; font-size: 13px;
  padding: 4px 12px; border-radius: 999px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: #e6f2ff; color: var(--sea-top); font-weight: 600; }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 20px; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-text); font-weight: 600; font-size: 15px;
}
.hero .btn:not(.ghost) { background: #e6f2ff; border-color: #e6f2ff; color: var(--sea-top); }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { padding: 5px 14px; font-size: 14px; }

/* bands */
.band { padding: 56px max(16px, calc((100% - 1080px) / 2)); scroll-margin-top: 48px; }
.band.alt { background: var(--band); border-block: 1px solid var(--line); }
.band h2 { margin: 0 0 6px; font-size: 28px; }
.sub { margin: 0 0 24px; color: var(--muted); }
.more { margin: 20px 0 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.card {
  display: block; padding: 20px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.card b { font-size: 17px; }
.card p { margin: 8px 0 0; color: var(--muted); }
.card .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
a.card:hover { text-decoration: none; border-color: var(--accent); }

.steps { list-style: none; counter-reset: s; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(s); grid-row: span 2;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-weight: 700;
}
.steps li span { color: var(--muted); }
.steps.compact { margin-top: 28px; }
.two.ways { margin-top: 20px; }

/* 作品墙 */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.works .empty { margin: 0; color: var(--muted); }
.work { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.work img, .work-blank { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; font-size: 48px; background: linear-gradient(180deg, var(--sea-top), var(--sea-bottom)); }
.work-text { padding: 14px 16px 16px; }
.work h3 { margin: 0; font-size: 16px; }
.work p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.work-links { display: flex; gap: 8px; margin-top: 12px !important; }

/* 做表情 */
.top nav .hot { color: #fff; font-weight: 700; padding: 0 10px; border-radius: 999px; background: #07c160; }
.top nav .hot:hover { filter: brightness(1.08); }
.btn.wechat { background: #07c160; border-color: #07c160; color: #fff; }
.hero .btn.wechat { background: #07c160; border-color: #07c160; color: #fff; }
.stickers { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.stickers .steps { margin-top: 0; }
.stickers .more { margin-top: 18px; }
.tag { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px; background: color-mix(in srgb, #07c160 14%, transparent); color: #06a052; font-size: 13px; font-weight: 700; }
.stickers h2 { font-size: 32px; background: linear-gradient(90deg, #2563eb, #8a4fe8 55%, #e04f9a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chat {
  margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 14px;
  border-radius: 22px; background: #ededed; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -24px rgba(6, 20, 43, .45);
}
.msg { max-width: 78%; padding: 8px 12px; border-radius: 6px; font-size: 15px; line-height: 1.5; color: #111; background: #fff; align-self: flex-start; }
.msg.me { align-self: flex-end; background: #95ec69; }
.msg.sticker { padding: 0; background: none; }
#sticker { display: block; width: min(220px, 56vw); aspect-ratio: 16 / 9; image-rendering: pixelated; }
.chat figcaption { margin-top: 4px; font-size: 12px; color: #6b7280; text-align: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chat { background: #1b1f27; }
  :root:not([data-theme="light"]) .msg { background: #2c313b; color: #e6edf7; }
  :root:not([data-theme="light"]) .msg.me { background: #3eb575; color: #06140b; }
  :root:not([data-theme="light"]) .msg.sticker { background: none; }
  :root:not([data-theme="light"]) .tag { color: #3ddc84; }
  :root:not([data-theme="light"]) .stickers h2 { background-image: linear-gradient(90deg, #86b4ff, #b993ff 55%, #ff8cc6); }
  :root:not([data-theme="light"]) .chat figcaption { color: #9aa8bd; }
}
@media (max-width: 820px) {
  .stickers { grid-template-columns: 1fr; gap: 28px; }
  .stickers .chat { max-width: 420px; }
}

footer { padding: 32px 16px 40px; text-align: center; color: var(--muted); font-size: 14px; }
footer p { margin: 4px 0; }
.quiet { font-size: 13px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .top nav a:not(.star):not(.hot) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
