/* ==========================================================
   明亮冷调全屏主页框架（参考：影像设计师主页）
   浅色 · 顶部玻璃导航 · 居中 Hero · 已移除左侧滚轮/背景切换
   ========================================================== */

:root {
  --bg1: #f6fafd;
  --bg2: #e7f3f6;
  --card: #fefeff;
  --tint: #fbfdfe;
  --line: #d4d7da;
  --line2: #e0e4e6;
  --ink: #1e1e1e;
  --ink2: #67696a;
  --ink3: #949698;
  --accent: #54e5e8;
  --accent-deep: #3ca5a7;
  --glass-nav: rgba(252, 254, 254, 0.82);
  --sh-sm: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.1);
  --sh-lg: 0 2px 4px rgba(0, 0, 0, 0.08), 0 24px 50px rgba(0, 0, 0, 0.14);
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Inter", sans-serif;
  background: var(--bg1);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ 顶部导航 ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--glass-nav);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
}
.brand-logo {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent-deep);
  padding: 2px 7px;
  border-radius: 4px;
}

.site-name {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  line-height: 1.25;
}
.site-cn { display: block; font-size: 13px; letter-spacing: 4px; color: var(--ink2); }
.site-en { display: block; font-size: 9px; letter-spacing: 3px; color: var(--ink3); }

.menu { display: flex; align-items: center; gap: 26px; }
.menu-link {
  color: var(--ink2);
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 2px;
  transition: color 0.25s;
}
.menu-link:hover { color: var(--accent-deep); }

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 13.5px;
  letter-spacing: 2px;
  padding: 10px 26px;
  border-radius: 4px;
  transition: all 0.28s ease;
  cursor: pointer;
}
.btn-sm { padding: 7px 18px; font-size: 12.5px; }

.btn-gold {
  background: var(--accent-deep);
  color: #fff;
  font-weight: 600;
  border: 1px solid var(--accent-deep);
}
.btn-gold:hover {
  background: #46c7c9;
  border-color: #46c7c9;
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover {
  border-color: var(--accent-deep);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(84, 229, 232, 0.35), transparent 52%),
    radial-gradient(circle at 18% 82%, rgba(60, 165, 167, 0.18), transparent 58%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.06) translateY(-12px); }
}

.glow { position: absolute; border-radius: 50%; filter: blur(80px); }
.g1 { width: 440px; height: 440px; top: -10%; right: 4%;  background: rgba(84, 229, 232, 0.22); }
.g2 { width: 380px; height: 380px; bottom: -12%; left: 2%; background: rgba(60, 165, 167, 0.14); }

.bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(60, 165, 167, 0.22);
  background: radial-gradient(circle at 35% 30%, rgba(60, 165, 167, 0.16), rgba(60, 165, 167, 0.03) 60%);
  animation: rise 12s ease-in-out infinite;
}
.b1 { width: 74px;  height: 74px;  top: 30%; left: 62%; animation-delay: 0s; }
.b2 { width: 40px;  height: 40px;  top: 18%; left: 58%; animation-delay: -3s; }
@keyframes rise {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50%      { transform: translateY(-36px) scale(1.05); opacity: 1; }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.35) 0%, transparent 24%),
    linear-gradient(to top, rgba(255, 255, 255, 0.45) 0%, transparent 30%);
}

/* --- 面包屑 --- */
.crumb {
  position: absolute;
  top: calc(var(--nav-h) + 26px);
  left: 32px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink3);
}
.crumb i { font-style: normal; margin: 0 6px; opacity: 0.6; }

/* --- 居中主内容 --- */
.hero-inner {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
  animation: heroIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.kicker {
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--accent-deep);
  margin-bottom: 26px;
}
.kicker i { font-style: normal; margin: 0 8px; opacity: 0.7; }

.title {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: 6px;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}
.title .split-char {
  display: inline-block;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.subtitle {
  font-size: 14.5px;
  line-height: 2;
  letter-spacing: 1.5px;
  color: var(--ink2);
  margin-bottom: 42px;
}

.cta-row {
  display: flex;
  gap: 18px;
  justify-content: center;
}

/* --- 主内容中部的“向下滚动”引导 --- */
.foot-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--ink3);
}
.scroll-line {
  display: inline-block;
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, var(--accent-deep), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* ============ 内容板块（作品 / 关于 / 联系） ============ */
body {
  background: linear-gradient(160deg, var(--bg1), var(--bg2) 45%);
}

.block {
  position: relative;
  overflow: hidden;
  max-width: 1140px;
  margin: 0 auto 30px;
  padding: 52px 56px;
  background: linear-gradient(160deg, #fbfdfe 0%, #eaf6f7 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--sh-sm);
  /* 锚点跳转时在顶部预留固定导航高度，避免标题被遮挡 */
  scroll-margin-top: calc(var(--nav-h) + 28px);
}

/* 各板块差异化的柔和底色（避免三个白块雷同） */
#works   { margin-top: 64px; background: linear-gradient(160deg, #fbfdfe 0%, #e7f5f6 100%); }
#about   { background: linear-gradient(160deg, #fbfdfe 0%, #eef5f9 100%); }
#contact { background: linear-gradient(160deg, #fbfdfe 0%, #e8f6f3 100%); }

/* 背景装饰光斑：让板块背景有层次、不呆板（不干扰内容） */
.block::before,
.block::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
#works::before   { width: 360px; height: 360px; top: -120px; right: -80px;  background: rgba(84, 229, 232, 0.20); }
#works::after    { width: 300px; height: 300px; bottom: -120px; left: -90px; background: rgba(60, 165, 167, 0.14); }
#about::before   { width: 340px; height: 340px; top: -110px; left: -100px;  background: rgba(84, 229, 232, 0.16); }
#about::after    { width: 280px; height: 280px; bottom: -110px; right: -80px; background: rgba(60, 165, 167, 0.12); }
#contact::before { width: 420px; height: 420px; top: -160px; left: 50%; transform: translateX(-50%); background: rgba(84, 229, 232, 0.16); }

/* 让板块内所有内容浮在装饰光斑之上 */
.block > .wrap { position: relative; z-index: 1; }
.block-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.block-title {
  position: relative;
  display: inline-block;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--ink);
  margin-bottom: 42px;
}
.block-title::after {
  content: '';
  position: absolute;
  left: 2px;
  bottom: -14px;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}
#contact .block-title::after { left: 50%; transform: translateX(-50%); }

/* 板块内小卡片 */
.inner-card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f1fafb 100%);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 4px 16px rgba(31, 56, 88, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.inner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(60, 165, 167, 0.14);
}

.wrap { max-width: 1080px; margin: 0 auto; }

/* --- 作品网格 --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.card {
  position: relative;
  background: linear-gradient(165deg, #ffffff 0%, #f2fbfc 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 22px;
  box-shadow: 0 6px 18px rgba(31, 56, 88, 0.06);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
/* 顶部渐变强调条：悬停时滑出 */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(60, 165, 167, 0.18);
  border-color: rgba(84, 229, 232, 0.6);
}
.card:hover::before { transform: scaleX(1); }
.card-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.card-desc { font-size: 13.5px; line-height: 1.85; color: var(--ink2); margin-bottom: 14px; }
.card-desc b { color: var(--ink); font-weight: 600; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card-tags span {
  font-size: 11.5px;
  color: var(--accent-deep);
  background: rgba(60, 165, 167, 0.1);
  border: 1px solid rgba(60, 165, 167, 0.25);
  padding: 3px 10px;
  border-radius: 20px;
}
.card-tags.big span { font-size: 12.5px; padding: 5px 12px; }

.card-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--accent-deep);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.25s ease;
}
.card-link:hover { color: var(--accent); transform: translateX(3px); }

/* --- 关于我 --- */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.about-p { font-size: 14.5px; line-height: 2; color: var(--ink2); margin-bottom: 14px; }
.about-p:last-child { margin-bottom: 0; }
.about-p.small { font-size: 13px; }
.side-h {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ink);
  margin: 0 0 14px;
}
.side-h::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 4px;
  height: 15px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.about-side { display: flex; flex-direction: column; gap: 18px; padding-top: 44px; }

/* --- 关于我：我的空间入口卡片 --- */
.space-card { display: flex; flex-direction: column; }
.space-link {
  margin-top: 12px;
  align-self: flex-start;
  font-size: 13.5px;
  letter-spacing: 1.5px;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(60, 165, 167, 0.35);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.space-link:hover { color: var(--accent); border-color: var(--accent); }

/* --- 关于我：网站数据卡片 --- */
.stats-card {
  grid-column: 1 / -1;
  position: relative;
  margin-top: 6px;
  background: linear-gradient(165deg, #ffffff 0%, #eef9fa 100%);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 22px 26px 24px;
  box-shadow: 0 4px 16px rgba(31, 56, 88, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(60, 165, 167, 0.14);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 2px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line2);
}
.stat-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.stat-icon {
  width: 16px;
  height: 16px;
  color: var(--accent-deep);
  flex-shrink: 0;
}
.stat-num {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--ink2);
  text-align: center;
}

/* --- 联系我 --- */
.contact { text-align: center; }
.contact-p { font-size: 15px; color: var(--ink2); margin-bottom: 34px; }

.contact-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  text-align: left;
  background: linear-gradient(165deg, #ffffff 0%, #f1fafb 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 34px 26px;
  box-shadow: 0 8px 26px rgba(31, 56, 88, 0.08);
  overflow: hidden;
}
/* 顶部渐变强调条 */
.contact-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 38px;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.25s ease;
}
.contact-line:hover { transform: translateX(4px); }
.cl-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(84, 229, 232, 0.16);
  border: 1px solid rgba(60, 165, 167, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.contact-line:hover .cl-icon {
  background: rgba(84, 229, 232, 0.28);
  color: var(--accent-deep);
}
.cl-icon svg { width: 22px; height: 22px; }
.cl-label {
  width: 58px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink3);
  flex-shrink: 0;
}
.cl-val {
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--ink);
}

.contact-jump { text-align: left; }
.jump-link {
  font-size: 14.5px;
  letter-spacing: 1.5px;
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(60, 165, 167, 0.35);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.jump-link:hover { color: var(--accent); border-color: var(--accent); }

.meta-link { color: var(--accent-deep); text-decoration: none; transition: color 0.25s ease; }
.meta-link:hover { color: var(--accent); text-decoration: underline; }

/* --- 右下角语言切换（滑动分段控件） --- */
.lang-switch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  height: 42px;
  border-radius: 999px;
  background: var(--glass-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  user-select: none;
}
.lang-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 38px;
  background: var(--accent-deep);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(60, 165, 167, 0.35);
}
.lang-opt {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 34px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ink3);
  transition: color 0.25s ease;
}
.lang-opt.is-active { color: #fff; }
.lang-opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 900px) {
  .lang-switch { right: 14px; bottom: 14px; }
}

/* --- 页脚 --- */
.site-foot {
  text-align: center;
  padding: 6px 30px 34px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink3);
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .site-name { display: none; }
  .menu { gap: 16px; }
  .menu-link { display: none; }
  .crumb { left: 16px; }
  .subtitle br { display: none; }
  .block { padding: 36px 22px; border-radius: 18px; }
  .works-grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 22px; }
  .about-side { padding-top: 0; }
  .inner-card { padding: 18px 20px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-num { font-size: 23px; }
}

/* ============ 动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .bubble, .scroll-line, .hero-inner { animation: none; }
}
