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

/* ===== 基础重置 ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --dark: #26171f;
  --dark-80: rgba(38, 23, 31, 0.8);
  --dark-60: rgba(38, 23, 31, 0.6);
  --dark-20: rgba(38, 23, 31, 0.2);
  --glass: rgba(38, 23, 31, 0.55);
  --glass-light: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 0, 128, 0.25);
  --text-main: #f5e6ef;
  --text-muted: #c4a0b4;
  --text-dark: #26171f;
  --radius-card: 18px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 40px rgba(255, 0, 128, 0.18), 0 2px 12px rgba(0,0,0,0.35);
  --shadow-hover: 0 16px 56px rgba(255, 0, 255, 0.28), 0 4px 20px rgba(0,0,0,0.4);
  --nav-h: 64px;
  --font-heading: 'Poppins', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
  overflow-x: hidden;
}

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

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  animation: aurora-flow 14s ease-in-out infinite alternate;
}

.aurora-bg.aurora-subtle .aurora-layer {
  filter: blur(100px);
  opacity: 0.5;
}

.a1 {
  width: 80vw;
  height: 60vh;
  top: -20vh;
  left: -20vw;
  background: radial-gradient(ellipse, #ff0080cc 0%, #ff00ff44 60%, transparent 100%);
  animation-delay: 0s;
  animation-duration: 16s;
}

.a2 {
  width: 60vw;
  height: 70vh;
  top: 20vh;
  right: -15vw;
  background: radial-gradient(ellipse, #ff00ff99 0%, #ff008055 50%, transparent 100%);
  animation-delay: -6s;
  animation-duration: 20s;
}

.a3 {
  width: 70vw;
  height: 50vh;
  bottom: -10vh;
  left: 10vw;
  background: radial-gradient(ellipse, #ff008066 0%, #26171f00 70%);
  animation-delay: -10s;
  animation-duration: 18s;
}

.prism-dot {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: prism-spin 20s linear infinite;
}

.p1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: 15%;
  background: conic-gradient(from 0deg, #ff0080, #ff00ff, #00ffff, #ff0080);
  opacity: 0.12;
  filter: blur(30px);
}

.p2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 5%;
  background: conic-gradient(from 90deg, #ff00ff, #ff0080, #ffaa00, #ff00ff);
  opacity: 0.1;
  filter: blur(25px);
  animation-direction: reverse;
}

.p3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 50%;
  background: conic-gradient(from 180deg, #ff0080, #ff00ff, #ff0080);
  opacity: 0.08;
  filter: blur(20px);
}

@keyframes aurora-flow {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4vw, -3vh) scale(1.08); }
  66% { transform: translate(-3vw, 5vh) scale(0.95); }
  100% { transform: translate(2vw, 2vh) scale(1.04); }
}

@keyframes prism-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== 站点容器 ===== */
.site-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ===== HERO 区域 ===== */
.hero-header,
.article-hero,
.about-hero,
.privacy-hero,
.default-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 5rem 2rem 3rem;
  overflow: hidden;
}

.hero-bg-text {
  position: absolute;
  right: -0.05em;
  bottom: -0.15em;
  font-family: var(--font-heading);
  font-size: clamp(8rem, 22vw, 20rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255,0,128,0.12) 0%, rgba(255,0,255,0.08) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 720px;
}

.hero-content-article {
  max-width: 800px;
}

.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 0.3em 0.9em;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  background: rgba(255, 0, 128, 0.1);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #ffd0e8 40%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.article-date,
.article-mod {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
}

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-block;
  padding: 0.75em 1.8em;
  background: linear-gradient(135deg, var(--pink) 0%, var(--magenta) 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(255, 0, 128, 0.4);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-primary:hover {
  box-shadow: 0 8px 36px rgba(255, 0, 255, 0.55);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.72em 1.6em;
  border: 1.5px solid var(--glass-border);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  background: var(--glass-light);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  min-height: 44px;
}

.btn-ghost:hover {
  border-color: var(--pink);
  background: rgba(255, 0, 128, 0.12);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.55em 1.2em;
  min-height: 40px;
}

/* ===== 主内容布局 ===== */
main {
  position: relative;
  z-index: 2;
  padding: 3rem 0 4rem;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== 首页布局 ===== */
.home-intro-section,
.article-section,
.about-section,
.privacy-section,
.default-section {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.home-intro-article,
.article-body,
.about-article,
.privacy-article,
.default-article {
  min-width: 0;
}

/* ===== 内容正文 ===== */
.content-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-main);
}

.content-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  background: linear-gradient(90deg, #fff 60%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: #ffd0e8;
}

.content-body p {
  margin-bottom: 1.3rem;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.3rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body a {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 128, 0.35);
  transition: color 0.2s ease;
}

.content-body a:hover {
  color: var(--magenta);
  text-decoration-color: var(--magenta);
}

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

.content-body blockquote {
  border-left: 3px solid var(--pink);
  padding: 0.8rem 1.2rem;
  background: rgba(255, 0, 128, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  color: var(--text-muted);
}

/* ===== h2 标题装饰 ===== */
h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

h2 .h2-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--pink);
  text-transform: uppercase;
  display: block;
}

h2 .h2-main {
  background: linear-gradient(90deg, #fff 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  font-size: 1.75rem;
}

/* ===== Aside 侧边栏 ===== */
.home-aside,
.article-aside,
.about-aside,
.privacy-aside,
.default-aside {
  position: sticky;
  top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aside-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.aside-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--glass-border);
}

.aside-card h3 span {
  background: linear-gradient(90deg, var(--pink), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aside-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.aside-nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s ease;
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--dark-20);
}

.aside-nav-list a:hover {
  color: var(--pink);
}

.aside-tip {
  background: rgba(255, 0, 128, 0.07);
}

.aside-tip p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.aside-tip a {
  color: var(--pink);
  text-decoration: none;
}

.aside-tip a:hover {
  text-decoration: underline;
}

/* ===== 卡片区 ===== */
.cards-section {
  margin-bottom: 4rem;
}

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

.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(16px);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: rgba(255, 0, 255, 0.45);
}

.card-inner {
  padding: 1.8rem;
}

.card-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.card h3 span {
  display: block;
}

.card h3 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card h3 a:hover {
  color: var(--magenta);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card time {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.card-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pink);
  text-decoration: none;
  font-family: var(--font-heading);
  transition: color 0.2s ease, gap 0.2s ease;
  gap: 0.3em;
}

.card-link:hover {
  color: var(--magenta);
}

/* ===== 表格区域 ===== */
.table-section {
  margin-bottom: 4rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--glass-border);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass);
  backdrop-filter: blur(16px);
}

thead th {
  background: rgba(255, 0, 128, 0.15);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--pink);
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

tbody tr {
  border-bottom: 1px solid var(--dark-20);
  transition: background 0.2s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(255, 0, 128, 0.07);
}

tbody td {
  padding: 0.9rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  vertical-align: top;
}

.card-title-cell a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.card-title-cell a:hover {
  color: var(--pink);
}

.card-desc-cell {
  max-width: 360px;
}

.card-date-cell {
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.82rem;
}

/* ===== 文章页脚导航 ===== */
.article-footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

/* ===== 关于页面链接区 ===== */
.about-links-section {
  margin-bottom: 4rem;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}

.about-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(12px);
}

.about-link-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(255, 0, 255, 0.4);
}

.alc-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}

.alc-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* ===== 页脚 ===== */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
  background: rgba(38, 23, 31, 0.85);
  backdrop-filter: blur(20px);
  padding: 0 0 calc(var(--nav-h) + 1rem);
}

.footer-brand-section {
  padding: 2.5rem 2rem 1.5rem;
  border-bottom: 1px solid var(--dark-20);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, var(--pink) 50%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.footer-nav-section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--dark-20);
}

.footer-nav-section nav dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0;
  list-style: none;
}

.footer-nav-section nav dl dt {
  display: inline-block;
}

.footer-nav-section nav dl dt a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav-section nav dl dt a:hover {
  color: var(--pink);
}

.footer-copy-section {
  padding: 1rem 2rem;
}

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

.footer-copy a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-copy a:hover {
  color: var(--pink);
}

/* ===== Scroll Reveal 动效 ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .aurora-layer,
  .prism-dot {
    animation: none;
  }
  .card,
  .btn-primary,
  .btn-ghost,
  .about-link-card {
    transition: none;
  }
}

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

  .home-aside,
  .article-aside,
  .about-aside,
  .privacy-aside,
  .default-aside {
    position: static;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hero-header,
  .article-hero,
  .about-hero,
  .privacy-hero,
  .default-hero {
    min-height: 70vh;
    padding: 6rem 1.25rem 2.5rem;
    align-items: flex-end;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 3rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero-cta a {
    width: 100%;
    justify-content: center;
  }

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

  .about-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-section,
  .footer-nav-section,
  .footer-copy-section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .footer-nav-section nav dl {
    flex-direction: column;
  }

  .table-wrap {
    font-size: 0.85rem;
  }

  thead th,
  tbody td {
    padding: 0.75rem 0.75rem;
  }

  .card-desc-cell {
    display: none;
  }
}

@media (max-width: 375px) {
  .about-links-grid {
    grid-template-columns: 1fr;
  }
}
