    /* ─── 变量 ─── */
    :root {
      --bg: #0d0f12;
      --bg2: #111418;
      --bg3: #161b22;
      --accent: #4fc3f7;
      --accent2: #00b4d8;
      --accent3: #ff6b35;
      --line: rgba(79, 195, 247, 0.18);
      --line2: rgba(79, 195, 247, 0.08);
      --text: #c8d8e4;
      --text2: #7a9ab0;
      --text3: #3d5a6e;
      --white: #e8f4f8;
      --font-en: 'Rajdhani', sans-serif;
      --font-mono: 'Share Tech Mono', monospace;
      --font-cn: 'Noto Sans SC', sans-serif;
    }

    /* ─── 重置 ─── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; scroll-behavior: smooth; }
    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-cn);
      overflow: hidden;
      height: 100vh;
      width: 100vw;
    }

    /* ─── 加载屏 ─── */
    #loader {
      position: fixed;
      inset: 0;
      background: var(--bg);
      z-index: 9999;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: opacity 0.6s ease, visibility 0.6s ease;
    }
    #loader.hidden { display: none; }

    .loader-logo {
      font-family: var(--font-en);
      font-size: clamp(2rem, 6vw, 4rem);
      font-weight: 700;
      letter-spacing: 0.3em;
      color: var(--white);
      margin-bottom: 0.3em;
      opacity: 0;
      animation: fadeIn 0.5s 0.3s forwards;
    }
    .loader-sub {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--accent);
      letter-spacing: 0.2em;
      margin-bottom: 3rem;
      opacity: 0;
      animation: fadeIn 0.5s 0.6s forwards;
    }
    .loader-bar-wrap {
      width: min(480px, 80vw);
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    .loader-bar-track {
      height: 2px;
      background: var(--line);
      position: relative;
      overflow: hidden;
    }
    .loader-bar-fill {
      height: 100%;
      background: var(--accent);
      width: 0%;
      animation: barFill 2s 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
      box-shadow: 0 0 12px var(--accent);
    }
    .loader-status {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      color: var(--text2);
      letter-spacing: 0.1em;
    }
    .loader-copy {
      position: absolute;
      bottom: 2rem;
      left: 2rem;
      font-family: var(--font-en);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      color: var(--text3);
    }
    .loader-url {
      position: absolute;
      bottom: 2rem;
      right: 2rem;
      font-family: var(--font-mono);
      font-size: 0.65rem;
      color: var(--text3);
    }

    @keyframes barFill {
      0% { width: 0%; }
      60% { width: 72%; }
      80% { width: 88%; }
      100% { width: 100%; }
    }
    @keyframes fadeIn {
      to { opacity: 1; }
    }

    /* ─── 主画布 ─── */
    #app {
      position: fixed;
      inset: 0;
      opacity: 0;
      transition: opacity 0.4s ease;
      z-index: 3;
    }
    #app.visible { opacity: 1; }

    /* ─── 背景图层 ─── */
    #bg-canvas {
      position: fixed;
      inset: 0;
      z-index: 0;
    }
    #rain-canvas {
      position: fixed;
      inset: 0;
      z-index: 4;
      pointer-events: none;
    }
    #home-bg {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: linear-gradient(135deg, #0d0f12 0%, #111e2a 60%, #0d1520 100%);
      background-size: cover;
      background-position: center 30%;
      transition: opacity 0.6s ease;
    }
    /* 首页：左侧深遮罩保证文字可读，右侧显露背景 */
    #home-bg.home-mode::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(105deg,
          rgba(13,15,18,0.70) 0%,
          rgba(13,15,18,0.40) 45%,
          rgba(13,15,18,0.05) 100%
        ),
        linear-gradient(to bottom,
          rgba(13,15,18,0.5) 0%,
          rgba(13,15,18,0.0) 25%,
          rgba(13,15,18,0.0) 75%,
          rgba(13,15,18,0.6) 100%
        );
    }
    /* 其他页面：重遮罩，背景作底纹 */
    #home-bg.dim-mode::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(13,15,18,0.82);
    }

    /* ─── 顶部导航 ─── */
    #nav {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      height: 52px;
      display: flex;
      align-items: center;
      padding: 0 2rem;
      border-bottom: 1px solid var(--line);
      background: rgba(13, 15, 18, 0.75);
      backdrop-filter: blur(8px);
    }
    .nav-logo {
      margin-right: 3rem;
      text-decoration: none;
      display: flex;
      align-items: center;
    }
    .nav-logo svg {
      width: 32px;
      height: 32px;
      display: block;
    }
    .nav-links {
      display: flex;
      gap: 0;
      list-style: none;
      flex: 1;
    }
    .nav-links li a {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 0 1.2rem;
      height: 52px;
      justify-content: center;
      text-decoration: none;
      position: relative;
      transition: color 0.2s;
      cursor: pointer;
    }
    .nav-links li a .nav-icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      opacity: 0.55;
      transition: opacity 0.2s;
    }
    .nav-links li a:hover .nav-icon,
    .nav-links li a.active .nav-icon { opacity: 1; }
    .nav-links li a .nav-en {
      font-family: var(--font-en);
      font-size: 0.72rem;
      letter-spacing: 0.18em;
      color: var(--text2);
      line-height: 1;
      transition: color 0.2s;
    }
    .nav-links li a .nav-cn {
      font-size: 0.6rem;
      color: var(--text3);
      margin-top: 2px;
      letter-spacing: 0.05em;
      transition: color 0.2s;
    }
    .nav-links li a::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.25s ease;
    }
    .nav-links li a:hover .nav-en,
    .nav-links li a.active .nav-en { color: var(--white); }
    .nav-links li a:hover .nav-cn,
    .nav-links li a.active .nav-cn { color: var(--accent); }
    .nav-links li a:hover::after,
    .nav-links li a.active::after { width: 70%; }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-left: auto;
    }
    .nav-status {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: var(--accent);
      letter-spacing: 0.1em;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .nav-status::before {
      content: '';
      width: 5px;
      height: 5px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.3; }
    }

    /* ─── 过渡遮罩 ─── */
    #transition-mask {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: var(--bg);
      pointer-events: none;
      opacity: 0;
      clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
      transition: clip-path 0.4s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.1s;
    }
    #transition-mask.in {
      opacity: 1;
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    #transition-mask.out {
      opacity: 1;
      clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }

    /* ─── 页面容器 ─── */
    .page {
      position: fixed;
      inset: 0;
      padding-top: 52px;
      display: none;
      overflow-y: auto;
      overflow-x: hidden;
    }
    .page.active { display: block; }

    /* ─── 页码指示 ─── */
    #page-indicator {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      z-index: 100;
      text-align: right;
    }
    #icp-bar {
      position: fixed;
      bottom: 1rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: var(--text3);
      letter-spacing: 0.1em;
      white-space: nowrap;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
    }
    #icp-bar a {
      color: var(--text3);
      text-decoration: none;
    }
    #icp-bar a:hover { color: var(--text2); }
    .pi-num {
      font-family: var(--font-en);
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--text3);
      line-height: 1;
    }
    .pi-total {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: var(--text3);
      letter-spacing: 0.1em;
    }
    .pi-label {
      font-family: var(--font-en);
      font-size: 0.6rem;
      color: var(--text3);
      letter-spacing: 0.15em;
      margin-top: 0.3rem;
    }

    /* ─── 右侧工具栏 ─── */
    #toolbox {
      position: fixed;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      z-index: 100;
      display: flex;
      flex-direction: column;
      border-left: 1px solid var(--line);
      background: rgba(13, 15, 18, 0.8);
    }
    .tb-item {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid var(--line);
      cursor: pointer;
      transition: background 0.2s, color 0.2s;
      color: var(--text2);
      font-size: 0.65rem;
      font-family: var(--font-mono);
      text-decoration: none;
      position: relative;
    }
    .tb-item:hover { background: var(--line2); color: var(--accent); }
    .tb-item .tb-tip {
      position: absolute;
      right: calc(100% + 8px);
      background: var(--bg2);
      border: 1px solid var(--line);
      padding: 0.25rem 0.5rem;
      font-size: 0.55rem;
      white-space: nowrap;
      letter-spacing: 0.08em;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.15s;
    }
    .tb-item:hover .tb-tip { opacity: 1; }

    /* ─── SCROLL 提示 ─── */
    #scroll-hint {
      position: fixed;
      bottom: 2rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.4rem;
      opacity: 1;
      transition: opacity 0.3s;
    }
    .sh-text {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.2em;
      color: var(--text3);
    }
    .sh-arrow {
      width: 1px;
      height: 24px;
      background: linear-gradient(to bottom, var(--text3), transparent);
      animation: scrollArrow 1.5s infinite;
    }

    @keyframes scrollArrow {
      0% { transform: scaleY(1); opacity: 1; }
      100% { transform: scaleY(0.3) translateY(8px); opacity: 0; }
    }

    /* ─── 首页 ─── */
    #page-home {
      background: transparent;
      overflow: hidden;
    }
    .home-inner {
      height: 100%;
      display: flex;
      align-items: center;
      padding: 0 8vw;
      position: relative;
      z-index: 5;
    }
    .home-content {
      z-index: 10;
      max-width: 560px;
      position: relative;
    }
    .home-tag {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.25em;
      color: var(--accent);
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-bottom: 1.2rem;
    }
    .home-tag::before {
      content: '';
      width: 24px;
      height: 1px;
      background: var(--accent);
    }
    .home-title {
      font-family: var(--font-en);
      font-size: clamp(3rem, 7vw, 5.5rem);
      font-weight: 700;
      letter-spacing: 0.05em;
      color: #ffffff;
      line-height: 0.95;
      margin-bottom: 0.6rem;
      text-shadow: 0 0 30px rgba(0,0,0,1), 0 2px 12px rgba(0,0,0,1);
    }
    .home-title .dot { color: var(--accent); }
    .home-sub {
      font-family: var(--font-cn);
      font-size: 0.9rem;
      color: #c8d8e4;
      font-weight: 400;
      letter-spacing: 0.08em;
      margin-bottom: 2.5rem;
      line-height: 1.8;
      text-shadow: 0 1px 6px rgba(0,0,0,0.95);
    }
    .home-btns {
      display: flex;
      gap: 1rem;
    }
    .btn-primary {
      font-family: var(--font-en);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      padding: 0.75rem 2rem;
      background: var(--accent);
      color: var(--bg);
      border: none;
      cursor: pointer;
      clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
      transition: background 0.2s, box-shadow 0.2s;
      font-weight: 600;
    }
    .btn-primary:hover {
      background: var(--white);
      box-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
    }
    .btn-secondary {
      font-family: var(--font-en);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      padding: 0.75rem 2rem;
      background: transparent;
      color: var(--text);
      border: 1px solid var(--line);
      cursor: pointer;
      clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
      transition: border-color 0.2s, color 0.2s;
    }
    .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

    /* 右侧图片装饰框 */
    .home-deco {
      position: absolute;
      right: 6vw;
      top: 50%;
      transform: translateY(-50%);
      width: 280px;
      height: 380px;
      z-index: 6;
      opacity: 0;
      animation: fadeIn 1s 1.2s forwards;
    }
    .home-deco-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      display: block;
      filter: brightness(0.75) saturate(1.1);
      clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    }
    .home-deco-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(13,15,18,0.9) 0%, transparent 50%);
      clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    }
    .home-deco-frame {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .home-deco-frame::before {
      content: '';
      position: absolute;
      inset: 0;
      border: 1px solid rgba(79,195,247,0.35);
      clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    }
    .deco-corner {
      position: absolute;
      width: 14px;
      height: 14px;
    }
    .deco-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
    .deco-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
    .deco-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
    .deco-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
    .home-deco-info {
      position: absolute;
      bottom: 1.2rem;
      left: 1rem;
      right: 1rem;
    }
    .hdi-label {
      font-family: var(--font-mono);
      font-size: 0.5rem;
      letter-spacing: 0.2em;
      color: var(--accent);
      margin-bottom: 0.3rem;
    }
    .hdi-name {
      font-family: var(--font-en);
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--white);
      letter-spacing: 0.05em;
      line-height: 1;
      margin-bottom: 0.5rem;
    }
    .hdi-tags {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
    }
    .hdi-tag {
      font-family: var(--font-mono);
      font-size: 0.45rem;
      letter-spacing: 0.1em;
      padding: 0.15rem 0.4rem;
      border: 1px solid rgba(79,195,247,0.3);
      color: var(--text3);
    }
    .home-deco-scan {
      position: absolute;
      top: 0.6rem;
      right: 0.8rem;
      font-family: var(--font-mono);
      font-size: 0.45rem;
      color: var(--accent);
      letter-spacing: 0.1em;
      animation: blink 2s infinite;
    }
    @keyframes blink {
      0%, 90%, 100% { opacity: 1; }
      95% { opacity: 0; }
    }

    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-30px); }
      to { opacity: 1; transform: translateX(0); }
    }

    /* ─── 动态页 ─── */
    #page-news {
      background: transparent;
    }
    .section-inner {
      max-width: 1100px;
      margin: 0 auto;
      padding: 4rem 4vw 6rem;
    }
    .section-header {
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      margin-bottom: 3rem;
      border-bottom: 1px solid var(--line);
      padding-bottom: 1.5rem;
    }
    .section-title-wrap {}
    .section-en {
      font-family: var(--font-en);
      font-size: clamp(2.5rem, 5vw, 4rem);
      font-weight: 700;
      letter-spacing: 0.05em;
      color: var(--text3);
      line-height: 1;
    }
    .section-cn {
      font-family: var(--font-cn);
      font-size: 0.85rem;
      color: var(--text2);
      letter-spacing: 0.1em;
      margin-top: 0.3rem;
    }
    .section-desc {
      font-family: var(--font-cn);
      font-size: 0.8rem;
      color: var(--text3);
      max-width: 300px;
      text-align: right;
      line-height: 1.6;
    }

    .news-list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .news-item {
      display: grid;
      grid-template-columns: 120px 1fr auto;
      align-items: center;
      gap: 2rem;
      padding: 1.2rem 0;
      border-bottom: 1px solid var(--line2);
      transition: background 0.2s;
      cursor: pointer;
      position: relative;
      padding-left: 1rem;
    }
    .news-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 0;
      height: 1px;
      background: var(--accent);
      transition: width 0.25s;
    }
    .news-item:hover::before { width: 3px; height: 60%; }
    .news-item:hover { background: var(--line2); }
    .news-date {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      color: var(--text3);
      letter-spacing: 0.05em;
    }
    .news-title {
      font-size: 0.9rem;
      color: var(--text);
      font-weight: 400;
    }
    .news-item:hover .news-title { color: var(--white); }
    .news-tag {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.1em;
      padding: 0.2rem 0.6rem;
      border: 1px solid var(--line);
      color: var(--text3);
      text-transform: uppercase;
    }
    .news-tag.game { border-color: rgba(255, 107, 53, 0.4); color: var(--accent3); }
    .news-tag.dev { border-color: rgba(79, 195, 247, 0.4); color: var(--accent); }

    /* ─── 项目页 ─── */
    #page-projects { background: transparent; }

    .proj-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--line2);
      border: 1px solid var(--line2);
    }
    .proj-card {
      background: var(--bg);
      padding: 2rem;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      transition: background 0.3s;
    }
    .proj-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(to right, var(--accent), transparent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.35s ease;
    }
    .proj-card:hover { background: var(--bg3); }
    .proj-card:hover::before { transform: scaleX(1); }
    .proj-num {
      font-family: var(--font-en);
      font-size: 3rem;
      font-weight: 700;
      color: var(--text3);
      line-height: 1;
      margin-bottom: 1.5rem;
      opacity: 0.4;
    }
    .proj-status {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.1em;
      color: var(--accent);
      margin-bottom: 0.8rem;
    }
    .proj-status::before {
      content: '';
      width: 4px;
      height: 4px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 2s infinite;
    }
    .proj-name {
      font-family: var(--font-cn);
      font-size: 1.1rem;
      font-weight: 500;
      color: var(--white);
      margin-bottom: 0.6rem;
    }
    .proj-name-link {
      transition: color 0.2s;
    }
    .proj-card:hover .proj-name-link { color: var(--accent); }
    .proj-desc {
      font-size: 0.8rem;
      color: var(--text2);
      line-height: 1.7;
      margin-bottom: 1.5rem;
      font-weight: 300;
    }
    .proj-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }
    .proj-tag {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.08em;
      padding: 0.2rem 0.5rem;
      background: var(--line2);
      border: 1px solid var(--line);
      color: var(--text3);
    }
    .proj-arrow {
      position: absolute;
      bottom: 1.5rem;
      right: 1.5rem;
      font-family: var(--font-en);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      color: var(--text3);
      transition: color 0.2s, transform 0.2s;
    }
    .proj-card:hover .proj-arrow { color: var(--accent); transform: translate(4px, -4px); }
    .proj-icon {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      width: 36px;
      height: 36px;
      opacity: 0.18;
      transition: opacity 0.3s;
    }
    .proj-card:hover .proj-icon { opacity: 0.55; }

    /* ─── 联系页 ─── */
    #page-contact { background: transparent; }

    .contact-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      padding-top: 1rem;
    }
    .contact-left {}
    .contact-intro {
      font-size: 0.85rem;
      color: var(--text2);
      line-height: 1.9;
      margin-bottom: 2.5rem;
      font-weight: 300;
    }
    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .contact-link {
      display: grid;
      grid-template-columns: 120px 1fr;
      align-items: center;
      padding: 1rem 0;
      border-bottom: 1px solid var(--line2);
      text-decoration: none;
      transition: background 0.15s;
      padding-left: 0.5rem;
      position: relative;
    }
    .contact-link::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 0;
      background: var(--line2);
      transition: width 0.2s;
    }
    .contact-link:hover::before { width: 100%; }
    .cl-type {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.15em;
      color: var(--text3);
      text-transform: uppercase;
      position: relative;
    }
    .cl-value {
      font-family: var(--font-en);
      font-size: 0.85rem;
      color: var(--text);
      letter-spacing: 0.05em;
      position: relative;
      transition: color 0.2s;
    }
    .contact-link:hover .cl-value { color: var(--accent); }

    .contact-right {}
    .comment-title {
      font-family: var(--font-en);
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      color: var(--text3);
      margin-bottom: 1.5rem;
    }
    .comment-list {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      margin-bottom: 2rem;
    }
    .comment-item {
      padding: 1rem;
      border: 1px solid var(--line2);
      background: var(--bg2);
      position: relative;
    }
    .comment-item::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 2px;
      height: 0;
      background: var(--accent);
      transition: height 0.3s;
    }
    .comment-item:hover::before { height: 100%; }
    .ci-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.5rem;
    }
    .ci-avatar {
      width: 22px;
      height: 22px;
      background: var(--line);
      border: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-en);
      font-size: 0.7rem;
      color: var(--accent);
    }
    .ci-name {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      color: var(--text2);
    }
    .ci-date {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      color: var(--text3);
      margin-left: auto;
    }
    .ci-text {
      font-size: 0.8rem;
      color: var(--text2);
      line-height: 1.7;
      font-weight: 300;
    }

    .comment-form {
      display: flex;
      flex-direction: column;
      gap: 0.8rem;
    }
    .cf-input {
      background: var(--bg2);
      border: 1px solid var(--line2);
      border-bottom-color: var(--line);
      padding: 0.7rem 0.8rem;
      color: var(--text);
      font-family: var(--font-cn);
      font-size: 0.8rem;
      outline: none;
      transition: border-color 0.2s;
      resize: none;
    }
    .cf-input:focus { border-color: var(--accent); }
    .cf-input::placeholder { color: var(--text3); font-size: 0.75rem; }

    /* ─── 底部横线装饰 ─── */
    .page-scan-line {
      position: fixed;
      left: 0;
      right: 44px;
      height: 1px;
      background: linear-gradient(to right, transparent, var(--line), transparent);
      z-index: 50;
      pointer-events: none;
    }
    #scan-top { top: 52px; }
    #scan-bottom { bottom: 0; }

    /* ─── 左侧竖排装饰文字 ─── */
    .side-label {
      position: fixed;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%) rotate(-90deg);
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.25em;
      color: var(--text3);
      white-space: nowrap;
      z-index: 50;
    }

    /* ─── 登录面板 ─── */
    #login-overlay {
      position: fixed;
      inset: 0;
      z-index: 500;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    #login-overlay.open { opacity: 1; pointer-events: all; }

    #login-panel {
      position: fixed;
      right: 0;
      top: 0;
      bottom: 0;
      width: 360px;
      z-index: 501;
      background: var(--bg2);
      border-left: 1px solid var(--line);
      transform: translateX(100%);
      transition: transform 0.4s cubic-bezier(0.7,0,0.3,1);
      display: flex;
      flex-direction: column;
    }
    #login-panel.open { transform: translateX(0); }

    .lp-header {
      padding: 1.5rem 1.5rem 1rem;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .lp-title {
      font-family: var(--font-en);
      font-size: 0.7rem;
      letter-spacing: 0.25em;
      color: var(--accent);
    }
    .lp-close {
      width: 28px; height: 28px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      color: var(--text3);
      font-size: 1rem;
      border: 1px solid var(--line2);
      transition: border-color 0.2s, color 0.2s;
    }
    .lp-close:hover { border-color: var(--accent); color: var(--accent); }

    .lp-body {
      flex: 1;
      padding: 2rem 1.5rem;
      display: flex;
      flex-direction: column;
    }
    .lp-welcome {
      font-family: var(--font-en);
      font-size: 0.6rem;
      letter-spacing: 0.2em;
      color: var(--text3);
      margin-bottom: 0.5rem;
    }
    .lp-desc {
      font-size: 0.8rem;
      color: var(--text2);
      margin-bottom: 2rem;
      font-weight: 300;
    }
    .lp-form {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .lp-field {
      display: flex;
      flex-direction: column;
      gap: 0.3rem;
    }
    .lp-label {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.15em;
      color: var(--text3);
      text-transform: uppercase;
    }
    .lp-input {
      background: var(--bg);
      border: 1px solid var(--line2);
      border-bottom-color: var(--line);
      padding: 0.65rem 0.8rem;
      color: var(--text);
      font-family: var(--font-mono);
      font-size: 0.8rem;
      outline: none;
      transition: border-color 0.2s;
      width: 100%;
      clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
    }
    .lp-input:focus { border-color: var(--accent); }
    .lp-submit {
      font-family: var(--font-en);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      padding: 0.75rem;
      background: var(--accent);
      color: var(--bg);
      border: none;
      cursor: pointer;
      font-weight: 700;
      margin-top: 0.5rem;
      clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
      transition: background 0.2s;
    }
    .lp-submit:hover { background: var(--white); }
    .lp-switch {
      font-size: 0.72rem;
      color: var(--text3);
      text-align: center;
      margin-top: 1rem;
      cursor: pointer;
    }
    .lp-switch span { color: var(--accent); text-decoration: underline; cursor: pointer; }
    .lp-switch span:hover { color: var(--white); }
    .lp-error {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: #ff6b6b;
      letter-spacing: 0.1em;
      min-height: 1rem;
    }

    .lp-logged {
      display: none;
      flex-direction: column;
      gap: 1.5rem;
    }
    .lp-avatar {
      width: 48px; height: 48px;
      background: var(--line);
      border: 1px solid var(--line);
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-en);
      font-size: 1.2rem;
      color: var(--accent);
      clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
    }
    .lp-username {
      font-family: var(--font-cn);
      font-size: 1rem;
      color: var(--white);
    }
    .lp-logout {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      color: var(--text3);
      cursor: pointer;
      border: 1px solid var(--line2);
      padding: 0.5rem 1rem;
      display: inline-block;
      transition: border-color 0.2s, color 0.2s;
      width: fit-content;
    }
    .lp-logout:hover { border-color: var(--accent); color: var(--accent); }

    .lp-admin-btn {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      color: #a78bfa;
      cursor: pointer;
      border: 1px solid rgba(167,139,250,0.3);
      padding: 0.5rem 1rem;
      display: none;
      width: fit-content;
      transition: border-color 0.2s, color 0.2s;
    }
    .lp-admin-btn:hover { border-color: #a78bfa; }

    /* ─── 管理员面板 ─── */
    #admin-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      z-index: 9000;
    }
    #admin-overlay.open { display: flex; align-items: center; justify-content: center; }
    #admin-panel {
      background: #111418;
      border: 1px solid var(--line);
      width: min(760px, 96vw);
      max-height: 88vh;
      display: flex;
      flex-direction: column;
      clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    }
    .adm-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid var(--line2);
    }
    .adm-title {
      font-family: var(--font-mono);
      font-size: 0.65rem;
      color: #a78bfa;
      letter-spacing: 0.2em;
    }
    .adm-close {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      color: var(--text2);
      cursor: pointer;
    }
    .adm-close:hover { color: var(--accent); }
    .adm-tabs {
      display: flex;
      gap: 0;
      padding: 0 1.5rem;
      border-bottom: 1px solid var(--line2);
    }
    .adm-tab {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      letter-spacing: 0.12em;
      color: var(--text2);
      padding: 0.65rem 1rem;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      transition: color 0.2s, border-color 0.2s;
    }
    .adm-tab.active { color: #a78bfa; border-bottom-color: #a78bfa; }
    .adm-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
    .adm-section { display: none; }
    .adm-section.active { display: block; }
    .adm-field-label {
      font-family: var(--font-mono);
      font-size: 0.55rem;
      color: var(--text3);
      letter-spacing: 0.1em;
      margin-bottom: 0.4rem;
    }
    .adm-input, .adm-textarea {
      width: 100%;
      background: rgba(79,195,247,0.04);
      border: 1px solid var(--line2);
      color: var(--text);
      font-family: var(--font-mono);
      font-size: 0.65rem;
      padding: 0.6rem 0.8rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .adm-input:focus, .adm-textarea:focus { border-color: var(--accent); }
    .adm-textarea { resize: vertical; min-height: 100px; }
    .adm-save-btn {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      color: #111;
      background: var(--accent);
      border: none;
      padding: 0.5rem 1.4rem;
      cursor: pointer;
      transition: opacity 0.2s;
    }
    .adm-save-btn:hover { opacity: 0.85; }
    .adm-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .adm-msg { font-family: var(--font-mono); font-size: 0.55rem; margin-left: 1rem; }
    .adm-table { width: 100%; border-collapse: collapse; }
    .adm-table th {
      font-family: var(--font-mono);
      font-size: 0.5rem;
      letter-spacing: 0.12em;
      color: var(--text3);
      text-align: left;
      padding: 0.5rem 0.6rem;
      border-bottom: 1px solid var(--line2);
    }
    .adm-table td {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: var(--text2);
      padding: 0.6rem;
      border-bottom: 1px solid var(--line2);
      vertical-align: middle;
    }
    .adm-badge {
      display: inline-block;
      font-size: 0.5rem;
      padding: 0.15rem 0.5rem;
      letter-spacing: 0.08em;
    }
    .adm-act-btn {
      font-family: var(--font-mono);
      font-size: 0.5rem;
      letter-spacing: 0.08em;
      border: 1px solid;
      padding: 0.2rem 0.6rem;
      cursor: pointer;
      background: transparent;
      transition: opacity 0.2s;
    }
    .adm-act-btn:hover { opacity: 0.7; }
    .adm-gen-btn {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      color: var(--accent);
      border: 1px solid var(--line);
      background: transparent;
      padding: 0.4rem 1rem;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .adm-gen-btn:hover { border-color: var(--accent); }
    .nav-login-btn {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      letter-spacing: 0.12em;
      padding: 0.3rem 0.8rem;
      border: 1px solid var(--line);
      color: var(--text2);
      cursor: pointer;
      background: transparent;
      transition: border-color 0.2s, color 0.2s;
      clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
    }
    .nav-login-btn:hover,
    .nav-login-btn.logged { border-color: var(--accent); color: var(--accent); }

    /* ─── 动态详情面板 ─── */
    #news-detail-overlay {
      position: fixed;
      inset: 0;
      z-index: 400;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(2px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    #news-detail-overlay.open { opacity: 1; pointer-events: all; }

    #news-detail-panel {
      position: fixed;
      top: 50%;
      left: 50%;
      width: min(680px, 92vw);
      max-height: calc(100vh - 80px);
      z-index: 401;
      background: var(--bg2);
      border: 1px solid var(--line);
      transform: translate(-50%, -40%);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.35s cubic-bezier(0.7,0,0.3,1), opacity 0.35s ease;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }
    #news-detail-panel.open {
      transform: translate(-50%, -50%);
      opacity: 1;
      pointer-events: auto;
    }

    .ndp-header {
      padding: 1.5rem 2rem 1rem;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 1rem;
    }
    .ndp-meta {
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .ndp-date {
      font-family: var(--font-mono);
      font-size: 0.6rem;
      color: var(--text3);
      letter-spacing: 0.1em;
    }
    .ndp-title {
      font-size: 1rem;
      color: var(--white);
      font-weight: 500;
      line-height: 1.4;
    }
    .ndp-close {
      width: 28px; height: 28px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--text3); font-size: 1rem;
      border: 1px solid var(--line2);
      transition: border-color 0.2s, color 0.2s;
    }
    .ndp-close:hover { border-color: var(--accent); color: var(--accent); }

    .ndp-body {
      flex: 1;
      padding: 2rem;
      overflow-y: auto;
    }
    .ndp-content {
      font-size: 0.88rem;
      color: var(--text2);
      line-height: 2;
      font-weight: 300;
    }
    .ndp-content p { margin-bottom: 1rem; }
    .ndp-content code {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      background: var(--bg);
      border: 1px solid var(--line2);
      padding: 0.1rem 0.4rem;
      color: var(--accent);
    }

    /* ─── 汉堡菜单按钮 ─── */
    #menu-btn {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 36px;
      height: 36px;
      cursor: pointer;
      margin-left: auto;
      padding: 4px;
      background: transparent;
      border: 1px solid var(--line);
      flex-shrink: 0;
    }
    #menu-btn span {
      display: block;
      width: 18px;
      height: 1px;
      background: var(--text2);
      transition: transform 0.25s, opacity 0.25s;
    }
    #menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); background: var(--accent); }
    #menu-btn.open span:nth-child(2) { opacity: 0; }
    #menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--accent); }

    /* ─── 移动端抽屉菜单 ─── */
    #mobile-nav {
      display: none;
      position: fixed;
      top: 52px;
      left: 0;
      right: 0;
      z-index: 99;
      background: rgba(13,15,18,0.97);
      border-bottom: 1px solid var(--line);
      backdrop-filter: blur(8px);
      flex-direction: column;
      padding: 0.5rem 0 1rem;
    }
    #mobile-nav.open { display: flex; }
    .mobile-nav-item {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 0.75rem 1.5rem;
      cursor: pointer;
      border-left: 2px solid transparent;
      transition: border-color 0.2s, background 0.2s;
    }
    .mobile-nav-item:hover,
    .mobile-nav-item.active { border-left-color: var(--accent); background: var(--line2); }
    .mobile-nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.55; transition: opacity 0.2s; }
    .mobile-nav-item:hover .nav-icon,
    .mobile-nav-item.active .nav-icon { opacity: 1; }
    .mobile-nav-item .nav-en { font-family: var(--font-en); font-size: 0.85rem; letter-spacing: 0.15em; color: var(--text2); }
    .mobile-nav-item .nav-cn { font-size: 0.7rem; color: var(--text3); }
    .mobile-nav-item:hover .nav-en,
    .mobile-nav-item.active .nav-en { color: var(--white); }
    .mobile-nav-item:hover .nav-cn,
    .mobile-nav-item.active .nav-cn { color: var(--accent); }

    /* ─── 响应式 ─── */

    /* 平板 */
    @media (max-width: 900px) {
      .home-deco { display: none; }
      .proj-grid { grid-template-columns: repeat(2, 1fr); }
      .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
      .news-item { grid-template-columns: 90px 1fr; }
      .news-tag { display: none; }
      #login-panel { width: 360px; }
      #news-detail-panel { width: min(600px, 92vw); }
      .side-label { display: none; }
    }

    /* 手机 */
    @media (max-width: 640px) {
      /* 导航：隐藏桌面链接，显示汉堡 */
      .nav-links { display: none; }
      .nav-status { display: none; }
      #menu-btn { display: flex; }
      #nav { padding: 0 1rem; }

      /* 首页 */
      .home-inner { padding: 0 5vw; align-items: flex-start; padding-top: 6rem; }
      .home-title { font-size: clamp(2.5rem, 12vw, 4rem); }
      .home-sub { font-size: 0.82rem; margin-bottom: 2rem; }
      .home-btns { flex-direction: column; gap: 0.6rem; }
      .btn-primary, .btn-secondary { width: 100%; text-align: center; padding: 0.8rem 1rem; }

      /* 动态 */
      .news-item { grid-template-columns: 1fr; gap: 0.3rem; padding: 0.9rem 0.5rem; }
      .news-date { font-size: 0.58rem; }
      .news-title { font-size: 0.82rem; }
      .section-en { font-size: clamp(1.8rem, 8vw, 2.5rem); }
      .section-inner { padding: 2.5rem 1rem 5rem; }
      .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
      .section-desc { text-align: left; max-width: 100%; }

      /* 项目网格 */
      .proj-grid { grid-template-columns: 1fr; }
      .proj-card { padding: 1.5rem; }

      /* 联系 */
      .contact-layout { grid-template-columns: 1fr; gap: 1.5rem; }
      .contact-link { grid-template-columns: 80px 1fr; }
      .comment-form .btn-primary { width: 100%; }

      /* 面板全屏 */
      #login-panel { width: 100%; }
      #news-detail-panel { width: 100%; max-height: calc(100vh - 52px); top: 52px; transform: translate(-50%, 0); }
      #news-detail-panel.open { transform: translate(-50%, 0); }

      /* 隐藏装饰元素 */
      #page-indicator { display: none; }
      #toolbox { display: none; }
      #scroll-hint { display: none; }
      .side-label { display: none; }
      #icp-bar { font-size: 0.5rem; }
    }

    /* 超小屏 */
    @media (max-width: 380px) {
      .home-title { font-size: 2.2rem; }
      .nav-login-btn { font-size: 0.55rem; padding: 0.25rem 0.5rem; }
    }
