/* ============================================
   YY · 视频创作者主页 — 样式表
   ============================================ */

/* --- CSS 变量 & 全局重置 --- */
:root {
  --ink: #17212b;
  --muted: #65727d;
  --line: rgba(255, 255, 255, .7);
  --glass: rgba(255, 255, 255, .62);
  --blue: #4778e8;
  --coral: #f07870;
  --shadow: 0 18px 55px rgba(47, 64, 84, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: 'DM Sans', 'Noto Sans SC', sans-serif;
  background: #dce6ef;
  min-height: 100vh;
  overflow-x: hidden;
}

/* --- 背景装饰圆 --- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  opacity: .72;
  animation: drift 15s ease-in-out infinite alternate;
}

body::before {
  width: 520px;
  height: 520px;
  left: -150px;
  top: -140px;
  background: #b5d0f7;
}

body::after {
  width: 460px;
  height: 460px;
  right: -110px;
  bottom: -100px;
  background: #f7c2bb;
  animation-delay: -5s;
}

/* --- 布局容器 --- */
.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 110px;
}

/* --- 顶栏 --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  animation: rise .65s both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #718ff0, #70b8d5);
  box-shadow: 0 7px 15px rgba(78, 125, 218, .26);
}

.top-actions {
  display: flex;
  gap: 9px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .48);
  border-radius: 13px;
  color: #52616e;
  font-size: 17px;
  cursor: pointer;
  transition: .25s;
}

.icon-btn:hover {
  transform: translateY(-3px);
  background: white;
  box-shadow: 0 8px 20px rgba(47, 64, 84, .13);
}

/* --- Hero 区域 --- */
.hero {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  margin-bottom: 18px;
}

/* --- 通用卡片 --- */
.card {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  border-radius: 27px;
}

/* --- 个人资料卡 --- */
.profile {
  padding: 34px;
  position: relative;
  overflow: hidden;
  animation: rise .75s .05s both;
}

.profile::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -100px;
  top: -130px;
  background: rgba(255, 255, 255, .46);
  border-radius: 50%;
}

.profile-content {
  position: relative;
  z-index: 1;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(54, 78, 106, .2);
  border: 3px solid rgba(255, 255, 255, .85);
}

.eyebrow {
  color: #667789;
  font-size: 13px;
  margin: 22px 0 7px;
}

.name {
  font-size: 42px;
  line-height: 1.05;
  margin: 0 0 11px;
  letter-spacing: -.06em;
}

.bio {
  color: #536372;
  max-width: 500px;
  line-height: 1.65;
  margin: 0 0 22px;
  font-size: 15px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  font-size: 12px;
  color: #546574;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.primary,
.secondary {
  border: 0;
  border-radius: 13px;
  padding: 12px 17px;
  font: 600 13px inherit;
  cursor: pointer;
  transition: .25s;
}

.primary {
  color: white;
  background: #263b55;
  box-shadow: 0 8px 18px rgba(38, 59, 85, .2);
}

.secondary {
  background: rgba(255, 255, 255, .6);
  color: #344b60;
  border: 1px solid rgba(255, 255, 255, .8);
}

.primary:hover,
.secondary:hover {
  transform: translateY(-3px);
}

/* --- 引言卡 --- */
.quote {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: rise .75s .12s both;
}

.quote-mark {
  font-size: 38px;
  color: #7890a6;
  line-height: 1;
}

.quote p {
  font-size: 19px;
  line-height: 1.45;
  margin: 14px 0;
  font-weight: 600;
  letter-spacing: -.03em;
}

.quote small {
  color: var(--muted);
  font-size: 12px;
}

/* --- 区块标题 --- */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 27px 2px 12px;
}

.section-title h2 {
  font-size: 17px;
  margin: 0;
  letter-spacing: -.03em;
}

.section-title a {
  font-size: 12px;
  color: #667d93;
  text-decoration: none;
}

/* --- 项目网格 --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini {
  padding: 19px;
  animation: rise .75s both;
  transition: .3s;
}

.mini:nth-child(2) {
  animation-delay: .08s;
}

.mini:nth-child(3) {
  animation-delay: .16s;
}

.mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(47, 64, 84, .18);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #dce7ff;
  color: #486ec8;
  font-size: 18px;
}

.project-status {
  font-size: 11px;
  color: #4d9d75;
  background: #e1f4e9;
  border-radius: 8px;
  padding: 5px 8px;
}

.mini h3 {
  font-size: 15px;
  margin: 18px 0 6px;
}

.mini p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 17px;
}

.progress {
  height: 5px;
  background: rgba(84, 108, 130, .14);
  border-radius: 8px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #6c8eea, #8ab9e9);
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: #71808c;
  font-size: 11px;
}

/* --- 活动动态 --- */
.activity {
  padding: 7px 22px;
}

.event {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(104, 129, 149, .14);
}

.event:last-child {
  border-bottom: 0;
}

.event-dot {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: #5878d1;
  font-size: 15px;
}

.event:nth-child(2) .event-dot {
  background: #fff0e9;
  color: #db876d;
}

.event:nth-child(3) .event-dot {
  background: #e7f6ef;
  color: #58a27f;
}

.event-content {
  flex: 1;
}

.event-content strong {
  font-size: 13px;
  font-weight: 600;
}

.event-content span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.event-time {
  font-size: 11px;
  color: #87939c;
}

/* --- 底部 Dock 导航 --- */
.dock {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 19px;
  box-shadow: 0 15px 35px rgba(47, 64, 84, .17);
  z-index: 3;
}

.dock button {
  border: 0;
  background: transparent;
  min-width: 74px;
  height: 44px;
  padding: 0 13px;
  border-radius: 13px;
  color: #71808d;
  font: 600 12px inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: .25s;
}

.dock button svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.dock button.active {
  color: #fff;
  background: #263b55;
  box-shadow: 0 5px 12px rgba(38, 59, 85, .23);
}

.dock button:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .75);
}

.dock button.active:hover {
  background: #263b55;
}

/* --- 动画 --- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  to {
    transform: translate(50px, 35px) scale(1.08);
  }
}

/* --- 深色模式 --- */
body.night {
  --ink: #edf3f8;
  --muted: #aab8c4;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(22, 35, 49, .64);
  background: #172331;
}

body.night::before {
  background: #315783;
}

body.night::after {
  background: #764c55;
}

body.night .brand,
body.night .section-title h2,
body.night .mini h3,
body.night .event-content strong {
  color: var(--ink);
}

body.night .bio,
body.night .eyebrow,
body.night .quote small,
body.night .event-content span,
body.night .event-time,
body.night .meta {
  color: var(--muted);
}

body.night .tag,
body.night .secondary,
body.night .icon-btn {
  background: rgba(255, 255, 255, .1);
  color: #d7e1ea;
  border-color: rgba(255, 255, 255, .18);
}

body.night .quote-mark {
  color: #9eb3c8;
}

body.night .app-desc {
  color: var(--muted);
}

body.night .step-num {
  background: rgba(255, 255, 255, .1);
  color: #8aa8da;
}

body.night .app-help a {
  color: #7a9fe0;
}

/* --- 视图切换（作品/想法/联系） --- */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: rise .45s both;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.detail-card {
  padding: 22px;
}

.detail-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

/* --- 联系方式 --- */
.contact-list {
  display: grid;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-radius: 17px;
  background: rgba(255, 255, 255, .42);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: .25s;
}

.contact-item:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, .7);
}

.contact-item b {
  font-size: 13px;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.contact-icon {
  width: 27px;
  height: 27px;
  flex: none;
  display: grid;
  place-items: center;
  color: #5276cf;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
}

/* --- 想法笔记 --- */
.idea {
  padding: 21px;
}

.idea time {
  font-size: 11px;
  color: #7b8b98;
}

.idea h3 {
  font-size: 16px;
  margin: 10px 0 7px;
}

.idea p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

/* --- 返回链接 --- */
.back {
  cursor: pointer;
  color: #61798e;
  font-size: 12px;
}

/* --- App 详情页 --- */
.app-card {
  cursor: pointer;
  transition: .3s;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(47, 64, 84, .18);
}

.app-hero {
  padding: 40px;
  text-align: center;
  animation: rise .5s both;
}

.app-icon-large {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  background: linear-gradient(135deg, #5b8def, #7aade8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 12px 28px rgba(71, 120, 232, .28);
}

.app-icon-emoji {
  font-size: 36px;
  color: #fff;
}

.app-title {
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -.04em;
}

.app-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.app-desc {
  color: #536372;
  font-size: 15px;
  line-height: 1.75;
  max-width: 600px;
  margin: 0 auto 28px;
}

.app-download-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.app-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 15px;
  background: #263b55;
  color: white;
  font: 600 15px inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(38, 59, 85, .25);
  transition: .25s;
}

.app-download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(38, 59, 85, .32);
}

.app-version {
  color: var(--muted);
  font-size: 12px;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.app-feature {
  padding: 24px;
  text-align: center;
  animation: rise .5s both;
}

.app-feature:nth-child(2) { animation-delay: .06s; }
.app-feature:nth-child(3) { animation-delay: .12s; }
.app-feature:nth-child(4) { animation-delay: .18s; }

.app-feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.app-feature h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.app-feature p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.app-steps {
  padding: 10px 24px;
  animation: rise .5s both;
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(104, 129, 149, .12);
}

.step:last-child {
  border-bottom: 0;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e4edff;
  color: #4a72c5;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step div strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.step div span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.app-help {
  padding: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  animation: rise .5s both;
}

.app-help a {
  color: #4a72c5;
  text-decoration: none;
  font-weight: 600;
}

/* --- 响应式：平板 & 手机 --- */
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 24px);
    padding-top: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .profile {
    padding: 26px;
  }

  .name {
    font-size: 35px;
  }

  .grid,
  .detail-grid,
  .app-features {
    grid-template-columns: 1fr;
  }

  .quote {
    min-height: 175px;
  }

  .topbar {
    margin-bottom: 18px;
  }

  .dock {
    bottom: 14px;
    width: calc(100% - 24px);
    justify-content: space-between;
  }

  .dock button {
    min-width: 0;
    flex: 1;
    padding: 0 7px;
    font-size: 11px;
  }

  .app-hero {
    padding: 28px 20px;
  }

  .app-title {
    font-size: 22px;
  }

  .app-features {
    grid-template-columns: 1fr;
  }
}
