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

/* ===== 变量 & 重置 ===== */
:root {
  --red: #ff0000;
  --pink: #ff1493;
  --dark: #261717;
  --dark2: #1a0f0f;
  --dark3: #3a2020;
  --text: #f0e6e6;
  --text-muted: #c8a8a8;
  --text-dim: #9a7070;
  --border: rgba(255,20,147,0.25);
  --border-bright: rgba(255,0,0,0.5);
  --card-bg: rgba(38,23,23,0.85);
  --header-h: 60px;
  --max-w: 1100px;
  --radius: 0px;
  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }
ul, ol { list-style: none; }

/* ===== Aurora 背景 ===== */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.aurora-layer.a1 {
  width: 70vw;
  height: 70vw;
  top: -20vw;
  left: -10vw;
  background: radial-gradient(ellipse, #ff0000 0%, transparent 70%);
  animation: aurora-drift1 10s ease-in-out infinite alternate;
}

.aurora-layer.a2 {
  width: 60vw;
  height: 60vw;
  top: 10vw;
  right: -15vw;
  background: radial-gradient(ellipse, #ff1493 0%, transparent 70%);
  animation: aurora-drift2 12s ease-in-out infinite alternate;
}

.aurora-layer.a3 {
  width: 50vw;
  height: 50vw;
  bottom: -10vw;
  left: 30%;
  background: radial-gradient(ellipse, #ff0066 0%, transparent 70%);
  animation: aurora-drift3 9s ease-in-out infinite alternate;
}

@keyframes aurora-drift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vw, 6vw) scale(1.1); }
}
@keyframes aurora-drift2 {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-6vw, 8vw) scale(0.95); }
}
@keyframes aurora-drift3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4vw, -5vw) scale(1.08); }
}

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,20,147,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,20,147,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
}

/* ===== 全站层叠 ===== */
.site-header,
.breadcrumb-nav,
.page-banner,
.hero,
main,
footer,
.layout-with-aside,
.nav-overlay {
  position: relative;
  z-index: 1;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26,15,15,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo { height: 36px; width: auto; }

.brand-text {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--red), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-contact {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.header-contact:hover { border-color: var(--pink); color: var(--pink); }

/* ===== 汉堡 ===== */
.hamburger {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 40px;
  justify-content: center;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--pink); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: background 0.2s;
}
.hamburger:hover span { background: var(--pink); }

/* ===== 全屏遮罩导航 ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,10,10,0.97);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.overlay-close:hover { border-color: var(--red); color: var(--red); }

.overlay-nav ol {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
}

.overlay-nav ol li a {
  display: block;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.02em;
  transition: color 0.2s, border-color 0.2s;
  counter-increment: nav-counter;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.overlay-nav ol { counter-reset: nav-counter; }
.overlay-nav ol li a::before {
  content: counter(nav-counter, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--pink);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.overlay-nav ol li a:hover { color: var(--pink); border-color: var(--pink); }

/* ===== 面包屑 ===== */
.breadcrumb-nav {
  background: rgba(38,23,23,0.7);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 1.5rem;
}

.breadcrumb-nav ol {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  list-style: none;
  counter-reset: none;
}

.breadcrumb-nav ol li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-nav ol li + li::before {
  content: '›';
  margin-right: 0.5rem;
  color: var(--text-dim);
}

.breadcrumb-nav ol li a { color: var(--text-muted); }
.breadcrumb-nav ol li a:hover { color: var(--pink); }
.breadcrumb-nav ol li span { color: var(--pink); }

/* ===== Hero（首页）===== */
.hero {
  min-height: 45vh;
  display: flex;
  align-items: flex-start;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,0,0,0.08) 0%, rgba(255,20,147,0.06) 100%);
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-left: 3px solid var(--red);
  display: inline-block;
}

.hero .hero-text h1,
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(90deg, var(--red), var(--pink));
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  min-height: 44px;
  transition: opacity 0.2s, transform 0.15s;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.5rem;
  background: transparent;
  color: var(--pink);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1px solid var(--pink);
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.btn-secondary:hover { background: rgba(255,20,147,0.12); color: var(--red); }

/* ===== Main / Wrap ===== */
main {
  padding: 2.5rem 1.5rem;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ===== 文章布局（带 aside）===== */
.article-section,
.about-section,
.privacy-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

/* 确保 main > div.wrap > article > section 四层 */
.article-section > section,
.about-section > section,
.privacy-section > section { min-width: 0; }

/* ===== 文章内容 ===== */
.article-header { margin-bottom: 1.5rem; }

.article-hero-wrap {
  margin-bottom: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}

.article-header h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.article-date,
.article-date-mod {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.article-date::before { content: '📅'; font-size: 0.8em; }
.article-date-mod::before { content: '🔄'; font-size: 0.8em; }

.article-content,
.content-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.article-content h2,
.content-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.25rem;
  color: var(--text);
}

.article-content h2 + hr,
.content-body h2 + hr,
h2 + hr,
h3 + hr {
  border: none;
  border-top: 1px solid var(--border-bright);
  margin: 0.4rem 0 1rem;
}

.article-content h3,
.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.article-content p,
.content-body p { margin-bottom: 1rem; }

.article-content ul,
.article-content ol,
.content-body ul,
.content-body ol {
  margin: 0.75rem 0 1rem 1.5rem;
  list-style: revert;
}

.article-content li,
.content-body li { margin-bottom: 0.4rem; }

.article-content a,
.content-body a { color: var(--pink); border-bottom: 1px solid rgba(255,20,147,0.3); }
.article-content a:hover,
.content-body a:hover { color: var(--red); border-color: var(--red); }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

/* ===== Aside ===== */
.article-aside {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.article-aside h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.aside-list { display: flex; flex-direction: column; gap: 0.3rem; }
.aside-list li a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1.4;
}
.aside-list li a:hover { border-color: var(--pink); color: var(--pink); }

.aside-nav-block { margin-top: 1.5rem; }
.aside-nav-block ol { counter-reset: none; display: flex; flex-direction: column; gap: 0.3rem; }
.aside-nav-block ol li a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0.5rem;
  border-left: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  min-height: auto;
}
.aside-nav-block ol li a:hover { border-color: var(--red); color: var(--red); }
.aside-nav-block ol li a::before { display: none; }

/* ===== 首页卡片区 ===== */
.section-articles {
  padding-top: 0;
}

.section-articles > h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.page-content {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.page-content h2 { font-size: 1.25rem; margin: 1.5rem 0 0.25rem; color: var(--text); }
.page-content p { margin-bottom: 0.9rem; }

.card-grid-wrap { margin-top: 2rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card-grid > li > section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  height: 100%;
}
.card-grid > li > section:hover { border-color: var(--pink); transform: translateY(-2px); }

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  filter: saturate(1.1);
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.card-body h3 { font-size: 1rem; font-weight: 600; line-height: 1.4; }
.card-body h3 a { color: var(--text); }
.card-body h3 a:hover { color: var(--pink); }

.card-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.card-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--pink);
  border-bottom: 1px solid rgba(255,20,147,0.3);
  align-self: flex-start;
  margin-top: 0.25rem;
  transition: color 0.2s;
}
.card-link:hover { color: var(--red); }

/* ===== 首页 aside 浮动区 ===== */
.layout-with-aside {
  max-width: var(--max-w);
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.site-aside {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  max-width: 320px;
}

.site-aside h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

/* ===== 页面 Banner（about/privacy）===== */
.page-banner {
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(255,0,0,0.07) 0%, rgba(255,20,147,0.05) 100%);
}

.page-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.2rem 0.6rem;
  margin-bottom: 0.75rem;
}

.page-banner-inner h1 {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.page-banner-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 0.75rem;
}

/* ===== 页脚 ===== */
footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-cta {
  background: linear-gradient(90deg, rgba(255,0,0,0.15), rgba(255,20,147,0.15));
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-cta-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-bottom nav ol {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  counter-reset: none;
}

.footer-bottom nav ol li a {
  font-size: 0.82rem;
  color: var(--text-dim);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.25rem;
  transition: color 0.2s;
}
.footer-bottom nav ol li a:hover { color: var(--pink); }
.footer-bottom nav ol li a::before { display: none; }

/* ===== 首页默认区段 ===== */
.default-section {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
}

.default-section > section { min-width: 0; }
.default-section > section h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ===== 动效 stagger ===== */
@media (prefers-reduced-motion: no-preference) {
  .card-grid > li {
    opacity: 0;
    transform: translateY(16px);
    animation: card-in 0.4s ease forwards;
  }
  .card-grid > li:nth-child(1) { animation-delay: 0.05s; }
  .card-grid > li:nth-child(2) { animation-delay: 0.10s; }
  .card-grid > li:nth-child(3) { animation-delay: 0.15s; }
  .card-grid > li:nth-child(4) { animation-delay: 0.20s; }
  .card-grid > li:nth-child(5) { animation-delay: 0.25s; }
  .card-grid > li:nth-child(6) { animation-delay: 0.30s; }

  @keyframes card-in {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .article-section,
  .about-section,
  .privacy-section,
  .default-section {
    grid-template-columns: 1fr;
  }

  .article-aside {
    order: -1;
  }
}

@media (max-width: 600px) {
  :root { --header-h: 56px; }

  .hero {
    min-height: auto;
    padding: 2rem 1rem 1.5rem;
  }

  .hero-inner { gap: 1.25rem; }

  .hero .hero-text h1 { font-size: 1.5rem; }

  main { padding: 1.75rem 1rem; }

  .breadcrumb-nav { padding: 0.5rem 1rem; }

  .page-banner { padding: 1.75rem 1rem 1.5rem; }

  .footer-cta { padding: 1.75rem 1rem; }
  .footer-cta-inner { flex-direction: column; align-items: flex-start; }

  .footer-bottom { padding: 1rem; flex-direction: column; align-items: flex-start; }

  .card-grid { grid-template-columns: 1fr; }

  .overlay-nav ol li a { font-size: 1rem; padding: 0.6rem 1rem; }

  .header-inner { padding: 0 1rem; }

  .layout-with-aside { padding: 0 1rem; }
}

/* ===== 可访问性 ===== */
:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.overlay-nav ol li a:focus-visible,
.aside-list li a:focus-visible { outline-color: var(--red); }
