    :root {
      --gold-glow: rgba(212, 190, 136, 0.25);
      --bg-dark: #07080a;
      --capsule-bg: rgba(14, 16, 22, 0.72);
      --border-fine: rgba(255, 255, 255, 0.08);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    /* 页面级滚动已退役：锁定舞台下窗口不滚（stage-locked），
       超长内容收进 .stage-scroll-body 内部滚，滚动条样式随通用类在 shared-variables.css。 */
    body {
      background: var(--bg-dark);
      color: #e5e8f0;
      font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", sans-serif;
      min-height: 100vh;
      position: relative;
    }

    /* 主视口容器：全屏最大化铺满 */
    .projects-container {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: none;
      margin: 0 auto;
      padding: 16px 40px 40px;
      box-sizing: border-box;
    }

    /* 顶部操作条：支持常态与批量接管双态 */
    .projects-toolbar {
      display: flex;
      align-items: center;
      margin-bottom: 24px;
      width: 100%;
      height: 44px;
      position: relative;
    }

    .toolbar-normal-deck {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 100%;
    }

    .toolbar-normal-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .toolbar-normal-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .projects-title-box {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .projects-title-text {
      margin: 0;
      font-size: 24px;
      font-weight: 500;
      color: #ffffff;
      letter-spacing: 2px;
      line-height: 1;
    }

    html[data-theme="light"] .projects-title-text {
      color: #0f172a;
    }

    .projects-count-badge {
      font-size: 13.5px;
      letter-spacing: 1px;
      color: var(--gold-primary);
      background: rgba(212, 190, 136, 0.08);
      border: 1px solid rgba(212, 190, 136, 0.28);
      padding: 3px 12px;
      border-radius: 999px;
    }

    html[data-theme="light"] .projects-count-badge {
      color: #8f6e2b;
      background: rgba(143, 110, 43, 0.08);
      border-color: rgba(143, 110, 43, 0.25);
    }

    /* 顶部新建方案金色大按钮 */
    .btn-create-proj-top {
      height: 36px;
      padding: 0 20px;
      border-radius: 8px;
      background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 60%, #a98d50 100%);
      color: #08090c;
      border: none;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 1.5px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s ease;
      box-shadow: 0 4px 14px rgba(196, 170, 110, 0.25);
      white-space: nowrap;
    }

    .btn-create-proj-top:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(212, 190, 136, 0.35);
    }

    /* 空间二分大药丸已退役，合并为统一的项目总览 */
    .projects-tabs {
      display: inline-flex;
      align-items: center;
      background: rgba(8, 9, 13, 0.75);
      border: 1px solid rgba(212, 190, 136, 0.35);
      border-radius: 999px;
      padding: 4px;
      gap: 4px;
      height: 44px;
      box-sizing: border-box;
    }

    .proj-tab-btn {
      padding: 0 24px;
      height: 34px;
      line-height: 34px;
      background: transparent;
      border: none;
      border-radius: 999px;
      font-size: 18px;
      color: #8c92a2;
      cursor: pointer;
      transition: all 0.2s ease;
      font-weight: 600;
      white-space: nowrap;
    }

    .proj-tab-btn:hover {
      color: #ffffff;
    }

    .proj-tab-btn.active {
      background: #232630;
      color: var(--gold-primary);
      font-weight: 600;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    /* 排序微胶囊（带前缀，清清楚楚） */
    .sort-carrier-btn {
      display: inline-flex;
      align-items: center;
      height: 42px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      padding: 0 16px;
      box-sizing: border-box;
      transition: all 0.2s ease;
    }

    .sort-carrier-btn:hover {
      background: rgba(255, 255, 255, 0.09);
      border-color: rgba(212, 190, 136, 0.4);
    }

    .sort-label {
      font-size: 15px;
      color: #8c92a2;
      margin-right: 2px;
      user-select: none;
      white-space: nowrap;
    }

    .sort-select-inline {
      background: transparent;
      border: none;
      color: var(--gold-primary);
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      outline: none;
      appearance: none;
      padding-right: 18px;
      background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23eeddb2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right center;
    }

    .sort-select-inline option {
      background: #12141a;
      color: #d1d5e0;
    }

    /* 批量管理常态按钮 */
    .btn-enter-batch {
      height: 42px;
      padding: 0 18px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 999px;
      color: #d1d5e0;
      font-size: 15px;
      cursor: pointer;
      transition: all 0.2s ease;
      box-sizing: border-box;
      white-space: nowrap;
    }

    .btn-enter-batch:hover {
      background: rgba(212, 190, 136, 0.15);
      border-color: var(--gold-primary);
      color: var(--gold-primary);
    }

    /* 状态 B：批量模式变形控制台（接管顶栏） */
    .toolbar-batch-deck {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 44px;
      background: rgba(18, 22, 29, 0.95);
      border: 1px solid rgba(212, 190, 136, 0.45);
      border-radius: 999px;
      padding: 0 16px;
      box-sizing: border-box;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(20px);
      animation: fadeInDeck 0.2s ease;
    }

    @keyframes fadeInDeck {
      from { opacity: 0; transform: translateY(-4px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .batch-deck-left,
    .batch-deck-center,
    .batch-deck-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .batch-count-pill {
      font-size: 15px;
      color: #cbd5e1;
      padding: 0 8px;
      white-space: nowrap;
    }

    .batch-count-pill b {
      color: var(--gold-primary);
      font-family: inherit;
      font-variant-numeric: tabular-nums;
      font-size: 18px;
    }

    .btn-batch-action {
      height: 32px;
      padding: 0 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.06);
      color: #e2e8f0;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .btn-batch-action:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.12);
      color: #fff;
    }

    .btn-batch-action.highlight:not(:disabled) {
      border-color: rgba(212, 190, 136, 0.5);
      color: var(--gold-primary);
      background: rgba(212, 190, 136, 0.1);
    }

    .btn-batch-action.highlight:hover:not(:disabled) {
      background: rgba(212, 190, 136, 0.2);
    }

    .btn-batch-action.danger:not(:disabled) {
      border-color: rgba(239, 68, 68, 0.4);
      color: #ef4444;
      background: rgba(239, 68, 68, 0.1);
    }

    .btn-batch-action.danger:hover:not(:disabled) {
      background: rgba(239, 68, 68, 0.2);
    }

    .btn-batch-action:disabled {
      opacity: 0.35;
      cursor: not-allowed;
    }

    .btn-exit-batch {
      height: 32px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid rgba(212, 190, 136, 0.4);
      background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%);
      color: #08090c;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      white-space: nowrap;
    }

    .btn-exit-batch:hover {
      filter: brightness(1.08);
      transform: translateY(-1px);
    }

    html[data-theme="light"] .projects-tabs {
      background: #ede9df;
      border-color: #ded8cb;
    }
    html[data-theme="light"] .proj-tab-btn {
      color: #64748b;
    }
    html[data-theme="light"] .proj-tab-btn:hover {
      color: #0f172a;
    }
    html[data-theme="light"] .proj-tab-btn.active {
      background: #ffffff;
      color: #9b7c38;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    }
    html[data-theme="light"] .sort-carrier-btn {
      background: #ffffff;
      border-color: rgba(180, 140, 80, 0.35);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    html[data-theme="light"] .sort-label {
      color: #64748b;
    }
    html[data-theme="light"] .sort-select-inline {
      background: transparent !important;
      border: none !important;
      outline: none !important;
      box-shadow: none !important;
      color: #9b7c38;
      background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239b7c38' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    }
    html[data-theme="light"] .sort-select-inline option {
      background: #ffffff;
      color: #0f172a;
    }
    html[data-theme="light"] .btn-enter-batch {
      background: #ffffff;
      border-color: rgba(180, 140, 80, 0.35);
      color: #334155;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }
    html[data-theme="light"] .btn-enter-batch:hover {
      background: rgba(180, 140, 80, 0.12);
      border-color: #9b7c38;
      color: #9b7c38;
    }
    html[data-theme="light"] .toolbar-batch-deck {
      background: rgba(255, 253, 248, 0.98);
      border-color: rgba(180, 140, 80, 0.4);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    }
    html[data-theme="light"] .batch-count-pill {
      color: #475569;
    }
    html[data-theme="light"] .batch-count-pill b {
      color: #9b7c38;
    }
    html[data-theme="light"] .btn-batch-action {
      background: #f7f5ef;
      border-color: #ded8cb;
      color: #1e293b;
    }

    /* 项目卡片网格：全屏最大化铺满 180px */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 14px;
    }

    /* 最右侧新建卡片高定样式 */
    .project-card.card-create-entry {
      border: 1.5px dashed rgba(212, 190, 136, 0.45);
      background: rgba(14, 16, 22, 0.65);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      min-height: 236px;
      box-sizing: border-box;
      transition: all 0.25s ease;
    }

    .project-card.card-create-entry:hover {
      border-style: solid;
      border-color: var(--gold-primary);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 190, 136, 0.2);
      transform: translateY(-4px);
    }

    .create-card-cover {
      width: 100%;
      height: 120px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .create-plus-icon {
      font-size: 38px;
      color: var(--gold-primary);
      line-height: 1;
      transition: transform 0.25s ease;
      user-select: none;
    }

    .project-card.card-create-entry:hover .create-plus-icon {
      transform: scale(1.15);
    }

    .create-card-details {
      padding: 12px 14px 16px;
      width: 100%;
      box-sizing: border-box;
    }

    .create-card-title {
      font-size: 17px;
      font-weight: 600;
      color: #ffffff;
      margin-bottom: 4px;
      letter-spacing: 0.5px;
    }

    .create-card-sub {
      font-size: 14px;
      color: #8c92a2;
    }

    .project-card.card-create-entry:hover .create-card-title {
      color: var(--gold-primary);
    }

    html[data-theme="light"] .project-card.card-create-entry {
      background: rgba(255, 253, 248, 0.85);
      border-color: rgba(180, 140, 80, 0.45);
    }
    html[data-theme="light"] .create-card-title {
      color: #0f172a;
    }
    html[data-theme="light"] .create-card-sub {
      color: #64748b;
    }
    html[data-theme="light"] .project-card.card-create-entry:hover .create-card-title {
      color: #9b7c38;
    }
    html[data-theme="light"] .batch-pop-item:hover:not(:disabled) {
      background: rgba(180, 140, 80, 0.12);
      color: #9b7c38;
    }
    html[data-theme="light"] .batch-pop-divider {
      background: rgba(0, 0, 0, 0.08);
    }

    /* 项目卡片网格：全屏最大化铺满 180px */
    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 14px;
    }

    /* 单个项目大卡片（黑金高定边框） */
    .project-card {
      background: var(--capsule-bg);
      border: 1px solid rgba(212, 190, 136, 0.35);
      border-radius: 14px;
      overflow: hidden;
      backdrop-filter: blur(24px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 240, 200, 0.1);
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      display: flex;
      flex-direction: column;
      position: relative;
    }

    .project-card:hover {
      border-color: rgba(212, 190, 136, 0.75);
      transform: translateY(-3px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 190, 136, 0.15);
    }

    .project-cover-wrap {
      width: 100%;
      height: 120px;
      background:
        linear-gradient(180deg, rgba(18, 20, 26, 0.2), rgba(7, 8, 10, 0.55)),
        repeating-linear-gradient(45deg, rgba(212, 190, 136, 0.05) 0 8px, transparent 8px 16px),
        #111318;
      position: relative;
      overflow: hidden;
    }

    .project-cover {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.88;
      transition: transform 0.5s ease;
    }
    .project-cover[hidden] { display: none !important; }
    .project-cover-empty {
      position: absolute;
      inset: 0;
      display: grid;
      place-items: center;
      color: rgba(212, 190, 136, 0.42);
      font-size: 15px;
      letter-spacing: 1px;
    }

    .project-card:hover .project-cover {
      transform: scale(1.04);
    }

    .project-type-tag {
      position: absolute;
      top: 8px;
      left: 8px;
      max-width: calc(100% - 48px);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      background: rgba(7, 8, 10, 0.75);
      border: 1px solid rgba(212, 190, 136, 0.35);
      color: var(--gold-primary);
      font-size: 15px;
      letter-spacing: 0.5px;
      padding: 2px 8px;
      border-radius: 4px;
      backdrop-filter: blur(8px);
      z-index: 4;
    }

    /* 悬浮在右上角的轻盈删除按钮（hover才渐显，不破坏卡片整体） */
    .btn-del-proj-float {
      position: absolute;
      top: 14px;
      right: 14px;
      width: 28px;
      height: 28px;
      background: rgba(7, 8, 10, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 50%;
      color: #9ba0aa;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0.72;
      transition: all 0.2s ease;
      backdrop-filter: blur(6px);
      z-index: 5;
    }

    .project-card:hover .btn-del-proj-float {
      opacity: 1;
    }

    @media (hover: none) and (pointer: coarse) {
      .btn-del-proj-float {
        opacity: 1 !important;
        width: 32px;
        height: 32px;
        font-size: 14px;
        background: rgba(7, 8, 10, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.28);
        color: #e2e8f0;
      }
    }

    .btn-del-proj-float:hover {
      background: rgba(255, 92, 92, 0.2);
      border-color: rgba(255, 92, 92, 0.5);
      color: #ff6b6b;
    }

    /* 批量模式：卡片勾选 */
    .projects-grid.batch-mode .project-card {
      cursor: pointer;
    }

    .projects-grid.batch-mode .project-card:hover {
      border-color: rgba(212, 190, 136, 0.4);
    }

    .batch-check {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 1.5px solid rgba(255, 255, 255, 0.35);
      background: rgba(7, 8, 10, 0.6);
      display: none;
      align-items: center;
      justify-content: center;
      color: transparent;
      font-size: 12px;
      z-index: 6;
      transition: all 0.15s ease;
    }

    .projects-grid.batch-mode .batch-check {
      display: flex;
    }

    .projects-grid.batch-mode .btn-del-proj-float {
      display: none;
    }

    .project-card.selected {
      border-color: var(--gold-primary);
      box-shadow: 0 0 0 1px var(--gold-primary), 0 0 20px rgba(212, 190, 136, 0.25);
    }

    .project-card.selected .batch-check {
      background: var(--gold-primary);
      border-color: var(--gold-primary);
      color: #08090c;
    }

    /* 批量操作底栏 */
    .batch-bar {
      position: fixed;
      left: 50%;
      bottom: 28px;
      transform: translateX(-50%) translateY(120px);
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 12px 22px;
      background: rgba(14, 16, 22, 0.95);
      border: 1px solid rgba(212, 190, 136, 0.4);
      border-radius: 12px;
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 190, 136, 0.12);
      z-index: 90;
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      backdrop-filter: blur(16px);
    }

    .batch-bar.show {
      transform: translateX(-50%) translateY(0);
    }

    .batch-count {
      font-size: 15px;
      color: #e5e8f0;
      letter-spacing: 0.5px;
      white-space: nowrap;
    }

    .batch-count b {
      color: var(--gold-primary);
      font-family: inherit;
      font-variant-numeric: tabular-nums;
    }

    .batch-actions {
      display: flex;
      gap: 10px;
      align-items: center;
    }

    .batch-btn {
      height: 34px;
      padding: 0 16px;
      border-radius: 7px;
      font-size: 15px;
      font-weight: 600;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .batch-btn-select-all {
      background: rgba(212, 190, 136, 0.08);
      border: 1px solid rgba(212, 190, 136, 0.35);
      color: var(--gold-primary);
    }

    .batch-btn-select-all:hover {
      background: rgba(212, 190, 136, 0.18);
    }

    .batch-btn-delete {
      background: linear-gradient(135deg, #ff6b6b 0%, #d94f4f 100%);
      border: 1px solid transparent;
      color: #fff;
    }

    .batch-btn-delete:disabled {
      background: rgba(255, 255, 255, 0.06);
      color: #666a75;
      cursor: not-allowed;
    }

    .batch-btn-cancel {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.14);
      color: #9ba0aa;
    }

    .batch-btn-cancel:hover {
      color: #fff;
      border-color: rgba(255, 255, 255, 0.3);
    }

    .project-details {
      padding: 10px 12px 12px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      flex: 1;
    }

    /* P5: 项目元信息（日期、图片数独立换行，消灭横向拥挤） */
    .project-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      font-size: 15px;
      color: #7b808e;
      letter-spacing: 0.5px;
    }

    .project-meta-item {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .project-meta-item svg {
      width: 12px;
      height: 12px;
      opacity: 0.6;
    }

    .project-date {
      color: #9ba0aa;
    }

    .project-count {
      color: var(--gold-primary);
      opacity: 0.8;
    }

    /* 可就地直接点击修改的项目名称 */
    .project-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    .project-title-editable {
      font-size: 17px;
      font-weight: 500;
      color: #ffffff;
      letter-spacing: 0.5px;
      cursor: pointer;
      padding: 2px 6px;
      border-radius: 4px;
      border: 1px solid transparent;
      transition: all 0.2s ease;
      flex: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .project-title-editable:hover {
      background: rgba(255, 255, 255, 0.05);
      border-color: rgba(255, 255, 255, 0.12);
      color: var(--gold-primary);
    }

    .title-edit-input {
      width: 100%;
      background: #181a22;
      border: 1px solid var(--gold-primary);
      border-radius: 4px;
      color: #fff;
      font-size: 17px;
      padding: 4px 8px;
      outline: none;
    }

    .edit-hint-icon {
      font-size: 12px;
      color: #555964;
      opacity: 0;
      transition: opacity 0.2s;
    }

    .project-title-row:hover .edit-hint-icon {
      opacity: 1;
    }

    /* 孪生并排双通道操作行（50% : 50%） */
    .project-actions-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      width: 100%;
    }

    /* 极简主行动按钮 */
    .btn-enter-proj {
      width: 100%;
      height: 32px;
      background: rgba(212, 190, 136, 0.08);
      border: 1px solid rgba(212, 190, 136, 0.35);
      border-radius: 8px;
      color: var(--gold-primary);
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 1px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 4px;
      transition: all 0.25s ease;
      text-decoration: none;
      white-space: nowrap;
      box-sizing: border-box;
    }

    .btn-enter-proj:hover {
      background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%);
      border-color: transparent;
      color: #08090c;
      box-shadow: 0 4px 18px rgba(196, 170, 110, 0.3);
    }

    /* 空状态卡片 */
    .empty-card {
      grid-column: 1 / -1;
      background: var(--capsule-bg);
      border: 1px dashed rgba(255, 255, 255, 0.12);
      border-radius: 14px;
      padding: 64px 24px;
      text-align: center;
    }
    .empty-card h3 {
      font-size: 20px;
      color: #fff;
      font-weight: 500;
      margin-bottom: 8px;
    }
    .empty-card p {
      font-size: 15px;
      color: #8c919d;
      margin-bottom: 24px;
    }

    /* 新建项目模态框 */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      z-index: 100;
      background: rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(16px);
      align-items: center;
      justify-content: center;
    }

    .modal-box {
      width: 100%;
      max-width: 480px;
      background: #12141a;
      border: 1px solid rgba(212, 190, 136, 0.35);
      border-radius: 16px;
      padding: 36px 32px;
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    }

    .modal-title {
      font-size: 20px;
      color: #fff;
      font-weight: 500;
      letter-spacing: 1px;
      margin-bottom: 6px;
    }
    .modal-subtitle {
      font-size: 15px;
      color: #8c919d;
      margin-bottom: 24px;
    }

    .modal-form-group {
      margin-bottom: 18px;
    }
    .modal-label {
      display: block;
      font-size: 15px;
      color: #8c919d;
      margin-bottom: 8px;
      letter-spacing: 0.5px;
    }
    .modal-input, .modal-select, .modal-textarea {
      width: 100%;
      background: #181a22;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      color: #ffffff;
      padding: 10px 14px;
      font-size: 15px;
      outline: none;
      transition: border-color 0.2s;
    }
    .modal-input:focus, .modal-select:focus, .modal-textarea:focus {
      border-color: var(--gold-primary);
    }
    .modal-textarea {
      height: 80px;
      resize: none;
    }

    .modal-btn-row {
      display: flex;
      gap: 12px;
      margin-top: 24px;
    }
    .btn-modal-cancel {
      flex: 1;
      height: 42px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 8px;
      color: #9ba0aa;
      font-size: 17px;
      cursor: pointer;
    }
    .btn-modal-submit {
      flex: 1;
      height: 42px;
      background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%);
      color: #08090c;
      border: none;
      border-radius: 8px;
      font-size: 17px;
      font-weight: 600;
      cursor: pointer;
    }

    /* ═══════════════════════════════════════════════════════════════
       浅色模式 (Light Theme) 高品质自适应与对比度加固
       ═══════════════════════════════════════════════════════════════ */
    html[data-theme="light"] .project-card {
      background: #ffffff;
      border: 1px solid rgba(180, 140, 80, 0.32);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
    }
    html[data-theme="light"] .project-title-editable {
      color: #0f172a;
    }
    html[data-theme="light"] .project-title-editable:hover {
      color: #9b7c38;
      background: rgba(180, 140, 80, 0.08);
      border-color: rgba(180, 140, 80, 0.2);
    }
    html[data-theme="light"] .project-date {
      color: #64748b;
    }
    html[data-theme="light"] .project-count {
      color: #9b7c38;
    }
    html[data-theme="light"] .project-type-tag {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(180, 140, 80, 0.4);
      color: #9b7c38;
    }
    html[data-theme="light"] .modal-box {
      background: #ffffff;
      border-color: rgba(180, 140, 80, 0.35);
      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    }
    html[data-theme="light"] .modal-title {
      color: #0f172a;
    }
    html[data-theme="light"] .modal-subtitle,
    html[data-theme="light"] .modal-label {
      color: #64748b;
    }
    html[data-theme="light"] .modal-input,
    html[data-theme="light"] .modal-select,
    html[data-theme="light"] .modal-textarea {
      background: #fdfbf7;
      border-color: #ded8cb;
      color: #0f172a;
    }
    html[data-theme="light"] .btn-modal-cancel {
      background: #f7f5ef;
      border-color: #ded8cb;
      color: #475569;
    }
    html[data-theme="light"] .btn-enter-proj {
      background: rgba(180, 140, 80, 0.12);
      border-color: rgba(180, 140, 80, 0.35);
      color: #9b7c38;
    }
    html[data-theme="light"] .btn-enter-proj:hover {
      background: linear-gradient(135deg, #dfcb9a 0%, #c4aa6e 100%);
      color: #08090c;
    }
    /* 浅色模式下删除悬浮圆钮高定半透白水晶自适应，告别死黑硬块 */
    html[data-theme="light"] .btn-del-proj-float {
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(0, 0, 0, 0.12);
      color: #475569;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    html[data-theme="light"] .btn-del-proj-float:hover {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.4);
      color: #dc2626;
    }

    /* 浅色模式下空态卡片「暂无出图 / 空白画布」高对比度加固：大地暗金，字字清晰 */
    html[data-theme="light"] .project-cover-empty {
      color: #785b28 !important;
      font-weight: 550 !important;
      letter-spacing: 1px !important;
      text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    }

    /* 极简紧凑弹窗：小巧精致、专注名称 */
    .modal-box-compact {
      max-width: 440px !important;
      padding: 28px 28px 24px !important;
      border-radius: 14px !important;
    }
    .modal-box-compact .modal-subtitle {
      margin-bottom: 20px !important;
      font-size: 13.5px !important;
    }
    .modal-box-compact .modal-btn-row {
      margin-top: 20px !important;
    }

    /* ═══════════════════════════════════════════════════════════════
       P10-6a: 项目页现代流体自适应骨架 (.page-fluid)
       彻底解绑 2560×1280 锁印，与出图页/画布同源等比自适应
       ═══════════════════════════════════════════════════════════════ */
    html.page-fluid,
    html.page-fluid body {
      width: 100% !important;
      height: 100% !important;
      min-height: 100dvh !important;
      margin: 0 !important;
      padding: 0 !important;
      overflow: hidden !important;
      background: var(--bg-dark, #07080a) !important;
      touch-action: manipulation !important;
    }

    html.page-fluid .stage-paper {
      position: relative !important;
      left: auto !important;
      top: auto !important;
      transform: none !important;
      width: 100% !important;
      max-width: 100vw !important;
      height: 100dvh !important;
      max-height: 100dvh !important;
      display: flex !important;
      flex-direction: column !important;
      overflow: hidden !important;
      box-sizing: border-box !important;
    }

    /* 顶栏：无缝接入 shared-header 真实等比流体体系 */
    html.page-fluid .shared-header {
      position: relative !important;
      top: auto !important;
      left: auto !important;
      right: auto !important;
      flex: 0 0 auto !important;
      height: var(--fluid-header-h, 93px) !important;
      padding: 0 calc(var(--fluid-header-h, 93px) * 0.6022) 0 calc(var(--fluid-header-h, 93px) * 0.172) !important;
      box-sizing: border-box !important;
      border-bottom: 1px solid rgba(212, 190, 136, 0.16) !important;
    }

    /* 主视口滚动容器：全屏无界通铺，左右绝不留空，原生滚动条绝不挤压顶栏 */
    html.page-fluid .projects-container {
      flex: 1 1 auto !important;
      min-height: 0 !important;
      height: 100% !important;
      width: 100% !important;
      max-width: none !important;
      margin: 0 !important;
      padding: 18px 24px 40px !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      box-sizing: border-box !important;
      display: flex !important;
      flex-direction: column !important;
    }

    /* 工具栏三段式布局：左侧标题，中央大号二分胶囊，右侧新建按钮 */
    html.page-fluid .projects-toolbar {
      flex: 0 0 auto;
      margin-bottom: 22px;
      width: 100%;
      height: auto;
      position: relative;
    }

    .toolbar-tri-deck {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
      height: 48px;
      position: relative;
    }
    .toolbar-deck-left {
      display: flex;
      align-items: center;
      flex: 1 1 0%;
      min-width: 0;
    }
    .toolbar-deck-center {
      display: flex;
      justify-content: center;
      align-items: center;
      flex: 0 0 auto;
    }
    .toolbar-deck-right {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      flex: 1 1 0%;
      min-width: 0;
    }

    /* 顶部正中央大号纯文字二分黑金微晶胶囊（出图工坊 / 无限画布） */
    .workflow-capsule-deck {
      display: inline-flex;
      align-items: center;
      background: rgba(14, 16, 22, 0.92);
      border: 1px solid rgba(212, 190, 136, 0.45);
      border-radius: 999px;
      padding: 4px;
      gap: 4px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 190, 136, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }
    .workflow-capsule-btn {
      height: 38px;
      padding: 0 24px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: transparent;
      color: #9ba0aa;
      font-size: 16px;
      font-weight: 500;
      letter-spacing: 1px;
      cursor: pointer;
      transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
      white-space: nowrap;
    }
    .workflow-capsule-btn:hover {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.06);
    }
    .workflow-capsule-btn.active {
      background: linear-gradient(135deg, rgba(212, 190, 136, 0.3) 0%, rgba(212, 190, 136, 0.16) 100%);
      border-color: rgba(212, 190, 136, 0.75);
      color: var(--gold-primary);
      font-weight: 600;
      box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(212, 190, 136, 0.25);
    }
    html[data-theme="light"] .workflow-capsule-deck {
      background: #ffffff;
      border-color: rgba(180, 140, 80, 0.4);
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }
    html[data-theme="light"] .workflow-capsule-btn {
      color: #64748b;
    }
    html[data-theme="light"] .workflow-capsule-btn.active {
      background: rgba(180, 140, 80, 0.16);
      border-color: rgba(180, 140, 80, 0.55);
      color: #9b7c38;
      box-shadow: 0 2px 8px rgba(180, 140, 80, 0.15);
    }

    /* 栅格响应式流体：195px 黄金 1:1 正方形通铺矩阵 */
    html.page-fluid .projects-grid {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)) !important;
      gap: 16px !important;
      width: 100% !important;
      align-content: start !important;
      padding-bottom: 32px !important;
    }

    /* 1:1 纯正正方形卡片（Square Card） */
    html.page-fluid .project-card {
      aspect-ratio: 1 / 1 !important;
      height: auto !important;
      min-height: 0 !important;
      cursor: pointer;
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
      border-radius: 12px !important;
      position: relative !important;
      overflow: hidden !important;
      background: var(--capsule-bg);
      border: 1px solid rgba(212, 190, 136, 0.35);
      backdrop-filter: blur(24px);
      box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 240, 200, 0.1);
      transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease !important;
    }

    html.page-fluid .project-card:hover {
      transform: translateY(-4px) scale(1.01) !important;
      border-color: var(--gold-primary) !important;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 190, 136, 0.22) !important;
    }

    /* 封面占上半部分严格 68% 高度，无论在电脑还是 iPad，等比充满裁切比例完全一致 */
    html.page-fluid .project-cover-wrap {
      flex: 0 0 68% !important;
      height: 68% !important;
      min-height: 0 !important;
      max-height: none !important;
      width: 100% !important;
      position: relative !important;
      overflow: hidden !important;
    }

    html.page-fluid .project-cover {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
      display: block !important;
    }

    /* 下部信息区：紧密居中偏上，时间戳紧跟方案名称（间距3px），底部留出 12px 充足呼吸区，绝不碰触圆角边缘 */
    html.page-fluid .project-details {
      flex: 1 1 32% !important;
      height: 32% !important;
      padding: 6px 10px 12px !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: center !important;
      gap: 3px !important;
      background: rgba(10, 12, 16, 0.88) !important;
      backdrop-filter: blur(12px) !important;
      box-sizing: border-box !important;
    }
    html[data-theme="light"].page-fluid .project-details {
      background: #ffffff !important;
    }

    html.page-fluid .project-title-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 4px;
      width: 100%;
    }

    html.page-fluid .project-title-editable {
      font-size: 14.5px !important;
      font-weight: 500 !important;
      color: #ffffff;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
      flex: 1;
      padding: 1px 3px;
    }
    html[data-theme="light"].page-fluid .project-title-editable {
      color: #0f172a;
    }

    html.page-fluid .project-meta {
      display: flex !important;
      flex-direction: row !important;
      align-items: center !important;
      justify-content: space-between !important;
      font-size: 12px !important;
      color: #8c92a2 !important;
      padding: 0 3px !important;
      margin-top: 1px !important;
    }

    /* 彻底砍掉假按钮行 */
    html.page-fluid .project-actions-row {
      display: none !important;
    }

    /* 最右侧常驻新建卡片：同样做成纯正 1:1 正方形 */
    html.page-fluid .project-card.card-create-entry {
      aspect-ratio: 1 / 1 !important;
      min-height: 0 !important;
      height: auto !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 16px !important;
      box-sizing: border-box !important;
    }
    html.page-fluid .card-create-entry .create-card-cover {
      height: auto !important;
      flex: 0 0 auto !important;
      margin-bottom: 8px;
    }
    html.page-fluid .card-create-entry .create-plus-icon {
      font-size: 34px !important;
    }
    html.page-fluid .card-create-entry .create-card-details {
      padding: 0 !important;
      text-align: center !important;
    }
    html.page-fluid .card-create-entry .create-card-title {
      font-size: 15px !important;
      margin-bottom: 2px !important;
    }
    html.page-fluid .card-create-entry .create-card-sub {
      font-size: 12px !important;
    }

    /* 极简纯文字模式标签（左上角微标） */
    .project-mode-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: rgba(7, 8, 10, 0.82);
      border: 1px solid rgba(212, 190, 136, 0.38);
      color: var(--gold-primary);
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.5px;
      padding: 1px 7px;
      border-radius: 4px;
      backdrop-filter: blur(8px);
      z-index: 4;
      user-select: none;
    }
    html[data-theme="light"] .project-mode-badge {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(180, 140, 80, 0.4);
      color: #9b7c38;
    }

    /* 弹窗中的工作流二分胶囊单选 */
    .modal-mode-deck {
      display: flex;
      gap: 10px;
      width: 100%;
    }
    .modal-mode-pill-label {
      flex: 1;
      cursor: pointer;
    }
    .modal-mode-pill-label input {
      display: none;
    }
    .modal-mode-pill-chip {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 38px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.12);
      background: rgba(255, 255, 255, 0.04);
      color: #9ba0aa;
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s ease;
    }
    .modal-mode-pill-label input:checked + .modal-mode-pill-chip {
      background: rgba(212, 190, 136, 0.16);
      border-color: var(--gold-primary);
      color: var(--gold-primary);
      font-weight: 600;
    }
    html[data-theme="light"] .modal-mode-pill-chip {
      background: #fdfbf7;
      border-color: #ded8cb;
      color: #64748b;
    }
    html[data-theme="light"] .modal-mode-pill-label input:checked + .modal-mode-pill-chip {
      background: rgba(180, 140, 80, 0.15);
      border-color: #9b7c38;
      color: #9b7c38;
    }

    html.page-fluid .btn-del-proj-float {
      touch-action: manipulation;
    }

    /* 横屏断点：iPad 横屏与笔记本 (<= 1366px) */
    @media (max-width: 1366px) {
      html.page-fluid .projects-container {
        padding: 16px 20px 32px !important;
      }
      html.page-fluid .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important;
        gap: 12px !important;
      }
      html.page-fluid .projects-toolbar {
        margin-bottom: 16px;
      }
      html.page-fluid .toolbar-normal-deck {
        gap: 12px;
      }
      html.page-fluid .projects-title-text {
        font-size: 20px;
      }
    }

    /* 浅色主题流式加固 */
    html[data-theme="light"].page-fluid,
    html[data-theme="light"].page-fluid body {
      background: #f7f6f2 !important;
    }
