/* 刘童雨作品集 · 自研 Halo 主题样式（新粗野主义：暖橙 + 奶油底 + 硬阴影） */
:root {
  --paper: #faf6ef;
  --ink: #1c1917;
  --ink-60: rgba(28, 25, 23, 0.6);
  --ink-75: rgba(28, 25, 23, 0.75);
  --tang: #ff6a00;
  --tang-deep: #e85d00;
  --tang-soft: #ffe8d6;
  --teal: #0e7c6b;
  --teal-soft: #dff2ee;
  --sun: #ffc53d;
  --sun-soft: #fff3d6;
  --radius: 2rem;
  --font-display: "Baloo 2", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans SC", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(28, 25, 23, 0.08) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--tang); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; border: 2px solid var(--paper); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(250, 246, 239, 0.95); backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--ink);
}
.nav.scrolled { box-shadow: 0 4px 0 0 var(--ink); }
.nav-inner { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; }
.brand-badge {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: var(--tang); color: #fff; border: 2px solid var(--ink);
  border-radius: 0.75rem; box-shadow: 3px 3px 0 0 var(--ink);
}
.brand em { font-style: normal; color: var(--tang); }
.menu { display: flex; align-items: center; gap: 0.25rem; }
.menu a { padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-weight: 700; font-size: 0.875rem; transition: 0.2s; }
.menu a:hover { background: var(--sun-soft); color: var(--tang-deep); }
.menu-cta {
  margin-left: 0.75rem; background: var(--ink); color: #fff !important;
  border: 2px solid var(--ink); border-radius: 0.75rem; padding: 0.5rem 1rem !important;
  box-shadow: 4px 4px 0 0 var(--tang); transition: 0.15s;
}
.menu-cta:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--tang); background: var(--ink) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; }
.mobile-menu { display: none; border-top: 2px solid var(--ink); padding: 1rem 1.5rem; }
.mobile-menu a { display: block; padding: 0.5rem 0; font-weight: 700; }
.mobile-menu.open { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 7.5rem 0 2.5rem; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(40px); pointer-events: none; z-index: -1;
}
.hero::before { width: 18rem; height: 18rem; right: -6rem; top: -6rem; background: rgba(255, 197, 61, 0.6); }
.hero::after { width: 18rem; height: 18rem; left: -7rem; top: 16rem; background: var(--tang-soft); }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.2fr 0.8fr; align-items: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.375rem 1rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  box-shadow: 3px 3px 0 0 var(--ink);
}
.hero-badge b { color: var(--tang); }
.hero h1 { margin-top: 1.5rem; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; }
.hero h1 .name { color: var(--tang); position: relative; display: inline-block; }
.hero h1 .name svg { position: absolute; left: 0; bottom: -0.5rem; width: 100%; }
.hero-intro { margin-top: 1.5rem; max-width: 36rem; font-size: 1.125rem; color: var(--ink-75); }
.hero-intro strong { color: var(--ink); }
.hero-intro .hot { color: var(--tang-deep); }
.hero-btns { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn {
  display: inline-block; border: 2px solid var(--ink); border-radius: 0.75rem;
  padding: 0.75rem 1.5rem; font-weight: 700; box-shadow: 6px 6px 0 0 var(--ink); transition: 0.15s;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 3px 3px 0 0 var(--ink); }
.btn-primary { background: var(--tang); color: #fff; }
.btn-white { background: #fff; }

.stats { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: #fff; border: 2px solid var(--ink); border-radius: 1rem; padding: 1rem; box-shadow: 6px 6px 0 0 var(--ink); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.875rem; font-weight: 800; color: var(--tang); }
.stat span { font-size: 0.75rem; font-weight: 700; color: var(--ink-60); }

/* 拍立得头像 */
.polaroid-zone { position: relative; justify-self: center; }
.polaroid-back { position: absolute; inset: -0.75rem; transform: rotate(3deg); background: var(--sun); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 10px 10px 0 0 var(--ink); }
.polaroid { position: relative; width: 18rem; transform: rotate(-2deg); background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 0.75rem; box-shadow: 10px 10px 0 0 var(--ink); }
.polaroid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border: 2px solid var(--ink); border-radius: 1.4rem; filter: grayscale(35%) contrast(1.05); }
.polaroid-meta { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0.5rem; }
.polaroid-meta .who b { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; display: block; }
.polaroid-meta .who span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-60); }
.sticker {
  position: absolute; background: #fff; border: 2px solid var(--ink); border-radius: 0.75rem;
  padding: 0.5rem 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700;
  box-shadow: 6px 6px 0 0 var(--ink); animation: floaty 5s ease-in-out infinite;
}
.sticker.s1 { left: -2rem; top: -1.5rem; --tilt: -4deg; }
.sticker.s2 { right: -1.5rem; top: 33%; --tilt: 3deg; animation-delay: 1.2s; }
.sticker.s3 { left: 1.5rem; bottom: -1.5rem; --tilt: -2deg; animation-delay: 2s; }
.sticker.badge-open { background: var(--teal); color: #fff; box-shadow: none; border-radius: 0.5rem; padding: 0.25rem 0.5rem; animation: floaty 5s ease-in-out infinite; --tilt: 6deg; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--tilt, 0deg)); } }

.hero-meta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--font-mono); font-size: 0.875rem; color: var(--ink-60); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
.hero-meta i { width: 0.5rem; height: 0.5rem; background: var(--tang); border-radius: 2px; display: inline-block; }

/* ---------- 跑马灯 ---------- */
.marquee { transform: rotate(-1deg); background: var(--ink); border-block: 2px solid var(--ink); padding: 0.75rem 0; overflow: hidden; }
.marquee-track { display: flex; gap: 2rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 2rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; color: var(--paper); white-space: nowrap; }
.marquee-track em { color: var(--tang); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 区块标题 ---------- */
.section { padding: 5rem 0; }
.kicker { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--tang-deep); }
.section h2 { margin-top: 0.5rem; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section h2 i { font-style: normal; color: var(--tang); }

/* ---------- 作品卡片 ---------- */
.cards { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.card {
  display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: 6px 6px 0 0 var(--ink); transition: 0.3s;
}
.card:hover { transform: translate(-4px, -4px); }
.card.acc-tang:hover { box-shadow: 8px 8px 0 0 var(--tang); }
.card.acc-teal:hover { box-shadow: 8px 8px 0 0 var(--teal); }
.card.acc-sun:hover { box-shadow: 8px 8px 0 0 var(--sun); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; }
.card-no { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.card-chip { border: 2px solid var(--ink); border-radius: 0.5rem; padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 700; }
.chip-tang { background: var(--tang-soft); color: var(--tang-deep); }
.chip-teal { background: var(--teal-soft); color: var(--teal); }
.chip-sun { background: var(--sun-soft); color: #9a6b00; }
.card h3 { margin-top: 1rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.card .when { margin-top: 0.25rem; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--ink-60); }
.card p { margin-top: 1rem; color: var(--ink-75); }
.card-desc { margin-top: 1rem; color: var(--ink-75); }
.card-desc .when { margin-top: 0.25rem; }
.card-desc p { margin-top: 0.5rem; }
.card-desc ul { margin-top: 0.75rem; }
.duo-title { font-size: 1.5rem; font-weight: 800; }
.card ul { margin-top: 1rem; display: grid; gap: 0.5rem; }
.card ul li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--ink-75); }
.card ul li::before { content: ""; margin-top: 0.45em; width: 0.5rem; height: 0.5rem; flex-shrink: 0; border: 1px solid var(--ink); border-radius: 2px; }
.card.acc-tang ul li::before { background: var(--tang); }
.card.acc-teal ul li::before { background: var(--teal); }
.card.acc-sun ul li::before { background: var(--sun); }
.card-foot { margin-top: auto; padding-top: 1.25rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span { border: 1px solid rgba(28, 25, 23, 0.3); background: var(--paper); border-radius: 0.375rem; padding: 0.125rem 0.5rem; font-family: var(--font-mono); font-size: 0.6875rem; font-weight: 600; color: var(--ink-75); }
.card-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.card-links a {
  display: inline-flex; align-items: center; gap: 0.375rem; border: 2px solid var(--ink); border-radius: 0.5rem;
  background: #fff; padding: 0.375rem 0.75rem; font-size: 0.875rem; font-weight: 700;
  box-shadow: 3px 3px 0 0 var(--ink); transition: 0.15s;
}
.card-links a:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 0 var(--ink); background: var(--sun-soft); }
.card-logo { width: 3rem; height: 3rem; object-fit: cover; border: 2px solid var(--ink); border-radius: 0.75rem; }

/* ---------- 技能 ---------- */
.skills-band { border-block: 2px solid var(--ink); background: rgba(255, 255, 255, 0.6); }
.skill-grid { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.skill-box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 6px 6px 0 0 var(--ink); }
.skill-box h3 { display: inline-block; border: 2px solid var(--ink); border-radius: 0.5rem; padding: 0.25rem 0.75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.tone-tang { background: var(--tang); color: #fff; }
.tone-teal { background: var(--teal); color: #fff; }
.tone-sun { background: var(--sun); color: var(--ink); }
.skill-box .tags { margin-top: 1rem; }
.skill-box .tags span { border: 2px solid rgba(28, 25, 23, 0.2); background: var(--paper); border-radius: 0.5rem; padding: 0.25rem 0.625rem; font-size: 0.875rem; font-weight: 600; transition: 0.2s; cursor: default; }
.skill-box .tags span:hover { transform: rotate(-2deg); border-color: var(--ink); background: var(--sun-soft); }

/* ---------- 时间线 & 荣誉 ---------- */
.duo { margin-top: 4rem; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; }
.timeline { position: relative; margin-top: 1.5rem; padding-left: 2rem; border-left: 2px dashed rgba(28, 25, 23, 0.4); display: grid; gap: 2rem; }
.timeline > div { position: relative; }
.timeline .dot { position: absolute; left: -2.56rem; top: 0.25rem; width: 1.5rem; height: 1.5rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--sun); }
.timeline .yr { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 700; color: var(--tang-deep); }
.timeline b { display: block; margin-top: 0.25rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.timeline p { margin-top: 0.25rem; font-size: 0.875rem; color: var(--ink-75); }
.edu-box, .honor-box { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; box-shadow: 6px 6px 0 0 var(--ink); }
.edu-box { background: #fff; }
.edu-box b { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; display: block; }
.edu-box span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-60); }
.edu-box .gap { height: 0.75rem; }
.honor-box { margin-top: 1.5rem; background: var(--sun-soft); }
.honor-box h3 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 800; }
.honor-box ul { margin-top: 0.75rem; display: grid; gap: 0.5rem; }
.honor-box li { display: flex; gap: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--ink-75); }
.honor-box li::before { content: "✦"; color: var(--tang-deep); }

/* ---------- 联系 ---------- */
.contact-box {
  position: relative; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); padding: 3rem; box-shadow: 8px 8px 0 0 var(--tang);
}
.contact-box::before, .contact-box::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); }
.contact-box::before { width: 14rem; height: 14rem; right: -4rem; top: -4rem; background: rgba(255, 106, 0, 0.3); }
.contact-box::after { width: 14rem; height: 14rem; left: -2.5rem; bottom: -5rem; background: rgba(255, 197, 61, 0.2); }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: center; }
.contact-grid .kicker { color: var(--sun); }
.contact-grid h2 { color: var(--paper); }
.contact-grid h2 i { color: var(--tang); font-style: normal; }
.contact-grid .lead { margin-top: 1rem; color: rgba(250, 246, 239, 0.7); max-width: 32rem; }
.contact-btns { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.btn-sun-shadow { box-shadow: 4px 4px 0 0 var(--paper); }
.btn-sun-shadow:hover { box-shadow: 2px 2px 0 0 var(--paper); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(250, 246, 239, 0.4); box-shadow: none; }
.btn-ghost:hover { border-color: var(--sun); color: var(--sun); transform: none; }
.contact-cards { display: grid; gap: 1rem; }
.contact-cards a {
  display: flex; align-items: center; gap: 1rem; border: 2px solid rgba(250, 246, 239, 0.25);
  border-radius: 1rem; background: rgba(250, 246, 239, 0.05); padding: 1rem; transition: 0.2s;
}
.contact-cards a:hover { border-color: var(--tang); background: rgba(255, 106, 0, 0.1); }
.contact-cards .ic { width: 2.75rem; height: 2.75rem; flex-shrink: 0; display: grid; place-items: center; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 0.75rem; }
.contact-cards small { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(250, 246, 239, 0.6); }
.contact-cards b { color: var(--paper); }

/* ---------- 文章 ---------- */
.post-list { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.post-item { display: block; background: #fff; border: 2px solid var(--ink); border-radius: 1.5rem; padding: 1.5rem; box-shadow: 6px 6px 0 0 var(--ink); transition: 0.2s; }
.post-item:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 0 var(--tang); }
.post-item h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; }
.post-item .when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-60); }
.post-item p { margin-top: 0.5rem; color: var(--ink-75); font-size: 0.875rem; }
.post-body { margin-top: 2rem; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 2.5rem; box-shadow: 6px 6px 0 0 var(--ink); }
.post-body h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.post-body .when { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-60); }
.post-body .content { margin-top: 1.5rem; }
.post-body .content img { border-radius: 0.75rem; border: 1px solid rgba(28,25,23,.2); margin: 1rem 0; }
.post-body .content p { margin: 0.75rem 0; }
.post-body .content h2, .post-body .content h3 { font-family: var(--font-display); margin: 1.25rem 0 0.5rem; }
.post-body .content pre { background: var(--ink); color: var(--paper); border-radius: 0.75rem; padding: 1rem; overflow-x: auto; margin: 1rem 0; }
.post-body .content code { font-family: var(--font-mono); font-size: 0.875rem; }
.post-body .content blockquote { border-left: 4px solid var(--tang); background: var(--sun-soft); padding: 0.75rem 1rem; border-radius: 0 0.75rem 0.75rem 0; margin: 1rem 0; }
.post-body .content a { color: var(--tang-deep); text-decoration: underline; }
.post-body .content ul, .post-body .content ol { list-style: disc; padding-left: 1.5rem; margin: 0.75rem 0; }
.empty { margin-top: 2.5rem; border: 2px dashed rgba(28,25,23,.4); border-radius: 1.5rem; padding: 3rem; text-align: center; color: var(--ink-60); font-weight: 700; }

/* ---------- 页脚 ---------- */
.footer { border-top: 2px solid var(--ink); padding: 2rem 0; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-60); }

/* ---------- 入场动效 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.on { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .polaroid-zone { justify-self: center; margin-top: 2rem; }
  .skill-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .menu { display: none; }
  .nav-toggle { display: block; }
  .cards { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-box { padding: 2rem 1.5rem; }
  .post-body { padding: 1.5rem; }
}
