/* ============================================================
   冬日影集 · 个人摄影作品展示
   纯展示站点：无访客留言 / 注册 / 交流功能
   ============================================================ */

:root {
  --ink: #24445f;
  --ink-soft: #5b7c96;
  --accent: #3f7fb0;
  --accent-soft: #7fb8de;
  --sky-1: #a9d9f2;
  --sky-2: #dff3fd;
  --sky-3: #f6fbfe;
  --card-shadow: 0 10px 30px rgba(59, 110, 150, 0.10);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip; /* 不创建滚动容器，避免影响 sticky 定位 */
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--sky-3);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 飘雪画布 ---------- */
#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}

/* ---------- 顶部导航 ---------- */
.top-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(59, 110, 150, 0.12);
  z-index: 50;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.top-nav .brand {
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 1.02rem;
}

.nav-links { display: flex; gap: 18px; }
.nav-links a { color: var(--ink-soft); transition: color 0.25s; }
.nav-links a:hover { color: var(--accent); }

/* ============================================================
   第一页：冬季晴天 · 滚动生长雪松
   ============================================================ */
.scroll-stage {
  height: 230vh; /* 雪松在首屏 1.3 屏的滚动中逐渐生长完成 */
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 84%);
}

/* 太阳 */
.sun {
  position: absolute;
  top: 9vh;
  right: 9vw;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe8 0%, #fff3b8 40%, rgba(255, 238, 178, 0) 72%);
  z-index: 2;
}

.sun::before {
  content: "";
  position: absolute;
  inset: -46px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 205, 0.85) 0%, rgba(255, 246, 205, 0) 68%);
  filter: blur(6px);
}

/* 云 */
.cloud {
  position: absolute;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  filter: blur(14px);
  opacity: 0.85;
  z-index: 2;
}

.cloud-1 { top: 15vh; left: 6vw; width: 240px; animation: drift 44s ease-in-out infinite alternate; }
.cloud-2 { top: 31vh; left: 44vw; width: 190px; opacity: 0.6; animation: drift 58s ease-in-out infinite alternate-reverse; }
.cloud-3 { top: 10vh; left: 62vw; width: 160px; opacity: 0.7; animation: drift 36s ease-in-out infinite alternate; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(70px); }
}

/* 远山 */
.mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 118px;
  width: 100%;
  height: 34vh;
  min-height: 220px;
  z-index: 3;
  pointer-events: none;
}

.ridge-back  { fill: #c5ddf0; }
.ridge-front { fill: #a9c9e4; }
.snowcap     { opacity: 0.92; }
.pines       { opacity: 0.75; }

/* 飞鸟 */
.birds {
  position: absolute;
  top: 26vh;
  left: 30vw;
  width: 150px;
  opacity: 0.55;
  z-index: 3;
  animation: birds-fly 26s linear infinite;
  pointer-events: none;
}

@keyframes birds-fly {
  0%   { transform: translateX(0) translateY(0); }
  50%  { transform: translateX(30vw) translateY(-2vh); }
  100% { transform: translateX(60vw) translateY(0); }
}

/* ============ 中央时间卡片 ============ */
.time-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: min(92vw, 560px);
  text-align: center;
  padding: clamp(20px, 4.5vh, 40px) clamp(24px, 6vw, 64px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(9px) saturate(150%);
  -webkit-backdrop-filter: blur(9px) saturate(150%);
  box-shadow: 0 18px 60px rgba(59, 110, 150, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.time-card .kicker {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-bottom: 12px;
}

.time-card h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4.2vh, 2.2rem);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 8px;
  color: var(--ink);
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.6);
}

.time-card .sub {
  font-size: 0.92rem;
  color: var(--ink-soft);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}

.time-card .now {
  font-size: 0.95rem;
  opacity: 0.85;
  letter-spacing: 3px;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.time-card .clock {
  font-family: Consolas, "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  letter-spacing: 2px;
  line-height: 1.12;
  color: var(--ink);
  text-shadow: 0 0 22px rgba(120, 180, 230, 0.45), 0 0 60px rgba(120, 170, 255, 0.22);
}

.time-card .clock .colon {
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0.2; }
}

.time-card .clock .sec {
  font-size: 0.45em;
  font-weight: 600;
  opacity: 0.65;
}

.time-card .date {
  margin-top: 12px;
  font-size: 0.98rem;
  opacity: 0.9;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.time-card .status {
  margin-top: 16px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--accent);
  min-height: 1.3em;
}

.time-card .status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  background: #ffd76a;
  box-shadow: 0 0 12px 2px rgba(255, 215, 106, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}

.time-card .status.done .dot {
  background: #2fa96a;
  box-shadow: 0 0 12px 2px rgba(47, 169, 106, 0.8);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.35); opacity: 0.55; }
}

/* 地面雪丘 */
.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  bottom: -120px;
  width: 116%;
  height: 250px;
  background: radial-gradient(ellipse 62% 60% at 50% 0%, #ffffff 0%, #f3f9fe 55%, #dcecf7 100%);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 10;
}

/* 雪松 */
#snow-pine {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1vh;
  width: min(700px, 90vw);
  height: auto;
  z-index: 11;
  overflow: visible;
}

.part {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.part.built {
  opacity: 1;
  transform: translateY(0);
}

.fast .part {
  transition: none !important;
}

/* 搭建进度 */
.build-hud {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 11px 20px 10px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(59, 110, 150, 0.14);
  z-index: 13;
}

.progress-track {
  width: 220px;
  height: 6px;
  border-radius: 3px;
  background: rgba(36, 68, 95, 0.12);
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-soft), var(--accent));
  transition: width 0.25s ease;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

#progress-text {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scroll-cue {
  position: absolute;
  right: 3.5vw;
  bottom: 28px;
  font-size: 1.7rem;
  color: rgba(36, 68, 95, 0.55);
  z-index: 13;
  animation: cue-bounce 1.8s ease-in-out infinite;
  transition: opacity 0.6s;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(9px); }
}

/* ============================================================
   第二页：个人介绍与作品
   ============================================================ */
.page {
  background: linear-gradient(180deg, var(--sky-3) 0%, #eef6fc 100%);
  padding: 90px 0;
  position: relative;
  z-index: 5;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* 个人介绍卡片 */
.page-about { padding-top: 110px; }

.about-card {
  display: flex;
  align-items: center;
  gap: 46px;
  background: #ffffff;
  border-radius: 26px;
  padding: 46px 52px;
  box-shadow: var(--card-shadow);
}

.avatar {
  flex: 0 0 210px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  overflow: hidden;
  border: 7px solid #ffffff;
  box-shadow: 0 8px 24px rgba(59, 110, 150, 0.18);
}

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

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  margin-bottom: 16px;
}

.about-text .accent { color: var(--accent); }

.bio {
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 0.98rem;
  max-width: 620px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tags span {
  background: #eaf4fb;
  color: var(--accent);
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: #8aa5b8;
}

/* 作品网格 */
.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.section-sub {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(59, 110, 150, 0.18);
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.card:hover img { transform: scale(1.06); }

.card figcaption {
  padding: 17px 20px 19px;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.card p {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ============================================================
   底部备案区域
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #1d3a55 0%, #152d47 100%);
  color: #c3d8e9;
  padding: 42px 0 48px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-line { font-size: 0.88rem; line-height: 1.8; }
.footer-line .owner { color: #ffffff; }

.beian a {
  color: #a9cbe6;
  text-decoration: none;
  transition: color 0.25s;
}

.beian a:hover { color: #ffffff; text-decoration: underline; }

.sep {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 860px) {
  .about-card {
    flex-direction: column;
    text-align: center;
    padding: 38px 28px;
  }

  .about-card .bio { margin: 0 auto; }
  .tags { justify-content: center; }

  .sun { right: 6vw; top: 7vh; width: 110px; height: 110px; }
  .time-card { top: 47%; }
  .scroll-cue { display: none; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .top-nav { width: auto; }
  .build-hud { bottom: 14px; }
  .progress-track { width: 170px; }
}

/* 减弱动画偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
