:root {
  --bg-base: #07070a;
  --bg-elevated: #0d0d10;
  --text-primary: #fafafc;
  --text-secondary: #a6a6ad;
  --text-tertiary: #6c6c70;
  --separator: rgba(255, 255, 255, 0.09);
  --pink: #f093fb;
  --cyan: #00f2fe;
  --max-width: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Helvetica Neue", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.grad-text {
  background: linear-gradient(110deg, #f093fb 0%, #00f2fe 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* 导航 */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 7, 10, 0.75);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand img.brand-icon { width: 24px; height: 24px; border-radius: 6px; }
.brand img.brand-word { height: 18px; width: auto; }
.brand-suffix { font-size: 13px; font-weight: 700; letter-spacing: 2px; color: var(--text-primary); margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--text-secondary); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.07); }
.nav-cta {
  display: inline-block; padding: 3px 14px; border-radius: 999px;
  background: linear-gradient(110deg, #f093fb, #00f2fe);
  color: #0a0a0d !important; font-size: 12px; font-weight: 800;
}
.nav-cta:hover { background: linear-gradient(110deg, #f5a9fd, #4df5ff) !important; }
/* 页头 */
.post-hero { position: relative; padding: 56px 0 36px; text-align: center; overflow: hidden; }
.post-hero > .container { position: relative; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow-1 { width: 560px; height: 560px; left: -160px; top: -200px; background: rgba(240, 147, 251, 0.20); }
.glow-2 { width: 520px; height: 520px; right: -140px; top: -120px; background: rgba(0, 242, 254, 0.15); }
.breadcrumb { font-size: 13px; color: var(--text-tertiary); margin-bottom: 30px; }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--text-primary); }
.post-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; line-height: 1.35; max-width: 820px; margin: 0 auto 18px; }
.post-hero-lead { font-size: 16px; color: var(--text-secondary); max-width: 680px; margin: 0 auto; line-height: 1.9; }
.post-meta { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 13px; color: var(--text-tertiary); }
.post-cat {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  border: 1px solid rgba(0, 242, 254, 0.4); color: var(--cyan); font-weight: 700; font-size: 12px;
}
/* 正文 */
.article { padding: 56px 0 24px; }
.article .container { max-width: 760px; }
.post-body h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin: 40px 0 14px; line-height: 1.4; }
.post-body h2:first-child { margin-top: 0; }
.post-body p { font-size: 15.5px; color: #c9c9d1; margin-bottom: 14px; line-height: 1.95; }
.post-body p.li { padding-left: 8px; }
.post-body strong { color: var(--text-primary); }
.post-body a.inline { color: var(--cyan); border-bottom: 1px solid rgba(0, 242, 254, 0.35); }
.post-body a.inline:hover { border-bottom-color: var(--cyan); }
.post-img { margin: 26px 0; }
.post-img img {
  display: block; width: 100%; height: auto; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
/* CTA */
.post-cta {
  margin: 48px 0 24px; padding: 30px 28px; border-radius: 18px;
  border: 1px solid rgba(0, 242, 254, 0.28);
  background: linear-gradient(140deg, rgba(240, 147, 251, 0.09), rgba(0, 242, 254, 0.07));
  text-align: center;
}
.post-cta h3 { font-size: 21px; font-weight: 900; margin-bottom: 8px; }
.post-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.post-cta-actions { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-cta {
  display: inline-block; padding: 13px 30px; border-radius: 999px;
  background: linear-gradient(110deg, #f093fb, #00f2fe);
  color: #0a0a0d; font-size: 15px; font-weight: 800;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 10px 32px rgba(0, 242, 254, 0.16);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(240, 147, 251, 0.22); }
.cta-secondary { font-size: 14px; color: var(--cyan); font-weight: 700; }
.cta-secondary:hover { text-decoration: underline; }
/* 相关阅读 */
.related { padding: 56px 0 72px; border-top: 1px solid var(--separator); }
.related h2 { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  display: block; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--separator); border-radius: 16px; padding: 22px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.related-card:hover { transform: translateY(-3px); border-color: rgba(0, 242, 254, 0.35); background: rgba(255, 255, 255, 0.06); }
.related-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; line-height: 1.5; }
.related-card p { font-size: 12px; color: var(--text-tertiary); }
.related-more { text-align: center; margin-top: 26px; }
.related-more a.inline { color: var(--cyan); border-bottom: 1px solid rgba(0, 242, 254, 0.35); }
/* 文章列表 */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--separator); border-radius: 16px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(0, 242, 254, 0.35); background: rgba(255, 255, 255, 0.06); }
.post-card > img { width: 100%; aspect-ratio: 1.5; object-fit: cover; display: block; }
.post-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.post-card-body time { font-size: 12px; color: var(--text-tertiary); margin-left: 8px; }
.post-card-body h3 { font-size: 15px; font-weight: 800; line-height: 1.55; color: var(--text-primary); }
.post-card-body p { font-size: 12.5px; color: var(--text-secondary); line-height: 1.7; }
/* 页脚 */
.footer { border-top: 1px solid var(--separator); padding: 36px 0 44px; }
.footer-links { text-align: center; font-size: 13px; margin-bottom: 14px; }
.footer-links a { color: var(--text-secondary); margin: 0 12px; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copyright { text-align: center; font-size: 13px; color: var(--text-tertiary); margin-bottom: 8px; }
.footer-beian { display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 13px; color: var(--text-tertiary); line-height: 1.6; }
.footer-beian a { color: var(--text-tertiary); display: inline-flex; align-items: center; gap: 4px; }
.footer-beian a:hover { color: var(--text-secondary); }
.footer-beian img { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .post-hero h1 { font-size: 27px; }
  .related-grid, .post-grid { grid-template-columns: 1fr; }
  .post-body h2 { font-size: 22px; }
}
@media (max-width: 600px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding: 8px 0 6px; row-gap: 4px; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; }
  .nav-links a { white-space: nowrap; font-size: 13px; padding: 5px 9px; }
  .post-hero { padding: 40px 0 24px; }
  .footer-beian { flex-direction: column; gap: 8px; text-align: center; }
}
