@charset "UTF-8";

:root {
  --bg: #edf3f8;
  --bg-strong: #081622;
  --panel: #ffffff;
  --panel-muted: #f6f9fc;
  --panel-dark: #0e2233;
  --text: #132130;
  --text-soft: #607488;
  --text-light: #c3d6e7;
  --line: rgba(19, 33, 48, 0.1);
  --line-strong: rgba(32, 215, 255, 0.25);
  --accent: #0a8dff;
  --accent-strong: #20d7ff;
  --accent-deep: #081f34;
  --success: #17c37b;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow-soft: 0 20px 50px rgba(7, 22, 34, 0.08);
  --shadow-dark: 0 22px 60px rgba(2, 10, 20, 0.32);
}

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

html {
  scroll-behavior: smooth;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: none !important;
}

body {
  margin: 0;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(32, 215, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #f2f7fb 0%, #edf3f8 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  line-height: 1.7;
  position: relative;
}

body.theme-fluxgrid,
body.theme-fluxgrid.is-home,
body.theme-fluxgrid .site-shell,
body.theme-fluxgrid .site-main {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 141, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 141, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.32), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  width: 100%;
  max-width: none !important;
}

.flux-container {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px !important;
  margin: 0 auto;
}

.site-main {
  padding-bottom: 88px;
  width: 100%;
  max-width: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 0;
  transition: padding 0.25s ease;
}

.site-header.is-scrolled {
  padding-top: 0;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(7, 22, 34, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 8px rgba(10, 141, 255, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.site-nav a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-deep);
  background: rgba(10, 141, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(10, 141, 255, 0.08);
  color: var(--accent-deep);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
}

.nav-toggle span + span {
  margin-top: 6px;
}

.hero-section {
  padding: 88px 0 44px;
}

.hero-frame,
.hero-copy,
.page-banner-inner,
.article-content,
.comment-form-panel,
.featured-card,
.post-card,
.empty-panel {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 72vh;
  padding: clamp(28px, 3vw, 36px);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(8, 22, 34, 0.98) 0%, rgba(14, 34, 51, 0.96) 100%);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(32, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 215, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), transparent 92%);
}

.hero-media,
.hero-surface {
  position: absolute;
  inset: 0;
}

.hero-media {
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.hero-surface {
  background:
    radial-gradient(circle at top right, rgba(32, 215, 255, 0.24), transparent 28%),
    linear-gradient(90deg, rgba(4, 13, 22, 0.94) 0%, rgba(4, 13, 22, 0.82) 46%, rgba(4, 13, 22, 0.46) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 24px;
  align-items: end;
  min-height: calc(72vh - 72px);
}

.hero-copy {
  max-width: 840px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 34px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 22, 34, 0.42);
  box-shadow: none;
  backdrop-filter: blur(12px);
  color: #eef9ff;
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(32, 215, 255, 0.14), transparent 42%),
    radial-gradient(circle at top right, rgba(10, 141, 255, 0.2), transparent 34%);
}

.hero-copy > * {
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.section-tag::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.hero-copy h1,
.page-banner-inner h1,
.article-copy h1 {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-banner-inner p,
.article-summary {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(238, 249, 255, 0.82);
  max-width: 40rem;
}

.hero-side-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  color: #eef9ff;
  box-shadow: 0 18px 40px rgba(3, 10, 20, 0.18);
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(32, 215, 255, 0.16);
  color: #eef9ff;
}

.hero-side-card strong {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.5rem;
  line-height: 1.1;
}

.hero-side-card p {
  margin: 0;
  color: rgba(238, 249, 255, 0.74);
}

.hero-side-list {
  display: grid;
  gap: 12px;
}

.hero-side-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef9ff;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #03111f;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #eef9ff;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points span {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(238, 249, 255, 0.8);
}

.meta-label,
.card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(32, 215, 255, 0.14);
  color: var(--accent-deep);
}

.featured-section,
.stream-section,
.related-section,
.comment-section {
  padding-top: 18px;
}

.site-main > .featured-section:first-child {
  padding-top: 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.section-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--text-soft);
}

.featured-grid,
.post-grid {
  display: grid;
  gap: 20px;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.featured-card,
.post-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.featured-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.featured-card h3,
.post-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.35;
}

.featured-card p,
.post-card p,
.empty-panel p,
.form-note,
.comment-section p {
  margin: 0;
  color: var(--text-soft);
}

.post-card {
  padding: 0;
  overflow: hidden;
}

.post-card-media {
  display: block;
  background: #cfe9f8;
}

.post-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

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

.card-meta,
.article-meta,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.pagination-wrap {
  margin-top: 28px;
}

.page-navigator {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.page-navigator li a,
.page-navigator li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.page-navigator .current span,
.page-navigator .current a,
.page-navigator a:hover {
  border-color: rgba(10, 141, 255, 0.3);
  color: var(--accent-deep);
  background: rgba(10, 141, 255, 0.1);
}

.empty-panel {
  padding: 36px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
}

.page-banner {
  padding-top: 112px;
}

.page-banner-inner {
  padding: clamp(30px, 4vw, 54px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(8, 22, 34, 0.98) 0%, rgba(14, 34, 51, 0.94) 100%);
  color: #eef9ff;
}

.article-hero {
  padding-top: 112px;
  padding-bottom: 92px;
}

.article-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 28px;
  align-items: stretch;
}

.article-copy {
  padding: clamp(28px, 4vw, 56px);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(8, 22, 34, 0.98) 0%, rgba(14, 34, 51, 0.94) 100%);
  color: #eef9ff;
  border: 1px solid rgba(32, 215, 255, 0.12);
  box-shadow: var(--shadow-dark);
}

.article-meta {
  margin-top: 22px;
  color: rgba(238, 249, 255, 0.72);
}

.article-cover {
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(32, 215, 255, 0.12);
  box-shadow: var(--shadow-dark);
}

.article-cover img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
}

.article-container {
  margin-top: -48px;
}

.article-content {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 1;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  margin: 1.6em 0 0.7em;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  line-height: 1.15;
  color: #091c2e;
}

.article-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.article-content h3 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content pre,
.article-content table {
  margin: 0 0 1.2em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4em;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.article-content img {
  margin: 1.6em 0;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.article-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: rgba(10, 141, 255, 0.06);
  color: #27445d;
}

.article-content pre {
  overflow: auto;
  padding: 20px;
  border-radius: 22px;
  background: #081622;
  color: #d7eef9;
}

.article-content code {
  padding: 0.14em 0.38em;
  border-radius: 8px;
  background: rgba(10, 141, 255, 0.08);
  color: #0a4b84;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.article-content th,
.article-content td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-content th {
  background: var(--panel-muted);
}

.article-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 20px;
}

.article-tags,
.neighbor-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.article-tags > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.article-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(10, 141, 255, 0.08);
  color: var(--accent-deep);
}

.article-neighbors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.neighbor-card {
  min-height: 100%;
}

.neighbor-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
}

.comment-section {
  padding-bottom: 12px;
}

.comment-list-wrap,
.comment-form-panel {
  margin-top: 18px;
}

.comment-form-panel {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
}

.comment-form-panel h3 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.5rem;
}

.comment-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comment-form label {
  display: grid;
  gap: 8px;
}

.comment-form span {
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: rgba(10, 141, 255, 0.36);
  box-shadow: 0 0 0 4px rgba(10, 141, 255, 0.08);
}

.comment-list,
.comment-list ol,
.comment-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list .comment-body {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.comment-list > .comment-body + .comment-body,
.comment-list .comment-children .comment-body {
  margin-top: 16px;
}

.comment-list .comment-children {
  margin-top: 16px;
  padding-left: 20px;
}

.comment-list .comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 12px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.comment-list .comment-author {
  color: #091c2e;
  font-weight: 700;
}

.comment-list .comment-content {
  color: var(--text);
}

.comment-list .avatar {
  border-radius: 50%;
}

.error-banner {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
}

.site-footer {
  padding: 0 0 32px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(8, 22, 34, 0.98) 0%, rgba(14, 34, 51, 0.96) 100%);
  color: #eef9ff;
  border: 1px solid rgba(32, 215, 255, 0.12);
}

.footer-title {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-copy p:last-child {
  max-width: 32rem;
  margin: 0;
  color: rgba(238, 249, 255, 0.72);
}

.footer-meta a {
  color: var(--accent-strong);
}

@media (max-width: 1120px) {
  .header-inner {
    padding: 14px 16px;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(7, 22, 34, 0.12);
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    display: block;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .article-hero-grid,
  .article-footer {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: auto;
    padding: 24px 18px;
  }

  .featured-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-container {
    margin-top: -32px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .site-header {
    padding-top: 0;
  }

  .hero-section,
  .page-banner,
  .article-hero {
    padding-top: 92px;
  }

  .form-grid-three,
  .article-neighbors {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .flux-container {
    width: min(100% - 24px, 100%);
  }

  .featured-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-frame,
  .hero-side-card,
  .page-banner-inner,
  .article-copy,
  .article-cover,
  .article-content,
  .comment-form-panel,
  .footer-inner {
    border-radius: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .post-card-body,
  .featured-card,
  .comment-form-panel,
  .empty-panel {
    padding: 20px;
  }
}
