/* ---- style block #0 (12236 chars, inHead=true) ---- */

    html {
      scrollbar-gutter: stable;
    }

    :root {
      --blog-accent: #c89a45;
      --blog-line: rgba(255, 255, 255, 0.12);
      --blog-muted: rgba(255, 255, 255, 0.5);
      --blog-faint: rgba(255, 255, 255, 0.38);
      --blog-card: rgba(255, 255, 255, 0.025);
      --blog-card-border: rgba(255, 255, 255, 0.1);
    }

    html,
    body {
      background: #000;
    }

    .blog-archive,
    .page-work-pattern .blog-archive {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      background: transparent;
      color: #fff;
      isolation: isolate;
    }

    /* ── 背景影片（wavebg.mp4） ───────────────────────────────────── */
    .blog-bg-video,
    .blog-bg-tint {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    .blog-bg-video {
      object-fit: cover;
      background: #000;
    }

    .blog-bg-tint {
      background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.68) 55%, rgba(0, 0, 0, 0.8) 100%);
    }

    .blog-wrap {
      /* max-width: 1480px; */
      margin: 0 auto;
      padding: clamp(40px, 6vh, 80px) var(--work-side-pad) clamp(80px, 12vh, 140px);
    }

    /* ── Hero (與 lab.html 一致) ─────────────────────────────────── */
    .work-hero {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      padding: clamp(130px, 18vh, 200px) var(--work-side-pad) 0;
    }

    .work-hero__top {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      column-gap: clamp(18px, 3vw, 48px);
      padding-bottom: clamp(12px, 1.5vh, 20px);
    }

    .work-hero__title {
      margin: 0;
      font-family: "Zalando Sans SemiExpanded", "DM Sans", sans-serif;
      font-size: clamp(64px, 9.5vw, 130px);
      font-weight: 600;
      line-height: 0.88;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: #fff;
      cursor: default;
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      display: inline-block;
      opacity: 0;
      transform: translateX(18vw) translateZ(0);
      transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
    }

    .work-hero__center {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .work-hero__desc {
      margin: 0;
      font-family: "DM Sans", sans-serif;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.6;
      text-transform: uppercase;
      color: #fff;
      text-align: center;
      align-self: center;
      opacity: 0;
      transition: opacity 0.4s ease 0.35s;
    }

    .work-hero__code {
      margin: 0;
      font-family: "Zalando Sans SemiExpanded", "DM Sans", sans-serif;
      font-size: clamp(64px, 9.5vw, 130px);
      font-weight: 600;
      line-height: 0.88;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: #fff;
      text-align: right;
      will-change: transform;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      opacity: 0;
      transform: translateX(-18vw) translateZ(0);
      transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.05s,
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
    }

    .work-hero__line {
      width: 100%;
      height: 1px;
      background: rgba(255, 255, 255, 0.18);
      transform-origin: center center;
      transform: scaleX(0);
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
    }

    .work-hero__bottom {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      padding: clamp(10px, 1.4vh, 18px) 0;
      opacity: 0;
      transition: opacity 0.4s ease 0.45s;
    }

    .work-hero__year,
    .work-hero__kicker,
    .work-hero__tags {
      margin: 0;
      font-family: "DM Sans", sans-serif;
      font-weight: 400;
      color: #fff;
    }

    .work-hero__year {
      font-size: 16px;
      text-align: left;
    }

    .work-hero__kicker {
      font-size: 14px;
      letter-spacing: 0.06em;
      text-align: center;
    }

    .work-hero__tags {
      font-size: 16px;
      text-align: right;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex-wrap: wrap;
    }

    .work-hero-entered .work-hero__title {
      opacity: 1;
      transform: translateX(0) translateZ(0);
    }

    .work-hero-entered .work-hero__code {
      opacity: 1;
      transform: translateX(0) translateZ(0);
    }

    .work-hero-entered .work-hero__line {
      transform: scaleX(1);
    }

    .work-hero-entered .work-hero__desc,
    .work-hero-entered .work-hero__bottom {
      opacity: 1;
    }

    @media (max-width: 1024px) {
      .work-hero {
        padding-top: clamp(110px, 15vh, 160px);
      }

      .work-hero__top {
        grid-template-columns: 1fr;
        justify-items: center;
        row-gap: 10px;
        padding-bottom: 16px;
      }

      .work-hero__title {
        text-align: center;
      }

      .work-hero__desc {
        max-width: 18em;
        font-size: 13px;
        line-height: 1.45;
        text-align: center;
      }

      .work-hero__bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        padding: 14px 0 0;
      }

      .work-hero__code,
      .work-hero__year {
        display: none;
      }

      .work-hero__tags {
        display: none;
      }

      .work-hero__title {
        transform: translateX(8vw) translateZ(0);
      }

      .work-hero__code {
        transform: translateX(-8vw) translateZ(0);
      }
    }

    @media (max-width: 768px) {

      .work-hero__title,
      .work-hero__code {
        opacity: 1;
        transform: none;
        transition: none;
      }

      .work-hero__line {
        transform: scaleX(1);
        transition: none;
      }

      .work-hero__desc,
      .work-hero__bottom {
        opacity: 1;
        transition: none;
      }

      .work-hero {
        padding-top: 104px;
      }

      .work-hero__title {
        font-size: clamp(3.6rem, 20vw, 7rem);
      }

      .work-hero__kicker,
      .work-hero__desc {
        font-size: 0.68rem;
        letter-spacing: 0.13em;
      }
    }

    @media (max-width: 480px) {
      .work-hero__title {
        font-size: 65px;
      }
    }

    /* ── Post list (timeline rows) ───────────────────────────────── */
    .grid {
      display: block;
      border-top: 1px solid var(--blog-line);
    }

    .post {
      position: relative;
      display: grid;
      grid-template-columns: clamp(120px, 14vw, 210px) 1fr auto;
      align-items: center;
      gap: clamp(24px, 4vw, 64px);
      padding: clamp(26px, 3.2vw, 46px) clamp(6px, 1vw, 18px);
      text-decoration: none;
      color: inherit;
      border-bottom: 1px solid var(--blog-line);
      transition: background 0.5s var(--work-ease), padding-left 0.5s var(--work-ease);
    }

    .post:hover {
      background: rgba(255, 255, 255, 0.025);
      padding-left: clamp(14px, 1.6vw, 30px);
    }

    .post-date {
      font-family: "Bitcount Grid Single", var(--work-font-body);
      font-size: clamp(15px, 1.5vw, 22px);
      letter-spacing: 0.04em;
      color: rgba(255, 255, 255, 0.85);
      white-space: nowrap;
      transition: color 0.4s var(--work-ease);
    }

    .post-title {
      font-family: 'Noto Sans TC', var(--work-font-body);
      font-size: clamp(15px, 1.35vw, 21px);
      font-weight: 500;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.82);
      transition: color 0.4s var(--work-ease);
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

    .post:hover .post-date,
    .post:hover .post-title {
      color: #fff;
    }

    .post-arrow {
      justify-self: end;
      color: rgba(255, 255, 255, 0.55);
      font-size: 18px;
      line-height: 1;
      transition: transform 0.45s var(--work-ease), color 0.4s var(--work-ease);
    }

    .post:hover .post-arrow {
      color: var(--blog-accent);
      transform: translateX(6px);
    }

    /* ── Hover-reveal floating image ─────────────────────────────── */
    .blog-hover-img {
      position: fixed;
      top: 0;
      left: 0;
      width: clamp(220px, 22vw, 340px);
      aspect-ratio: 4 / 3;
      overflow: hidden;
      border-radius: 4px;
      pointer-events: none;
      z-index: 60;
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.92);
      transition: opacity 0.35s var(--work-ease), transform 0.45s var(--work-ease);
      will-change: transform, opacity;
      box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    }

    .blog-hover-img.is-visible {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .blog-hover-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    @media (hover: none) {
      .blog-hover-img {
        display: none;
      }
    }

    /* ── Loading / error ─────────────────────────────────────────── */
    .loading {
      font-family: var(--work-font-body);
      font-size: 13px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--blog-faint);
      padding: 40px 0;
    }

    .load-more-sentinel {
      min-height: 72px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--work-font-body);
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--blog-faint);
    }

    .load-more-sentinel:empty {
      display: none;
    }

    .error-box {
      font-family: var(--work-font-body);
      color: #e08a8a;
      padding: 18px 20px;
      background: rgba(224, 138, 138, 0.08);
      border: 1px solid rgba(224, 138, 138, 0.25);
      border-radius: 3px;
      margin: 20px 0;
      display: none;
    }

    /* ── Vertical grid line overlay（取自 lab.html） ─────────────── */
    .grid-overlay {
      position: fixed;
      inset: 0;
      padding: 0 var(--work-side-pad, 2rem);
      pointer-events: none;
      z-index: 2;
    }

    .grid-overlay-inner {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 0.75rem;
      height: 100%;
    }

    .grid-column {
      border-left: 1px solid rgba(255, 255, 255, 0.06);
      border-right: 1px solid rgba(255, 255, 255, 0.06);
      opacity: 0;
      will-change: transform, opacity;
    }

    @media (max-width: 768px) {
      .grid-overlay-inner {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    /* ── Skeleton（載入時的骨架，讓資料切換更絲滑） ──────────────── */
    .post--sk {
      pointer-events: none;
    }

    .post--sk .post-arrow {
      color: rgba(255, 255, 255, 0.12);
    }

    .sk {
      display: block;
      height: 0.9em;
      border-radius: 3px;
      background: linear-gradient(90deg,
          rgba(255, 255, 255, 0.04) 25%,
          rgba(255, 255, 255, 0.09) 37%,
          rgba(255, 255, 255, 0.04) 63%);
      background-size: 400% 100%;
      animation: sk-shimmer 1.4s ease infinite;
    }

    .sk-date {
      width: 70%;
    }

    .sk-title {
      width: min(46%, 420px);
      height: 1.05em;
    }

    @keyframes sk-shimmer {
      0% {
        background-position: 100% 0;
      }

      100% {
        background-position: 0 0;
      }
    }

    /* ── Responsive ──────────────────────────────────────────────── */
    @media (max-width: 768px) {
      .post {
        grid-template-columns: 1fr auto;
        gap: 6px 20px;
        padding: 22px 4px;
      }

      .post-date {
        grid-column: 1 / -1;
        font-size: 13px;
        color: var(--blog-faint);
      }

      .post-title {
        font-size: 15px;
        -webkit-line-clamp: 3;
      }

      .post:hover {
        padding-left: 4px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .blog-reveal {
        opacity: 1 !important;
        transform: none !important;
      }
    }
  

/* ═══ 页脚样式（自 ../css/work.css 补入，确保与全站一致）═══ */
    /* ── Site footer ────────────────────────────────────────────────── */
    .site-footer {
      position: relative;
      overflow: visible;
      color: #fff;
      padding: 0;
      font-family: 'DM Sans', sans-serif;
    }

    .footer-top {
      padding: 3vw 2.5vw;
      position: relative;
      z-index: 5;
      line-height: normal;
    }

    .footer-main-content {
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 40px;
    }

    .footer-contact-info a {
      display: block;
      color: #fff;
      text-decoration: none;
      font-size: clamp(20px, 3.5vw, 50px);
      font-weight: 400;
      margin-bottom: 4px;
      transition: opacity 0.2s;
    }

    .footer-contact-info a:hover {
      opacity: 0.6;
    }

    .footer-contact-info span {
      color: #ffffff;
      font-size: clamp(18px, 2.5vw, 30px);
    }

    .footer-nav-links {
      display: flex;
      gap: 28px;
      margin-top: 38px;
    }

    .footer-nav-links a {
      color: #fff;
      text-decoration: none;
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      transition: opacity 0.2s;
    }

    .footer-nav-links a:hover {
      opacity: 0.5;
    }

    .footer-right-panel {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: flex-start;
    }

    .footer-video-thumb {
      width: 100%;
      max-width: 340px;
      aspect-ratio: 16 / 9;
      overflow: hidden;
      position: relative;
    }

    .footer-video-thumb video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .footer-copyright-bridge {
      position: absolute;
      bottom: 0;
      right: 6%;
      width: clamp(90px, 10vw, 148px);
      height: clamp(90px, 10vw, 148px);
      display: flex;
      align-items: center;
      justify-content: center;
      transform: translateY(50%);
      z-index: 20;
    }

    .footer-copyright-bridge span {
      font-family: 'Zalando Sans SemiExpanded', 'DM Sans', sans-serif;
      font-size: 180px;
      font-weight: 600;
      color: #fff;
      line-height: 1;
    }

   .footer-parallax-section {
      height: 50vh;
      width: 100%;
      overflow: hidden;
      position: relative;
      z-index: 1;
    }
    .footer-parallax-copy {
      position: absolute;
      top: 30px;
      left: 40px;
      z-index: 3;
      color: rgba(255, 255, 255, 0.65);
      font-family: 'DM Sans', sans-serif;
      font-size: 12px;
      letter-spacing: 0.06em;
      line-height: 1.7;
      pointer-events: none;
    }

     @media (max-width: 1440px) {
     .footer-parallax-section {
      height: 300px;
      
    }
    }

    .footer-parallax-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: var(--footer-bg-image, none);
      background-attachment: fixed;
      background-size: contain;
      background-position: bottom;
      opacity: 1;
      mix-blend-mode: luminosity;
    }

    @media (max-width: 1024px) {
      .footer-top {
        padding: 6vw 4vw;
      }

      .footer-copyright-bridge,
      .footer-parallax-section {
        display: none !important;
      }
    }

    @media (max-width: 768px) {
      .footer-top {
        padding: 1.5rem;
      }

      .footer-main-content {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .footer-right-panel {
        align-items: flex-start;
      }

      .footer-video-thumb {
        max-width: 100%;
      }

      .footer-nav-links {
        gap: 16px;
        margin-top: 24px;
        flex-wrap: wrap;
      }
       .footer-nav-links a{
            font-size:11px;
      }
      
    }


/* 页脚补充规则 */
.frev-wrap { overflow: hidden; display: inline-block; vertical-align: bottom; }
    .footer-video-cover { position: absolute; inset: 0; background: #0a0a0a; z-index: 2; pointer-events: none; transform-origin: right center; will-change: transform; }
