/* ============ 波普撞色 · 基础 ============ */
:root {
  --ink: #14141c;
  --paper: #fdfaf3;
  --yellow: #ffd93d;
  --pink: #ff6b9d;
  --blue: #4d96ff;
  --mint: #43d6a0;
  --line: 3px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
::selection { background: var(--yellow); color: var(--ink); }

/* ============ 顶部 ============ */
.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: var(--line);
  background: var(--paper);
  position: relative;
  z-index: 10;
}
.logo {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-dot { width: 16px; height: 16px; background: var(--pink); border: var(--line); border-radius: 50%; }
.topnav { display: flex; gap: 26px; font-weight: 600; font-size: 14px; }
.topnav a { position: relative; padding: 4px 0; }
.topnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 3px; background: var(--pink); transition: width 0.25s ease;
}
.topnav a:hover::after { width: 100%; }
.topbar-btn {
  font-weight: 700; font-size: 14px; background: var(--yellow);
  border: var(--line); padding: 9px 16px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.topbar-btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.topbar-btn span { margin-left: 4px; }

/* ============ 首屏 ============ */
.hero {
  max-width: 1500px;
  margin: 0 auto;
  padding: 40px 4vw 70px;
  text-align: center;
}
.hero-head { margin-bottom: 10px; }
.hero-tag {
  display: inline-block; background: var(--mint); border: var(--line);
  box-shadow: 3px 3px 0 var(--ink); font-family: "Fredoka", sans-serif;
  font-weight: 600; font-size: 14px; padding: 7px 14px;
  transform: rotate(-2deg); margin-bottom: 16px;
}
.spark { margin-right: 4px; }
.hero-title {
  font-family: "Fredoka", "PingFang SC", sans-serif;
  font-size: clamp(34px, 4vw, 56px); line-height: 1.2;
  letter-spacing: -0.02em; font-weight: 700;
}
.name-slot { color: var(--ink); border-bottom: 6px solid var(--yellow); }
.cursor { color: var(--pink); }

/* ============ 环绕舞台 ============ */
.orbit {
  position: relative;
  width: min(100%, 1000px);
  height: 700px;
  margin: 0 auto;
}
/* 背景虚线轨道 */
.orbit-ring {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-ring-outer {
  width: 640px; height: 640px;
  border: 3px dashed rgba(20, 20, 28, 0.18);
}
/* 中心 IP 形象 */
.orbit-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  display: flex; flex-direction: column; align-items: center;
  z-index: 3;
}
.mascot {
  width: 100%;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  cursor: pointer;
}
.mascot img,
.mascot video,
.mascot canvas {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(3px 8px 10px rgba(20, 20, 28, 0.18));
}
.mascot canvas { background: transparent; }
.center-name {
  margin-top: -6px;
  background: var(--ink); color: #fff;
  font-family: "Fredoka", sans-serif; font-size: 13px;
  padding: 7px 16px; border-radius: 30px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.center-name.pop { transform: scale(1.12) rotate(-3deg); background: var(--pink); }

/* 五个板块卡片 */
.orb-card {
  position: absolute;
  width: 190px;
  background: #fff;
  border: var(--line);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 14px;
  display: flex; flex-direction: column;
  text-align: left;
  z-index: 4;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}
.orb-card:hover {
  box-shadow: 8px 8px 0 var(--ink);
  z-index: 6;
}
.orb-card .card-num {
  font-family: "Fredoka", sans-serif; font-size: 12px;
  font-weight: 700; margin-bottom: 3px; opacity: 0.55;
}
.orb-card .card-title {
  font-family: "Fredoka", "PingFang SC", sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
}
.orb-card .card-sub { font-size: 12px; color: #666; margin-top: 3px; }

/* 卡片定位：按确认的示意图——02正上、01左上、03右上、05左下、04右下 */
.card-1 { left: 6%; top: 130px; transform: rotate(-7deg); background: var(--pink); }
.card-1:hover { transform: rotate(-2deg) translateY(-6px) scale(1.04); }
.card-2 { left: 50%; top: 14px; transform: translateX(-50%) rotate(-2deg); background: var(--blue); }
.card-2:hover { transform: translateX(-50%) rotate(0deg) translateY(-6px) scale(1.04); }
.card-3 { right: 6%; top: 130px; transform: rotate(7deg); background: var(--mint); }
.card-3:hover { transform: rotate(2deg) translateY(-6px) scale(1.04); }
.card-4 { right: 12%; bottom: 80px; transform: rotate(-5deg); background: var(--yellow); }
.card-4:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); }
.card-5 { left: 12%; bottom: 80px; transform: rotate(5deg); background: #c9a7ff; }
.card-5:hover { transform: rotate(0deg) translateY(-6px) scale(1.04); }

.scroll-tip {
  margin-top: 6px; font-size: 13px; font-weight: 600; opacity: 0.5;
}

/* ============ 占位区块 ============ */
/* ============ 视图切换：首页只显示入口，子页面点进去才出现 ============ */
.subpage { display: none; }
body.subpage-open .hero { display: none; }
body.subpage-open .subpage.is-active { display: block; animation: page-in 0.35s ease both; }
body.subpage-open .topbar-btn { display: none; }
.back-btn {
  display: none; align-items: center; gap: 6px;
  font-family: "Space Grotesk", "PingFang SC", sans-serif;
  font-weight: 700; font-size: 14px; cursor: pointer;
  background: #fff; border: var(--line); padding: 8px 14px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.back-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
body.subpage-open .back-btn { display: inline-flex; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============ 内容区块 ============ */
.section { border-top: var(--line); padding: 80px 6vw; max-width: 1400px; margin: 0 auto; }
.section.alt { background: #f3eee0; max-width: none; }
.section.alt > * { max-width: 1400px; margin-left: auto; margin-right: auto; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-num { font-family: "Fredoka", sans-serif; font-size: 20px; font-weight: 700; color: var(--pink); }
.sec-head h2 { font-family: "Fredoka", "PingFang SC", sans-serif; font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
.sec-tag { font-size: 13px; letter-spacing: 2px; color: #999; border: 2px solid #ccc; border-radius: 30px; padding: 4px 12px; }

/* 01 简介 */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start; }
.about-text p { font-size: 16px; line-height: 1.9; color: #444; margin-bottom: 16px; }
.about-text .lead { font-size: 21px; line-height: 1.7; color: var(--ink); }
.about-text .lead strong { background: var(--yellow); padding: 0 6px; }
.about-facts { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.about-facts div { display: flex; flex-direction: column; }
.about-facts b { font-family: "Fredoka", sans-serif; font-size: 38px; line-height: 1; }
.about-facts span { font-size: 13px; color: #888; margin-top: 6px; }
.about-card { background: var(--ink); color: #fff; border-radius: 18px; padding: 28px; transform: rotate(1.5deg); box-shadow: 8px 8px 0 var(--yellow); }
.ac-top { font-family: "Fredoka", sans-serif; font-size: 18px; margin-bottom: 18px; color: var(--yellow); }
.about-card ul { list-style: none; padding: 0; margin: 0; }
.about-card li { font-size: 15px; padding: 10px 0; border-bottom: 1px solid #3a3a44; }
.about-card li span { color: var(--pink); margin-right: 8px; }
.ac-foot { margin-top: 20px; font-size: 13px; color: #bbb; }
.ac-foot span { color: var(--mint); }

/* 02/03 时间轴 */
.timeline { position: relative; padding-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: var(--ink); }
.tl-item { display: grid; grid-template-columns: 160px 1fr; gap: 28px; margin-bottom: 28px; position: relative; }
.tl-item::before { content: ""; position: absolute; left: 2px; top: 24px; width: 15px; height: 15px; border-radius: 50%; background: var(--pink); border: 3px solid var(--ink); }
.tl-year { font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 17px; padding-left: 30px; padding-top: 14px; white-space: nowrap; }
.tl-card { background: #fff; border: var(--line); border-radius: 14px; padding: 20px 24px; box-shadow: 5px 5px 0 var(--ink); }
.tl-card h3 { font-family: "Fredoka", "PingFang SC", sans-serif; font-size: 21px; margin-bottom: 4px; }
.tl-card p { font-size: 14px; color: var(--pink); font-weight: 700; margin-bottom: 10px; }
.tl-card span { font-size: 14px; color: #666; line-height: 1.7; }
.tl-card .score-badge { display: inline-block; vertical-align: middle; background: var(--yellow); border: 2px solid var(--ink); border-radius: 20px; padding: 2px 12px; margin-left: 6px; font-family: "Fredoka", "PingFang SC", sans-serif; font-size: 13px; font-weight: 700; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); white-space: nowrap; }

/* 04 作品 */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { border: var(--line); border-radius: 16px; padding: 18px; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s ease, box-shadow .2s ease; min-height: 180px; display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; }
.work-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
a.work-card .wc-link { color: var(--pink); }
.w-pink { background: #ffd6e5; } .w-blue { background: #d6e8ff; } .w-yellow { background: #fff1b0; } .w-mint { background: #c9f2e0; }
.wc-media { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: #fff; margin-bottom: 14px; height: 200px; }
.wc-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wc-media-strip { display: flex; gap: 2px; background: var(--ink); }
.wc-media-strip img { width: 33.333%; height: 100%; object-fit: cover; }
.wc-media-count { display: flex; align-items: center; justify-content: center; align-content: center; flex-wrap: wrap; gap: 6px; background: #fff; padding: 12px; }
.wc-media-count span { font-family: "Fredoka", sans-serif; font-size: 58px; font-weight: 700; line-height: 1; color: var(--pink); }
.wc-media-count small { font-size: 15px; font-weight: 700; }
.wc-media-count .count-line { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.wc-media-count .count-line span { font-size: 44px; }
.wc-tag { align-self: flex-start; background: var(--ink); color: #fff; font-size: 12px; padding: 3px 12px; border-radius: 20px; margin-bottom: 10px; }
.work-card h3 { font-family: "Fredoka", "PingFang SC", sans-serif; font-size: 23px; margin-bottom: 8px; }
.work-card p { font-size: 14px; color: #555; line-height: 1.7; flex: 1; }
.wc-link { font-size: 14px; font-weight: 700; margin-top: 14px; }

/* 05 兴趣贴纸墙 */
.sticker-wall { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.sticker { width: 150px; height: 150px; border: var(--line); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 5px 5px 0 var(--ink); transition: transform .2s cubic-bezier(.22,1,.36,1); cursor: default; }
.sticker:hover { transform: translateY(-8px) rotate(-4deg); }
.sticker b { font-family: "Fredoka", "PingFang SC", sans-serif; font-size: 20px; margin-top: 6px; }
.sticker small { font-size: 12px; color: #666; margin-top: 4px; }
.st-ico { font-size: 40px; }
.s1 { background: #ffd6a5; transform: rotate(-4deg); } .s2 { background: #c9f2e0; transform: rotate(3deg); }
.s3 { background: #d6e8ff; transform: rotate(-2deg); } .s4 { background: #ffd6e5; transform: rotate(4deg); }
.s5 { background: #fff1b0; transform: rotate(-3deg); } .s6 { background: #e6d6ff; transform: rotate(2deg); }
/* 户外照片画廊 */
.hobby-gallery { margin-top: 54px; display: flex; flex-direction: column; gap: 40px; }
.about-gallery { margin-top: 60px; padding-top: 40px; border-top: var(--line); }
.hg-block h3 { font-family: "Fredoka", "PingFang SC", sans-serif; font-size: 22px; margin-bottom: 18px; }
.hg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hg-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--line); border-radius: 10px; display: block; transition: transform .25s ease, box-shadow .25s ease; }
.hg-grid img:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 5px 6px 0 var(--ink); }
.hg-fig { margin: 0; }
.hg-fig figcaption { font-size: 13px; color: #666; line-height: 1.6; margin-top: 8px; padding: 0 2px; }
.hobby-note { text-align: center; font-family: "Fredoka", "PingFang SC", sans-serif; font-size: 22px; font-weight: 700; margin-top: 44px; color: var(--pink); }

/* 联系 */
.contact { background: var(--ink); color: #fff; text-align: center; padding: 90px 6vw; border-top: var(--line); }
.contact h2 { font-family: "Fredoka", "PingFang SC", sans-serif; font-size: clamp(40px, 6vw, 72px); margin-bottom: 16px; }
.contact p { color: #bbb; font-size: 16px; margin-bottom: 30px; }
.mail { display: inline-block; font-family: "Fredoka", sans-serif; font-size: clamp(22px, 4vw, 40px); color: var(--yellow); border-bottom: 3px solid var(--yellow); padding-bottom: 6px; }
.mail span { color: var(--pink); }
.wechat-line { margin-top: 18px; font-size: 20px; color: #ddd; }
.wechat-line b { color: var(--yellow); font-family: "Fredoka", sans-serif; font-size: 24px; }
.contact-links { margin-top: 40px; display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.contact-links a { color: #ddd; font-size: 15px; border: 2px solid #555; border-radius: 30px; padding: 8px 20px; }
.contact-links a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ============ 响应式 ============ */
@media (max-width: 1100px) {
  .orbit { height: 620px; }
  .orbit-ring-outer { width: 540px; height: 540px; }
  .orbit-center { width: 290px; }
  .orb-card { width: 165px; padding: 10px 12px; }
  .orb-card .card-title { font-size: 17px; }
}

@media (max-width: 820px) {
  .topnav { display: none; }
  .hero { padding: 30px 4vw 60px; }
  .orbit { height: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .orbit-ring { display: none; }
  .orbit-center { position: static; transform: none; width: 260px; }
  .orb-card {
    position: static; transform: none; width: 100%; max-width: 420px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .orb-card:hover { transform: translateY(-4px); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-card { transform: none; }
  .tl-item { grid-template-columns: 1fr; gap: 8px; padding-left: 20px; }
  .tl-item::before { left: 2px; }
  .tl-year { padding-left: 0; padding-top: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .hg-grid, .hg-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
