@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Noto+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --red: #ff0000;
  --pink: #ff1493;
  --ink: #261717;
  --bg: #150d0d;
  --fg: #f8eeee;
  --dim: #d9c2c2;
  --line: rgba(255, 20, 147, 0.24);
  --card: rgba(255, 255, 255, 0.045);
  --r: 28px;
  --max: 1150px;
  --bar-h: 68px;
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--fg);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: -30%;
  z-index: -2;
  background:
    radial-gradient(at 14% 12%, rgba(255, 0, 0, 0.44), rgba(255, 0, 0, 0) 55%),
    radial-gradient(at 84% 6%, rgba(255, 20, 147, 0.40), rgba(255, 20, 147, 0) 52%),
    radial-gradient(at 60% 80%, rgba(255, 20, 147, 0.24), rgba(255, 20, 147, 0) 58%),
    radial-gradient(at 26% 92%, rgba(255, 0, 0, 0.26), rgba(255, 0, 0, 0) 56%);
  background-size: 200% 200%;
  filter: saturate(1.25) blur(12px);
  animation: aurora 11s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(at 50% 0%, rgba(21, 13, 13, 0) 38%, rgba(19, 11, 11, 0.9) 100%);
  pointer-events: none;
}

@keyframes aurora {
  0%   { background-position: 0% 0%; transform: scale(1); }
  50%  { background-position: 100% 55%; transform: scale(1.12); }
  100% { background-position: 35% 100%; transform: scale(1.05); }
}

@keyframes turn {
  from { transform: rotate(0deg); }
  to   { transform: rotate(28deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

/* 顶条 */
.topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 16px;
  font-size: 16px;
  letter-spacing: 0.16em;
  color: #ffe1ec;
  background: linear-gradient(95deg, rgba(255, 0, 0, 0.42), rgba(255, 20, 147, 0.42));
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}

/* 顶栏 */
.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--bar-h);
  padding: 12px 18px;
  background: rgba(21, 13, 13, 0.74);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(140deg, var(--red), var(--pink));
  box-shadow: 0 10px 26px -12px rgba(255, 20, 147, 0.9);
}

.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.logo-initial { font-weight: 700; font-size: 20px; letter-spacing: 0.02em; }

.bar-brand {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffe3ee;
}

.burger {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red), var(--pink));
}

/* 首屏 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: 64px 20px 104px;
  text-align: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 58px), 0 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -32%;
  z-index: -2;
  background: conic-gradient(from 190deg at 50% 50%, rgba(255, 0, 0, 0.6), rgba(255, 20, 147, 0.55), rgba(255, 122, 0, 0.34), rgba(255, 20, 147, 0.5), rgba(255, 0, 0, 0.6));
  filter: blur(52px) saturate(1.35);
  opacity: 0.72;
  animation: turn 12s ease-in-out infinite alternate;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }

.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero-copy { max-width: 760px; }

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.05rem, 7vw, 3.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
  text-shadow: 0 12px 44px rgba(255, 0, 0, 0.55);
}

.hero-sub {
  margin: 0 auto 26px;
  max-width: 46ch;
  font-size: 17px;
  color: #ffdcea;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(110deg, var(--red), var(--pink));
  box-shadow: 0 18px 40px -18px rgba(255, 20, 147, 0.95);
}

.hero-cta:hover { filter: brightness(1.1); }

/* 主体骨架 */
.shell { padding: 28px 16px 8px; }

.rail { display: block; }

.rail-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: #f2e2e2;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.rail-nav a:hover,
.rail-nav a:focus-visible {
  background: rgba(255, 20, 147, 0.16);
  border-color: rgba(255, 20, 147, 0.42);
  color: #fff;
  transform: translateX(3px);
}

.tick {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--red), var(--pink));
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.8);
}

.rail-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

main { min-width: 0; }

.wrap { padding-bottom: 8px; }

.post { max-width: 74ch; margin: 0 auto; }

.post > article {
  position: relative;
  margin: 0 0 26px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: 0 30px 64px -38px rgba(255, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  scroll-margin-top: 96px;
}

.post > article:target {
  border-color: rgba(255, 20, 147, 0.6);
  box-shadow: 0 0 0 2px rgba(255, 20, 147, 0.34), 0 30px 64px -38px rgba(255, 0, 0, 0.8);
}

.js .post > article,
.js .foot-col {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.js .post > article.in,
.js .foot-col.in { opacity: 1; transform: none; }

/* 正文排版 */
.post h2 {
  margin: 0.15em 0 0.7em;
  font-size: clamp(1.36rem, 3.4vw, 1.84rem);
  line-height: 1.34;
  font-weight: 700;
}

.post h2 > span,
.foot-h > span {
  background: linear-gradient(96deg, #ff6a6a, var(--pink) 58%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.post h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.16rem;
  line-height: 1.45;
  font-weight: 600;
  color: #ffe1ee;
}

.post p { margin: 0 0 1.05em; }

.post p:last-child { margin-bottom: 0; }

.post a {
  color: #ff92bd;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post a:hover { color: #fff; }

.post ul,
.post ol { margin: 0 0 1.1em 1.15em; padding: 0; }

.post li { margin: 0.34em 0; }

.post strong { color: #fff; font-weight: 600; }

.post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.3em auto;
  border-radius: 18px;
  box-shadow: 0 22px 48px -26px rgba(255, 20, 147, 0.8);
}

.post blockquote {
  margin: 1.3em 0;
  padding: 14px 20px;
  border-left: 3px solid var(--pink);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 20, 147, 0.1);
  color: #ffe4ef;
}

.post blockquote p:last-child { margin-bottom: 0; }

.post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.94em;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.post hr {
  border: 0;
  height: 1px;
  margin: 1.8em 0;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* 页脚 */
.foot {
  max-width: var(--max);
  margin: 44px auto 0;
  padding: 0 16px 40px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 26px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--r);
  background: linear-gradient(155deg, rgba(255, 0, 0, 0.16), rgba(255, 20, 147, 0.11));
  box-shadow: 0 30px 60px -40px rgba(255, 0, 0, 0.8);
}

.foot-h {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.foot address {
  font-style: normal;
  font-size: 17px;
  color: #ffd9e8;
  letter-spacing: 0.04em;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.foot ul a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: #f1e0e0;
  font-size: 16px;
  text-decoration: none;
}

.foot ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.sub { display: flex; flex-wrap: wrap; gap: 8px; }

.sub input {
  flex: 1 1 150px;
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  font: inherit;
  font-size: 16px;
}

.sub input::placeholder { color: #bfa6a6; }

.sub button {
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(115deg, var(--red), var(--pink));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.sub button:hover { filter: brightness(1.1); }

.foot-base {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #cdb4b4;
  font-size: 16px;
}

.foot-base p { margin: 0; }

/* 手机端：侧栏变全屏遮罩 */
@media (max-width: 999px) {
  .rail {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 74px 18px 40px;
    overflow-y: auto;
    background: rgba(17, 10, 10, 0.97);
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-14px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  body.nav-open .rail { opacity: 1; pointer-events: auto; transform: none; }

  body.nav-open { overflow: hidden; }

  .rail-close {
    display: inline-flex;
    position: absolute;
    top: 16px;
    right: 16px;
    margin: 0;
  }

  .rail-nav a { font-size: 17px; min-height: 48px; }

  .hero { min-height: 64vh; padding: 54px 18px 90px; }
}

/* 桌面端 */
@media (min-width: 1000px) {
  .shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    max-width: var(--max);
    margin: 0 auto;
    padding: 34px 20px 8px;
  }

  .rail {
    position: sticky;
    top: calc(var(--bar-h) + 18px);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -46px rgba(255, 0, 0, 0.9);
  }

  .burger { display: none; }

  .post { max-width: 72ch; }
}

@media (min-width: 760px) and (max-width: 999px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 759px) {
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.95rem; }
  .topline { letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before,
  .pulse,
  .hero::before { animation: none; }
  .js .post > article,
  .js .foot-col { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
