*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #07070e;
  color: #e9e9f5;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 12% -12%, rgba(124, 58, 237, .30), transparent 62%),
    radial-gradient(720px 520px at 88% -4%, rgba(0, 229, 255, .18), transparent 62%),
    radial-gradient(820px 620px at 50% 112%, rgba(255, 46, 136, .16), transparent 62%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 25%, transparent 72%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 14, .74);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 17px;
  color: #07070e;
  background: linear-gradient(135deg, #00e5ff, #7c3aed 55%, #ff2e88);
  box-shadow: 0 0 22px rgba(0, 229, 255, .45);
  flex-shrink: 0;
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(92deg, #ffffff, #b8c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 15px;
  color: #a9a8c2;
  transition: .25s;
}

.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  border-radius: 11px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: #d6d6ea;
  transition: .25s;
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 96px 20px 76px;
  text-align: center;
  overflow: hidden;
}

.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }

.hero-badge {
  display: inline-block;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 2.4px;
  color: #8ff3ff;
  border: 1px solid rgba(0, 229, 255, .32);
  background: rgba(0, 229, 255, .07);
  margin-bottom: 26px;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(30px, 5.6vw, 58px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 1px;
}

.gradient-text {
  background: linear-gradient(96deg, #00e5ff, #7c3aed 46%, #ff2e88);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 660px;
  margin: 0 auto 34px;
  color: #9b9ab8;
  font-size: 16.5px;
  line-height: 1.95;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: #e9e9f5;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .28s;
  font-family: inherit;
}

.btn:hover { border-color: rgba(0, 229, 255, .55); transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(96deg, #00e5ff, #7c3aed 55%, #ff2e88);
  border: none;
  color: #07070e;
  box-shadow: 0 14px 34px -14px rgba(0, 229, 255, .85);
}

.btn-primary:hover { box-shadow: 0 18px 40px -14px rgba(255, 46, 136, .85); color: #07070e; }

.btn-ghost { background: transparent; }

.hero-stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 52px;
  margin: 56px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.hero-stats li { display: flex; flex-direction: column; gap: 4px; }

.hero-stats strong {
  font-size: 27px;
  font-weight: 900;
  background: linear-gradient(96deg, #00e5ff, #ff2e88);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span { font-size: 13px; color: #7c7b96; letter-spacing: .5px; }

/* ---------------- Section ---------------- */
.section { max-width: 1180px; margin: 0 auto; padding: 20px 20px 80px; }

.section-head { text-align: center; margin-bottom: 46px; }

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(23px, 3.4vw, 33px);
  font-weight: 900;
  letter-spacing: 1px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  margin: 16px auto 0;
  border-radius: 3px;
  background: linear-gradient(96deg, #00e5ff, #ff2e88);
}

.section-head p { margin: 0; color: #8685a2; font-size: 15px; }

/* ---------------- Post grid ---------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .018));
  border: 1px solid rgba(255, 255, 255, .085);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), border-color .35s, box-shadow .35s;
}

.post-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 229, 255, .45);
  box-shadow: 0 26px 52px -26px rgba(0, 229, 255, .62);
}

.post-cover {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #14122a, #221c40 60%, #2b1a3c);
}

.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }

.post-card:hover .post-cover img { transform: scale(1.07); }

.cover-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 8px;
  color: rgba(255, 255, 255, .16);
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 229, 255, .24), transparent 55%),
    radial-gradient(circle at 72% 70%, rgba(255, 46, 136, .22), transparent 55%);
}

.post-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }

.post-date { font-size: 12.5px; color: #6f6e8c; letter-spacing: 1.2px; }

.post-title {
  margin: 10px 0 12px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
}

.post-title a { transition: color .25s; }
.post-card:hover .post-title a { color: #6ff0ff; }

.post-excerpt { margin: 0 0 18px; color: #8e8daa; font-size: 14.5px; flex: 1; }

.post-more { font-size: 14px; font-weight: 700; color: #58e7ff; letter-spacing: .5px; }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 9px; margin-top: 52px; flex-wrap: wrap; }

.page-link {
  min-width: 42px;
  height: 42px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #b6b5cd;
  font-size: 14.5px;
  transition: .25s;
}

.page-link:hover { border-color: rgba(0, 229, 255, .5); color: #fff; }

.page-link.current {
  background: linear-gradient(96deg, #00e5ff, #7c3aed);
  border-color: transparent;
  color: #07070e;
  font-weight: 800;
}

/* ---------------- About ---------------- */
.about { padding-bottom: 96px; }

.about-card {
  border-radius: 22px;
  padding: 48px clamp(22px, 5vw, 58px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .085);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, .38), transparent 68%);
}

.about-card h2 { margin: 0 0 20px; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.about-card p { color: #9796b3; margin: 0 0 16px; font-size: 15.5px; line-height: 1.95; }
.about-card strong { color: #6ff0ff; font-weight: 700; }

.about-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 13px; }

.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #c4c3d8;
  font-size: 15px;
}

.about-list span {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #07070e;
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
}

/* ---------------- Article ---------------- */
.article-page { max-width: 820px; margin: 0 auto; padding: 40px 20px 90px; }

.breadcrumb {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 13.5px;
  color: #6f6e8c;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.breadcrumb a { color: #58e7ff; }
.breadcrumb span:last-child { color: #9b9ab8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }

.article-head h1 {
  margin: 0 0 20px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .5px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #75748f;
  font-size: 13.5px;
  margin-bottom: 32px;
}

.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: #45445c; }

.article-cover {
  margin: 0 0 36px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
}

.article-content { font-size: 16.5px; line-height: 2; color: #c9c8dd; }

.article-content h2 {
  font-size: 23px;
  font-weight: 900;
  color: #fff;
  margin: 44px 0 18px;
  padding-left: 14px;
  border-left: 4px solid;
  border-image: linear-gradient(180deg, #00e5ff, #ff2e88) 1;
}

.article-content h3 { font-size: 19px; font-weight: 800; color: #f0f0fa; margin: 34px 0 14px; }
.article-content p { margin: 0 0 20px; }
.article-content a { color: #58e7ff; text-decoration: underline; text-underline-offset: 3px; }
.article-content img { border-radius: 14px; margin: 26px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin: 0 0 20px; }
.article-content li { margin-bottom: 9px; }
.article-content blockquote {
  margin: 26px 0;
  padding: 18px 22px;
  border-left: 3px solid #7c3aed;
  border-radius: 0 12px 12px 0;
  background: rgba(124, 58, 237, .1);
  color: #b8b7d0;
}
.article-content code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.article-content pre {
  padding: 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, .4);
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .08);
}
.article-content pre code { background: none; padding: 0; }

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 56px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.article-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  transition: .25s;
}

.article-nav-item:hover { border-color: rgba(0, 229, 255, .45); }
.article-nav-item span { font-size: 12.5px; color: #75748f; }
.article-nav-item strong { font-size: 14.5px; color: #dcdcf0; font-weight: 700; }
.article-nav-item.ta-r { text-align: right; }

.article-back { margin-top: 40px; text-align: center; }

/* ---------------- Empty / 404 ---------------- */
.empty-state {
  text-align: center;
  padding: 70px 24px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, .13);
  background: rgba(255, 255, 255, .022);
  color: #8e8daa;
}

.empty-state h2 { color: #e9e9f5; margin: 0 0 14px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(4, 4, 10, .6); }

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.footer-brand { display: flex; align-items: center; gap: 12px; text-align: left; }
.footer-brand strong { display: block; font-size: 16px; letter-spacing: 2px; }
.footer-brand p { margin: 0; font-size: 12.5px; color: #6f6e8c; letter-spacing: 1.5px; }
.footer-copy { margin: 0; font-size: 13px; color: #6c6b86; }
.footer-icp { margin: 0; font-size: 12.5px; color: #56556c; }

/* ---------------- Responsive ---------------- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 18px;
    background: rgba(7, 7, 14, .97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: .28s;
  }

  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 14px; }

  .hero { padding: 66px 20px 54px; }
  .hero-stats { gap: 34px; margin-top: 42px; }
  .hero-stats strong { font-size: 23px; }

  .post-grid { grid-template-columns: 1fr; gap: 20px; }
  .article-nav { grid-template-columns: 1fr; }
  .breadcrumb span:last-child { max-width: 100%; }
}