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

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body {
  font-family: 'Baloo 2', 'Comic Neue', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

ul, menu {
  list-style: none;
}

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

/* ===== 公告条 ===== */
.announcement-bar {
  background: #fff;
  color: #000;
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
  z-index: 200;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== 顶部折叠导航 ===== */
.nav-details {
  background: #000;
  border-bottom: 3px solid #fff;
  position: sticky;
  top: 2rem;
  z-index: 190;
}

.nav-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.nav-brand-row::-webkit-details-marker {
  display: none;
}

.nav-brand {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.nav-toggle-hint {
  font-size: 0.75rem;
  color: #aaa;
  border: 1px solid #555;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid #333;
  padding: 0.5rem 1rem 1rem;
}

.nav-menu li a {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  border-radius: 6px;
  min-height: 40px;
  transition: background 0.15s;
}

.nav-menu li a:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* ===== 底部固定导航 ===== */
.bottom-nav-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: #000;
  border-top: 3px solid #fff;
}

.bottom-nav-brand {
  background: #fff;
  color: #000;
  text-align: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0;
  letter-spacing: 0.05em;
}

.bottom-nav-links {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bottom-nav-links::-webkit-scrollbar {
  display: none;
}

.bottom-menu {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  gap: 0;
  white-space: nowrap;
}

.bottom-menu li {
  flex-shrink: 0;
}

.bottom-menu li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  min-height: 44px;
  transition: color 0.15s;
  border-right: 1px solid #222;
}

.bottom-menu li:last-child a {
  border-right: none;
}

.bottom-menu li a:hover {
  color: #000;
  background: #fff;
  text-decoration: none;
}

/* ===== scroll-margin for fixed nav ===== */
div[id] {
  scroll-margin-top: 80px;
}

/* ===== main / wrap ===== */
main {
  position: relative;
}

.wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  grid-template-areas:
    "hero hero"
    "aside content";
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Hero ===== */
.hero-section {
  grid-area: hero;
  position: relative;
  overflow: hidden;
  min-height: 45vh;
  display: flex;
  align-items: center;
  border-bottom: 4px solid #fff;
  margin: 0 -1.5rem;
  padding: 0 1.5rem;
}

.hero-article {
  width: 100%;
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0 6rem;
  position: relative;
  z-index: 2;
}

.hero-media {
  flex-shrink: 0;
  width: 180px;
}

.hero-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 28px;
  border: 3px solid #fff;
}

.hero-logo-placeholder {
  width: 160px;
  height: 160px;
  border: 3px solid #fff;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  color: #fff;
  background: #111;
}

.hero-text {
  flex: 1;
  text-align: center;
}

.hero-h1 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 5rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #ccc;
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* 斜切色带 */
.hero-slash {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}

/* ===== Aside ===== */
.site-aside {
  grid-area: aside;
  padding: 2rem 1rem 2rem 0;
  border-right: 2px solid #fff;
  min-width: 0;
}

.aside-inner {
  position: sticky;
  top: 110px;
}

.aside-inner h3 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.aside-inner hr {
  border: none;
  border-top: 2px solid #fff;
  margin-bottom: 1rem;
}

.aside-nav-list li {
  margin-bottom: 0.25rem;
}

.aside-nav-list li a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
  border-radius: 6px;
  min-height: 40px;
  transition: background 0.15s, color 0.15s;
}

.aside-nav-list li a:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

.aside-tip {
  margin-top: 1.5rem;
  border: 2px solid #fff;
  border-radius: 14px;
  padding: 0.75rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #ccc;
}

.aside-tip strong {
  display: block;
  color: #fff;
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

/* ===== Content Section ===== */
.content-section {
  grid-area: content;
  padding: 2rem 0 2rem 2rem;
  min-width: 0;
}

.content-article {
  font-size: 1rem;
  line-height: 1.7;
  color: #eee;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== 正文内部样式 ===== */
.content-article h2 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
  color: #fff;
  margin: 2.5rem 0 0.5rem;
}

.content-article h2 + hr,
.content-article h3 + hr {
  border: none;
  border-top: 3px solid #fff;
  margin-bottom: 1rem;
}

.content-article h3 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin: 2rem 0 0.5rem;
}

.content-article p {
  margin-bottom: 1rem;
  color: #ddd;
}

.content-article ul, .content-article ol {
  margin: 0.75rem 0 1rem 1.5rem;
  color: #ddd;
}

.content-article li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.content-article a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-article a:hover {
  background: #fff;
  color: #000;
  text-decoration: none;
}

/* 描边卡片 */
.content-article div {
  margin-bottom: 2rem;
}

.content-article div > section,
.content-article .card-item {
  border: 2px solid #fff;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  background: #0a0a0a;
  transition: background 0.2s;
}

.content-article div > section:hover,
.content-article .card-item:hover {
  background: #111;
}

/* ===== 动效：stagger list ===== */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-article div > section {
  animation: fadeSlideUp 0.5s ease both;
}

.content-article div > section:nth-child(1) { animation-delay: 0.05s; }
.content-article div > section:nth-child(2) { animation-delay: 0.12s; }
.content-article div > section:nth-child(3) { animation-delay: 0.19s; }
.content-article div > section:nth-child(4) { animation-delay: 0.26s; }
.content-article div > section:nth-child(5) { animation-delay: 0.33s; }
.content-article div > section:nth-child(6) { animation-delay: 0.4s; }

.content-article div {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .content-article div > section {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== Footer ===== */
footer {
  background: #000;
  border-top: 4px solid #fff;
  margin-top: 4rem;
}

footer > div {
  padding: 3rem 1.5rem;
}

.footer-brand-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border-bottom: 2px solid #333;
}

.footer-logo-text {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.6;
}

.footer-links-block h3 {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.footer-links-block hr {
  border: none;
  border-top: 2px solid #fff;
  margin-bottom: 1rem;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-link-list li a {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #ccc;
  padding: 0.3rem 0;
  min-height: 40px;
  transition: color 0.15s;
}

.footer-link-list li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.footer-contact {
  font-size: 0.85rem;
  color: #777;
}

.footer-copyright {
  font-size: 0.85rem;
  color: #555;
}

/* ===== HR 全局样式 ===== */
hr {
  border: none;
  border-top: 2px solid #fff;
  margin: 0.75rem 0 1rem;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .wrap {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "content"
      "aside";
    padding: 0 1rem;
  }

  .site-aside {
    border-right: none;
    border-top: 2px solid #333;
    padding: 1.5rem 0 0;
  }

  .aside-inner {
    position: static;
  }

  .content-section {
    padding: 1.5rem 0;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 3rem 0 5rem;
  }

  .hero-media {
    width: auto;
  }

  .hero-text {
    text-align: center;
  }

  .footer-brand-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-section {
    flex-direction: column;
    text-align: center;
  }

  .hero-section {
    min-height: 40vh;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-brand-row {
    padding: 0.6rem 1rem;
  }

  .bottom-menu li a {
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
  }

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

  .hero-logo, .hero-logo-placeholder {
    width: 120px;
    height: 120px;
  }

  .hero-slash {
    height: 40px;
  }

  footer > div {
    padding: 2rem 1rem;
  }
}
