/* ===== 基础与变量（白色主题） ===== */
:root {
  --bg: #fafafa;
  --bg-soft: #f0f0f0;
  --text: #1a1a1a;
  --text-muted: #666;
  --accent: #b8860b;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", serif;
  --font-mono: "JetBrains Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow: hidden;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 滚动发生在这个容器内，隐藏其滚动条 */
.scroll-wrap {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scroll-wrap::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ===== 顶栏 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
  transition: background 0.3s;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
  color: var(--accent);
}

/* ===== 全屏区块（鼠标下滑逐渐显示下个页面） ===== */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem 6rem;
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 第一屏：随机标题 ===== */
.hero {
  text-align: center;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 20em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}

.hero-title.reveal {
  opacity: 1;
  transform: translateY(0);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  writing-mode: vertical-rl;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}


/* ===== 第二屏：MESSAGE ===== */
.section-message {
  text-align: center;
}

.section-label {
  margin: 0 0 2rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.message-content {
  max-width: 32em;
}

.message-content p {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text);
}

.message-content .quote {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== 第三屏：未来可期 ===== */
.section-slogan .big-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-slogan .slogan {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: center;
}

/* ===== 第四屏：语录 ===== */
.section-quote {
  text-align: center;
}

.section-quote .center-quote {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  max-width: 16em;
  line-height: 1.4;
}

.floating-quotes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: 28em;
}

.floating-quotes span {
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
}

/* ===== 第五屏：关于我 + 联系方式 ===== */
.section-about {
  text-align: center;
}

.about-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.about-intro {
  margin: 0 auto 2rem;
  max-width: 24em;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.contact-block {
  display: inline-block;
  text-align: left;
  padding: 1.5rem 2rem;
  background: var(--bg-soft);
  border-radius: 12px;
  min-width: 18rem;
}

.contact-head {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  flex-shrink: 0;
  width: 5em;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.contact-value:hover {
  text-decoration: underline;
}

/* ===== 第六屏：页脚 ===== */
.section-footer {
  text-align: center;
  padding-bottom: 4rem;
}

.section-footer .footer-quote {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--text);
}

.section-footer .footer-desc {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.github-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.github-link:hover {
  opacity: 0.8;
}

/* ===== 首屏立刻显示 ===== */
.hero.section {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  .header {
    padding: 1rem 1.25rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .scroll-hint {
    left: 1rem;
    bottom: 1.5rem;
  }
}
