:root {
  --paper: #eef4fd;
  --paper-sheet: #f4f8ff;
  --paper-deep: #dfe9f6;
  --ink: #1e3ea6;
  --muted: #6f6b63;
  --line: rgba(24, 47, 132, 0.1);
  --line-strong: rgba(24, 47, 132, 0.18);
  --teal: #3b62c9;
  --accent: var(--teal);

  --ascii: "AsciiOrSerif", "DotGothic16", "Courier Prime", "SFMono-Regular", Consolas, monospace;
  --serif: "Noto Serif SC", Georgia, "Times New Roman", serif;
}

/* ASCII for Latin/ASCII glyphs, Source Han Serif for CJK */
@font-face {
  font-family: "AsciiOrSerif";
  src: local("DotGothic16"), local("Courier Prime"), local("SFMono-Regular");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "AsciiOrSerif";
  src: local("Noto Serif SC"), local("Source Han Serif SC"), local("SimSun");
  unicode-range: U+4E00-9FFF, U+3400-4DBF, U+2E80-2EFF, U+F900-FAFF;
}

/* paper & ink */
body {
  background: var(--paper);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(64, 108, 220, 0.04), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(64, 108, 220, 0.04), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.5), rgba(237, 233, 224, 0.3));
  color: var(--ink);
  font-family: var(--serif);
}

body::after {
  opacity: 0.03;
  background-size: 160px 160px;
  mix-blend-mode: multiply;
}

/* headings -> ASCII for English, Source Han Serif for Chinese */
.hero-title,
.section-title,
.card-title,
.modal-title,
.footer-title,
.about-label,
.hero-eyebrow,
.cap-group,
.arch-kicker,
.evo-tag,
.evo-date,
.arch-tier,
.arch-role,
.flow-step,
.card-eyebrow,
.card-cta,
.chip,
.btn,
.social-link,
.hero-link,
.hero-scrollcue,
.cursor-dot,
.cursor-ring,
.modal-eyebrow,
.modal-h,
.arch-hint {
  font-family: var(--ascii) !important;
  letter-spacing: 0.04em;
}

/* body text -> serif */
body,
.about-body p,
.card-sub,
.section-desc,
.about-points li,
.cap-card li,
.modal-cols p,
.deliver-list,
.evo-detail,
.arch-sub,
.arch-name,
.footer-meta,
.hero-sub,
.about-lead strong {
  font-family: var(--serif);
}

/* spacious, calm cards */
.card-grid {
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 56px);
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  --base-rot: 0deg !important;
  background: var(--paper-sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 50px rgba(24, 47, 132, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(24, 47, 132, 0.08);
  border-color: var(--line-strong);
}

.card::before {
  background: var(--accent);
}

/* card media: ASCII flow by default */
.card-media {
  aspect-ratio: auto;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    0deg,
    var(--paper-deep),
    var(--paper-deep) 24px,
    #d7e4f8 24px,
    #d7e4f8 25px
  );
  border-bottom: 1px dashed var(--line);
  padding: 28px 24px;
}

.card-media img,
.card-media-ph {
  display: none !important;
}

.card-media::after {
  content: attr(data-ascii);
  white-space: pre;
  font-family: var(--ascii);
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: 0.06em;
}

/* image cards: ivy and corner weathering */
.card[data-image] .card-media {
  border-bottom: 1px solid var(--line);
  padding: 0;
  min-height: 220px;
  background-size: cover;
  background-position: center;
}

.card[data-image] .card-media::after {
  content: none;
}

/* card body spacing */
.card-body {
  padding: 28px 30px 32px;
}

.card-title {
  font-size: clamp(20px, 2.2vw, 26px);
  margin-bottom: 10px;
}

.card-sub {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-flow {
  font-family: var(--ascii);
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

/* hero - tech-art composition */
.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  position: relative;
}

.hero-inner::before {
  content: "+-----[ ART ]-----+\A|                 |\A|  TECH  <->  ART |\A|                 |\A+-----[ TECH ]----+";
  white-space: pre;
  position: absolute;
  top: 8%;
  right: 5%;
  font-family: var(--ascii);
  font-size: clamp(10px, 1.2vw, 14px);
  line-height: 1.5;
  color: var(--line-strong);
  opacity: 0.45;
  pointer-events: none;
  text-align: center;
}

@media (max-width: 900px) {
  .hero-inner::before {
    display: none;
  }
}

.hero-title {
  font-size: clamp(44px, 7vw, 92px);
  letter-spacing: 0.06em;
}

.hero-sub {
  font-size: clamp(16px, 1.8vw, 20px);
  max-width: 640px;
}

/* section titles */
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-desc {
  font-size: 16px;
  max-width: 600px;
}

/* labels without dashed orange boxes */
.about-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-sheet);
  box-shadow: none;
}

.about-label::after {
  content: none !important;
}

/* capabilities: remove decorative icons */
.cap-card::before,
.cap-card::after,
.cap-group::before,
.cap-card li::before {
  content: none !important;
}

.cap-card {
  --base-rot: 0deg !important;
  background: var(--paper-sheet);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px;
}

.cap-card:hover {
  transform: translateY(-4px);
}

.cap-group {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.cap-card li {
  padding-left: 0;
  font-size: 15px;
  line-height: 1.8;
}

/* about */
.about-lead {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
}

.about-points .mono {
  font-family: var(--ascii);
  color: var(--accent);
}

/* buttons */
.btn {
  border-radius: 4px;
  font-family: var(--ascii);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* lighter buttons */
.btn-solid {
  background: var(--paper-sheet);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 4px 16px rgba(24, 47, 132, 0.05);
}

.btn-solid:hover {
  background: var(--paper-deep);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(24, 47, 132, 0.08);
}

/* modal */
.modal-card {
  background: var(--paper-sheet);
  border-radius: 6px;
}

.modal-card::before {
  background: var(--accent);
}

.modal-title {
  font-size: clamp(28px, 3.8vw, 42px);
}

/* footer - light monochrome + ascii art */
.footer {
  background: var(--paper-deep);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-title {
  font-family: var(--ascii);
  color: var(--ink);
}

.footer-eyebrow {
  color: var(--accent);
}

.footer .btn-solid {
  background: var(--paper-sheet);
  color: var(--ink);
  border-color: var(--line);
}

.footer .btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
}

.footer .btn-ghost:hover {
  background: var(--paper-sheet);
}

.footer .social-link {
  color: var(--ink);
  border-color: var(--line-strong);
}

.footer .social-link:hover {
  background: var(--paper-sheet);
  border-color: var(--line);
}

.footer-meta {
  color: var(--muted);
}

.footer::after {
  content: "  ___   _____ _   _\A / _ \\ / ____| \\ | |\A| | | | |    |  \\| |\A| |_| | |____| |\\  |\A \\___/ \\_____|_| \\_|";
  white-space: pre;
  display: block;
  font-family: var(--ascii);
  font-size: clamp(10px, 1.2vw, 13px);
  line-height: 1.4;
  color: var(--line-strong);
  text-align: right;
  margin-top: 40px;
  opacity: 0.5;
  pointer-events: none;
}

/* ascii flourishes */
.section-head::before {
  content: "/*";
  font-family: var(--ascii);
  color: var(--muted);
  margin-right: 10px;
  opacity: 0.3;
}

.section-head::after {
  content: "*/";
  font-family: var(--ascii);
  color: var(--muted);
  margin-left: 10px;
  opacity: 0.3;
}

/* hide custom cursor */
.cursor-dot,
.cursor-ring {
  display: none !important;
}

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor [role="button"] {
  cursor: auto !important;
}

/* flow arrows use teal accent */
.flow-step i {
  font-family: var(--ascii);
  font-style: normal;
  color: var(--accent);
}

/* warmer paper tint on deep areas */
.about,
.work,
.caps {
  background: linear-gradient(180deg, transparent, rgba(237, 233, 224, 0.35));
}

/* global accent color replacement - no orange/rust anywhere */
.about-label .mono,
.card-eyebrow,
.card-eyebrow.mono,
.card .card-eyebrow.mono,
.work .card-eyebrow,
.work .card-eyebrow.mono,
.card-body .card-eyebrow,
.hero-eyebrow .dot,
.modal-eyebrow,
.arch-kicker,
.evo-tag,
.evo-tag:hover,
.chip:hover,
.chip,
.about-lead strong,
.hero-link:hover,
.card-cta:hover,
.social-link:hover,
.scroll-cue:hover,
.nav-link:hover,
.footer a:hover,
.arch-sub strong,
.modal-cols strong,
.evo-detail strong,
.flow-step i,
.flow-arrow,
.card-flow .arrow,
.evo-arrow,
.hero-eyebrow,
.modal-eyebrow span,
.tag,
.badge,
.pill {
  color: #3b62c9 !important;
}

.hero-eyebrow .dot {
  background: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(64, 108, 220, 0.18) !important;
}

.scroll-progress {
  background: var(--accent) !important;
}

.card::before,
.modal-card::before {
  background: var(--accent) !important;
}

/* force any remaining warm/orange accents to teal */
[style*="#a86b52"],
[style*="#b8935f"],
[style*="#c17a5c"],
[style*="#d4a373"],
[style*="rgb(168, 107, 82)"],
[style*="rgb(184, 147, 95)"] {
  color: var(--accent) !important;
}

/* catch any remaining CSS var accent in original bundle */
[style*="var(--accent-1)"],
[style*="var(--accent-2)"],
[style*="var(--rust)"],
[style*="var(--gold)"] {
  color: var(--accent) !important;
}

/* ——— 低调画作入口（藏在首页 hero 链接行） ——— */
.sketch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 20px;
  padding: 6px 2px;
  font-family: var(--mono, monospace);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(64, 108, 220, 0.5);
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(64, 108, 220, 0.3);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.sketch-link:hover {
  color: #3b62c9;
  border-color: rgba(64, 108, 220, 0.6);
}

.sketch-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 4vw;
  background: rgba(15, 17, 19, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  backdrop-filter: blur(6px);
}
.sketch-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sketch-modal img {
  max-width: min(860px, 92vw);
  max-height: 88vh;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.sketch-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.sketch-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ================================================================
   拼贴层 / COLLAGE SKIN
   纸张噪点 · 套准标记 · 浮动星尘 · 半调网点 · 胶带与贴纸
   ================================================================ */

/* —— 全屏颗粒噪点（纸张底噪，位于内容之上、弹窗之下） —— */
.collage-deco {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}

.collage-grain {
  position: absolute;
  inset: -2%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
  opacity: 0.055;
  animation: collage-flicker 11s steps(2, end) infinite;
}

@keyframes collage-flicker {
  0%, 100% { opacity: 0.05; }
  50%      { opacity: 0.07; }
}

/* —— 套准标记（印刷制版四角） —— */
.reg-mark {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.55;
}
.reg-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.reg-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--ink) 46%, var(--ink) 54%, transparent 54%);
}
.reg-tl { top: 14px; left: 14px; }
.reg-tr { top: 14px; right: 14px; }
.reg-bl { bottom: 14px; left: 14px; }
.reg-br { bottom: 14px; right: 14px; }

/* —— 竖向侧边文字（zine 边框） —— */
.side-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ascii);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink);
  opacity: 0.24;
  white-space: nowrap;
}
.side-left {
  left: 12px;
  writing-mode: vertical-rl;
}
.side-right {
  right: 12px;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
@media (max-width: 1320px) {
  .side-text { display: none; }
}

/* —— 浮动星尘 —— */
.collage-star {
  position: absolute;
  font-family: var(--ascii);
  line-height: 1;
  color: var(--ink);
  opacity: 0.32;
  animation:
    collage-star-drift var(--d, 8s) ease-in-out var(--dly, 0s) infinite alternate,
    collage-star-twinkle 3.2s ease-in-out var(--dly, 0s) infinite;
}
.collage-star.gold { color: #d8962f; opacity: 0.55; }
.collage-star.teal { color: var(--teal); opacity: 0.5; }

@keyframes collage-star-drift {
  from { transform: translate3d(0, 0, 0) rotate(-8deg); }
  to   { transform: translate3d(0, -22px, 0) rotate(16deg); }
}
@keyframes collage-star-twinkle {
  0%, 100% { opacity: 0.18; }
  50%      { opacity: 0.85; }
}

/* —— 半调网点条带 —— */
.halftone {
  position: absolute;
  height: 18px;
  width: clamp(140px, 24vw, 260px);
  pointer-events: none;
  opacity: 0.5;
  background: repeating-radial-gradient(
    circle at 0 50%,
    rgba(24, 47, 132, 0.28) 0 1.3px,
    transparent 1.3px 6px
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.hero-inner .halftone {
  left: 4%;
  bottom: -26px;
  transform: rotate(-1.2deg);
}
.section-head { position: relative; }
.section-head .halftone {
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(1.6deg);
}
.section-head .halftone.ht-l { left: 8%; right: auto; transform: translateY(-50%) rotate(-1.6deg); }

/* —— 胶带（贴在卡片上沿） —— */
.tape {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 76px;
  height: 22px;
  transform: translateX(-50%) rotate(-2.4deg);
  background: linear-gradient(90deg, rgba(224, 214, 178, 0.6), rgba(240, 235, 214, 0.42));
  border: 1px solid rgba(24, 47, 132, 0.1);
  border-left-color: rgba(24, 47, 132, 0.05);
  border-right-color: rgba(24, 47, 132, 0.05);
  box-shadow: 0 1px 3px rgba(24, 47, 132, 0.1);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}
.card:nth-child(even) .tape,
.cap-card:nth-child(odd) .tape { transform: translateX(-50%) rotate(2.6deg) scaleX(0.98); }

/* —— 贴纸徽章 —— */
.sticker {
  --rot: -5deg;
  position: absolute;
  z-index: 3;
  font-family: var(--ascii);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 6px 10px 5px;
  background: var(--paper-sheet);
  border: 1.6px solid var(--ink);
  box-shadow: 2.5px 3px 0 rgba(24, 47, 132, 0.14);
  transform: rotate(var(--rot));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  user-select: none;
}
.sticker:hover {
  transform: rotate(calc(var(--rot) * 0.4)) translateY(-2px) scale(1.04);
  box-shadow: 3.5px 5px 0 rgba(24, 47, 132, 0.16);
}
.hero-inner .sticker {
  left: 6%;
  bottom: 6%;
  color: var(--ink);
}
.sticker-alt {
  --rot: 3.5deg;
  color: #3b62c9;
  border-color: #3b62c9;
}
.sticker-alt:hover { transform: rotate(calc(var(--rot) * 0.4)) translateY(-2px) scale(1.04); }
#work .section-head .sticker-alt { right: 2%; top: 8%; }
@media (max-width: 900px) {
  .sticker, .halftone { display: none; }
}

/* —— 卡片悬浮带一点拼贴歪斜 —— */
.card:hover,
.card:focus-visible {
  transform: translateY(-4px) rotate(-0.35deg);
}
.card:nth-child(even):hover {
  transform: translateY(-4px) rotate(0.35deg);
}
.cap-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
}

/* —— 入场动效：贴纸弹入 —— */
@keyframes sticker-pop {
  0%   { transform: scale(0.6) rotate(calc(var(--rot) - 9deg)); opacity: 0; }
  70%  { transform: scale(1.06) rotate(var(--rot)); opacity: 1; }
  100% { transform: scale(1) rotate(var(--rot)); opacity: 1; }
}
.hero-inner .sticker {
  animation: sticker-pop 0.5s ease 0.9s backwards;
}
#work .section-head .sticker-alt {
  animation: sticker-pop 0.5s ease 0.4s backwards;
}

/* —— 减弱动效偏好 —— */
@media (prefers-reduced-motion: reduce) {
  .collage-grain,
  .collage-star {
    animation: none;
  }
}

/* ================================================================
   A 方向 · 手工印刷 zine 加浓
   撕纸边缘卡片 · CMYK 色标条 · 手写圈注 · 交叉胶带
   ================================================================ */

/* —— 撕纸边缘（clip-path + 跟随轮廓的投影） —— */
.card,
.cap-card {
  border-radius: 3px;
  box-shadow: none;
  clip-path: polygon(0.7% 0.4%, 14% 1.3%, 28% 0.5%, 42% 1.6%, 56% 0.6%, 70% 1.4%, 84% 0.4%, 95% 1.5%, 99.4% 0.8%, 98.5% 10%, 99.3% 22%, 98.4% 34%, 99.2% 46%, 98.6% 58%, 99.4% 70%, 98.5% 82%, 99.2% 93%, 99% 99.2%, 88% 98.5%, 74% 99.3%, 60% 98.6%, 46% 99.4%, 32% 98.7%, 18% 99.3%, 7% 98.5%, 0.6% 99.3%, 1.4% 88%, 0.5% 74%, 1.3% 60%, 0.4% 46%, 1.5% 32%, 0.6% 18%, 1.4% 8%);
  filter: drop-shadow(0 14px 30px rgba(24, 47, 132, 0.12));
}
.card:nth-child(even),
.cap-card:nth-child(even) {
  clip-path: polygon(1% 0.6%, 13% 0.4%, 26% 1.5%, 40% 0.5%, 54% 1.4%, 68% 0.6%, 82% 1.3%, 93% 0.4%, 99.3% 1.2%, 98.6% 12%, 99.4% 26%, 98.5% 40%, 99.3% 54%, 98.4% 68%, 99.2% 82%, 98.5% 92%, 99.4% 99%, 90% 98.6%, 78% 99.4%, 64% 98.5%, 50% 99.3%, 36% 98.4%, 22% 99.2%, 10% 98.6%, 1% 99.3%, 0.4% 90%, 1.2% 76%, 0.5% 62%, 1.4% 48%, 0.4% 34%, 1.3% 20%, 0.5% 9%);
}

/* 基础"随手贴"歪斜 */
.card { transform: rotate(-0.4deg); }
.card:nth-child(even) { transform: rotate(0.4deg); }
.cap-card { transform: rotate(-0.3deg); }
.cap-card:nth-child(even) { transform: rotate(0.3deg); }

/* hover 保持歪斜方向 */
.card:hover,
.card:focus-visible { transform: translateY(-4px) rotate(-0.5deg); }
.card:nth-child(even):hover,
.card:nth-child(even):focus-visible { transform: translateY(-4px) rotate(0.5deg); }
.cap-card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.cap-card:nth-child(even):hover { transform: translateY(-4px) rotate(0.4deg); }

/* —— 胶带：移进卡片内 + 撕口 + 交叉胶带 —— */
.tape {
  top: 10px;
  clip-path: polygon(0% 0%, 7% 22%, 13% 6%, 88% 14%, 96% 3%, 100% 32%, 100% 62%, 95% 84%, 86% 68%, 13% 80%, 4% 64%, 0% 88%);
}
.tape-x {
  left: auto;
  right: 18px;
  top: 16px;
  width: 96px;
  transform: rotate(46deg);
  background: linear-gradient(90deg, rgba(64, 108, 220, 0.3), rgba(64, 108, 220, 0.16));
}
.card:nth-child(even) .tape-x { transform: rotate(-46deg); }

/* —— CMYK 印刷色标条 —— */
.cmyk-bar {
  position: absolute;
  display: flex;
  height: 12px;
  pointer-events: none;
  opacity: 0.85;
  border: 1px solid rgba(24, 47, 132, 0.35);
}
.cmyk-bar span { display: block; width: 16px; height: 100%; }
.cmyk-c { background: #00aeef; }
.cmyk-m { background: #2a55d4; }
.cmyk-y { background: #4d79ff; }
.cmyk-k { background: #1e3ea6; }
.hero-inner .cmyk-bar {
  left: 26%;
  bottom: 4%;
  transform: rotate(-1.5deg);
}
.footer .cmyk-bar {
  position: relative;
  display: inline-flex;
  margin-top: 14px;
  transform: rotate(-1deg);
}

/* —— 手写圈注（描边自动画出） —— */
.scribble {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.scribble svg {
  width: 150px;
  height: 64px;
  overflow: visible;
  color: rgba(24, 47, 132, 0.45);
}
.scribble path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: scribble-draw 0.9s ease-out 1.3s forwards;
}
.scribble span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  font-family: var(--ascii);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  animation: scribble-fade 0.3s ease-out 1.9s forwards;
}
@keyframes scribble-draw { to { stroke-dashoffset: 0; } }
@keyframes scribble-fade { to { opacity: 0.8; } }
.hero-inner .scribble { right: 6%; top: 30%; }
#work .section-head .scribble { left: 12%; top: 18%; }

/* —— 小屏隐藏新增装饰 —— */
@media (max-width: 900px) {
  .cmyk-bar,
  .scribble { display: none; }
}

/* —— 减弱动效：手写圈注直接呈现 —— */
@media (prefers-reduced-motion: reduce) {
  .scribble path { stroke-dashoffset: 0; animation: none; }
  .scribble span { opacity: 0.8; animation: none; }
}

/* ================================================================
   追加组件 · ASCII 花体背景水印
   ================================================================ */

/* —— ASCII 花体背景水印 —— */
.ascii-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  font-family: var(--ascii);
  font-size: 13px;
  line-height: 1.22;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.06;
  white-space: pre;
  transform: rotate(-4deg);
  z-index: 0;
}
.hero-inner .ascii-watermark {
  right: 4%;
  bottom: 12%;
}
@media (max-width: 900px) {
  .ascii-watermark { font-size: 8px; }
}

/* ===== 2026-09-25 v13: 卡片预览图铺满媒体占位 ===== */
.project-media-wrap.has-preview-image .project-preview-image{width:100%;height:100%;min-height:0;aspect-ratio:auto;margin:0 auto;border:none;border-radius:0;object-fit:cover;opacity:1;filter:saturate(.92) contrast(1)}
.project-media-wrap.has-preview-image{grid-template-rows:auto 1fr auto}
@media (max-width:640px){.project-media-wrap.has-preview-image .project-preview-image{width:100%;height:100%}}

/* ---- Open Source cards (refresh 层注入) ---- */
.oss-card {
  text-decoration: none;
  color: inherit;
}

.oss-tags {
  display: block;
  margin-top: 0.6rem;
  font-family: "Courier Prime", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.skill-ribbon a {
  color: inherit;
  text-decoration: none;
}
   Y2K WEBCORE RESTYLE — blue riso / 千禧网页拼贴 (2026-10-27)
   冰蓝×钴蓝单色套印 · 网点颗粒 · 星星/代码碎片拼贴
   ============================================================ */

/* ---------- 全局：riso 网点底纹 ---------- */
body {
  min-width: 1180px;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.85), transparent 32%),
    radial-gradient(rgba(30, 58, 166, 0.13) 1.1px, transparent 1.4px) 0 0 / 13px 13px,
    radial-gradient(rgba(30, 58, 166, 0.06) 1px, transparent 1.3px) 6px 7px / 17px 17px,
    linear-gradient(180deg, #e3edfa 0%, var(--paper) 46%, #d5e3f8 100%);
}

/* 噪点层保留（已染蓝），再叠 riso 错版高光 */
body::after {
  position: fixed;
  inset: 0;
  z-index: 31;
  pointer-events: none;
  content: "";
  opacity: 0.5;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.34), transparent 42%);
  mix-blend-mode: screen;
}

::selection {
  background: rgba(77, 121, 255, 0.32);
  color: #142c8f;
}

/* ---------- 套印错版标题 ---------- */
.hero h1,
.ascii-title,
.section-heading h2,
.compact-heading,
.article-title-block h1 {
  text-shadow:
    2px 2px 0 rgba(122, 166, 248, 0.5),
    -1.5px -1px 0 rgba(24, 47, 132, 0.28);
}

/* ---------- 卡片拼贴：硬偏移阴影 + 微倾斜 ---------- */
.project-card,
.technical-study-card,
.strength-card {
  rotate: -0.55deg;
  border-width: 1.5px;
  border-color: rgba(30, 58, 166, 0.42);
  box-shadow: 8px 11px 0 rgba(122, 166, 248, 0.36);
}

.project-card:nth-child(even),
.technical-study-card:nth-child(even),
.strength-card:nth-child(even) {
  rotate: 0.65deg;
  box-shadow: -9px 10px 0 rgba(122, 166, 248, 0.34);
}

.project-card:nth-child(3n),
.technical-study-card:nth-child(3n),
.strength-card:nth-child(3n) {
  rotate: 0deg;
}

.project-card.is-revealed:hover,
.technical-study-card.is-revealed:hover,
.strength-card.is-revealed:hover {
  rotate: 0deg;
  border-color: rgba(24, 47, 132, 0.65);
  box-shadow: 10px 14px 0 rgba(96, 146, 245, 0.45), 0 25px 64px rgba(24, 47, 132, 0.16);
}

/* 媒体框：riso 印刷边框 + 网点角标 */
.media-frame-header {
  background: rgba(30, 58, 166, 0.08);
  color: #2447bd;
  letter-spacing: 0.08em;
}

.media-strip span {
  background: rgba(30, 58, 166, 0.07);
  border: 1px solid rgba(30, 58, 166, 0.22);
}

/* ---------- 按钮改像素字体 + 硬阴影 ---------- */
.primary-action,
.secondary-action,
.nav-contact {
  border-radius: 0;
  font-family: var(--pixel-font);
  -webkit-font-smoothing: none;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-action {
  border: 1.5px solid #142c8f;
  background: #2447bd;
  color: #f4f8ff;
  box-shadow: 4px 4px 0 rgba(24, 47, 132, 0.75);
}

.primary-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(24, 47, 132, 0.75);
}

.secondary-action {
  border: 1.5px solid rgba(30, 58, 166, 0.5);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 4px 4px 0 rgba(122, 166, 248, 0.45);
}

.secondary-action:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 rgba(122, 166, 248, 0.55);
}

.nav-contact {
  border: 1.5px solid #142c8f;
  background: #f4f8ff;
  box-shadow: 3px 3px 0 rgba(24, 47, 132, 0.6);
}

/* ---------- hero 纸片 scrap → 蓝色印刷贴纸 ---------- */
.hero-paper-scrap {
  background:
    radial-gradient(rgba(30, 58, 166, 0.12) 1px, transparent 1.3px) 0 0 / 11px 12px,
    repeating-linear-gradient(0deg, rgba(74, 108, 208, 0.05) 0 1px, transparent 1px 5px),
    #f6f9ff;
  box-shadow: 13px 15px 0 rgba(122, 166, 248, 0.45), 0 2px 0 rgba(30, 58, 166, 0.25);
  border: 1.5px solid rgba(30, 58, 166, 0.35);
}

.hero-paper-scrap::before {
  border-color: rgba(30, 58, 166, 0.18);
}

/* ---------- 玉桂狗 → 蓝色星星水印 ---------- */
.cinnamon-watermark {
  opacity: 0.2;
  transform: rotate(-6deg);
}

.cinnamon-watermark::before,
.cinnamon-watermark::after {
  background: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 L60 37 L95 37 L67 58 L77 93 L50 71 L23 93 L33 58 L5 37 L40 37 Z' fill='%232a55d4'/%3E%3C/svg%3E") center / 58% no-repeat,
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 4 L60 37 L95 37 L67 58 L77 93 L50 71 L23 93 L33 58 L5 37 L40 37 Z' fill='%237aa6f8'/%3E%3C/svg%3E") center / 34% no-repeat;
  background-position: 46% 48%, 74% 70%;
  mask-image: none;
  filter: none;
  opacity: 0.55;
  transform: none;
}

.cinnamon-watermark::after {
  opacity: 0.3;
  transform: translate(4px, 3px);
}

/* ---------- 光标 → 蓝色四角星 ---------- */
.cinnamon-cursor {
  width: 34px;
  height: 34px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 0 C54 30 70 46 100 50 C70 54 54 70 50 100 C46 70 30 54 0 50 C30 46 46 30 50 0 Z' fill='%232a55d4' stroke='%23e3edfa' stroke-width='5'/%3E%3C/svg%3E");
  background-size: 100%;
  opacity: 0;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.cinnamon-cursor.is-visible {
  opacity: 0.9;
}

/* 点击粒子：雪花 → 蓝星 */
.snowflake-burst {
  color: #2a55d4;
  text-shadow: 1.5px 1.5px 0 rgba(122, 166, 248, 0.65);
}

/* ---------- 导航 logo 星 ---------- */
.nav-cinnamon img {
  display: none;
}

.nav-cinnamon::before {
  content: "✦";
  color: #2447bd;
  font-size: 26px;
  line-height: 1;
  text-shadow: 1.5px 1.5px 0 rgba(122, 166, 248, 0.6);
}

/* ---------- 全站漂浮装饰层 ---------- */
.webcore-decor {
  position: fixed;
  inset: 0;
  z-index: 34;
  pointer-events: none;
  overflow: hidden;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.webcore-decor .wc-star {
  position: absolute;
  color: #2a55d4;
  line-height: 1;
  opacity: 0.5;
}

.webcore-decor .wc-star svg {
  display: block;
  width: 100%;
  height: 100%;
}

.webcore-decor .wc-star.is-soft {
  color: #7aa6f8;
  opacity: 0.42;
}

.webcore-decor .wc-frag {
  position: absolute;
  color: rgba(30, 58, 166, 0.44);
  background: rgba(246, 249, 255, 0.62);
  border: 1px solid rgba(30, 58, 166, 0.16);
  padding: 2px 6px;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 2px 2px 0 rgba(122, 166, 248, 0.3);
}

.webcore-decor .wc-frag.is-bare {
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .webcore-decor .wc-star { opacity: 0.35; }
}

/* ---------- 细节收尾 ---------- */
.eyebrow {
  text-shadow: 1px 1px 0 rgba(122, 166, 248, 0.5);
}

.scrap-link:hover {
  color: #2447bd;
}

.skill-ribbon {
  border-style: dashed;
}

.media-watermark {
  color: rgba(30, 58, 166, 0.5);
  font-family: var(--pixel-font);
}

/* ============================================================
   Y2K WEBCORE GARNISH v16 — 素材层
   ============================================================ */

.wc-pulsar,
.wc-shoot,
.wc-thanks {
  position: absolute;
  color: #f4f8ff;
  line-height: 1;
  pointer-events: none;
}

.wc-pulsar {
  width: 175px;
  opacity: 0.42;
  mix-blend-mode: normal;
}

.wc-pulsar svg {
  display: block;
  width: 100%;
}

.wc-shoot {
  width: 150px;
  color: #7aa6f8;
  opacity: 0.6;
  transform: rotate(-10deg);
}

.wc-shoot svg {
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 6px rgba(122, 166, 248, 0.55));
}

.wc-thanks {
  width: 135px;
  color: rgba(30, 58, 166, 0.55);
  transform: rotate(2.5deg);
}

.wc-thanks svg {
  display: block;
  width: 100%;
}

.contact-hint{max-width:62ch;margin-top:14px;color:var(--ink-soft,#5a6478);font-size:.95rem;line-height:1.7}
.contact-strip span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:6px;background:#ffffff73;color:#3350ad;font-size:.88rem;font-weight:650}
