/* ============================================================
   CLOUD STUDIO — 独立音乐制作人作品集
   严格还原 Ardot 设计稿视觉细节
   ============================================================ */

/* ---------- 设计令牌（来自设计稿精确值） ---------- */
:root {
  /* 配色 */
  --bg: #0a0a0c;            /* 页面底色 rgb(10,10,12) */
  --card: #14141a;          /* 手风琴卡底 rgb(20,20,26) */
  --card-line: #29292e;     /* 卡片描边 rgb(41,41,46) */
  --bio-bg: #0f0f14;        /* 简历卡底 rgb(15,15,20) */
  --bio-line: #333338;      /* 简历卡描边/头像描边 rgb(51,51,56) */
  --white: #f5f5f4;         /* 主文字 rgb(245,245,244) */
  --gray-1: #ededed;        /* 关键词白 rgb(237,237,237) */
  --gray-2: #d6d6dc;        /* 描述文字 rgb(214,214,220) */
  --gray-3: #c9c9c9;        /* 简历条目 rgb(201,201,201) */
  --gray-4: #a0a0a8;        /* 次级说明 rgb(160,160,168) */
  --gray-5: #6e6e76;        /* 标签灰 rgb(110,110,118) */
  --gray-6: #5e5e66;        /* 版权灰 rgb(94,94,102) */
  --gray-7: #4d4d54;        /* toggle 描边 rgb(77,77,84) */
  --orange: #ff6b2c;        /* 强调橙 rgb(255,107,44) */
  --green: #3dffb0;         /* 状态绿 rgb(61,255,176) */

  /* 字体 */
  --f-grotesk: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  --f-mono: 'Space Mono', monospace;
  --f-sans: 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;

  /* 动效令牌 */
  --dur-fast: 120ms;
  --dur-base: 240ms;
  --dur-slow: 360ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

::selection { background: var(--orange); color: var(--bg); }

/* ============================================================
   Header
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--bg);
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out);
}
.logo:hover .logo-mark { transform: scale(1.06); }

.logo-name {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--gray-1);
  letter-spacing: 0.5px;
}

.nav { display: flex; gap: 40px; }

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-1);
  position: relative;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--orange); }
.nav a:hover::after { transform: scaleX(1); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-1);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: var(--orange);
  animation: pulse 2s ease-inout infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.header-cta:hover { color: var(--orange); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 96px 64px 0;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
}

.section-index {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--orange);
}

.available {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--green);
}
.available .dot {
  width: 7px; height: 7px;
  border-radius: 4px;
  background: var(--green);
  animation: pulse 2.4s ease-inout infinite;
}

.hero-main {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.hero-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.hero-title {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 104px;
  line-height: 108px;
  letter-spacing: -2px;
  color: var(--white);
}
.hero-title .line { display: block; }

.hero-sub-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray-4);
}

.hero-sub-en {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--gray-5);
}

.hero-cta { display: flex; gap: 16px; margin-top: 8px; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  padding: 16px 28px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn-primary { background: var(--orange); color: var(--bg); }
.btn-primary:hover { transform: scale(1.03); background: #ff7f47; }
.btn-secondary { border: 1px solid #5e5e66; color: var(--gray-1); }
.btn-secondary:hover { border-color: var(--gray-1); }

.hero-visual {
  position: relative;
  width: 460px;
  height: 460px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
}
.hero-visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.visual-label {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 1px;
}

/* ---------- 跑马灯 ---------- */
.marquee {
  margin-top: 72px;
  padding: 20px 0;
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 24s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-track span {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--gray-5);
  letter-spacing: 2px;
  white-space: nowrap;
}
.mq-dot {
  width: 6px; height: 6px;
  border-radius: 3px;
  background: var(--orange);
  flex-shrink: 0;
}

/* ============================================================
   Section 通用
   ============================================================ */
.section-works, .section-about, .section-contact {
  padding: 120px 64px 0;
}
.section-about { padding-top: 140px; }
.section-contact { padding-top: 160px; }

.work-head, .about-head, .contact-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 56px;
}
.about-head, .contact-head { gap: 16px; }

.work-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.work-title, .about-title {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 72px;
  line-height: 80px;
  letter-spacing: -1px;
}

.work-desc {
  width: 320px;
  font-size: 18px;
  line-height: 28px;
  color: var(--gray-4);
}

/* ============================================================
   作品集手风琴
   ============================================================ */
.work-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}
.accordion:hover { border-color: #3a3a42; }
.accordion.open { border-color: #3a3a42; }

.acc-header {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
}

.acc-thumb {
  width: 96px; height: 96px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.acc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.acc-header:hover .acc-thumb img { transform: scale(1.05); }

.acc-title-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.acc-title {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 28px;
  color: var(--white);
}

.acc-genre {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-5);
}

/* Toggle 图标：+ 号 */
.acc-toggle {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 20px;
  border: 1px solid var(--gray-7);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.acc-toggle::before, .acc-toggle::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--gray-1);
  transition: background var(--dur-fast) var(--ease-out);
}
.acc-toggle::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.acc-toggle::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }

.accordion.open .acc-toggle {
  transform: rotate(135deg);
  background: var(--orange);
  border-color: var(--orange);
}
.accordion.open .acc-toggle::before,
.accordion.open .acc-toggle::after { background: var(--bg); }

/* ---------- 展开内容 ---------- */
.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-inout);
}
.accordion.open .acc-body { grid-template-rows: 1fr; }
.acc-body-inner { overflow: hidden; }

.acc-body-inner > .acc-cover {
  margin: 0 24px;
}
.acc-body-inner > .audio-players {
  margin: 16px 24px 24px;
}

/* 磨砂封面 */
.acc-cover {
  position: relative;
  height: 320px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.frost-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 26, 0.55);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.detail-layer {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 36px;
  justify-content: center;
}

.detail-badge {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--orange);
}

.detail-title {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  color: var(--white);
}

.detail-desc {
  max-width: 1100px;
  font-size: 18px;
  line-height: 30px;
  color: var(--gray-2);
}

.detail-meta {
  display: flex;
  gap: 20px;
  margin-top: 6px;
}
.detail-meta span {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-1);
}

/* 展开时详情逐行入场 */
.accordion.open .detail-layer > * {
  animation: rise 300ms var(--ease-out) both;
}
.accordion.open .detail-layer > *:nth-child(1) { animation-delay: 60ms; }
.accordion.open .detail-layer > *:nth-child(2) { animation-delay: 120ms; }
.accordion.open .detail-layer > *:nth-child(3) { animation-delay: 180ms; }
.accordion.open .detail-layer > *:nth-child(4) { animation-delay: 240ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   音频播放器
   ============================================================ */
.audio-players {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player {
  background: #0d0d12;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.player:hover { border-color: #3a3a42; }

/* 播放中指示条 */
.player.playing::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: var(--pc, var(--orange));
  border-radius: 1px;
}

.p-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.p-play {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 22px;
  background: var(--pc, var(--orange));
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              filter var(--dur-fast) var(--ease-out);
}
.p-play:hover { transform: scale(1.08); filter: brightness(1.1); }

/* 播放三角 / 暂停双条 */
.p-play::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  border-style: solid;
  border-width: 7.5px 0 7.5px 12px;
  border-color: transparent transparent transparent var(--bg);
  transition: opacity var(--dur-fast) var(--ease-out);
}
.player.playing .p-play::before {
  border-width: 0;
  width: 10px; height: 14px;
  border: none;
  border-left: 3px solid var(--bg);
  border-right: 3px solid var(--bg);
  transform: translate(-50%, -50%);
}

.p-title-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.p-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}
.p-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-5);
}
.p-time {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--gray-5);
}

/* 进度条 */
.p-progress {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: var(--card-line);
  cursor: pointer;
}
.p-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  border-radius: 3px;
  background: var(--pc, var(--orange));
  transition: width 0.15s linear;
}
.p-knob {
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 7px;
  background: var(--pc, var(--orange));
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.p-progress:hover .p-knob { transform: translate(-50%, -50%) scale(1.15); }

/* ============================================================
   更多作品
   ============================================================ */
.more-tile {
  border: 1px dashed #404047;
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: border-color var(--dur-base) var(--ease-out);
}
.more-tile:hover { border-color: var(--orange); }

.more-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
}
.more-title {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 28px;
  line-height: 38px;
  color: var(--white);
}

/* ============================================================
   关于我
   ============================================================ */
.about-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.about-intro {
  display: flex;
  gap: 48px;
  align-items: center;
}

.portrait {
  position: relative;
  width: 300px; height: 360px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bio-line);
  flex-shrink: 0;
}
.portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.portrait-label {
  position: absolute;
  top: 28px; left: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-3);
  letter-spacing: 1px;
}

.intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.name-label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-5);
}

.name {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 64px;
  line-height: 64px;
}

.name-hint {
  border-top: 1px solid var(--card-line);
  padding: 20px 0;
}
.years {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--orange);
}
.years em { font-style: normal; }

.bio-label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-5);
}

.bio-card {
  background: var(--bio-bg);
  border: 1px solid var(--bio-line);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bio-group-title {
  display: block;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--orange);
  margin-bottom: 12px;
}

.bio-items {
  font-size: 14px;
  line-height: 26px;
  color: var(--gray-3);
}

/* ============================================================
   联系
   ============================================================ */
.contact-title {
  font-family: var(--f-grotesk);
  font-weight: 700;
  font-size: 80px;
  line-height: 90px;
  letter-spacing: -1px;
}

.contact-body {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.contact-desc {
  width: 380px;
  font-size: 20px;
  line-height: 34px;
  color: var(--gray-4);
  flex-shrink: 0;
}

.contact-links { flex: 1; }

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--card-line);
  transition: padding-left var(--dur-fast) var(--ease-out);
}
.contact-row:first-child { border-top: 1px solid var(--card-line); }
.contact-row:hover { padding-left: 8px; }

.c-label {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--gray-5);
  width: 80px;
  flex-shrink: 0;
}

.c-value {
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  transition: color var(--dur-fast) var(--ease-out);
}
.c-value-lg {
  font-family: var(--f-grotesk);
  font-weight: 500;
  font-size: 28px;
}
.contact-row:hover .c-value { color: var(--orange); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  margin-top: 120px;
  padding: 120px 64px 48px;
  border-top: 1px solid var(--card-line);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--gray-1);
}

.footer-nav { display: flex; gap: 32px; }
.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-4);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-nav a:hover { color: var(--orange); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 13px;
  color: var(--gray-6);
}

.footer-tag {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--orange);
}

/* ============================================================
   滚动入场动效
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1100px) {
  .hero-main { flex-direction: column; }
  .hero-title { font-size: 72px; line-height: 76px; }
  .hero-visual { width: 100%; max-width: 520px; height: auto; aspect-ratio: 1; }
  .work-title-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-title, .about-title { font-size: 52px; line-height: 60px; }
  .contact-title { font-size: 52px; line-height: 60px; }
  .contact-body { flex-direction: column; }
  .about-intro { flex-direction: column; align-items: flex-start; }
  .acc-title { font-size: 22px; }
  .detail-title { font-size: 30px; line-height: 38px; }
}

@media (max-width: 640px) {
  .header, .hero, .section-works, .section-about, .section-contact, .footer { padding-left: 24px; padding-right: 24px; }
  .hero-title { font-size: 48px; line-height: 54px; }
  .acc-header { gap: 14px; }
  .acc-thumb { width: 64px; height: 64px; }
  .acc-title { font-size: 18px; }
  .acc-toggle { width: 32px; height: 32px; }
  .detail-layer { padding: 20px; }
  .detail-desc { font-size: 15px; line-height: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ============================================================
   无障碍：减弱动效
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
