/* ===== simplymyok · 前台样式 ===== */
:root {
  color-scheme: light;
  --gradient: linear-gradient(135deg, #ff8a3d, #a855f7, #3b82f6);
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --text: #181b21;
  --text-soft: #5d6673;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-strong: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 36px rgba(24, 27, 33, 0.12);
  --ring: rgba(168, 85, 247, 0.28);
  --border: rgba(24, 27, 33, 0.1);
  --code-bg: rgba(24, 27, 33, 0.06);
  --blockquote: rgba(168, 85, 247, 0.12);
  --radius: 18px;
  --nav-h: 64px;
}
html.dark {
  color-scheme: dark;
  --bg: #07080d;
  --bg-elev: #11141f;
  --text: #f2f4fa;
  --text-soft: #a2abbf;
  --glass: rgba(18, 21, 32, 0.72);
  --glass-strong: rgba(18, 21, 32, 0.9);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  --ring: rgba(168, 85, 247, 0.35);
  --border: rgba(255, 255, 255, 0.12);
  --code-bg: rgba(255, 255, 255, 0.07);
  --blockquote: rgba(168, 85, 247, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- 极光光晕背景 ---- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .26;
  animation: auroraFloat 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 44vw; height: 44vw; left: -8vw; top: -10vw; background: #ff8a3d55; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: 18vh; background: #a855f744; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 42vw; height: 42vw; left: 22vw; bottom: -14vw; background: #3b82f644; animation-delay: -16s; }
html.dark .aurora i { opacity: .16; }
@keyframes auroraFloat {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(6vw, -4vh) scale(1.12); }
  100% { transform: translate(-4vw, 5vh) scale(.96); }
}

/* ---- 顶部悬浮导航（毛玻璃胶囊） ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: center; padding: 18px 16px 0;
  transition: padding .3s ease;
}
.site-header.scrolled { padding: 10px 16px 0; }
.header-inner {
  display: flex; align-items: center; gap: 22px;
  width: min(1080px, 100%);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: box-shadow .3s ease, background .35s ease;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; margin-right: auto; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-weight: 800; background: var(--gradient); box-shadow: 0 4px 14px var(--ring);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--text-soft);
  transition: all .2s ease; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: rgba(127,127,160,.10); }
.nav-link.active { color: var(--text); background: var(--gradient); color: #fff; box-shadow: 0 4px 16px var(--ring); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(127,127,160,.10); transition: transform .3s ease, background .2s ease;
}
.theme-toggle:hover { transform: rotate(20deg) scale(1.05); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

/* ---- 搜索：导航栏胶囊框 + 搜索页 ---- */
/* ---- 导航搜索按钮：与月亮按钮同款，点击展开输入框 ---- */
.nav-search {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; overflow: hidden; cursor: pointer;
  background: rgba(127,127,160,.10); transition: width .25s ease, border-radius .25s ease, background .2s ease;
}
.nav-search:hover { background: rgba(127,127,160,.16); }
.nav-search.open { width: 170px; border-radius: 999px; background: rgba(127,127,160,.10); }
.nav-search-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-soft); pointer-events: none; }
.nav-search-input {
  position: absolute; left: -9999px; width: 0; opacity: 0; border: none;
  background: none; color: var(--text); font-size: 14px; outline: none;
}
.nav-search.open .nav-search-input {
  position: static; flex: 1; min-width: 0; width: auto; height: 100%;
  padding: 0 12px 0 38px; opacity: 1;
}
.nav-search-input::placeholder { color: var(--text-soft); opacity: .8; }
.search-form { position: relative; display: flex; align-items: center; width: 100%; max-width: 480px; margin: 0 auto; }
.search-form-icon { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--text-soft); pointer-events: none; }
.search-input {
  width: 100%; min-width: 0; padding: 12px 18px 12px 44px; border-radius: 999px; font-size: 15px;
  background: var(--glass); border: 1px solid var(--border); color: var(--text); outline: none; transition: all .2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); }
.search-page { min-height: 55vh; }
.search-head { text-align: center; margin-bottom: 22px; }
.page-title { font-size: 30px; font-weight: 800; }
.search-count { text-align: center; color: var(--text-soft); font-size: 14px; margin: 18px 0 10px; }
.search-results { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.search-card { display: block; padding: 18px 22px; border-radius: 16px; transition: transform .2s, box-shadow .2s; }
.search-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.search-empty { text-align: center; color: var(--text-soft); padding: 60px 0; }
@media (max-width: 720px) {
  .nav-search-form { margin: 0 8px; max-width: none; }
  .brand-name { display: none; }
}

/* ---- 移动端底部标签栏 ---- */
.tabbar { display: none; }
@media (max-width: 720px) {
  .site-header { padding: 12px 12px 0; }
  .site-nav .nav-link { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100;
    padding: 8px; gap: 4px; border-radius: 20px;
    background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow);
    overflow-x: auto; justify-content: space-around;
  }
  .tabbar .nav-link { display: block; font-size: 13px; padding: 8px 12px; }
  .tabbar .theme-toggle.tab { width: 36px; height: 36px; flex: none; }
}

/* ---- Hero ---- */
.hero, .support-hero, .list-hero {
  min-height: 76vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px 40px; position: relative;
}
.hero-inner { max-width: 860px; width: 100%; animation: rise .8s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-soft); border: 1px solid var(--border); padding: 6px 16px; border-radius: 999px;
  background: var(--glass); margin-bottom: 26px;
}
.hero-title { font-size: clamp(40px, 8vw, 84px); font-weight: 800; line-height: 1.12; letter-spacing: -1px; margin-bottom: 22px; }
.hero-sub { font-size: clamp(15px, 2.2vw, 19px); color: var(--text-soft); max-width: 640px; margin: 0 auto 30px; }
.hero-social { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text-soft);
  transition: all .25s ease; backdrop-filter: blur(8px);
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { color: #fff; background: var(--gradient); border-color: transparent; transform: translateY(-4px); box-shadow: 0 10px 24px var(--ring); }

/* ---- 跑马灯 ---- */
.marquee-wrap { overflow: hidden; padding: 8px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--glass); position: relative; }
.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.marquee-track { display: flex; align-items: center; gap: 0; }
.mq-item { font-size: 15px; font-weight: 600; color: var(--text); padding: 6px 18px; white-space: nowrap; }
.mq-dot { color: transparent; background: var(--gradient); -webkit-background-clip: text; background-clip: text; padding: 0 6px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- 关键词云 ---- */
.keyword-cloud { position: relative; height: 220px; overflow: hidden; }
.kw {
  position: absolute; font-size: 14px; font-weight: 600; color: var(--text-soft);
  padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border);
  animation: kwFloat var(--d, 4s) ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.4s);
  left: var(--x); top: var(--y, 0%);
}
@keyframes kwFloat {
  0% { opacity: .25; transform: translateY(12px) scale(.92); }
  100% { opacity: .95; transform: translateY(-14px) scale(1.06); }
}

/* ---- 区块 ---- */
.section { padding: 70px 20px; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 34px; }
.section-title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.5px; }
.section-tag { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-soft); }
.about-text { font-size: 17px; color: var(--text-soft); max-width: 720px; }
.about-points { margin-top: 18px; display: grid; gap: 10px; list-style: none; max-width: 720px; }
.about-points li { padding-left: 24px; position: relative; color: var(--text-soft); }
.about-points li::before { content: "✦"; position: absolute; left: 0; top: 0; background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- 卡片 ---- */
.glass {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.proj-card { display: block; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.proj-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,0,0,.16); }
.card-cover { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 18px 20px 22px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.badge {
  font-size: 11px; padding: 3px 10px; border-radius: 999px; color: #fff; font-weight: 600;
  background: var(--gradient);
}
.card-date { font-size: 12px; color: var(--text-soft); }
.card-title { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card-desc { font-size: 14px; color: var(--text-soft); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 11px; padding: 3px 10px; border-radius: 999px; color: var(--text-soft); background: rgba(127,127,160,.12); border: 1px solid var(--border); }

/* ---- 栏目卡片 ---- */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.col-card { display: flex; align-items: center; gap: 14px; padding: 22px; transition: transform .25s ease, box-shadow .25s ease; }
.col-card:hover { transform: translateY(-4px); }
.col-emoji { font-size: 22px; }
.col-name { font-size: 17px; font-weight: 700; }
.col-arrow { margin-left: auto; color: var(--text-soft); font-size: 18px; transition: transform .25s ease; }
.col-card:hover .col-arrow { transform: translateX(4px); }

/* ---- 联系 ---- */
.contact { text-align: center; }
.contact-text { color: var(--text-soft); margin-bottom: 24px; }

/* ---- 支持页 ---- */
.help-card { max-width: 520px; margin: 0 auto; padding: 28px 30px; text-align: center; }
.help-card h3 { font-size: 19px; margin-bottom: 8px; }
.help-card p { color: var(--text-soft); }
.sup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.sup-card { padding: 26px 20px; text-align: center; transition: transform .25s ease; }
.sup-card:hover { transform: translateY(-4px); }
.sup-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 24px; overflow: hidden; }
.sup-icon img { width: 100%; height: 100%; object-fit: cover; }
.sup-name { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.sup-desc { font-size: 13px; color: var(--text-soft); margin-bottom: 16px; min-height: 36px; }
.qr-btn { display: block; width: 120px; height: 120px; margin: 0 auto; border-radius: 14px; overflow: hidden; position: relative; border: 1px solid var(--border); background: #fff; transition: transform .2s ease; }
.qr-btn:hover { transform: scale(1.04); }
.qr-btn img { width: 100%; height: 100%; object-fit: contain; }
.qr-btn span { position: absolute; inset: auto 0 0 0; font-size: 10px; color: var(--text-soft); background: var(--glass-strong); padding: 2px 0; }
.qr-placeholder { width: 120px; height: 120px; margin: 0 auto; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 14px; color: var(--text-soft); font-size: 12px; }

/* ---- 支持者列表 ---- */
.supporter-list { list-style: none; display: grid; gap: 12px; max-width: 640px; margin: 0 auto; }
.supporter { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); }
.sup-platform { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--gradient); color: #fff; font-size: 14px; }
.sup-nick { font-weight: 600; font-size: 15px; }
.sup-amount { margin-left: auto; font-weight: 700; font-size: 16px; }
.empty { text-align: center; color: var(--text-soft); padding: 30px 0; }

/* ---- 文章详情 ---- */
.article { padding: 40px 20px 70px; }
.article-inner { max-width: 760px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 30px; }
.article-head .card-meta { justify-content: center; }
.article-title { font-size: clamp(28px, 5vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.5px; margin: 14px 0 10px; }
.article-excerpt { color: var(--text-soft); font-size: 16px; }
.article-cover { border-radius: var(--radius); margin: 0 auto 30px; max-height: 420px; object-fit: cover; width: 100%; }
.article-tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---- Markdown 正文 ---- */
.markdown-body { font-size: 16.5px; }
.markdown-body > * { margin: 0 0 18px; }
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 { font-weight: 700; line-height: 1.35; margin: 34px 0 14px; }
.markdown-body h1 { font-size: 26px; } .markdown-body h2 { font-size: 22px; } .markdown-body h3 { font-size: 19px; } .markdown-body h4 { font-size: 16px; }
.markdown-body p { color: var(--text); }
.markdown-body a { color: #a855f7; text-decoration: underline; text-underline-offset: 3px; }
.markdown-body ul, .markdown-body ol { padding-left: 24px; }
.markdown-body li { margin: 4px 0; }
.markdown-body code {
  background: var(--code-bg); border-radius: 6px; padding: 2px 7px; font-size: .88em; font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.markdown-body pre { background: var(--code-bg); border-radius: 14px; padding: 16px 18px; overflow-x: auto; }
.markdown-body pre code { padding: 0; background: none; }
.markdown-body blockquote { border-left: 3px solid var(--gradient); background: var(--blockquote); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--text-soft); }
.markdown-body img { border-radius: 14px; margin: 10px 0; }
.markdown-body table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 8px 12px; }
.markdown-body th { background: var(--code-bg); }
.markdown-body hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.markdown-body .video-embed, .video-embed {
  position: relative; padding-top: 56.25%; margin: 18px 0; border-radius: 14px;
  overflow: hidden; background: #000; box-shadow: var(--shadow);
}
.markdown-body .video-embed iframe, .video-embed iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* ---- 页脚 ---- */
.site-footer { padding: 40px 20px 90px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.footer-social { justify-content: flex-start; }
.footer-social .social-btn { width: 38px; height: 38px; }
.footer-bottom { display: flex; gap: 14px; font-size: 13px; color: var(--text-soft); }
.icp:hover { color: var(--text); }

/* ---- 按钮 / Toast ---- */
.btn-primary {
  display: inline-block; padding: 12px 28px; border-radius: 999px; color: #fff; font-weight: 600;
  background: var(--gradient); box-shadow: 0 8px 24px var(--ring); transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px); }
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 12px 22px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 200;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- 二维码大图 ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none; place-items: center;
  background: rgba(0,0,0,.65); backdrop-filter: blur(6px); padding: 24px;
}
.lightbox.show { display: grid; }
.lightbox img { max-width: min(340px, 88vw); border-radius: 18px; background: #fff; padding: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: rise .3s ease both; }
.lightbox-close { position: absolute; top: 22px; right: 26px; color: #fff; font-size: 30px; line-height: 1; }

@media (max-width: 720px) {
  .section { padding: 48px 16px; }
  .site-footer { padding-bottom: 110px; }
}
