:root {
  --bg: #e8eef2;
  --bg-deep: #d4e0e8;
  --ink: #142028;
  --ink-soft: #3d525e;
  --accent: #0f7a6a;
  --accent-hot: #c45c26;
  --line: rgba(20, 32, 40, 0.12);
  --surface: rgba(255, 255, 255, 0.55);
  --font-display: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --space: 1.5rem;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #142028;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  background-color: #e8eef2;
  background-image:
    radial-gradient(120% 80% at 10% -10%, #f7fbfc 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #c5dde8 0%, transparent 50%),
    linear-gradient(165deg, #e8eef2 0%, #d4e0e8 48%, #cfdce4 100%);
  /* 勿在 body 上 overflow-x:hidden，新 Chrome 会裁切 fixed 播放器/歌词 */
}

main,
.site-footer {
  overflow-x: hidden;
}

.petal-canvas {
  display: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--space);
  background: linear-gradient(180deg, rgba(232, 238, 242, 0.94), rgba(232, 238, 242, 0));
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: -ms-grid;
  display: grid;
  -ms-flex-align: end;
  align-items: end;
  padding: 6.5rem var(--space) 4rem;
}

.hero-visual {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    linear-gradient(rgba(20, 32, 40, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 40, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  /* 网格漂移对观感帮助不大，关掉以免占合成层 */
  -webkit-animation: none;
  animation: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  /* 不用 filter:blur，部分核显/旧浏览器会直接崩 */
}

.hero-orb--a {
  width: 55vw;
  max-width: 420px;
  height: 55vw;
  max-height: 420px;
  right: 8%;
  top: 18%;
  background: radial-gradient(circle, rgba(15, 122, 106, 0.35) 0%, rgba(15, 122, 106, 0.12) 45%, transparent 70%);
  -webkit-animation: float-a 9s ease-in-out infinite;
  animation: float-a 9s ease-in-out infinite;
}

.hero-orb--b {
  width: 40vw;
  max-width: 300px;
  height: 40vw;
  max-height: 300px;
  right: 28%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(196, 92, 38, 0.22) 0%, rgba(196, 92, 38, 0.08) 45%, transparent 70%);
  -webkit-animation: float-b 11s ease-in-out infinite;
  animation: float-b 11s ease-in-out infinite;
}

.hero-lines {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  overflow: visible;
}

.hero-lines path {
  fill: none;
  stroke: #0f7a6a;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 8 10;
}

.hero-lines circle {
  fill: #c45c26;
  fill: var(--accent-hot);
  -webkit-animation: pulse 3.2s ease-in-out infinite;
  animation: pulse 3.2s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  -webkit-animation: rise 0.9s ease-out both;
  animation: rise 0.9s ease-out both;
}

.brand-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-tagline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--ink);
  color: #f4f8fa;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) var(--space);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2.25rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

.about {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.35));
}

.about-body {
  display: grid;
  gap: 1.1rem;
  max-width: 46rem;
  font-size: 1.08rem;
}

.about-body p {
  margin: 0;
}

.about-body strong {
  font-weight: 700;
  color: var(--accent);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.skill-list li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.skill-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-hot);
  letter-spacing: 0.06em;
}

.skill-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.skill-list p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40rem;
}

.contact {
  background:
    linear-gradient(135deg, rgba(15, 122, 106, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.45));
}

.contact-list {
  margin: 0;
  display: grid;
  gap: 1.25rem;
  max-width: 28rem;
}

.contact-list > div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-soft);
}

.contact-list dd {
  margin: 0;
  font-weight: 500;
  word-break: break-all;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.site-footer {
  padding: 3.5rem var(--space) 2.5rem;
  background: #122028;
  color: #d7e2e8;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}

.friend-links h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9eb4bf;
}

.friend-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.friend-links a {
  color: #f0f5f7;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}

.friend-links a:hover {
  color: #5fd4c0;
}

.beian {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: #8fa3ae;
}

.beian p {
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.beian a {
  color: #b7c8d0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.beian a:hover {
  color: #5fd4c0;
  text-decoration: underline;
}

.beian-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
}

.beian-gongan,
.copy {
  color: #7a909c;
}

.petal-dom-layer {
  pointer-events: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  overflow: hidden;
}

.dom-petal {
  position: absolute;
  display: block;
  border-radius: 62% 38% 58% 42%;
  background: radial-gradient(circle at 35% 30%, #fff7fb, #ffc9d9 52%, #f0a0b8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  opacity: 0.75;
  -webkit-animation-name: petal-fall;
  animation-name: petal-fall;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.dom-sakura {
  background: radial-gradient(circle at 32% 28%, #ffffff, #ffe0ea 45%, #ffb6cb);
}

@-webkit-keyframes petal-fall {
  0% {
    -webkit-transform: translate(0, 0) rotate(0deg);
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  6% { opacity: 0.75; }
  100% {
    -webkit-transform: translate(-42vw, 115vh) rotate(280deg);
    transform: translate(-42vw, 115vh) rotate(280deg);
    opacity: 0.15;
  }
}

@keyframes petal-fall {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  6% { opacity: 0.75; }
  100% {
    transform: translate(-42vw, 115vh) rotate(280deg);
    opacity: 0.15;
  }
}

@-webkit-keyframes rise {
  from {
    opacity: 0;
    -webkit-transform: translateY(28px);
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    -webkit-transform: translateY(28px);
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@-webkit-keyframes float-a {
  0%, 100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(-18px, 22px); transform: translate(-18px, 22px); }
}

@keyframes float-a {
  0%, 100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(-18px, 22px); transform: translate(-18px, 22px); }
}

@-webkit-keyframes float-b {
  0%, 100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(16px, -14px); transform: translate(16px, -14px); }
}

@keyframes float-b {
  0%, 100% { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  50% { -webkit-transform: translate(16px, -14px); transform: translate(16px, -14px); }
}

@-webkit-keyframes dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -400; }
}

@keyframes dash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -400; }
}

@-webkit-keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@-webkit-keyframes grid-drift {
  from { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  to { -webkit-transform: translate(48px, 48px); transform: translate(48px, 48px); }
}

@keyframes grid-drift {
  from { -webkit-transform: translate(0, 0); transform: translate(0, 0); }
  to { -webkit-transform: translate(48px, 48px); transform: translate(48px, 48px); }
}

@media (max-width: 720px) {
  .nav {
    gap: 0.85rem;
    font-size: 0.85rem;
  }

  .hero {
    align-items: center;
    padding-top: 7rem;
  }

  .skill-list li {
    grid-template-columns: 3rem 1fr;
  }

  .contact-list > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-grid,
  .hero-orb,
  .hero-lines circle,
  .dom-petal {
    -webkit-animation: none !important;
    animation: none !important;
  }
  .petal-dom-layer {
    display: none !important;
  }
}

/* ---- 右侧迷你播放器 ---- */
.mini-player {
  position: fixed !important;
  right: 0 !important;
  top: 42% !important;
  z-index: 9999 !important;
  -webkit-transform: none;
  transform: none;
  font-family: var(--font-body);
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.mp-toggle {
  width: 36px;
  height: 58px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 122, 106, 0.35);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: #ffffff;
  color: #0f7a6a;
  cursor: pointer;
  display: block !important;
  text-align: center;
  line-height: 58px;
  -webkit-box-shadow: -4px 0 18px rgba(20, 32, 40, 0.12);
  box-shadow: -4px 0 18px rgba(20, 32, 40, 0.12);
}

.mini-player.is-open .mp-toggle {
  display: none !important;
}

.mp-toggle svg {
  vertical-align: middle;
}

.mp-toggle:hover {
  background: #f4fbfa;
  color: #142028;
}

.mini-player.is-playing .mp-toggle svg {
  -webkit-animation: mp-pulse 1.6s ease-in-out infinite;
  animation: mp-pulse 1.6s ease-in-out infinite;
}

@-webkit-keyframes mp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes mp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.mp-panel {
  width: 172px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(20, 32, 40, 0.12);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #ffffff;
  -webkit-box-shadow: -8px 0 24px rgba(20, 32, 40, 0.12);
  box-shadow: -8px 0 24px rgba(20, 32, 40, 0.12);
}

.mini-player.is-open .mp-panel {
  display: block !important;
}

.mp-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.mp-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-close {
  margin: 0;
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  white-space: nowrap;
}

.mp-close:hover {
  color: var(--ink);
  background: rgba(20, 32, 40, 0.06);
}

.mp-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 8px;
}

.mp-main {
  margin-bottom: 8px;
}

.mp-btn {
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(20, 32, 40, 0.14);
  border-radius: 50%;
  background: var(--ink);
  color: #f4f8fa;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.mp-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.mp-time {
  font-size: 10px;
  line-height: 1.2;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.mp-field {
  display: block;
  margin: 0 0 6px;
}

.mp-field:last-child {
  margin-bottom: 0;
}

.mp-label {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  color: #7a909c;
  letter-spacing: 0.04em;
}

.mp-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(20, 32, 40, 0.12);
  outline: none;
  cursor: pointer;
  vertical-align: middle;
}

.mp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.mp-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

.mp-range::-moz-range-track {
  height: 3px;
  background: rgba(20, 32, 40, 0.12);
  border: none;
}

@media (max-width: 720px) {
  .mp-panel {
    width: 148px;
    padding: 8px 10px 10px;
  }

  .mp-toggle {
    width: 30px;
    height: 48px;
    line-height: 48px;
  }

  .lyric-bar {
    height: 84px;
    bottom: 0.75rem;
  }

  .lyric-line {
    font-size: 13px;
  }

  .lyric-line.is-active {
    font-size: 15px;
  }

  .site-footer {
    padding-bottom: 6rem;
  }
}

/* ---- 底部同步歌词（无背景，文字+阴影） ---- */
.lyric-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 18px !important;
  z-index: 9998 !important;
  height: 100px;
  pointer-events: none;
  background: transparent !important;
  color: #142028;
  visibility: visible !important;
  opacity: 1 !important;
}

.lyric-inner {
  max-width: 40rem;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  box-sizing: border-box;
  position: relative;
}

.lyric-hint {
  margin: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(20, 32, 40, 0.72);
  letter-spacing: 0.06em;
  z-index: 1;
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 0 12px rgba(255, 255, 255, 0.95),
    0 2px 10px rgba(232, 238, 242, 1);
}

.lyric-hint.is-hidden {
  display: none;
}

.lyric-viewport {
  height: 100%;
  overflow: hidden;
  position: relative;
}

.lyric-track {
  -webkit-transition: -webkit-transform 0.35s ease;
  transition: transform 0.35s ease;
}

.lyric-line {
  margin: 0;
  padding: 0.3rem 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(20, 32, 40, 0.45);
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 0 10px rgba(255, 255, 255, 0.9),
    0 2px 8px rgba(232, 238, 242, 1);
  -webkit-transition: color 0.25s ease, font-size 0.25s ease, opacity 0.25s ease, text-shadow 0.25s ease;
  transition: color 0.25s ease, font-size 0.25s ease, opacity 0.25s ease, text-shadow 0.25s ease;
}

.lyric-line.is-near {
  color: rgba(20, 32, 40, 0.7);
}

.lyric-line.is-active {
  color: #0b6b5d;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  text-shadow:
    0 1px 2px rgba(255, 255, 255, 1),
    0 0 14px rgba(255, 255, 255, 1),
    0 2px 12px rgba(15, 122, 106, 0.28),
    0 0 1px rgba(20, 32, 40, 0.25);
}

.site-footer {
  padding-bottom: 7.5rem;
}
