﻿    /* 可拖拽的全屏悬浮按钮 */

    .fs-float-btn {

      position: fixed;

      z-index: 999;

      width: 52px;

      height: 52px;

      border-radius: 50%;

      background: rgba(0,150,200,.75);

      border: 2px solid rgba(0,180,220,.85);

      backdrop-filter: blur(10px);

      color: #fff;

      font-size: .82rem;

      font-weight: 700;

      cursor: grab;

      display: flex;

      align-items: center;

      justify-content: center;

      user-select: none;

      touch-action: none;

      box-shadow: 0 6px 20px rgba(0,0,0,.5);

      transition: box-shadow .2s ease, background .2s ease;

      will-change: transform;

    }

    .fs-float-btn:hover { background: rgba(0,130,180,.9); box-shadow: 0 8px 28px rgba(0,0,0,.55); }

    .fs-float-btn:active { transform: scale(.92); }

    .fs-float-btn.dragging { opacity: .8; cursor: grabbing; transition: none; }

    /* 退出全屏按钮 - 更明显的红色样式 */
    .fs-float-btn.fs-exit { 
      background: rgba(230,40,40,.85); 
      border-color: rgba(255,80,80,1); 
      width: 60px;
      height: 60px;
      font-size: .9rem;
      box-shadow: 0 8px 28px rgba(200,20,20,.55);
    }

    .fs-float-btn.fs-exit:hover { background: rgba(210,20,20,.95); box-shadow: 0 10px 36px rgba(200,20,20,.7); }



    @media (max-width: 640px) {

      .preview-header { left: 8px; right: 8px; top: 8px; padding: 8px; }

      .preview-title { font-size: .85rem; }

      .preview-meta { display: none; }

      .preview-action { padding: 7px 9px; font-size: .76rem; }

      .office-helper { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: stretch; }

      .office-helper-actions { justify-content: space-between; }

    }

    /* 资料预览批注画布 */
    .exp-ink-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 2147483645 !important;
      cursor: crosshair;
      touch-action: none;
      user-select: none;
      pointer-events: none;
      display: none;
    }
    .exp-ink-canvas.active {
      display: block !important;
      pointer-events: auto !important;
    }
    .exp-ink-canvas.inactive {
      pointer-events: none !important;
      cursor: default;
    }
    /* 橡皮光标轮廓 */
    .exp-ink-eraser-cursor {
      position: fixed;
      border: 2px solid rgba(59, 130, 246, 0.8);
      border-radius: 50%;
      background: rgba(59, 130, 246, 0.1);
      pointer-events: none;
      z-index: 2147483647 !important;
      display: none;
      box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
    }
    /* 资料预览批注工具栏 - 横排面板样式 */
    .exp-ink-toolbar {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 2147483646 !important;
      display: none;
      flex-direction: column;
      gap: 0;
      padding: 0;
      background: rgba(15,23,42,0.92);
      backdrop-filter: blur(16px);
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.5);
      user-select: none;
      font-size: 14px;
    }
    .exp-ink-toolbar.active {
      display: flex !important;
    }
    .exp-ink-toolbar.inactive {
      opacity: 0.65;
    }
    /* 左下镜像工具栏 */
    .exp-ink-toolbar.mirror-left-bottom {
      left: 30px;
      right: auto;
      bottom: 100px;
      top: auto;
      transform: none;
    }
    .exp-ink-toolbar.mirror-left-bottom .exp-ink-toolbar-row {
      flex-direction: row;
      gap: 4px;
    }
    .exp-ink-toolbar.mirror-left-bottom .exp-ink-row-btn {
      writing-mode: horizontal-tb;
    }
    .exp-ink-toolbar.mirror-left-bottom .exp-ink-resize-handle {
      display: none;
    }
    .exp-ink-toolbar.mirror-left-bottom .exp-ink-drag-handle {
      display: flex;
    }
    .exp-ink-toolbar.mirror-left-bottom .exp-ink-popup {
      left: auto;
      right: 0;
      bottom: 100%;
      top: auto;
      transform: translateY(-8px);
      margin-bottom: 8px;
      margin-right: 0;
    }
    /* 收起按钮 */
    .exp-ink-collapse-btn {
      display: none !important;
    }
    /* 弹出菜单 */
    .exp-ink-popup {
      display: none;
      position: absolute;
      bottom: 100%;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(15,23,42,0.95);
      backdrop-filter: blur(16px);
      border-radius: 14px;
      padding: 12px;
      box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
      z-index: 200;
      margin-bottom: 8px;
      min-width: 200px;
    }
    .exp-ink-popup.show {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .exp-ink-popup-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
    }
    .exp-ink-popup-btn {
      border: none;
      background: rgba(255,255,255,0.08);
      color: #fff;
      font-size: 0.85em;
      padding: 8px 6px;
      border-radius: 10px;
      cursor: pointer;
      transition: all .15s;
      white-space: nowrap;
      text-align: center;
      font-weight: 500;
    }
    .exp-ink-popup-btn:hover {
      background: rgba(255,255,255,0.16);
    }
    .exp-ink-popup-btn.active {
      background: #3b82f6;
      color: #fff;
    }
    .exp-ink-popup-colors {
      display: flex;
      gap: 6px;
      justify-content: center;
      padding: 2px 0;
    }
    .exp-ink-popup-size {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding-top: 4px;
    }
    .exp-ink-popup-label {
      color: rgba(255,255,255,0.5);
      font-size: 0.75em;
      text-align: center;
    }
    /* 底部按钮行 */
    .exp-ink-toolbar-row {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 8px;
    }
    .exp-ink-row-btn {
      border: none;
      background: rgba(255,255,255,0.08);
      color: #fff;
      font-size: 0.88em;
      padding: 10px 14px;
      border-radius: 12px;
      cursor: pointer;
      transition: all .15s;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .exp-ink-row-btn:hover {
      background: rgba(255,255,255,0.16);
    }
    .exp-ink-row-btn.active {
      background: #3b82f6;
      color: #fff;
    }
    .exp-ink-row-btn-danger {
      color: #f87171;
    }
    .exp-ink-row-btn-danger:hover {
      background: rgba(248,113,113,0.15);
    }
    .exp-ink-row-btn-primary {
      background: #3b82f6;
      color: #fff;
    }
    .exp-ink-row-btn-primary:hover {
      background: #2563eb;
    }
    .exp-ink-row-btn-icon {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      border: 2px solid #fff;
    }
    .exp-ink-drag-handle {
      cursor: grab;
      color: rgba(255,255,255,0.3);
      background: transparent;
      padding: 10px 8px;
      font-size: 1em;
      letter-spacing: 2px;
    }
    .exp-ink-drag-handle:hover {
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.5);
    }
    /* 分段 */
    .exp-ink-section {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .exp-ink-section-label {
      color: rgba(255,255,255,0.45);
      font-size: 0.68em;
      padding: 0 2px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    /* 工具网格 3列 */
    .exp-ink-tools-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 5px;
    }
    .exp-ink-tool-btn {
      border: none;
      background: rgba(255,255,255,0.07);
      color: #fff;
      font-size: 0.82em;
      padding: 7px 2px;
      border-radius: 8px;
      cursor: pointer;
      transition: all .15s;
      white-space: nowrap;
      text-align: center;
      font-weight: 500;
    }
    .exp-ink-tool-btn:hover {
      background: rgba(255,255,255,0.14);
    }
    .exp-ink-tool-btn.active {
      background: #3b82f6;
      color: #fff;
    }
    .exp-ink-tool-btn.active.paused {
      background: rgba(59, 130, 246, 0.35);
      color: rgba(255,255,255,0.6);
    }
    /* 颜色行 */
    .exp-ink-colors-row {
      display: flex;
      gap: 5px;
      justify-content: space-between;
      padding: 2px 0;
    }
    .exp-ink-color-btn {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      border: 2px solid transparent;
      cursor: pointer;
      transition: all .15s;
      padding: 0;
      flex-shrink: 0;
    }
    .exp-ink-color-btn:hover {
      transform: scale(1.12);
    }
    .exp-ink-color-btn.active {
      border-color: #fff;
      box-shadow: 0 0 0 2px #3b82f6;
    }
    /* 粗细预览和滑块 */
    .exp-ink-size-preview {
      width: 100%;
      height: 36px;
      background: rgba(255,255,255,0.04);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }
    .exp-ink-size-preview-line {
      background: #fff;
      border-radius: 50%;
      transition: width .1s, height .1s;
    }
    .exp-ink-size-slider {
      width: 100%;
      height: 6px;
      -webkit-appearance: none;
      appearance: none;
      background: rgba(255,255,255,0.12);
      border-radius: 3px;
      outline: none;
      cursor: pointer;
    }
    .exp-ink-size-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #3b82f6;
      cursor: pointer;
      border: 2px solid #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .exp-ink-size-slider::-moz-range-thumb {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #3b82f6;
      cursor: pointer;
      border: 2px solid #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    }
    .exp-ink-size-value {
      color: rgba(255,255,255,0.5);
      font-size: 0.72em;
      text-align: center;
      margin-top: -2px;
    }
    /* 底部操作按钮 */
    .exp-ink-actions {
      display: flex;
      gap: 5px;
      padding-top: 4px;
      border-top: 1px solid rgba(255,255,255,0.08);
    }
    .exp-ink-action-btn {
      flex: 1;
      border: none;
      background: rgba(255,255,255,0.07);
      color: #fff;
      font-size: 0.82em;
      padding: 7px 4px;
      border-radius: 8px;
      cursor: pointer;
      transition: all .15s;
      font-weight: 500;
    }
    .exp-ink-action-btn:hover {
      background: rgba(255,255,255,0.14);
    }
    .exp-ink-action-btn.danger {
      color: #f87171;
    }
    .exp-ink-action-btn.danger:hover {
      background: rgba(248,113,113,0.12);
    }
    .exp-ink-action-btn.primary {
      background: #3b82f6;
      color: #fff;
    }
    .exp-ink-action-btn.primary:hover {
      background: #2563eb;
    }
    /* 底部按钮栏 */
    .exp-ink-bottom-bar {
      display: flex;
      gap: 4px;
      padding-top: 6px;
      border-top: 1px solid rgba(255,255,255,0.08);
      flex-wrap: wrap;
    }
    .exp-ink-bottom-btn {
      flex: 1;
      min-width: 40px;
      border: none;
      background: rgba(255,255,255,0.07);
      color: #fff;
      font-size: 0.82em;
      padding: 7px 6px;
      border-radius: 8px;
      cursor: pointer;
      transition: all .15s;
      font-weight: 500;
      text-align: center;
    }
    .exp-ink-bottom-btn:hover {
      background: rgba(255,255,255,0.14);
    }
    .exp-ink-bottom-btn.active {
      background: #3b82f6;
      color: #fff;
    }
    /* 缩放手柄 */
    .exp-ink-resize-handle {
      position: absolute;
      width: 14px;
      height: 14px;
      bottom: -4px;
      right: -4px;
      cursor: nwse-resize;
      background: #3b82f6;
      border-radius: 3px;
      border: 2px solid #fff;
      opacity: 0.7;
      transition: opacity .15s;
      z-index: 10;
    }
    .exp-ink-resize-handle:hover {
      opacity: 1;
    }

    /* 批注 FAB 悬浮按钮（橙色画笔圆形） */
    .ann-fab {
      position: fixed;
      z-index: 2147483646 !important;
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: linear-gradient(145deg, #fb923c, #f97316);
      border: 2px solid rgba(255,180,80,.9);
      backdrop-filter: blur(10px);
      color: #fff;
      cursor: grab;
      display: flex;
      align-items: center;
      justify-content: center;
      user-select: none;
      touch-action: none;
      box-shadow: 0 6px 20px rgba(249,115,22,.5), 0 0 24px rgba(249,115,22,.35);
      transition: box-shadow .2s ease, background .2s ease, transform .15s ease;
      will-change: transform;
    }
    .ann-fab:hover {
      background: linear-gradient(145deg, #fbbf24, #f97316);
      box-shadow: 0 8px 28px rgba(249,115,22,.6), 0 0 32px rgba(249,115,22,.5);
    }
    .ann-fab:active { transform: scale(.92); }
    .ann-fab.dragging { opacity: .8; cursor: grabbing; transition: none; }
    .ann-fab.active {
      background: linear-gradient(145deg, #22c55e, #16a34a);
      border-color: rgba(134,239,172,.9);
      box-shadow: 0 6px 20px rgba(34,197,94,.5), 0 0 24px rgba(34,197,94,.35);
    }
    .ann-fab svg {
      width: 26px;
      height: 26px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2.2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    /* 全屏 FAB 提升 z-index 匹配批注层级 */
    .fs-float-btn {
      z-index: 2147483646 !important;
    }