/* ============ Design Tokens ============ */
:root {
    --color-0: #000;
    --color-50: #0a0a0a;
    --color-100: #101010;
    --color-200: #303030;
    --color-300: #505050;
    --color-400: #707070;
    --color-500: #909090;
    --color-600: #c0c0c0;
    --color-700: #e0e0e0;
    --color-800: #f3f4f7;
    --color-900: #f9f8f7;
    --color-999-basis: 0, 0%, 100%;
    --color-999_40: hsla(var(--color-999-basis), 0.4);
    --color-999: #f9f8f7;
    --color-999-rgb: 249, 248, 247;
    --accent-light: #808080;
    --accent-regular: #404040;
    --accent-dark: #202020;
    --accent-overlay: hsla(0, 0%, 0%, 0.35);
    --accent-subtle-overlay: var(--accent-overlay);
    --accent-text-over: var(--color-999);
    --link-color: var(--accent-regular);
    --color-primary-main: #499ad5;
    --color-purple: #6127ff;
    --color-blue: #499ad5;
    --color-cyan: #00d0ff;
    --color-pink: #ff419c;
    --color-yellow: #f7d252;
    --color-green: #1bc47d;
    --color-orange: #ff5a19;
    --color-errors: #ff2c60;
    --color-underlined: 48, 48, 48;
    --border: #ececec;
    --radius-small: 4px;
    --radius: 8px;
    --radius-normal: 12px;
    --radius-large: 16px;
    --shadow-sm: 0px 6px 3px rgba(9, 11, 17, .01), 0px 4px 2px rgba(9, 11, 17, .01), 0px 2px 2px rgba(9, 11, 17, .02), 0px 0px 1px rgba(9, 11, 17, .03);
    --shadow-md: 0px 28px 11px rgba(9, 11, 17, .01), 0px 16px 10px rgba(9, 11, 17, .03), 0px 7px 7px rgba(9, 11, 17, .05), 0px 2px 4px rgba(9, 11, 17, .06);
    --shadow-lg: 0px 62px 25px rgba(9, 11, 17, .01), 0px 35px 21px rgba(9, 11, 17, .05), 0px 16px 16px rgba(9, 11, 17, .1), 0px 4px 9px rgba(9, 11, 17, .12);
    --gap: 16px;
    --font-system: system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Lantinghei SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", "Hiragino Sans GB", "微软雅黑", STHeiti, "WenQuanYi Micro Hei", Arial, SimSun, sans-serif;
    --font-body: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "MiSans", "Lantinghei SC", "Noto Sans SC", "Microsoft YaHei", "HanHei SC", "Helvetica Neue", "Open Sans", "Hiragino Sans GB", "微软雅黑", STHeiti, "WenQuanYi Micro Hei", Arial, SimSun, sans-serif;
    --font-brand: "Inter", "Noto Sans SC", var(--font-system);
    --font-type: 'Special Elite', var(--font-system);
    --font-serif: 'Huiwen-mincho', 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    --theme-transition: 0.25s ease-in-out;
    --text-size: 16px;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.5rem;
    --text-xl: 2rem;
    --text-4xl: 4rem;
    --text-5xl: 4.5rem;
    --filter-bg: #fff;
    --filter-bg-active: #0a0a0a;
    --filter-bg-hover: rgba(10, 10, 10, .08);
    --filter-color: #101010;
    --filter-color-active: #f4f3f0;
    --filter-border: 1px solid #d0d0d0;
    --filter-border-color: #d0d0d0;
    --img-width: 90px;
    --img-ratio: 1/1;
    --img-offset-x: 0px;
    --img-offset-y: 00px;
    --img-border-radius: 8px;
    --color-bg-content: rgba(255, 255, 255, .05);
    --color-bg-trains: rgba(255, 255, 255, .05);
    --max-width: 90%;
    --post-max: 90%;
}
.post-wrap { display: block; max-width: 960px; width: 100%; margin: 0 auto; }
@media (max-width: 1000px) { .post-wrap { max-width: 760px; } }
.post-col { width: 100%; max-width: var(--post-max); margin: 0 auto; }
@media (max-width: 1280px) { :root { --post-max: 1024px; } }
@media (max-width: 1023px) { :root { --post-max: 960px; } }
@media (max-width: 811px) { :root { --post-max: calc(100% - 32px); } }
.post-inner { width: 100%; max-width: 960px; margin: 0 auto; }
:root.theme-dark {
    --color-0: #f7f5f3;
    --color-50: #f7f5f3;
    --color-100: #f7f5f3;
    --color-200: #e4e5e6;
    --color-300: #d6d5d4;
    --color-400: #c0c0c0;
    --color-500: #909090;
    --color-600: #707070;
    --color-700: #505050;
    --color-800: #303030;
    --color-900: #19191b;
    --color-999-basis: 225, 31%, 5%;
    --color-999: #19191b;
    --color-999-rgb: 25, 25, 27;
    --border: #323232;
    --color-underlined: 68, 211, 141;
    --accent-light: #ececec;
    --accent-regular: #606060;
    --accent-dark: #ececec;
    --accent-overlay: hsla(0, 0%, 64%, 0.75);
    --accent-subtle-overlay: hsla(0, 0%, 9%, 0.33);
    --accent-text-over: var(--color-0);
    --link-color: var(--accent-dark);
    --filter-bg: #19191b;
    --filter-color: #d6d5d4;
    --filter-color-active: #19191b;
    --filter-border: 1px solid #696765;
    --filter-border-color: #696765;
    --filter-bg-active: #f4f3f0;
    --filter-bg-hover: rgba(243, 244, 247, .08);
}

/* base helpers */
html, body { height: 100%; }
html { overflow-x: hidden; }
img { pointer-events: none; -webkit-user-select: none; -webkit-user-drag: none; }
a { text-decoration: none; }
a:hover { text-decoration: none; }
ul { list-style: none; }

/* scrollbar */
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 6px !important; }
html::-webkit-scrollbar-track, body::-webkit-scrollbar-track { background: var(--color-800) !important; border-radius: 6px !important; }
html::-webkit-scrollbar-thumb, body::-webkit-scrollbar-thumb { background: var(--color-yellow) !important; border-radius: 6px !important; }
html::-webkit-scrollbar-thumb:hover, body::-webkit-scrollbar-thumb:hover { background: var(--color-blue) !important; }
html::-webkit-scrollbar-thumb:active, body::-webkit-scrollbar-thumb:active { background: var(--color-green) !important; }
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: var(--color-800); border-radius: 6px; }
*::-webkit-scrollbar-thumb { background: var(--color-yellow); border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: var(--color-blue); }
*::-webkit-scrollbar-thumb:active { background: var(--color-green); }
@media (max-width: 767px) {
    html::-webkit-scrollbar, body::-webkit-scrollbar { width: 3px !important; }
    *::-webkit-scrollbar { width: 3px; }
}

/* animations */
.animated { animation-duration: .75s; animation-fill-mode: forwards; }
.fadeIn { animation-name: fadeIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fadeInRight { animation-name: fadeInRight; }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.delay-300 { animation-delay: 300ms; }
.delay-750 { animation-delay: 750ms; }

/* train switch */
.train-switch { position: relative; display: block; }
@media (max-width: 768px) { .train-switch { display: none !important; } }
.train-switch button {
    display: block; background-color: unset; border-radius: 36px;
    border: 1px solid var(--train-color); color: var(--color-100);
    font-size: 12px; line-height: 22px; padding: 0; width: 68px;
    text-align: center; cursor: pointer; background-color: var(--train-color);
    border-color: var(--train-color); box-shadow: 0 0 12px 6px rgba(var(--train-color-rgb), .3);
    transition: all .25s ease-in-out;
}
.train-switch button:hover { color: var(--color-900); box-shadow: 0 0 12px 6px rgba(var(--train-color-rgb), .75); }
.train-switch button span { padding-top: 3px; display: inline-block; }
.train-switch button { display: none; }
.train-yellow { --train-color: #f7d252; --train-color-rgb: 247, 210, 82; }
.train-blue { --train-color: #4da7e8; --train-color-rgb: 77, 167, 232; }
.train-green { --train-color: #1bc47d; --train-color-rgb: 27, 196, 125; }
.train-white { --train-color: #dedede; --train-color-rgb: 200, 200, 200; }

/* effects */
.train-1 { position: fixed; top: 0; left: 0; z-index: 99; width: 100%; height: 100%; pointer-events: none; }
@media (max-width: 768px) { .train-1 { display: none !important; } }
.effects { grid-area: content; border-radius: 8px; background: var(--color-bg-content); position: relative; z-index: 100; }
.effects__img {
    width: var(--img-width); aspect-ratio: var(--img-ratio);
    border-radius: var(--img-border-radius); position: absolute; top: 0; left: 0;
    opacity: 0; overflow: hidden; will-change: transform, filter;
}
.effects__img-inner {
    background-position: 50% 50%; width: calc(100% + var(--img-offset-x));
    height: calc(100% + var(--img-offset-y)); background-size: contain !important;
    position: absolute; top: calc(-1 * var(--img-offset-y) / 2); left: calc(-1 * var(--img-offset-x) / 2);
}

/* hamburger + mobile nav */
.hamburger { position: relative; z-index: 9999; }
@media (min-width: 767px) { .hamburger { display: none; } .m-nav { display: none; } }
.hamburger-toggle {
    -webkit-transition: all .3s; transition: all .3s; width: 60px; height: 60px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; cursor: pointer;
}
.hamburger-toggle span {
    width: 32px; height: 2px; display: block; position: relative; background: var(--color-100);
    -webkit-transition: all .2s ease-out; transition: all .2s ease-out;
}
.hamburger-toggle span:before, .hamburger-toggle span:after {
    -webkit-transition: all .3s ease-out; transition: all .3s ease-out; content: "";
    width: 26px; height: 2px; position: absolute; left: 0; background: var(--color-100);
}
.hamburger-toggle span::before { top: -9px !important; }
.hamburger-toggle span::after { top: 9px !important; }
.hamburger-toggle.close-line span { width: 0px !important; transform: translateX(-12px); }
.hamburger-toggle.close-line span::before { -webkit-transform: rotate(45deg); transform: rotate(45deg); top: 0 !important; width: 36px !important; }
.hamburger-toggle.close-line span::after { -webkit-transform: rotate(-45deg); transform: rotate(-45deg); top: 0 !important; width: 36px !important; }
.m-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; height: 100vh;
    background-color: var(--color-999); transition: all .75s ease-in-out;
    transform: translateX(100%); z-index: 999; overflow: hidden;
}
.m-nav.is-active { transform: translateX(10%); }
.m-nav-wrap { position: relative; display: flex; justify-content: center; align-items: flex-start; z-index: 99999; margin-left: -20vw; }
.m-nav-mask {
    position: fixed; right: 0; top: 0; bottom: 0; width: 0%; height: 100%; min-height: 100vh;
    opacity: 0; background-color: var(--accent-overlay); z-index: 990;
    transition: all .5s ease-in-out; transition-delay: .15s;
}
.m-nav-mask.is-active { opacity: 1; width: 100%; }
.m-menu { position: relative; margin-top: 64px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; }
@media (max-height: 600px) { .m-menu { margin-top: 8vh; } }
.m-menu-li { position: relative; text-align: left; padding: .75rem 0; margin: 0; vertical-align: middle; list-style: none; }
.m-menu-li a.m-menu__link { position: relative; display: inline-block; font-size: 1.25rem; color: var(--color-300); text-decoration: none; }
.m-menu-li a.m-menu__link.active { color: var(--color-100); font-weight: 600; }

/* dropdown */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; cursor: pointer; }
.dropdown-icon { margin-left: 4px; font-size: .75rem; transition: transform .3s ease; }
.dropdown.show .dropdown-icon { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translate(-50%) translateY(10px);
    min-width: 160px; margin-top: 8px; padding: 8px 0;
    background-color: var(--color-800); border-radius: var(--radius-normal);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .1); opacity: 0; visibility: hidden;
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease; z-index: 1000;
}
.dropdown.show .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%) translateY(0); }
.dropdown-menu li { margin: 0; padding: 0; list-style: none; }
.dropdown-menu li a { display: block; padding: 8px 16px; color: var(--color-100); text-align: center; white-space: nowrap; transition: background-color .2s ease; }
.dropdown-menu li a:hover { font-weight: 600; text-decoration: none; color: var(--color-blue); }
.dropdown-item { list-style: none; margin: 0; padding: 0; }
.dropdown-link { display: block; padding: 8px 16px; color: var(--color-100); text-align: center; transition: background-color .2s ease; }
.dropdown-link:hover { font-weight: 600; text-decoration: none; color: var(--color-blue); }
.dropdown-menu:before {
    content: ""; position: absolute; top: -6px; left: 50%; transform: translate(-50%);
    border-width: 0 6px 6px 6px; border-style: solid; border-color: transparent transparent var(--color-800) transparent;
}
.m-nav .dropdown-menu {
    position: static; transform: none; max-height: 0; opacity: 0; visibility: hidden; overflow: hidden;
    margin-left: 20px; transition: all .3s ease; background: transparent; box-shadow: none;
    min-width: 0; padding: 0; border-radius: 0; margin-top: 0;
}
.m-nav .dropdown-menu:before { display: none; }
.m-nav .dropdown.show .dropdown-menu { max-height: 300px; opacity: 1; visibility: visible; margin-top: 10px; }
.m-nav .dropdown-toggle { font-size: 1.25rem; color: var(--color-300); }
.m-nav .dropdown-icon { margin-left: 8px; font-size: 1rem; }
.m-nav .dropdown-menu li a { color: var(--color-300); text-align: left; padding: 6px 16px; }
.m-nav .dropdown-menu li a:hover { color: var(--color-100); font-weight: 600; }
.m-nav .dropdown-link { color: var(--color-300); text-align: left; padding: 6px 16px; }
.m-nav .dropdown-link:hover { color: var(--color-100); font-weight: 600; }

/* theme toggle */
theme-toggle button {
    display: flex; border: 0; border-radius: 999rem; padding: 0;
    background-color: var(--color-999); box-shadow: inset 0 0 0 1px var(--accent-overlay);
    color: var(--color-100); cursor: pointer;
}
theme-toggle .icon { z-index: 1; position: relative; display: flex; padding: .5rem; width: 2rem; height: 2rem; font-size: 1rem; color: var(--accent-overlay); }
theme-toggle .icon svg { width: var(--size, 1em); height: var(--size, 1em); }
theme-toggle .icon.light::before { content: ''; z-index: -1; position: absolute; inset: 0; background-color: var(--accent-regular); border-radius: 999rem; }
.theme-dark theme-toggle .icon.light::before { transform: translateX(100%); }
.theme-dark theme-toggle .icon.dark, html:not(.theme-dark) theme-toggle .icon.light, theme-toggle button[aria-pressed='false'] .icon.light { color: var(--accent-text-over); }
@media (prefers-reduced-motion: no-preference) { theme-toggle .icon, theme-toggle .icon.light::before { transition: transform var(--theme-transition), color var(--theme-transition); } }

/* social */
.ic-social { fill: var(--color-100); width: auto; height: 22px; }
.social { margin: 0 auto; display: flex; gap: 16px; align-items: center; justify-content: center; padding-bottom: 8px; }
.social a { opacity: .75; }
.social a:hover { opacity: 1; }
.social-link { display: block; }
.social-link svg { fill: var(--color-400); width: auto; height: 20px; color: var(--color-400); display: inline; vertical-align: baseline; }
.social .ic-behance:hover { fill: #0056ff !important; }
.social .ic-dribbble:hover { fill: #d145bf !important; }
.social .ic-bilibili:hover { fill: #00aeec !important; }
.social .ic-zcool:hover { fill: #ffd100 !important; }
.social .ic-rss:hover { fill: #ee802f !important; }
.social .ic-github:hover { fill: var(--color-200); }
.social .ic-xiaohongshu { width: 40px; height: auto; }
.social .ic-xiaohongshu:hover { fill: #ff2742 !important; }

/* card go link */
.card-link__go {
    background-repeat: no-repeat; background-position: 6px center;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'>%3Cpath d='M5 15L15 5M15 5H7.5M15 5V12.5' stroke='%23737373' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/>%3C/svg>");
    width: 32px; height: 32px; text-decoration: none; display: block; position: relative;
    transition: all .35s ease-in-out;
}
.card-link__go:hover { transform: rotate(45deg); }

/* home entry */
.border-bottom { border-bottom: 1px dashed var(--border); }
.home-entry { margin-top: 12px; }
.home-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 auto 36px; max-width: 880px; }
.home-entry-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; border-radius: var(--radius-large); border: 1px solid var(--border); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform 0.28s, box-shadow 0.28s, border-color 0.28s; background: var(--color-900); }
.home-entry-card::before { content: ""; position: absolute; inset: -35% auto auto -10%; width: 55%; height: 180%; transform: rotate(18deg); background: linear-gradient(rgba(255, 255, 255, 0.25), transparent); opacity: 0.35; z-index: -1; pointer-events: none; transition: transform 0.3s, opacity 0.3s; }
.home-entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: var(--color-700); }
.home-entry-card:hover::before { transform: rotate(24deg) translate(8px); opacity: 0.52; }
.home-entry-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-entry-card__tag { display: inline-flex; align-items: center; justify-content: center; height: 16px; border-radius: 999px; color: var(--color-300); font-size: 10px; line-height: 16px; font-family: var(--font-type); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }
.home-entry-card__body h3 { margin: 6px 0; font-size: 15px; line-height: 1.25; color: var(--color-100); }
.home-entry-card__body p { margin: 0; font-size: 0.75rem; color: var(--color-300); line-height: 1.45; }
.home-entry-card__arrow { position: absolute; right: 14px; top: 12px; width: 30px; height: 30px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; color: var(--color-200); transition: transform 0.25s, background-color 0.25s; background-color: rgba(var(--color-500), .55); }
.home-entry-card__arrow svg { color: var(--color-400); }
.home-entry-card:hover .home-entry-card__arrow { transform: rotate(45deg); background-color: rgba(var(--color-900), .82); }
.home-entry-card--vibe-coding, .home-entry-card--works { background: var(--color-900); }
.home-entry-card--vibe-coding:hover { background: linear-gradient(135deg, #f7d25229, #499ad514), radial-gradient(120% 180% at 0% 0%, rgba(var(--color-999-rgb), .95), rgba(var(--color-999-rgb), .82)); }
.home-entry-card--works:hover { background: linear-gradient(135deg, #1bc47d24, #499ad514), radial-gradient(120% 180% at 0% 0%, rgba(var(--color-999-rgb), .95), rgba(var(--color-999-rgb), .82)); }
.home-entry-card--themes { background: var(--color-900); }
.home-entry-card--themes:hover { background: linear-gradient(135deg, rgba(38, 85, 255, 0.13), rgba(247, 210, 82, 0.1)), radial-gradient(120% 180% at 0% 0%, rgba(225, 240, 255, 0.1), rgba(255, 250, 241, 0.1)); }

/* capsule voice button */
.capsule-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0;
}

.capsule-btn {
  --train-color: #dedede;
  --train-color-rgb: 200, 200, 200;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 64px;
  max-width: 320px;
  height: 30px;
  padding: 0 16px;
  border-radius: 36px;
  border: 1px solid var(--train-color);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  font-family: var(--font-brand);
  color: var(--color-100);
  background-color: var(--train-color);
  box-shadow: 0 0 12px 6px rgba(var(--train-color-rgb), 0.3);
  transition: all 0.25s ease-in-out;
  outline: none;
  overflow: hidden;
  user-select: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.capsule-btn:hover { color: var(--color-900); box-shadow: 0 0 12px 6px rgba(var(--train-color-rgb), 0.75); }
.capsule-btn:focus-visible { outline: 2px solid var(--color-primary-main); outline-offset: 2px; }

.capsule-btn.voice {
  --train-color: #95EC69;
  --train-color-rgb: 149, 236, 105;
  color: #333;
  min-width: 88px;
  padding: 0 12px;
  justify-content: flex-start;
  animation: voice-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.capsule-btn.voice:hover { color: #2a2a2a; }

@keyframes voice-pop {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.capsule-btn .voice-icon {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
  display: none;
}
.capsule-btn.voice.tts .voice-icon { display: block; }
.capsule-btn.voice.tts.playing .voice-icon { display: none; }

.capsule-btn .play-waves {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.capsule-btn.voice.tts.playing .play-waves { display: flex; }
.play-waves span {
  width: 2.5px;
  background: currentColor;
  border-radius: 1px;
  animation: play-wave 0.6s ease-in-out infinite;
}
.play-waves span:nth-child(1) { height: 5px;  animation-delay: 0s; }
.play-waves span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.play-waves span:nth-child(3) { height: 8px;  animation-delay: 0.3s; }

@keyframes play-wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.capsule-btn .voice-duration {
  display: none;
  font-size: 13px;
  font-weight: 500;
}
.capsule-btn.voice.tts .voice-duration { display: inline; }

.capsule-btn .voice-dot {
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  margin-left: auto;
  flex-shrink: 0;
}
.capsule-btn.voice.tts .voice-dot { display: block; }
.capsule-btn.voice.tts.playing .voice-dot { display: none; }

.capsule-btn.voice.text-mode {
  min-width: auto;
  padding: 0 14px;
  justify-content: center;
  font-weight: 500;
}

.capsule-btn .voice-text-inline {
  display: none;
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.capsule-btn.voice.text-mode .voice-text-inline {
  display: inline;
  animation: text-fade 0.3s ease;
}
@keyframes text-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.capsule-btn .default-text { display: inline; }
.capsule-btn.voice .default-text { display: none; }

.voice-text-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-999);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--color-100);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 50;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-text-bubble::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-bottom-color: var(--color-999);
}
.voice-text-bubble::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 19px;
  border: 7px solid transparent;
  border-bottom-color: var(--border);
  z-index: -1;
}

.capsule-wrap.show-text .voice-text-bubble {
  opacity: 1;
  transform: translateY(0);
}

.voice-text-bubble .text-content {
  display: inline-block;
  transition: opacity 0.2s ease;
}
.voice-text-bubble.switching .text-content { opacity: 0; }

.magic-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-style: italic;
  color: var(--color-300);
  user-select: none;
  white-space: nowrap;
}
.magic-hint .arrow {
  color: #f5c518;
  font-size: 18px;
  animation: arrow-nudge 1.5s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}
.magic-hint .exclaim {
  color: #f5c518;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .play-waves span,
  .magic-hint .arrow {
    animation: none;
  }
  .capsule-btn,
  .capsule-btn.voice {
    transition: background 0.15s, color 0.15s;
    animation: none;
  }
  .voice-text-bubble {
    transition: opacity 0.15s;
  }
}

@media (max-width: 768px) {
  .magic-hint { display: none; }
  .capsule-btn { max-width: 200px; }
  .voice-text-bubble {
    max-width: 220px;
    white-space: normal;
  }
}

/* ============ inner page components ============ */
section { position: relative; margin: 0 auto 36px; width: 100%; font-size: 16px; }
.content { margin-top: 20px; color: var(--color-200); font-size: 1rem; }
p { line-height: 1.6; margin-bottom: .875em; text-align: left; }
.content p { line-height: 1.8; margin: 1rem 0; }
.border-top { border-top: 1px dashed var(--border); }
.border-bottom { border-bottom: 1px dashed var(--border); }

/* section header */
.section-header { margin: 24px 0 32px; }
.section-content { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--color-100); }
.section-title { margin-left: auto; margin-right: auto; text-align: center; }
.section-title h1 { font-size: 2.25rem;   font-weight: 500;  }
@media (max-width: 1023px) { .section-title h1 { font-size: 3.75rem; } }
@media (max-width: 767px) { .section-title h1 { font-size: 3rem; } }
.title-tag {
    display: inline-block; font-size: 13px; line-height: 1; margin: 16px auto 24px;
    border: 1px solid var(--color-700); border-radius: 36px; padding: 8px 22px 8px;
    color: var(--color-300); text-align: center; font-family: var(--font-type);
    text-transform: uppercase; letter-spacing: 1px;
}
.title-svg { width: auto; height: 72px; display: inline; vertical-align: baseline; }
@media (max-width: 1440px) { .title-svg { height: 64px; } }
@media (max-width: 767px) { .title-svg { height: 56px; } }
@media (max-width: 575px) { .title-svg { width: auto; height: 48px; } }
.section-desc { max-width: 480px; margin: 24px auto; text-align: center; }
.section-saying { font-size: 1rem; line-height: 1.6; font-weight: 400; text-align: center; color: var(--color-300); }
.section-saying p { font-size: .875rem; margin-bottom: .5em; text-align: center; }
.section-saying a:link { color: #11a371; }
.section-saying a:hover { opacity: .75; }

/* blog list */
.post-item {
    align-content: center; align-items: center; cursor: pointer; display: flex;
    flex-direction: row; flex-wrap: nowrap; gap: 24px; height: min-content;
    justify-content: space-between; padding: 2rem 12px; position: relative;
    text-decoration: none; width: 100%; transition: all .25s ease-in-out;
}
.post-item:nth-child(n):hover { background: var(--color-yellow); }
.post-item:nth-child(2n):hover { background: var(--color-blue); }
.post-item:nth-child(3n):hover { background: var(--color-green); }
.post-item:hover .post-icon .icon { transform: rotate(-45deg); border: 1px solid var(--color-900); background: var(--color-900); }
.post-title {
    grid-column-start: 1; font-size: 1.5rem; color: var(--color-100);
    height: auto; position: relative; word-break: break-word; word-wrap: break-word; min-width: 0;
}
.post-title h3 { line-height: 1.3em; text-align: left; color: var(--color-100); font-weight: 700; margin: 0; }
.publish-date { display: inline; font-size: .875rem; color: var(--color-500); margin: .5rem 0 0; font-weight: 400; }
.post-icon {
    align-content: center; align-items: center; display: flex; flex: none; flex-direction: row;
    flex-wrap: nowrap; height: min-content; justify-content: center; overflow: hidden; width: min-content;
}
.post-icon .icon {
    align-content: center;
    align-items: center;
    display: flex; width: 42px; height: 42px; padding: 10px; box-sizing: border-box;
    border-radius: 36px; transition: all .25s ease-in-out;
}
.post-icon .icon svg { width: 20px; height: 20px; display: inline; }
.post-icon .icon svg path { fill: var(--color-100); }

/* project list */
.project-item {
    cursor: pointer; display: block; height: min-content; padding: 24px 12px 12px;
    position: relative; text-decoration: none; width: 100%; margin-bottom: 24px;
    overflow: hidden; transition: all .25s ease-in-out;
}
.project-item:nth-child(n):hover { background: var(--color-yellow); }
.project-item:nth-child(2n):hover { background: var(--color-blue); }
.project-item:nth-child(3n):hover { background: var(--color-green); }
.project-item:hover .project-icon .icon { transform: rotate(-45deg); border: 1px solid var(--color-900); background: var(--color-900); }
.project-header { display: flex; justify-content: space-between; margin-bottom: 32px; }
.project-title {
    height: auto; position: relative; word-break: break-word; word-wrap: break-word;
    max-width: 85%; font-size: 1.5rem; color: var(--color-100); min-width: 0;
}
.project-title h3 { line-height: 1.3em; text-align: left; color: var(--color-100); font-weight: 700; margin: 0; }
.project-title-pre-icon { width: 18px; height: 18px; margin-right: 6px; color: var(--color-100); vertical-align: baseline; display: inline; }
.project-title .font-type {
    font-family: var(--font-type); display: block; margin: 8px 0; color: var(--color-300);
    padding-left: 4px; font-size: 1rem; line-height: 1.6;
}
.project-icon {
    align-content: center; align-items: center; display: flex; flex: none; flex-direction: row;
    flex-wrap: nowrap; height: min-content; justify-content: center; overflow: hidden; width: min-content;
}
.project-icon .icon {
    display: block; width: 42px; height: 42px; padding: 10px; box-sizing: border-box;
    border-radius: 36px; transition: all .25s ease-in-out;
}
.project-icon .icon svg { width: 20px; height: 20px; display: inline; }
.project-icon .icon svg path { fill: var(--color-100); }
.project-body { position: relative; margin-top: 24px; margin-bottom: 16px; }
.project-cover { position: relative; width: auto; overflow: hidden; display: flex; justify-content: flex-start; flex-wrap: nowrap; }
.project-figure { position: relative; border-radius: 5px; overflow: hidden; width: auto; height: 128px; margin: 0 6px; display: inline-block; flex-shrink: 0; }
.project-figure:first-child { margin-left: 0; }
.project-figure:last-child { margin-right: 0; }
.project-figure img { height: 100%; width: auto; object-fit: cover; display: block; }
.project-figure:hover { opacity: .75; }
.project-footer { display: flex; justify-content: space-between; align-items: center; }
.project-tags { display: flex; justify-content: flex-start; gap: 8px; }
.project-tags .tag {
    font-size: .75rem; border: 1px solid var(--color-700); background: var(--color-999);
    border-radius: 36px; padding: 4px 16px; text-transform: uppercase;
    transition: all .25s ease-in-out; color: var(--color-400); line-height: 18px;
}
.project-tags .tag:hover { border: 1px solid var(--color-300); }
.project-date { font-size: 1.75rem; font-weight: 600; color: var(--color-100); }

/* about */
.profile-container { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.portrait { width: 64px; height: 64px; border-radius: 100px; overflow: hidden; flex-shrink: 0; margin: 12px 0; }
.portrait-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-name { font-size: 24px; color: #404040; font-weight: 400; text-decoration: none; }
.profile-divider { font-size: .75em; color: #a3a3a3; margin: 0 .25rem; }
.social-info { display: flex; align-items: center; gap: .25rem; }
.social-info .social-link { display: flex; align-items: center; gap: .25rem; font-size: .875rem; color: #737373; text-decoration: none; }
.social-info .social-link:hover { color: #404040; }
.theme-dark .social-info .social-link:hover { color: #e5e5e5; }
.social-info .social-link svg { width: 18px; height: 18px; fill: var(--color-400); }
.social-list { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: flex-start; margin: 24px 0 32px; width: 100%; }
.social-item { position: relative; overflow: hidden; border-radius: .75rem; transition: all .3s; line-height: 0; display: block; width: 96px; height: 96px; }
.social-item img { width: 96px; height: 96px; border-radius: .75rem; object-fit: cover; transition: transform .3s; }
.social-item:hover { transform: translateY(-.5rem) rotate(-6deg); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05); }
.social-item:hover img { transform: scale(1.05); }
.social-text { position: absolute; left: 12px; bottom: 10px; z-index: 10; display: flex; line-height: 1; justify-content: flex-start; flex-wrap: wrap; flex-direction: column; gap: 4px; }
.social-name { font-weight: 600; font-size: 10px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .1)); }
.social-username { font-size: 9px; color: rgba(255, 255, 255, .85); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05)); }
.intro { margin: 16px 0; }
.tags { padding-left: 2em; margin: 0 0 32px; }
.tags li { list-style: disc; margin: 8px 0 12px; }
.tags-label { font-weight: 600; }
.links { display: flex; justify-content: flex-start; flex-wrap: wrap; margin: 32px auto; padding: 0; }
.links li { list-style-type: none; width: 33.33%; box-sizing: border-box; padding: 6px; margin: 0; }
.links li .link { display: block; font-size: 0; overflow: hidden; border-radius: 6px; border: 1px dashed var(--color-700); text-decoration: none; }
.links li .link img { object-fit: cover; display: inline-block; transition: all .75s ease-in-out; width: 100%; height: auto; border-radius: 10px; }
.links li .link:hover img { transform: scale(1.15); }
.contact { margin: 4rem 0 2rem; }
.contact-title { font-size: 1.5rem; font-weight: 700; color: var(--color-100); line-height: 1.1; }
.contact p { color: var(--color-200); }
.contact-wx { width: 250px; max-width: 100%; height: auto; display: inline; vertical-align: baseline; }
.wx-img { max-width: 400px; width: 100%; height: auto; margin-bottom: 32px; display: block; }
.support-title { font-size: 1.5rem; font-weight: 700; color: var(--color-100); line-height: 1.1; }
.post-btn {
    --btn-color: #101010; --color--yellow: #f7d252; --color--dark-yellow: #ecba0e;
    position: relative; display: inline-flex; place-content: center; text-align: center;
    padding: 1.125em 2em; color: var(--btn-color) !important; text-decoration: none;
    line-height: 1.1; border-radius: 36px; overflow: hidden; background: var(--color--yellow);
    white-space: nowrap; font-size: .875rem; font-weight: 600; margin: 0; transition: all .35s; min-width: 144px;
}
.post-btn:hover { border-color: var(--color--dark-yellow); background-color: var(--color--dark-yellow); box-shadow: 0 0 24px 11px rgba(247, 210, 82, .75); }
.post-btn::after { content: ""; position: absolute; inset: 0; pointer-events: none; transition: background-color var(--theme-transition); mix-blend-mode: overlay; }
.post-btn:hover::after { background-color: hsla(var(--color-999-basis), .3); }

/* responsive */
@media (max-width: 767px) {
    .post-title, .project-title { font-size: 1.25rem; }
    .links li { width: 50%; padding: 8px; }
    .content p { margin: 1.5rem 0 1.2rem; line-height: 2; }
    .contact-title, .support-title { margin: 2rem 0 1rem; }
}
@media (max-width: 1000px) {
    .project-body { height: 132px; }
    .project-cover { position: absolute; left: 0; bottom: 0; }
    .project-figure { width: 180px; height: 120px; }
}
@media (max-width: 767px) {
    .project-figure { height: 120px; }
    .project-tags .tag { height: 46px; display: inline-flex; align-items: center; }
}
@media (max-width: 576px) {
    .post-title { font-size: 1.125rem; }
    .post-item { padding: 1.5rem 8px; gap: 16px; }
    .post-title h3 { line-height: 1.4em; }
}
@media (max-width: 468px) {
    .links li { width: 100%; padding: 8px; }
    .post-title { font-size: 1rem; }
}

/* ============ article detail ============ */
.action-back { display: none; }
@media (min-width: 767px) { .action-back { position: fixed; display: block; top: 74px; left: 5%; background: var(--color-999); } }
.article-wrap { display: block; max-width: 960px; width: 100%; margin: 0 auto; }
@media (max-width: 576px) { .article-wrap { padding: 0 16px; box-sizing: border-box; } }
.article-main { max-width: 640px; margin-left: auto; margin-right: auto; }
@media (min-width: 1280px) { .article-main { max-width: 740px; } }
@media (min-width: 1400px) { .article-main { width: 100%; } }
.article-main .section-header { text-align: center; }
.article-main .title-tag { display: inline-block; font-size: 13px; line-height: 1; margin: 16px auto 24px; border: 1px solid var(--color-700); border-radius: 36px; padding: 8px 22px 8px; color: var(--color-300); text-align: center; font-family: var(--font-type); text-transform: uppercase; letter-spacing: 1px; }
.article-main .title { line-height: 1.2; margin: .5rem 0; color: var(--color-100); text-align: center; font-size: 2.25rem; }
@media (max-width: 576px) { .article-main .title { font-size: 1.75rem; margin: .25rem 0; } }
@media (max-width: 420px) { .article-main .title { font-size: 1.5rem; line-height: 1.25; } }
.post-line-bottom { border-bottom: 1px dashed var(--color-700); padding-bottom: .5rem; margin: 1.25rem auto 2.5rem; font-size: .8rem; white-space: nowrap; color: var(--color-500); text-align: center; }
@media (max-width: 576px) { .post-line-bottom { white-space: normal; font-size: .75rem; } }
.toc-container { position: relative; margin-bottom: 2rem; font-family: var(--font-body); }
.toc-header { display: none; }
.toc { position: sticky; top: 2rem; max-height: calc(100vh - 4rem); overflow-y: auto; font-size: var(--text-sm); padding: 1.25rem 1rem; background: var(--color-900); border: 1px solid var(--border); border-radius: var(--radius-normal); transition: all var(--theme-transition); scrollbar-width: thin; z-index: 99; }
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-track { background: var(--color-800); }
.toc::-webkit-scrollbar-thumb { background: var(--color-400); border-radius: 4px; }
.toc-title { font-size: 1.25rem; font-weight: 500; margin-bottom: .5rem; color: var(--color-300); display: flex; justify-content: flex-end; align-items: center; }
.toc-toggle-desktop { display: none; background: none; border: none; cursor: pointer; color: var(--color-400); padding: 4px; border-radius: 4px; }
.toc-toggle-desktop:hover { color: var(--color-blue); background: var(--color-800); }
.toc ul { list-style: none; margin: 0; padding-left: .75rem; }
.toc > ul { padding-left: 0; }
.toc-item { margin: .25rem 0; }
.toc-item a { display: inline-block; color: var(--color-400); text-decoration: none; padding: .25rem 0; transition: color var(--theme-transition); line-height: 1.4; font-weight: 400; font-size: 14px; letter-spacing: 0; }
.toc-item a:hover { color: var(--color-blue); }
.toc-item a.active { color: var(--color-blue); font-weight: 500; }
.depth-2 { padding-left: .5rem; }
@media (max-width: 1023px) {
    .toc-container { position: relative; margin: 1.5rem 0; }
    .toc-title { display: none; }
    .toc-header { display: block; margin-bottom: .5rem; }
    #toc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: .75rem 1rem; background: var(--color-800); border: 1px solid var(--border); border-radius: var(--radius-normal); color: var(--color-200); font-size: var(--text-base); font-weight: 500; text-align: left; cursor: pointer; transition: all var(--theme-transition); }
    #toc-toggle:hover { background: var(--color-700); }
    .chevron-down { transition: transform .2s ease; }
    #toc-toggle[aria-expanded="true"] .chevron-down { transform: rotate(180deg); }
    .toc { display: none; position: static; max-height: none; margin-top: .5rem; }
    .toc.expanded { display: block; }
}
@media (min-width: 1024px) {
    .toc-container { position: fixed; top: 8.5rem; right: 1.5rem; width: 188px; z-index: 10; }
    .toc { width: 100%; }
    .toc-toggle-desktop { display: flex; align-items: center; justify-content: center; }
    .toc.collapsed { display: none; }
    .chevron-up { transition: transform .2s ease; }
}
@media (min-width: 1200px) { .toc-container { position: fixed; right: 2rem; width: 14rem; z-index: 10; } }
@media (min-width: 1440px) { .toc-container { position: fixed; top: 8rem; right: 5%; width: 16rem; z-index: 10; } }
.article-content { position: relative; color: var(--color-200); margin: 3rem 0; }
@media (max-width: 576px) { .article-content { margin: 2rem 0; } }
.article-content > * + * { margin-top: 1rem; }
.article-content h1, .article-content h2, .article-content h3, .article-content h4, .article-content h5 { margin: 1.75em 0 1em; color: var(--color-100); }
.article-content h2 { font-size: 1.75rem; color: var(--color-100); }
@media (max-width: 576px) { .article-content h2 { font-size: 1.5rem; } }
.article-content h3 { font-size: 1.5rem; color: var(--color-100); }
@media (max-width: 576px) { .article-content h3 { font-size: 1.3rem; } }
.article-content h4 { font-size: 1.25rem; color: var(--color-200); }
.article-content img { border-radius: 8px; }
.article-content p { margin: 16px 0; line-height: 1.75; }
@media (max-width: 576px) { .article-content p { line-height: 1.8; } }
.article-content pre { margin: 1.25rem 0; padding: 1rem 1.125rem; border: 1px solid var(--border); border-radius: 8px; overflow-x: auto; background: #0d1117; }
.article-content pre code { display: block; padding: 0; margin: 0; line-height: 1.7; background: transparent; }
.article-content :not(pre) > code { background-color: var(--color-800); padding: .1em .4em; border-radius: 4px; font-size: .92em; }
.article-content blockquote { font-family: var(--font-brand); font-weight: 500; line-height: 1.1; padding-inline-start: 1.5rem; border-inline-start: .25rem solid var(--color-200); color: var(--color-400); }
.article-content a { font-weight: 500; text-decoration: 1px solid underline transparent; text-underline-offset: .25em; transition: color .25s, opacity .25s; color: var(--color-blue); }
.article-content a:hover { text-decoration-color: currentColor; }
.post-navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 3rem 0 0; padding-top: 2rem; border-top: 1px dashed var(--border); }
.post-navigation--single { grid-template-columns: 1fr; }
.post-navigation__item { display: flex; min-width: 0; min-height: 148px; flex-direction: column; justify-content: space-between; gap: 20px; padding: 20px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--color-999); color: var(--color-100); text-decoration: none; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease; }
.post-navigation__item:hover, .post-navigation__item:focus-visible { border-color: var(--color-100); background: var(--color-yellow); color: var(--color-100); text-decoration: none; transform: translateY(-2px); }
.post-navigation__meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-type); font-size: .75rem; letter-spacing: 1px; line-height: 1; text-transform: uppercase; color: var(--color-400); }
.post-navigation__item strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; font-size: 1rem; font-weight: 600; line-height: 1.35; color: currentColor; word-break: break-word; }
.post-navigation__item time { font-size: .8125rem; line-height: 1; color: var(--color-500); }
@media (max-width: 767px) {
    .post-navigation { grid-template-columns: 1fr; margin-top: 2.5rem; }
    .post-navigation__item { min-height: 128px; padding: 18px; }
}
.article-follow-card { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 28px; align-items: center; margin: 4rem 0 0; padding: 24px; border: 1px dashed var(--border); border-radius: var(--radius); background: linear-gradient(135deg, rgba(var(--color-999-rgb), .96), rgba(var(--color-999-rgb), .82)), linear-gradient(135deg, var(--color-yellow), var(--color-blue)); color: var(--color-100); }
.article-follow-card__eyebrow { margin: 0 0 14px; font-family: var(--font-type); font-size: .75rem; letter-spacing: 1px; line-height: 1; text-transform: uppercase; color: var(--color-400); }
.article-follow-card h2 { margin: 0; font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 650; line-height: 1.2; color: var(--color-100); }
.article-follow-card__description { max-width: 34rem; margin: 14px 0 0; font-size: .875rem; line-height: 1.75; color: var(--color-300); }
.article-follow-card__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.article-follow-card__tags li { margin: 0; padding: 7px 12px 5px; border: 1px solid var(--color-700); border-radius: 999px; font-family: var(--font-type); font-size: .72rem; line-height: 1; color: var(--color-300); background: var(--color-999); }
.article-follow-card__qr { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; margin: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--color-999); }
.article-follow-card__qr img { display: block; width: 156px; max-width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--radius) - 2px); margin: 0; }
.article-follow-card__qr figcaption { max-width: 9rem; font-size: .75rem; line-height: 1.5; text-align: center; color: var(--color-500); }
@media (max-width: 767px) {
    .article-follow-card { grid-template-columns: 1fr; gap: 22px; padding: 20px; margin-top: 3rem; }
    .article-follow-card__qr { align-items: flex-start; width: 100%; }
    .article-follow-card__qr figcaption { max-width: none; text-align: left; }
}

/* ============ project detail ============ */
.section-back { position: fixed; width: 56px; top: 100px; left: 5%; z-index: 9; }
@media (max-width: 767px) { .section-back { position: static; width: auto; top: auto; left: auto; margin-bottom: 8px; } }
.back { position: relative; border-radius: 40px; width: 48px; height: 48px; border: 1px solid var(--color-500); background-color: var(--color-900); display: flex; align-items: center; justify-content: center; }
@media (max-width: 767px) { .back { width: 40px; height: 40px; } }
.back-svg { width: 22px; height: auto; }
.back-svg path { stroke: var(--color-500); }
.back:hover { border: 1px solid var(--color-200); }
.back:hover .back-svg path { stroke: var(--color-200); }
@media (max-width: 767px) { .proj-detail .section-back { display: none; } }
.proj-detail-wrap { display: block; max-width: 960px; width: 100%; margin: 0 auto; }
.proj-detail { display: flex; flex-direction: column; margin: 0 auto; max-width: 90%; padding: 0 16px; box-sizing: border-box; }
.proj-detail .section-header { margin: 24px 0 48px; }
.proj-detail .title { font-family: var(--font-type); line-height: 1.2; margin: .5rem 0; color: var(--color-100); text-align: center; }
.proj-detail .row { display: flex; flex-wrap: wrap; }
.proj-detail .col-1a { position: relative; width: 100%; padding-right: 16px; padding-left: 16px; box-sizing: border-box; }
.proj-detail .desc { margin-top: 0; }
.proj-detail .desc h3.post-title { font-size: 1.375rem; color: var(--color-100); }
.proj-detail .desc p { line-height: 1.8; margin: 16px 0; }
.post-desc { margin-top: 1rem; grid-column-start: 1; font-size: 1rem; color: var(--color-100); list-style: none; padding: 0; }
.post-desc li { margin: 8px 0; }
.btn-grid { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 16px; }
.btn-grid .post-btn { margin: 0; }
.preview { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 16px; }
.gsap-picture { display: block; border-radius: 8px; overflow: hidden; }
.gsap-picture img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ============ support page ============ */
.support { display: flex; flex-direction: column; margin: 0 auto; }
.support-box { margin: 24px auto; padding: 40px 16px 24px; border: 1px dashed var(--color-700); background: #fff; border-radius: 16px; }
.support-box h2 { margin: .5rem auto 1rem; }
.support-box p { text-align: center; margin: .5rem 0; }
.sponsor-flex { display: flex; justify-content: center; align-items: center; margin: 1rem 0; flex-wrap: wrap; gap: 20px; }
.sponsor { margin-top: 2rem; padding-top: 24px; border-top: 1px dashed var(--color-700); }
.sponsor-code p { display: block; text-align: center; padding: 0; margin-top: 0; }
.sponsor h3 { font-size: 1.375rem; }
.sponsor-list { margin: 1rem auto; }
.sponsor-list a svg { display: inline-block; vertical-align: middle; margin-left: 2px; }
.friends { padding: 2rem 0; }
.friends .section-title { font-size: var(--text-lg); font-weight: 600; margin-bottom: calc(var(--gap) * 2); color: var(--color-0); }
.friends-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 768px) { .friends-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .friends-grid { grid-template-columns: 1fr; } }
.friend-card { position: relative; display: block; padding: calc(var(--gap) * 1); border-radius: var(--radius-normal); border: 1px dashed var(--color-700); background-color: var(--color-999); transition: all var(--theme-transition); }
.friend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.friend-info { display: flex; align-items: center; gap: calc(var(--gap) * .75); margin-bottom: calc(var(--gap) * .75); }
.friend-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); aspect-ratio: 1; }
.friend-meta { display: flex; flex-direction: column; }
.friend-name { font-weight: 500; color: var(--color-100); }
.friend-desc { font-size: var(--text-sm); color: var(--color-400); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3333; padding: 0; margin: 0; }
.friend-twitter { position: absolute; right: 16px; top: 30px; width: 24px; height: 24px; fill: var(--color-400); }
.ic-twitter { width: 18px; height: auto; opacity: 1; }
.ic-twitter:hover { opacity: .8; }
.support a:link, .support a { color: #ff2442; }
.support .portrait { border-radius: 100px; margin: 12px 0; overflow: hidden; text-align: left; }

/* ============ works page ============ */
.works-video { margin-top: 28px; }
.works-video-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.works-video-item { text-decoration: none; display: block; padding: 18px 0 14px; transition: transform .26s ease; }
.works-video-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.works-video-title h3 { margin: 0; font-size: 1.375rem; color: var(--color-100); line-height: 1.2; }
.works-video-title p { margin: 6px 0 0; font-size: .875rem; line-height: 1.5; color: var(--color-300); }
.works-video-go { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--color-700); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: var(--color-300); transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.works-video-preview { width: 100%; border-radius: var(--radius-normal); border: 1px solid var(--border); overflow: hidden; background: #00000008; aspect-ratio: 5/3; }
.works-video-preview__media { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1); transition: transform .5s ease; }
.works-video-tags { margin-top: 12px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.works-video-tags .tag { display: inline-flex; align-items: center; justify-content: center; height: 24px; border-radius: 999px; padding: 0 10px; border: 1px solid var(--color-700); font-size: .75rem; color: var(--color-300); white-space: nowrap; }
.works-video-item:hover { transform: translateY(-3px); }
.works-video-item:hover .works-video-preview__media { transform: scale(1.04); }
.works-video-item:hover .works-video-go { transform: rotate(45deg); background: var(--color-yellow); color: var(--color-100); border-color: var(--color-yellow); }
@media (max-width: 991px) { .works-video-list { grid-template-columns: 1fr; gap: 12px; } }
.works-headline { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: .2px; color: var(--color-100); line-height: 1.1; }

/* ============ action bar (bottom floating) ============ */
.action-bar { position: fixed; left: 50%; transform: translate(-50%); bottom: 1.25rem; z-index: 60; max-width: 92vw; }
@keyframes ab-fade-up { 0% { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.action-bar__inner { display: flex; align-items: center; gap: .375rem; padding: .5rem; border-radius: 12px; background: rgba(var(--color-999-rgb), .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 10px 30px #00000024; border: 1px solid var(--border); animation: ab-fade-up .5s ease both; }
.ab-logo { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: 8px; background: var(--color-800); border: 1px solid var(--border); display: grid; place-items: center; overflow: hidden; }
.ab-logo img { width: 100%; height: 100%; object-fit: cover; }
.ab-logo span { font-family: var(--font-brand); font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; color: var(--color-100); }
.ab-tags { display: flex; align-items: center; gap: .375rem; max-width: 46vw; overflow-x: auto; scrollbar-width: none; padding-right: .25rem; }
.ab-tags::-webkit-scrollbar { display: none; }
.ab-chip { flex-shrink: 0; display: none; align-items: center; height: 2.5rem; padding: 0 .85rem; border-radius: 8px; background: var(--color-800); border: 1px solid var(--border); color: var(--color-300); font-size: .85rem; font-weight: 300; white-space: nowrap; }
@media (min-width: 640px) { .ab-chip { display: inline-flex; } }
.ab-primary { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 2.5rem; padding: 0 1.25rem; border-radius: 8px; background: var(--color-yellow); color: #101010 !important; font-size: .9rem; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background-color .35s, box-shadow .35s; }
.ab-primary:hover { background: #ecba0e; box-shadow: 0 0 22px 8px #f7d252a6; }
.ab-primary svg { flex-shrink: 0; }
@media (max-width: 576px) { .action-bar { bottom: 1rem; } .ab-primary { padding: 0 1rem; } }
@media (prefers-reduced-motion: reduce) { .action-bar__inner { animation: none; } }