html,
      body {
        background: #0a0f0d;
      }
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse 80% 50% at 20% -20%, rgba(78, 205, 196, 0.12), transparent 50%), radial-gradient(ellipse 60% 40% at 85% 0%, rgba(212, 175, 55, 0.08), transparent 45%);
        pointer-events: none;
        z-index: -1;
      }
      /* 滚动条 */
      .scrollbar-thin::-webkit-scrollbar {
        width: 5px;
      }
      .scrollbar-thin::-webkit-scrollbar-track {
        background: transparent;
      }
      .scrollbar-thin::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
      }
      .scrollbar-thin {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
      }
      /* 玻璃 */
      .glass {
        backdrop-filter: blur(20px) saturate(1.15);
        -webkit-backdrop-filter: blur(20px) saturate(1.15);
      }
      /* 隐藏 */
      .hidden {
        display: none !important;
      }
      .ttl-slider {
        -webkit-appearance: none;
        appearance: none;
        height: 8px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(78, 205, 196, 0.8), rgba(212, 175, 55, 0.85));
        outline: none;
      }
      .ttl-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 22px;
        height: 22px;
        border-radius: 999px;
        border: 2px solid rgba(10, 15, 13, 0.9);
        background: #f7fbfa;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
        cursor: pointer;
      }
      .ttl-slider::-moz-range-thumb {
        width: 22px;
        height: 22px;
        border-radius: 999px;
        border: 2px solid rgba(10, 15, 13, 0.9);
        background: #f7fbfa;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
        cursor: pointer;
      }
      .ttl-slider::-moz-range-track {
        height: 8px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(78, 205, 196, 0.8), rgba(212, 175, 55, 0.85));
      }
      /* 动画 */
      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(16px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @keyframes slideDown {
        from {
          opacity: 0;
          transform: translateY(-12px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @keyframes msgIn {
        from {
          opacity: 0;
          transform: translateY(8px) scale(0.97);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      @keyframes modalIn {
        from {
          opacity: 0;
          transform: scale(0.94) translateY(12px);
        }
        to {
          opacity: 1;
          transform: scale(1) translateY(0);
        }
      }
      .anim-fade-up {
        animation: fadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      }
      .anim-slide-down {
        animation: slideDown 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      }
      .anim-msg-in {
        animation: msgIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      }
      .anim-modal-in {
        animation: modalIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      }
      .app-toast-root {
        position: fixed;
        top: calc(58px + env(safe-area-inset-top, 0px));
        left: 50%;
        z-index: 1400;
        transform: translateX(-50%);
        width: min(calc(100vw - 32px), 24rem);
        pointer-events: none;
        display: flex;
        justify-content: center;
      }
      .app-toast {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        max-width: 100%;
        padding: 11px 14px;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(17, 25, 22, 0.94);
        color: rgba(255, 255, 255, 0.92);
        box-shadow:
          0 18px 42px rgba(0, 0, 0, 0.36),
          inset 0 1px 0 rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(18px) saturate(1.1);
        -webkit-backdrop-filter: blur(18px) saturate(1.1);
        animation: toastIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
      }
      .app-toast.leaving {
        animation: toastOut 0.18s ease both;
      }
      .app-toast-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 20px;
        height: 20px;
        border-radius: 999px;
        font-size: 13px;
        font-weight: 700;
        line-height: 1;
      }
      .app-toast-success .app-toast-icon {
        background: rgba(78, 205, 196, 0.18);
        color: #7ff3e8;
        box-shadow: 0 0 0 1px rgba(78, 205, 196, 0.2);
      }
      .app-toast-error .app-toast-icon {
        background: rgba(244, 63, 94, 0.18);
        color: #ff9aad;
        box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.24);
      }
      .app-toast-text {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.35;
      }
      @keyframes toastIn {
        from {
          opacity: 0;
          transform: translateY(-10px) scale(0.98);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      @keyframes toastOut {
        from {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
        to {
          opacity: 0;
          transform: translateY(-8px) scale(0.98);
        }
      }
      /* 安全区：与 p-2 / sm:p-3 的纵向内边距一致，仅在底部叠加 safe-area，避免「上窄下宽」 */
      .safe-bottom {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
      }
      @media (min-width: 640px) {
        .safe-bottom {
          padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        }
      }

/* 底部输入条：附件/画布图标勿被 flex 压扁，禁用态勿用整元素 opacity（深色下会看不见） */
      #sendForm .send-form-icon-btn {
        flex-shrink: 0;
        flex-grow: 0;
        min-width: 2.25rem;
        min-height: 2.25rem;
        align-items: center;
        justify-content: center;
        display: inline-flex;
      }
      #sendForm .send-action-btn {
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-touch-callout: none;
      }
      #sendForm .send-action-btn[data-state="recording"] {
        background: linear-gradient(135deg, rgba(251, 191, 36, 0.94), rgba(249, 115, 22, 0.92));
        box-shadow:
          0 0 0 1px rgba(251, 191, 36, 0.18),
          0 18px 38px rgba(249, 115, 22, 0.28);
      }
      #sendForm .send-action-btn[data-state="cancel"] {
        background: linear-gradient(135deg, rgba(244, 63, 94, 0.96), rgba(220, 38, 38, 0.92));
        color: #fff5f5;
        box-shadow:
          0 0 0 1px rgba(251, 113, 133, 0.2),
          0 18px 38px rgba(220, 38, 38, 0.28);
      }
      #sendForm .send-action-btn[data-state="processing"] {
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.8), rgba(14, 165, 233, 0.88));
        color: #effaff;
      }
      #sendForm .send-action-btn[data-state="unsupported"] {
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.75);
      }
      .voice-record-overlay {
        position: fixed;
        inset: 0;
        z-index: 1250;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.18s ease;
      }
      .voice-record-overlay.visible {
        opacity: 1;
      }
      .voice-record-scrim {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(5, 8, 8, 0), rgba(5, 8, 8, 0.32) 55%, rgba(5, 8, 8, 0.58));
      }
      .voice-record-panel {
        position: absolute;
        inset-inline: 0;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding-inline: 16px;
      }
      .voice-record-cancel {
        min-width: min(84vw, 18rem);
        max-width: 19rem;
        padding: 14px 18px;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(18, 25, 22, 0.92);
        box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
        text-align: center;
        color: rgba(255, 255, 255, 0.84);
        transition:
          transform 0.18s ease,
          border-color 0.18s ease,
          background 0.18s ease,
          color 0.18s ease;
      }
      .voice-record-cancel-title {
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.02em;
      }
      .voice-record-cancel-sub {
        margin-top: 4px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.42);
      }
      .voice-record-cancel.active {
        transform: scale(1.06);
        border-color: rgba(251, 113, 133, 0.55);
        background: linear-gradient(180deg, rgba(190, 24, 93, 0.95), rgba(153, 27, 27, 0.96));
        color: rgba(255, 247, 247, 0.98);
      }
      .voice-record-cancel.active .voice-record-cancel-sub {
        color: rgba(255, 244, 244, 0.82);
      }
      .voice-record-status {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 999px;
        background: rgba(12, 18, 16, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.82);
        box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
        font-size: 13px;
        font-weight: 600;
      }
      .voice-record-status-dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: rgba(251, 191, 36, 0.95);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
        animation: voiceRecordPulse 1.25s ease infinite;
      }
      .voice-record-overlay[data-state="starting"] .voice-record-status-dot {
        background: rgba(56, 189, 248, 0.92);
      }
      .voice-record-overlay[data-state="cancel"] .voice-record-status-dot {
        background: rgba(251, 113, 133, 0.95);
      }
      @keyframes voiceRecordPulse {
        0% {
          box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.45);
        }
        70% {
          box-shadow: 0 0 0 11px rgba(251, 191, 36, 0);
        }
        100% {
          box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
        }
      }
      /* 消息气泡 */
      .msg-shell {
        position: relative;
        display: flex;
        width: fit-content;
        max-width: 85%;
        --swipe-offset: 0px;
      }
      .msg-shell:not(.me) {
        align-self: flex-start;
      }
      .msg-shell.me {
        align-self: flex-end;
      }
      .msg {
        position: relative;
        max-width: 100%;
        padding: 12px 16px;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: #141d19;
        word-break: break-word;
        animation: msgIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        transform: translateX(var(--swipe-offset));
        transition:
          transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
          background 0.2s ease,
          border-color 0.2s ease;
        touch-action: pan-y;
      }
      @media (min-width: 640px) {
        .msg-shell {
          max-width: 75%;
        }
      }
      .msg-shell.dragging .msg {
        transition: none;
      }
      .msg-shell.swiping .msg {
        transition: none;
      }
      .msg.me {
        align-self: flex-end;
        background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
        border-color: rgba(212, 175, 55, 0.2);
      }
      .msg.has-delete {
        padding-right: 44px;
      }
      .erase-rail {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 92px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 14px;
        color: rgba(255, 245, 242, 0.92);
        background: linear-gradient(180deg, rgba(187, 64, 79, 0.96), rgba(126, 28, 40, 0.96));
        border-radius: 18px;
        opacity: 0;
        transform: scale(0.96);
        transition:
          opacity 0.18s ease,
          transform 0.18s ease,
          background 0.18s ease;
      }
      .erase-rail .erase-icon {
        width: 19px;
        height: 19px;
      }
      .msg-shell.swiping .erase-rail {
        opacity: 1;
        transform: scale(1);
      }
      .msg-shell.erase-armed .erase-rail {
        background: linear-gradient(180deg, rgba(229, 86, 95, 0.98), rgba(161, 38, 52, 0.98));
      }
      .msg-delete-btn {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border: none;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.46);
        background: rgba(255, 255, 255, 0.04);
        opacity: 0;
        transform: translateY(-2px);
        transition:
          opacity 0.16s ease,
          transform 0.16s ease,
          background 0.16s ease,
          color 0.16s ease;
      }
      .msg-delete-btn .erase-icon {
        width: 15px;
        height: 15px;
      }
      .msg-shell.desktop:hover .msg-delete-btn,
      .msg-delete-btn:focus-visible {
        opacity: 1;
        transform: translateY(0);
      }
      .msg-delete-btn:hover {
        background: rgba(187, 64, 79, 0.18);
        color: rgba(255, 247, 242, 0.96);
      }
      .msg .meta {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.4);
        margin-bottom: 4px;
      }
      .msg.me .meta span:first-child {
        color: rgba(212, 175, 55, 0.8);
      }
      .msg .text {
        font-size: 14px;
        line-height: 1.5;
        white-space: pre-wrap;
      }
      .msg-shell.erased .msg {
        background: rgba(255, 255, 255, 0.03);
        border-style: dashed;
        border-color: rgba(255, 255, 255, 0.1);
      }
      .msg-shell.erased .erase-rail,
      .msg-shell.erased .msg-delete-btn {
        display: none;
      }
      .erased-text {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.58);
      }
      .erased-text .erase-icon {
        width: 16px;
        height: 16px;
        color: rgba(255, 255, 255, 0.42);
      }
      .erase-sheet-overlay {
        position: fixed;
        inset: 0;
        z-index: 1200;
      }
      .erase-sheet-scrim {
        position: absolute;
        inset: 0;
        background: rgba(3, 5, 5, 0.52);
        backdrop-filter: blur(10px);
      }
      .erase-sheet-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
        animation: eraseSheetIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
      }
      @keyframes eraseSheetIn {
        from {
          transform: translateY(20px);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }
      .erase-sheet-handle {
        width: 42px;
        height: 4px;
        margin: 0 auto 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.22);
      }
      .erase-sheet-card {
        background: rgba(245, 244, 242, 0.96);
        color: #171717;
        border-radius: 28px;
        padding: 12px;
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
      }
      .erase-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 6px 12px;
      }
      .erase-sheet-title {
        flex: 1;
        text-align: center;
        font-size: 18px;
        font-weight: 700;
      }
      .erase-sheet-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.06);
        color: rgba(0, 0, 0, 0.48);
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .erase-sheet-close svg {
        width: 18px;
        height: 18px;
      }
      .erase-sheet-action,
      .erase-sheet-cancel {
        width: 100%;
        border: none;
        border-radius: 18px;
        padding: 16px 18px;
        font-size: 18px;
        font-weight: 600;
      }
      .erase-sheet-action {
        background: #ffffff;
        color: #d03952;
        margin-bottom: 10px;
      }
      .erase-sheet-clear-all {
        width: 100%;
        border: none;
        border-radius: 18px;
        padding: 16px 18px;
        font-size: 18px;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.88);
        color: #b45309;
        margin-bottom: 10px;
      }
      .erase-sheet-cancel {
        background: rgba(255, 255, 255, 0.78);
        color: rgba(0, 0, 0, 0.72);
      }
      body.erase-sheet-open {
        overflow: hidden;
      }
      @media (hover: none) and (pointer: coarse) {
        .msg-delete-btn {
          display: none;
        }
      }
      /* 系统消息 */
      .sys {
        align-self: center;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.4);
        background: rgba(20, 29, 25, 0.8);
        border: 1px dashed rgba(255, 255, 255, 0.08);
        padding: 6px 16px;
        border-radius: 999px;
        animation: msgIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
      }
      /* 附件 */
      .att {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .att .file {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px;
        border-radius: 12px;
        background: #0f1613;
        border: 1px solid rgba(255, 255, 255, 0.05);
      }
      .att .file .name {
        font-weight: 500;
        font-size: 14px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .att .file .sub {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.4);
        margin-top: 2px;
      }
      .att a {
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 500;
        color: #d4af37;
        background: rgba(212, 175, 55, 0.12);
        padding: 6px 12px;
        border-radius: 8px;
        text-decoration: none;
        transition: background 0.15s;
      }
      .att a:hover {
        background: rgba(212, 175, 55, 0.25);
      }
      /* 图片预览缩略图 */
      .att .preview-img {
        max-width: 200px;
        max-height: 150px;
        border-radius: 8px;
        cursor: pointer;
        object-fit: cover;
        transition:
          transform 0.2s,
          box-shadow 0.2s;
      }
      .att .preview-img:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
      }
      /* 视频预览缩略图 */
      .att .preview-video-thumb {
        position: relative;
        max-width: 200px;
        cursor: pointer;
      }
      .att .preview-video-thumb video {
        max-width: 200px;
        max-height: 150px;
        border-radius: 8px;
        object-fit: cover;
      }
      .att .preview-video-thumb .play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 48px;
        height: 48px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition:
          background 0.2s,
          transform 0.2s;
      }
      .att .preview-video-thumb:hover .play-overlay {
        background: rgba(212, 175, 55, 0.8);
        transform: translate(-50%, -50%) scale(1.1);
      }
      .att .preview-video-thumb .play-overlay svg {
        width: 24px;
        height: 24px;
        fill: white;
        margin-left: 3px;
      }
      .audio-player {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 16px;
        border: 1px solid rgba(78, 205, 196, 0.16);
        background:
          linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(212, 175, 55, 0.07)),
          rgba(8, 13, 12, 0.92);
      }
      .audio-player-btn {
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #09100e;
        background: linear-gradient(135deg, #4ecdc4, #d4af37);
        box-shadow: 0 10px 24px rgba(78, 205, 196, 0.18);
        transition:
          transform 0.16s ease,
          box-shadow 0.16s ease,
          filter 0.16s ease;
      }
      .audio-player-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 28px rgba(78, 205, 196, 0.24);
        filter: saturate(1.08);
      }
      .audio-player-btn svg {
        width: 18px;
        height: 18px;
      }
      .audio-player-main {
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      .audio-player-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.45);
      }
      .audio-player-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: rgba(78, 205, 196, 0.9);
        font-size: 12px;
        font-weight: 600;
      }
      .audio-player-wave {
        display: grid;
        grid-template-columns: repeat(22, minmax(0, 1fr));
        gap: 4px;
        align-items: end;
        height: 22px;
        pointer-events: none;
      }
      .audio-player-wave span {
        display: block;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(78, 205, 196, 0.95), rgba(212, 175, 55, 0.65));
        opacity: 0.28;
        min-height: 5px;
        transform-origin: center bottom;
        transition:
          opacity 0.18s ease,
          transform 0.18s ease,
          filter 0.18s ease;
      }
      .audio-player.playing .audio-player-wave span {
        opacity: 0.82;
        animation: audioWaveBounce 1s ease-in-out infinite;
      }
      .audio-player.playing .audio-player-wave span:nth-child(3n) {
        animation-duration: 1.2s;
      }
      .audio-player.playing .audio-player-wave span:nth-child(4n) {
        animation-duration: 0.88s;
      }
      @keyframes audioWaveBounce {
        0%,
        100% {
          transform: scaleY(0.72);
          filter: brightness(0.92);
        }
        50% {
          transform: scaleY(1.18);
          filter: brightness(1.08);
        }
      }
      .audio-player-progress {
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
        height: 5px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(78, 205, 196, 0.18), rgba(255, 255, 255, 0.08));
        outline: none;
      }
      .audio-player-progress::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 12px;
        height: 12px;
        border-radius: 999px;
        background: #f3faf8;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
      }
      .audio-player-progress::-moz-range-thumb {
        width: 12px;
        height: 12px;
        border: none;
        border-radius: 999px;
        background: #f3faf8;
        box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.2);
      }
      .audio-player-progress::-moz-range-track {
        height: 5px;
        border-radius: 999px;
        background: linear-gradient(90deg, rgba(78, 205, 196, 0.18), rgba(255, 255, 255, 0.08));
      }
      /* 视频预览模态框 */
      .video-modal-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: center;
        animation: fadeIn 0.2s ease;
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      .video-modal-content {
        position: relative;
        max-width: 90vw;
        max-height: 80vh;
        animation: zoomIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
      }
      @keyframes zoomIn {
        from {
          transform: scale(0.9);
          opacity: 0;
        }
        to {
          transform: scale(1);
          opacity: 1;
        }
      }
      .video-modal-content video {
        max-width: 90vw;
        max-height: 80vh;
        border-radius: 12px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
      }
      /* 关闭按钮 - 固定在屏幕右上角，始终可见 */
      .video-modal-close {
        position: fixed;
        top: 16px;
        right: 16px;
        top: max(16px, env(safe-area-inset-top, 16px));
        right: max(16px, env(safe-area-inset-right, 16px));
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        background: linear-gradient(135deg, #d4af37 0%, #f0c040 100%);
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        color: #0a0f0d;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        z-index: 1001;
        box-shadow:
          0 4px 16px rgba(212, 175, 55, 0.5),
          0 0 20px rgba(212, 175, 55, 0.3);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
      }
      .video-modal-close:hover,
      .video-modal-close:active {
        background: linear-gradient(135deg, #f0c040 0%, #ffda5a 100%);
        transform: scale(1.1);
        box-shadow:
          0 6px 24px rgba(212, 175, 55, 0.7),
          0 0 30px rgba(212, 175, 55, 0.4);
      }
      .video-modal-close svg {
        width: 20px;
        height: 20px;
        stroke-width: 3;
      }
      /* Ant Design Image 预览样式覆盖 */
      .ant-image-preview-root .ant-image-preview-mask {
        background: rgba(0, 0, 0, 0.85) !important;
        backdrop-filter: blur(8px);
      }
      .ant-image-preview-operations {
        background: rgba(0, 0, 0, 0.5) !important;
      }
      /* 可点击的文件名链接 */
      .att .file .name.clickable {
        cursor: pointer;
        color: #4ecdc4;
        transition: color 0.2s;
      }
      .att .file .name.clickable:hover {
        color: #d4af37;
        text-decoration: underline;
      }
      .canvas-sketch-actions {
        display: flex;
        justify-content: flex-start;
      }
      .canvas-sketch-edit-btn {
        font-size: 12px;
        font-weight: 500;
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid rgba(78, 205, 196, 0.35);
        background: rgba(78, 205, 196, 0.12);
        color: #4ecdc4;
        cursor: pointer;
        transition:
          background 0.15s,
          border-color 0.15s;
      }
      .canvas-sketch-edit-btn:hover {
        background: rgba(78, 205, 196, 0.22);
        border-color: rgba(212, 175, 55, 0.45);
        color: #d4af37;
      }
