    :root {
      --sidebar-bg: #e9eff6;
      --sidebar-hover: #dbe6f2;
      --main-bg: #f6f8fb;
      --surface: #f8fbff;
      --border: #d9e2ec;
      --border-light: #e9eef5;
      --text-primary: #162130;
      --text-secondary: #526071;
      --text-muted: #66768a;
      --title-1: 600 40px/1.22 "Segoe UI", "Microsoft YaHei", sans-serif;
      --title-2: 700 28px/1.28 "Segoe UI", "Microsoft YaHei", sans-serif;
      --title-3: 700 20px/1.35 "Segoe UI", "Microsoft YaHei", sans-serif;
      --body-1: 500 15px/1.7 "Segoe UI", "Microsoft YaHei", sans-serif;
      --body-2: 500 14px/1.6 "Segoe UI", "Microsoft YaHei", sans-serif;
      --caption: 600 12px/1.45 "Segoe UI", "Microsoft YaHei", sans-serif;
      --brand: #1f6feb;
      --brand-strong: #1558c0;
      --send-btn: #1f6feb;
      --send-btn-hover: #1558c0;
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 24px;
      --radius-pill: 50px;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    body {
      background: #eef3fb;
      color: #202124;
      display: flex;
      height: 100vh;
      overflow: hidden;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-size: 16px;
    }

    /* 主内容区域样式 */
    .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      transition: flex 0.3s ease;
      min-width: 0;
    }

    /* 确保所有元素使用相同的盒模型 */
    * {
      box-sizing: border-box;
    }

    /* 响应式字体大小 */
    @media (max-width: 768px) {
      body {
        font-size: 14px;
      }
    }

    @media (max-width: 480px) {
      body {
        font-size: 12px;
      }
    }

    /* 预览侧边栏样式 */
    .preview-sidebar {
      width: 0;
      height: 100vh;
      background: linear-gradient(180deg, rgba(252, 253, 255, 0.98) 0%, rgba(244, 248, 253, 0.98) 100%);
      box-shadow: -24px 0 56px rgba(15, 23, 42, 0.14);
      border-left: 1px solid rgba(209, 223, 238, 0.95);
      backdrop-filter: blur(18px);
      overflow: hidden;
      transition: width 0.3s ease;
      display: flex;
      flex-direction: column;
      position: relative;
      z-index: 200;
    }

    .preview-sidebar.open {
      width: min(46vw, 760px);
    }

    .preview-toolbar .header-btn {
      cursor: pointer;
      z-index: 20;
      position: relative;
      padding: 6px 10px;
      border: none;
      background: transparent;
      font-size: 18px;
      line-height: 1;
      color: #64748b;
      border-radius: 6px;
    }

    .preview-toolbar .header-btn:hover {
      background: #f1f5f9;
      color: #0f172a;
    }

    @keyframes softRiseIn {
      from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes softFadeSlide {
      from {
        opacity: 0;
        transform: translateY(8px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* 调整手柄样式 */
    .resize-handle {
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 5px;
      cursor: col-resize;
      background-color: transparent;
      z-index: 10;
    }

    .resize-handle:hover {
      background-color: #e5e7eb;
    }

    /* 预览工具栏样式 */
    .preview-toolbar {
      background: rgba(255, 255, 255, 0.9);
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #dce6f1;
      gap: 12px;
    }

    .toolbar-left {
      display: flex;
      align-items: center;
      gap: 15px;
    }

    .toolbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .toolbar-btn {
      padding: 7px 12px;
      border: 1px solid #d5e1ee;
      border-radius: 10px;
      background-color: rgba(255, 255, 255, 0.92);
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 5px;
      transition: all 0.2s;
    }

    .toolbar-btn:hover {
      background-color: #f3f4f6;
      border-color: #d1d5db;
    }

    .toolbar-btn.save {
      background: linear-gradient(135deg, #4E95D9 0%, #3e82c5 100%);
      color: white;
      border: none;
      box-shadow: 0 10px 24px rgba(78, 149, 217, 0.24);
    }

    .toolbar-btn.save:hover {
      background: linear-gradient(135deg, #458bcf 0%, #3778b8 100%);
    }

    /* 样式注释 */
    .preview-content {
      flex: 1;
      padding: 14px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
    }

    #preview-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 0;
    }

    .help-container {
      position: relative;
      background: white;
      border-radius: 8px;
      padding: 24px;
      max-width: 600px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      margin: auto;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .help-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e5e7eb;
    }

    .help-header h3 {
      margin: 0;
      font-size: 18px;
      font-weight: 600;
      color: #111827;
    }

    .help-close {
      font-size: 24px;
      cursor: pointer;
      color: #6b7280;
      transition: color 0.2s ease;
    }

    .help-close:hover {
      color: #374151;
    }

    .help-content {
      margin-bottom: 24px;
    }

    .help-step-content {
      display: none;
    }

    .help-step-content.active {
      display: block;
    }

    .help-step-content h4 {
      margin: 0 0 12px 0;
      font-size: 16px;
      font-weight: 600;
      color: #111827;
    }

    .help-step-content p {
      margin: 0 0 16px 0;
      color: #4b5563;
      line-height: 1.5;
    }

    .help-step-content img {
      max-width: 100%;
      height: auto;
      border-radius: 4px;
      margin: 12px 0;
      border: 1px solid #e5e7eb;
    }

    .help-navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 16px;
      border-top: 1px solid #e5e7eb;
    }

    .help-btn {
      padding: 8px 16px;
      border: 1px solid #d1d5db;
      border-radius: 4px;
      background: white;
      color: #374151;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .help-btn:hover:not(:disabled) {
      background: #f3f4f6;
      border-color: #9ca3af;
    }

    .help-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .help-btn.primary {
      background: #165DFF;
      color: white;
      border-color: #165DFF;
    }

    .help-btn.primary:hover:not(:disabled) {
      background: #0f49d9;
      border-color: #0f49d9;
    }

    .help-step {
      font-size: 14px;
      color: #6b7280;
    }

    /* 样式注释 */
    .logo-animation {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 99999;
      animation: fadeOut 360ms ease 900ms forwards;
      pointer-events: none;
    }

    .logo-container {
      position: relative;
      width: 100px;
      height: 100px;
      animation: logoExpand 700ms ease forwards;
    }

    .logo-container img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .welcome-text {
      margin-top: 30px;
      font-size: 36px;
      font-weight: 700;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      color: #165DFF;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
      opacity: 0;
      animation: fadeIn 300ms ease 350ms forwards, waveGlow 1.2s ease-in-out infinite;
      position: relative;
      overflow: hidden;
    }

    .welcome-text::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent);
      transform: rotate(45deg);
      animation: wave 3s linear infinite;
    }

    @keyframes waveGlow {

      0%,
      100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05);
      }

      50% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.05), 0 0 15px rgba(22, 93, 255, 0.5), 0 0 30px rgba(22, 93, 255, 0.3);
      }
    }

    @keyframes wave {
      0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
      }

      100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
      }
    }

    @keyframes logoExpand {
      0% {
        transform: scale(0.1);
        opacity: 0;
      }

      50% {
        transform: scale(1.2);
        opacity: 1;
      }

      100% {
        transform: scale(1);
        opacity: 1;
      }
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeOut {
      from {
        opacity: 1;
      }

      to {
        opacity: 0;
        visibility: hidden;
      }
    }

    /* 样式注释 */
    .help-guide-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10000;
    }

    .help-highlight {
      position: absolute;
      border: 3px solid #165DFF;
      border-radius: 8px;
      box-shadow: 0 0 0 10000px rgba(100, 120, 140, 0.5);
      z-index: 10000;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 10000px rgba(100, 120, 140, 0.5), 0 0 0 0 rgba(22, 93, 255, 0.7);
      }

      70% {
        box-shadow: 0 0 0 10000px rgba(100, 120, 140, 0.5), 0 0 0 10px rgba(22, 93, 255, 0);
      }

      100% {
        box-shadow: 0 0 0 10000px rgba(100, 120, 140, 0.5), 0 0 0 0 rgba(22, 93, 255, 0);
      }
    }

    .help-container {
      z-index: 10001;
    }

    /* 样式注释 */
    .help-container {
      display: none !important;
    }

    .help-btn {
      position: fixed !important;
      padding: 8px 16px !important;
      border: 1px solid #d1d5db !important;
      border-radius: 4px !important;
      background: white !important;
      color: #374151 !important;
      cursor: pointer !important;
      transition: all 0.2s ease !important;
      z-index: 10001 !important;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .help-btn.prev {
      bottom: 20px !important;
      left: 20px !important;
    }

    .help-btn.next {
      position: fixed !important;
      bottom: 20px !important;
      right: 20px !important;
      z-index: 10001 !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
    }

    /* 绾喕绻氶幐澶愭尦閺嶅嘲绱℃稉鈧懛杈剧礉瀹革箑褰稿绉?*/
    .help-btn {
      padding: 8px 16px !important;
      min-width: 80px !important;
      text-align: center !important;
    }

    /* 样式注释 */
    .help-btn {
      display: block !important;
      margin: 0 !important;
    }

    .help-step {
      position: fixed !important;
      bottom: 25px !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      font-size: 14px !important;
      color: white !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
      z-index: 10001 !important;
    }

    .help-close {
      position: fixed !important;
      top: 20px !important;
      right: 20px !important;
      font-size: 24px !important;
      cursor: pointer !important;
      color: white !important;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
      transition: color 0.2s ease !important;
      z-index: 10002 !important;
    }

    .help-close:hover {
      color: #ff6b6b !important;
    }

    /* 閺傚洦銆傜紓鏍帆閸ｃ劌顔愰崳?*/
    .document-editor {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 0;
      border: 1px solid #d6e3f0;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 18px 40px rgba(78, 149, 217, 0.12);
    }

    #editor-container {
      flex: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .ql-toolbar.ql-snow {
      border: none !important;
      border-bottom: 1px solid #e1eaf3 !important;
      background: linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
      padding: 10px 14px !important;
    }

    .ql-container {
      flex: 1;
      font-size: 15px;
      border: none !important;
      min-height: 0;
      background: #ffffff;
    }

    .ql-editor {
      min-height: 100%;
      padding: 22px 24px !important;
      line-height: 1.8;
      color: #243447;
    }

    /* Excel琛ㄦ牸缂傛牞绶崳?*/
    .excel-editor {
      flex: 1;
      overflow: hidden;
      padding: 0;
      display: flex;
      flex-direction: column;
      min-height: 0;
      border: 1px solid #d6e3f0;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 18px 40px rgba(78, 149, 217, 0.12);
    }

    .excel-editor-body {
      flex: 1;
      overflow: auto;
      padding: 18px;
      min-height: 0;
      background: linear-gradient(180deg, #f9fbff 0%, #f1f6fc 100%);
    }

    .excel-actions {
      display: flex;
      gap: 10px;
      padding: 12px 16px;
      border-top: 1px solid #e1eaf3;
      background: rgba(249, 251, 255, 0.96);
      flex-wrap: wrap;
    }

    .excel-table {
      border-collapse: collapse;
      width: 100%;
      table-layout: fixed;
      background: #fff;
      border-radius: 14px;
      overflow: hidden;
    }

    .excel-table td,
    .excel-table th {
      border: 1px solid #d9e5f1;
      padding: 8px 10px;
      min-width: 100px;
      height: 32px;
    }

    .excel-table th {
      background-color: #eef5fd;
      font-weight: 600;
      text-align: center;
      color: #2d527b;
    }

    .excel-table td {
      background-color: white;
      color: #334155;
    }

    .excel-table td:focus {
      outline: 2px solid #3b82f6;
      background-color: #eff6ff;
    }

    .excel-table input {
      width: 100%;
      border: none;
      background: transparent;
      font-size: 14px;
      padding: 0;
      outline: none;
    }

    .row-header,
    .col-header {
      background-color: #f6f9fd !important;
      font-weight: 500;
      text-align: center;
      color: #6b7280;
      user-select: none;
    }

    @media (max-width: 1200px) {
      .preview-sidebar.open {
        width: min(52vw, 680px);
      }
    }

    @media (max-width: 900px) {
      .preview-sidebar.open {
        width: 100vw;
      }

      .preview-toolbar {
        padding: 12px 14px;
      }

      .toolbar-left {
        gap: 10px;
      }

      .preview-content {
        padding: 10px;
      }

      .ql-editor {
        padding: 16px 14px !important;
      }

      .excel-editor-body {
        padding: 12px;
      }
    }

    /* 样式注释 */
    .question-dialog {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 400px;
      background-color: white;
      border-radius: 12px;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
      padding: 20px;
      display: none;
      z-index: 1000;
    }

    .question-dialog.open {
      display: block;
    }

    .question-dialog h3 {
      margin-bottom: 12px;
      font-size: 16px;
      font-weight: 600;
    }

    .question-dialog textarea {
      width: 100%;
      height: 100px;
      padding: 12px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      resize: none;
      margin-bottom: 12px;
    }

    .question-dialog .dialog-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .question-dialog button {
      padding: 6px 12px;
      border: none;
      border-radius: 4px;
      cursor: pointer;
      font-size: 14px;
    }

    .question-dialog button.cancel {
      background-color: #e5e7eb;
      color: #374151;
    }

    .question-dialog button.submit {
      background-color: #707070;
      color: white;
    }

    /* 样式注释 */
    .sidebar {
      width: 200px;
      height: 100vh;
      background: linear-gradient(180deg, rgba(238, 243, 249, 0.94) 0%, rgba(232, 239, 247, 0.98) 100%);
      border-right: 1px solid rgba(217, 226, 236, 0.9);
      box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.45);
      padding: 28px 20px;
      transition: width 0.3s ease, padding 0.3s ease;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      min-width: 200px;
    }

    .sidebar.collapsed {
      width: 60px;
      padding: 28px 12px;
      align-items: center;
      min-width: 60px;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .sidebar {
        width: 180px;
        min-width: 180px;
        padding: 20px 16px;
      }

      .sidebar.collapsed {
        width: 50px;
        min-width: 50px;
        padding: 20px 8px;
      }
    }

    @media (max-width: 480px) {
      .sidebar {
        width: 160px;
        min-width: 160px;
        padding: 16px 12px;
      }

      .sidebar.collapsed {
        width: 40px;
        min-width: 40px;
        padding: 16px 6px;
      }
    }

    .sidebar-toggle {
      width: 32px;
      height: 32px;
      border: 1px solid rgba(148, 163, 184, 0.18);
      background: rgba(255, 255, 255, 0.72);
      cursor: pointer;
      color: #5f6368;
      margin-bottom: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      border-radius: 8px;
    }

    .sidebar-toggle:hover {
      background-color: #ffffff;
      color: #111827;
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .sidebar.collapsed .sidebar-toggle {
      justify-content: center;
    }

    .menu-icon {
      width: 22px;
      height: 22px;
      object-fit: contain;
    }

    .sidebar-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      margin-bottom: 8px;
      cursor: pointer;
      color: #233142;
      font-size: 15px;
      font-weight: 600;
      transition: all 0.24s ease;
      border-radius: 14px;
    }

    .sidebar-item:hover {
      color: #102033;
      background-color: rgba(255, 255, 255, 0.82);
      transform: translateX(2px);
      box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

    .sidebar.collapsed .sidebar-item {
      justify-content: center;
      padding: 10px;
    }

    .sidebar.collapsed .sidebar-item span {
      display: none;
    }

    .sidebar-item img {
      width: 22px;
      height: 22px;
      flex-shrink: 0;
      object-fit: contain;
    }

    /* 响应式图标大小 */
    @media (max-width: 768px) {
      .sidebar-item img {
        width: 20px;
        height: 20px;
      }
    }

    @media (max-width: 480px) {
      .sidebar-item img {
        width: 18px;
        height: 18px;
      }
    }



    .main-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 6px 20px 20px;
      overflow: auto;
      position: relative;
    }

    .top-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 18px 22px 16px;
      margin-bottom: 26px;
      border: none;
      border-bottom: 1px solid rgba(211, 220, 232, 0.9);
      background: transparent;
      box-shadow: none;
      border-radius: 0;
      backdrop-filter: none;
      position: relative;
      flex-shrink: 0;
      gap: 16px;
      flex-wrap: wrap;
    }

    .top-left {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .logo {
      width: 44px;
      height: 44px;
      object-fit: contain;
      background: #ffffff;
      border-radius: 10px;
      box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
      transition: transform 0.2s ease;
      cursor: pointer;
    }

    .logo:hover {
      transform: scale(1.05);
    }

    .top-bar h1 {
      font-family: 'Oswald', sans-serif;
      font-size: 32px;
      font-weight: 700;
      letter-spacing: 2px;
      color: #4E95D9;
      padding: 0;
      text-transform: uppercase;
    }

    .top-right {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-left: auto;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .model-dropdown {
      position: relative;
    }

    .model-select {
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(214, 223, 234, 0.92);
      border-radius: var(--radius-pill);
      padding: 8px 16px;
      font-size: 14px;
      font-weight: 600;
      font-family: inherit;
      color: var(--text-primary);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    }

    .model-select:hover {
      background: #ffffff;
      border-color: rgba(194, 204, 216, 0.92);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
      transform: translateY(-1px);
    }

    .model-select .arrow {
      transition: transform 0.2s ease;
    }

    .model-select.open .arrow {
      transform: rotate(180deg);
    }

    .model-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      background: #ffffff;
      border-radius: var(--radius-md);
      box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
      width: 176px;
      padding: 6px;
      display: none;
      z-index: 999;
    }

    .model-menu.show {
      display: block;
    }

    .model-menu-item {
      padding: 10px 12px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: #000000;
      border-radius: var(--radius-sm);
      font-size: 14px;
      font-family: inherit;
      transition: background 0.15s;
    }

    .model-menu-item:hover {
      background-color: #e5e7eb;
    }

    .model-menu-item.active .check {
      color: #000000;
    }

    .check {
      font-size: 18px;
      color: transparent;
      font-weight: bold;
    }

    .avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: #eef3f9;
      cursor: pointer;
      position: relative;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: none;
    }

    .avatar:hover {
      transform: scale(1.08);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
    }

    .avatar img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    /* 閻劍鍩涢幃顒佽癁鍗＄墖 */
    .user-card {
      position: absolute;
      top: 60px;
      right: 20px;
      width: 292px;
      background: rgba(255, 255, 255, 0.98);
      border: 1px solid rgba(221, 228, 237, 0.92);
      border-radius: 20px;
      box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
      padding: 20px;
      backdrop-filter: blur(12px);
      display: none;
      z-index: 999;
      animation: softRiseIn 0.24s ease;
    }

    .user-card::before {
      content: '';
      position: absolute;
      inset: 0 0 auto 0;
      height: 74px;
      border-radius: 20px 20px 0 0;
      background: linear-gradient(180deg, rgba(244, 247, 252, 0.95) 0%, rgba(255, 255, 255, 0.2) 100%);
      pointer-events: none;
    }

    .user-info {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 18px;
    }

    .user-info img {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      border: 2px solid rgba(59, 130, 246, 0.12);
    }

    .user-info img:hover {
      transform: scale(1.1);
      box-shadow: 0 0 10px rgba(22, 93, 255, 0.5);
      border: 2px solid #165DFF;
    }

    .username-container {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      min-width: 0;
      width: 100%;
    }

    .user-copy {
      min-width: 0;
    }

    .user-meta-label {
      font: var(--caption);
      color: #64748b;
      margin-bottom: 2px;
      letter-spacing: 0.01em;
    }

    .user-info .username {
      font: var(--title-3);
      font-size: 16px;
      color: #0f172a;
      letter-spacing: 0.01em;
    }

    .edit-username-btn {
      background: rgba(37, 99, 235, 0.08);
      border: 1px solid rgba(59, 130, 246, 0.12);
      cursor: pointer;
      padding: 6px;
      border-radius: 10px;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .edit-username-btn:hover {
      background: rgba(37, 99, 235, 0.14);
      border-color: rgba(59, 130, 246, 0.2);
    }

    .edit-username-btn img {
      width: 16px;
      height: 16px;
      border-radius: 0;
      cursor: pointer;
      transition: none;
      box-shadow: none;
      border: none;
    }

    .edit-username-btn img:hover {
      transform: none;
      box-shadow: none;
      border: none;
    }

    .edit-profile-btn,
    .change-password-btn,
    .logout-btn {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid transparent;
      border-radius: 12px;
      cursor: pointer;
      font-weight: 600;
      transition: all 0.24s ease;
      margin-top: 10px;
    }

    .edit-profile-btn {
      background: #165DFF;
      color: white;
    }

    .edit-profile-btn:hover {
      background: #0e48d9;
    }

    .change-password-btn {
      background: #fbfcfe;
      color: #1f2937;
      border-color: rgba(221, 228, 237, 0.95);
    }

    .change-password-btn:hover {
      background: #f6f9fc;
      border-color: rgba(206, 216, 228, 0.95);
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    }

    .logout-btn {
      background: #fff8f8;
      color: #dc4b4b;
      border-color: rgba(244, 205, 205, 0.9);
    }

    .logout-btn:hover {
      background: #fff1f1;
      border-color: rgba(240, 185, 185, 0.95);
      transform: translateY(-1px);
      box-shadow: 0 8px 18px rgba(220, 75, 75, 0.08);
    }

    .profile-avatar-section {
      text-align: center;
      margin-bottom: 20px;
    }

    .avatar-upload-btn {
      display: inline-block;
      padding: 8px 16px;
      background: #f1f1f1;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.3s ease;
    }

    .avatar-upload-btn:hover {
      background: #e0e0e0;
    }

    .welcome {
      text-align: center;
      font: var(--title-1);
      color: #111827;
      letter-spacing: -0.03em;
      margin-bottom: 24px;
      margin-top: 88px;
      text-wrap: balance;
    }

    .input-container {
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
    }

    .DOC90-input-container {
      border: 1px solid #e5e7eb;
      border-radius: 24px;
      background-color: #ffffff;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      transition: box-shadow 0.3s ease;
    }

    .DOC90-input-container:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* ========== 鎷栨嫿涓婁紶鍖哄煙鏍峰紡 ========== */
    #dropZone {
      position: relative;
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
    }

    /* 鎷栨嫿闁喚鍍电仦?- 鑳屾櫙铏氬寲 */
    .drag-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 10;
      display: none;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    /* 閹锋牗瀚块崘鍛啇鏍峰紡 */
    .drag-content {
      text-align: center;
      color: var(--text-primary);
    }

    .drag-icon {
      width: 250px;
      margin-bottom: 16px;
      opacity: 0.8;
      transition: transform 0.2s ease;
    }

    /* 鎷栨嫿鏃跺浘鏍囪交瀵邦喗鏂佹径?*/
    .drag-overlay.dragging .drag-icon {
      transform: scale(1.1);
    }

    .drag-text {
      font-size: 16px;
      font-weight: 500;
      color: var(--text-secondary);
    }

    .drag-subtext {
      font-size: 14px;
      color: #999;
      margin-top: 4px;
    }

    /* 淇濇寔鍘熸湁杈撳叆濡楀棗鐪扮痪褝绱濋柆顔惧兊鐏炲倸婀張鈧稉濠傜湴 */
    .DOC90-input-container {
      position: relative;
      z-index: 1;
    }

    .file-list {
      padding: 12px 16px 0;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    /* 样式注释 */
    .fileBox {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      background: #f9fafb;
      border: 1px solid #e5e7eb;
      border-radius: 10px;
      min-width: 200px;
      max-width: 200px;
      flex: 1 0 200px;
      position: relative;
      box-sizing: border-box;
    }

    /* 样式注释 */
    .file-icon-wrapper {
      width: 48px;
      height: 48px;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }


    /* 样式注释 */
    .file-icon-wrapper img {
      width: 32px;
      height: 32px;
      object-fit: contain;
    }

    .boxContent {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    /* 样式注释 */
    .title {
      font-size: 17px;
      color: #333;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      line-height: 1.4;
    }

    /* 绫诲瀷+澶у皬锛堜笅鎺掞級 */
    .statusLine {
      font-size: 12px;
      color: #6b7280;
      line-height: 1.4;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .closeIcon {
      width: 18px;
      height: 18px;
      cursor: pointer;
      color: #999;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .closeIcon:hover {
      color: #ff4d4f;
    }

    .input-area {
      padding: 16px 24px;
    }

    /** 杈撳叆瀛椾綋鏍峰紡 **/
    .input-area textarea {
      width: 100%;
      border: none;
      outline: none;
      resize: none;
      font-size: 20px;
      border-radius: 8px;
      min-height: 44px;
      max-height: 100px;
      color: #000000;
      line-height: 1.6;
      overflow-y: auto;
      background: transparent;
      font-weight: 400;
    }

    /** 杈撳叆濡楀棗鐡ф担?**/
    .input-area textarea::placeholder {
      color: #96a2b0;
    }

    .main-input-container {
      width: 100%;
      max-width: 900px;
      margin: 0 auto;
      border: 1px solid rgba(226, 232, 240, 0.95);
      border-radius: 24px;
      background: #ffffff;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      transition: box-shadow 0.3s ease, transform 0.3s ease;
    }

    .main-input-container:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      transform: none;
    }

    .toolbar-container {
      width: 100%;
      margin: 0;
      border: none;
      border-radius: 0;
      background-color: transparent;
      overflow: hidden;
      box-shadow: none;
      transition: none;
      margin-top: 0;
    }

    .toolbar-container:hover {
      box-shadow: none;
    }

    .DOC90-input-container {
      border: none;
      border-radius: 0;
      box-shadow: none;
      transition: none;
    }

    .DOC90-input-container:hover {
      box-shadow: none;
    }

    .toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 8px 24px 16px;
      gap: 16px;
      flex-wrap: wrap;
    }

    .toolbar-left {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .icon-group {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .link-btn,
    .file-btn {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      border-radius: var(--radius-pill);
      border: 1px solid rgba(217, 226, 236, 0.95);
      background: #f8f9fc;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      font-family: inherit;
      color: var(--text-primary);
      letter-spacing: 0.1px;
      transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.25s;
    }

    .link-btn:hover,
    .file-btn:hover {
      background: #ffffff;
      border-color: rgba(207, 216, 227, 0.96);
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
    }

    .link-btn:active,
    .file-btn:active {
      transform: translateY(0) scale(0.96);
      box-shadow: none;
    }

    .link-icon,
    .file-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      filter: brightness(0) opacity(0.6);
      transition: transform 0.3s, filter 0.2s;
    }

    .link-btn:hover .link-icon {
      filter: brightness(0) opacity(1);
      transform: rotate(-20deg) scale(1.15);
    }

    .file-btn:hover .file-icon {
      filter: brightness(0) opacity(1);
      transform: translateY(-2px) scale(1.15);
    }

    .action-button-group {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .send-btn {
      background: #707070;
      border: none;
      border-radius: 50%;
      width: 35px;
      height: 35px;
      color: #fff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
      flex-shrink: 0;
      box-shadow: none;
      font-size: 18px;
      line-height: 1;
      font-weight: 600;
      padding: 0;
    }

    .send-btn:hover {
      background: #444746;
      transform: translateY(-1px);
    }

    .send-btn img {
      width: 12px;
      height: 12px;
      object-fit: contain;
      pointer-events: none;
    }

    .send-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .send-btn.stop-mode {
      background: #ffffff;
      border: 1px solid rgba(216, 30, 6, 0.2);
    }

    .send-btn.stop-mode:hover {
      background: #fff7f5;
    }

    .send-btn.paused-mode {
      background: #ffffff;
      border: 1px solid rgba(95, 125, 98, 0.22);
    }

    .send-btn.paused-mode:hover {
      background: #f6fbf7;
    }

    .send-btn.send-arrow {
      font-size: 16px;
      letter-spacing: -1px;
    }

    #templateInput,
    #fileInput {
      display: none;
    }

    /* 閸忋劌鐪柆顔惧兊閿涙俺顩惄鏍ㄦ殻娑擃亪銆夐棃?娑撹鍞寸€?*/
    .mask-overlay {
      position: fixed;
      /* 鏁村睆楠炴洝顩惄?*/
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      margin: 0;
    }

    /* 样式注释 */
    .mask-content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 8px;
    }

    .mask-text {
      color: #ffffff;
      font-size: 16px;
      margin: 0;
    }

    /* 閺傛澘顤冮悘鎷屽灏忓瓧 */
    .mask-subtext {
      color: #cccccc;
      font-size: 14px;
      margin: 0;
    }

    /* 濡剝婢樺鍦崶闁喚鍍电仦?*/
    .mask-layer {
      position: fixed;
      top: 0;
      left: 0;
      /* 瑕嗙洊鏁翠釜椤甸潰 */
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.6);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      margin: 0;
      transition: width 0.3s ease;
    }

    .template-popup {
      width: 95%;
      height: 90%;
      background: rgba(255, 255, 255, 0.98);
      border-radius: 24px;
      padding: 0;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
      border: 1px solid rgba(217, 226, 236, 0.85);
      backdrop-filter: blur(18px);
      animation: softRiseIn 0.26s ease;
      z-index: 9999;
      display: flex;
      overflow: hidden;
      max-width: 1400px;
      max-height: 800px;
    }

    /* 样式注释 */
    @media (max-width: 1200px) {
      .template-popup {
        width: 98%;
        height: 95%;
      }
    }

    @media (max-width: 768px) {
      .mask-layer {
        left: 0;
        width: 100vw;
      }

      .template-popup {
        flex-direction: column;
      }

      .template-list-section {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
      }

      .template-preview-section {
        flex: 1;
      }
    }

    /* 宸︿晶妯℃澘鍒楄〃鍖哄煙 */
    .template-list-section {
      flex: 2;
      padding: 22px;
      border-right: 1px solid rgba(217, 226, 236, 0.85);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      background: linear-gradient(180deg, rgba(248, 251, 255, 0.72) 0%, rgba(255, 255, 255, 0.96) 100%);
    }

    /* 妯℃澘鍒楄〃澶撮儴鍖哄煙锛堝浐瀹氾級 */
    .template-list-header {
      margin-bottom: 12px;
    }

    /* 妯℃澘鎷栨嫿涓婁紶鍖哄煙锛堝浐瀹氾級 */
    .template-drop-area {
      margin: 10px 0;
      padding: 20px;
      border: 2px dashed #e5e7eb;
      border-radius: 8px;
      text-align: center;
      background-color: #f9fafb;
    }

    /* 样式注释 */
    .history-tpl-list {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 10px;
    }

    /* 样式注释 */
    .template-preview-section {
      flex: 1;
      padding: 22px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 253, 0.92) 100%);
    }

    .popup-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .popup-head h3 {
      font: var(--title-3);
      font-size: 19px;
      color: #111;
      margin: 0;
    }

    .popup-close {
      cursor: pointer;
      font-size: 22px;
      color: #999;
    }

    .popup-close:hover {
      color: #333;
    }

    .search-input {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid rgba(217, 226, 236, 0.96);
      border-radius: 12px;
      font-size: 14px;
      outline: none;
      margin-bottom: 16px;
      background: rgba(255, 255, 255, 0.92);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .search-input:focus {
      border-color: rgba(31, 111, 235, 0.34);
      box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
    }

    .upload-new-tpl {
      display: inline-block;
      margin-bottom: 12px;
      padding: 6px 12px;
      border: 1px dashed #999;
      border-radius: 6px;
      font-size: 12px;
      color: #555;
      cursor: pointer;
    }

    .upload-new-tpl:hover {
      border-color: #333;
      color: #111;
    }

    .history-tpl-list {
      max-height: calc(100% - 120px);
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .history-tpl-item {
      cursor: pointer;
      position: relative;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(217, 226, 236, 0.92);
      border-radius: 14px;
      transition: all 0.2s ease;
    }

    .history-tpl-item:hover {
      background: #ffffff;
      border-color: rgba(31, 111, 235, 0.22);
      transform: translateY(-1px);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    }

    .history-tpl-item.selected {
      background: rgba(31, 111, 235, 0.08);
      border-color: rgba(31, 111, 235, 0.42);
      box-shadow: 0 16px 32px rgba(31, 111, 235, 0.14);
    }

    .history-tpl-item .file-icon-wrapper {
      width: 40px;
      height: 40px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
    }

    .history-tpl-item .file-icon-wrapper {
      position: relative;
    }

    .file-icon-wrapper img {
      width: 40px;
      height: 40px;
      object-fit: contain;
    }

    .file-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .file-overlay.loading {
      background-color: rgba(255, 255, 255, 0.8);
    }

    .loading-spinner {
      width: 20px;
      height: 20px;
      border: 2px solid #f3f3f3;
      border-top: 2px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }

    .file-overlay.error {
      background-color: rgba(255, 70, 70, 0.1);
      border: 1px solid #ff4646;
    }

    .error-icon {
      color: #ff4646;
      font-size: 16px;
      font-weight: bold;
      margin-bottom: 4px;
    }

    .error-message {
      color: #ff4646;
      font-size: 10px;
      text-align: center;
      padding: 0 4px;
    }

    .history-tpl-item .tpl-info {
      flex: 1;
      min-width: 0;
    }

    .history-tpl-item .tpl-name {
      font-size: 14px;
      font-weight: 500;
      color: #333;
      margin-bottom: 2px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .history-tpl-item .tpl-time {
      font-size: 11px;
      color: #9aa0a6;
    }

    .history-tpl-del {
      position: absolute;
      top: 6px;
      right: 6px;
      width: 16px;
      height: 16px;
      background: #eee;
      border-radius: 50%;
      font-size: 12px;
      color: #666;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }

    .history-tpl-del:hover {
      background: #f56c6c;
      color: #fff;
    }

    /* 样式注释 */
    .template-preview-section h4 {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 16px;
      font-weight: 600;
      color: #333;
    }

    .template-preview-content {
      background: linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
      border: 1px solid #d9e5f2;
      border-radius: 14px;
      padding: 12px;
      margin-bottom: 20px;
      min-height: 400px;
      flex: 1;
      overflow-y: auto;
      display: flex;
      align-items: stretch;
      justify-content: flex-start;
    }

    /* 样式注释 */
    .explorer-preview {
      width: 100%;
      height: 100%;
    }

    .preview-header-info {
      margin-bottom: 16px;
      padding-bottom: 12px;
      border-bottom: 1px solid #e5e7eb;
    }

    .preview-title {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin-bottom: 4px;
    }

    .preview-meta-info {
      font-size: 12px;
      color: #666;
    }

    .preview-content {
      font-size: 14px;
      line-height: 1.5;
      color: #333;
    }

    .preview-content p {
      margin: 0 0 12px 0;
    }

    .preview-content table {
      width: 100%;
      border-collapse: collapse;
      margin: 12px 0;
    }

    .preview-content th,
    .preview-content td {
      border: 1px solid #e5e7eb;
      padding: 6px 8px;
      font-size: 12px;
      text-align: left;
    }

    .preview-content th {
      background: #f8f9fa;
      font-weight: 600;
    }

    .preview-content pre {
      background: #f8f9fa;
      padding: 12px;
      border-radius: 4px;
      overflow-x: auto;
      font-family: 'Courier New', Courier, monospace;
      font-size: 12px;
      line-height: 1.4;
      margin: 12px 0;
    }

    .preview-content ul,
    .preview-content ol {
      margin: 12px 0;
      padding-left: 24px;
    }

    .preview-content li {
      margin-bottom: 4px;
    }

    .preview-content h1 {
      font-size: 20px;
      font-weight: 600;
      margin: 16px 0 8px 0;
    }

    .preview-content h2 {
      font-size: 18px;
      font-weight: 600;
      margin: 14px 0 6px 0;
    }

    .preview-content h3 {
      font-size: 16px;
      font-weight: 600;
      margin: 12px 0 4px 0;
    }

    .preview-note {
      font-size: 12px;
      color: #999;
      text-align: center;
      margin-top: 12px;
      font-style: italic;
    }

    /* 样式注释 */
    .doc-snapshot {
      width: 100%;
      min-height: 100%;
      display: flex;
      flex-direction: column;
      border: 1px solid #cfe0f2;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 14px 34px rgba(78, 149, 217, 0.12);
      background: #fff;
      margin-bottom: 0;
    }

    .doc-snapshot-titlebar {
      display: flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(180deg, #f4f8fe 0%, #eaf2fb 100%);
      border-bottom: 1px solid #d6e3f0;
      padding: 12px 14px;
      font-size: 14px;
      color: #47627f;
      font-weight: 600;
    }

    .doc-snapshot-titlebar img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      flex-shrink: 0;
    }

    .doc-snapshot-titlebar span {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .doc-snapshot-body {
      position: relative;
      background: #fafafa;
      padding: 10px 12px 0 12px;
      max-height: 260px;
      overflow: hidden;
    }

    .doc-snapshot-lines {
      font-family: 'Courier New', Courier, monospace;
      font-size: 12px;
      line-height: 1.6;
      color: #333;
      white-space: pre-wrap;
      word-break: break-all;
      padding-bottom: 60px;
    }

    .doc-snapshot-line {
      display: flex;
      gap: 10px;
    }

    .doc-snapshot-linenum {
      color: #bbb;
      user-select: none;
      min-width: 22px;
      text-align: right;
      flex-shrink: 0;
    }

    .doc-snapshot-linetext {
      color: #333;
      flex: 1;
      min-width: 0;
    }

    .doc-snapshot-fade {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60px;
      background: linear-gradient(to bottom, rgba(250, 250, 250, 0) 0%, rgba(250, 250, 250, 1) 100%);
      pointer-events: none;
    }

    .doc-snapshot-footer {
      font-size: 11px;
      color: #8a98a8;
      text-align: center;
      padding: 8px 12px 10px 12px;
      font-style: italic;
      background: #f9fbfe;
      border-top: 1px solid #e4edf6;
    }

    .doc-snapshot-nopreview {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 28px 16px;
      gap: 10px;
      background: #fafafa;
    }

    .doc-snapshot-nopreview img {
      width: 48px;
      height: 48px;
      object-fit: contain;
      opacity: 0.7;
    }

    .doc-snapshot-nopreview .nopreview-name {
      font-size: 13px;
      font-weight: 600;
      color: #444;
      text-align: center;
      word-break: break-all;
    }

    .doc-snapshot-nopreview .nopreview-meta {
      font-size: 12px;
      color: #888;
      text-align: center;
      line-height: 1.7;
    }

    .doc-snapshot-nopreview .nopreview-hint {
      font-size: 11px;
      color: #bbb;
      text-align: center;
      font-style: italic;
    }

    /* Word 娓叉煋鍖哄煙 */
    .doc-snapshot-richbody {
      padding: 16px 18px;
      font-size: 13px;
      line-height: 1.75;
      color: #334155;
      flex: 1;
      min-height: 0;
      max-height: none;
      overflow-y: auto;
      background: #fff;
    }

    .docx-preview-shell {
      background: linear-gradient(180deg, #f5f8fc 0%, #eaf1f8 100%);
      padding: 18px 20px 26px;
    }

    .docx-preview-host {
      min-height: 100%;
    }

    .docx-preview-shell section.docx {
      background: #ffffff;
      margin: 0 auto 18px auto !important;
      box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
      border-radius: 4px;
      overflow: hidden;
      border: 1px solid #d9e4f0;
    }

    .doc-snapshot-richbody h1,
    .doc-snapshot-richbody h2,
    .doc-snapshot-richbody h3 {
      margin: 10px 0 4px;
      font-weight: 600;
      line-height: 1.3;
    }

    .doc-snapshot-richbody p {
      margin: 4px 0;
    }

    .doc-snapshot-richbody table {
      border-collapse: collapse;
      width: 100%;
      font-size: 12px;
      margin: 8px 0;
    }

    .doc-snapshot-richbody td,
    .doc-snapshot-richbody th {
      border: 1px solid #e0e0e0;
      padding: 4px 6px;
    }

    /* Excel 娓叉煋鍖哄煙 */
    .doc-snapshot-excel-body {
      flex: 1;
      min-height: 0;
      overflow: auto;
      background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
      padding: 14px;
    }

    .doc-snapshot-excel-shell {
      border: 1px solid #dbe6f2;
      border-radius: 14px;
      overflow: hidden;
      background: #fff;
      box-shadow: none;
    }

    .doc-snapshot-excel-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px 14px;
      background: linear-gradient(180deg, #f7fbff 0%, #edf5fd 100%);
      border-bottom: 1px solid #dbe6f2;
      color: #35506d;
      font-size: 12px;
    }

    .doc-snapshot-excel-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      color: #2f6aa3;
    }

    .doc-snapshot-excel-badge::before {
      content: '';
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #67b26f;
      box-shadow: 14px 0 0 #f0c55f, 28px 0 0 #ef7f7f;
      margin-right: 20px;
      flex: none;
    }

    .doc-snapshot-excel-sheetname {
      color: #6c7b8b;
      font-style: italic;
    }

    .doc-snapshot-excel-body table {
      border-collapse: collapse;
      min-width: 100%;
      font-size: 12px;
      background: #fff;
    }

    .doc-snapshot-excel-body td,
    .doc-snapshot-excel-body th {
      border: 1px solid #d8e4f0;
      padding: 7px 10px;
      white-space: nowrap;
      color: #2a3c4f;
    }

    .doc-snapshot-excel-body tr:first-child td,
    .doc-snapshot-excel-body tr:first-child th {
      position: sticky;
      top: 0;
      z-index: 1;
      background: #eef5fd;
      font-weight: 600;
      color: #254a73;
    }

    .doc-snapshot-excel-body tr:nth-child(even) td {
      background: #fbfdff;
    }

    .doc-snapshot.word .doc-snapshot-richbody,
    .doc-snapshot.excel .doc-snapshot-excel-body,
    .doc-snapshot.pdf .doc-snapshot-iframe-wrap {
      min-height: 520px;
    }

    /* PDF 娓叉煋鍖哄煙 */
    .doc-snapshot-iframe-wrap iframe {
      display: block;
      width: 100%;
      height: 320px;
      border: none;
    }

    .template-call-btn {
      width: 100%;
      padding: 10px;
      background: #707070;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.2s;
      margin-top: auto;
    }

    .template-call-btn:hover {
      background: #444746;
    }

    .template-call-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
    }

    /* 妯℃澘鍒楄〃澶撮儴閹垮秳缍旈弽?*/
    .template-list-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 12px;
    }

    .template-list-header .search-input {
      margin-bottom: 0;
      width: auto;
      flex: 1;
      margin-right: 12px;
    }

    .template-filter {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .template-filter select {
      padding: 8px 12px;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      font-size: 14px;
      background: white;
    }

    /* 鏋佺畝宸茶皟鐢ㄦā閺夋寧鐗卞?*/
    .template-simple-used {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 6px 14px;
      background: #f8f9fa;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      font-size: 13px;
      color: #333;
      align-items: center;
      justify-content: center;
      z-index: 10;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }

    .history-tpl-del:hover {
      background: #f56c6c;
      color: #fff;
    }

    /* 鏋佺畝宸茶皟鐢ㄦā閺夋寧鐗卞?*/
    .template-simple-used {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 14px;
      background: #f8f9fa;
      border: 1px solid #e5e7eb;
      border-radius: 16px;
      font-size: 13px;
      color: #333;
    }

    .template-name {
      font-weight: 500;
    }

    .template-used-label {
      color: #0d9050;
      font-weight: 500;
    }

    .template-change-btn {
      padding: 3px 8px;
      background: #e9ecef;
      border-radius: 8px;
      font-size: 12px;
      color: #495057;
      cursor: pointer;
      transition: background 0.2s;
    }

    .template-change-btn:hover {
      background: #dee2e6;
    }

    .template-close {
      color: #999;
      cursor: pointer;
      font-size: 14px;
    }

    .template-close:hover {
      color: #ff4d4f;
    }

    /* 样式注释 */
    .history-item {
      padding: 10px 12px;
      margin-bottom: 8px;
      background: #fff;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s ease;
      border: 1px solid #e5e7eb;
    }

    .history-item:hover {
      background: #f0f4f9;
      border-color: #d1d5db;
    }

    .history-item-title {
      font-size: 14px;
      font-weight: 500;
      color: #333;
      margin-bottom: 4px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .history-item-time {
      font-size: 12px;
      color: #9aa0a6;
    }

    .history-item-files {
      font-size: 12px;
      color: #5f6368;
      margin-top: 4px;
    }

    .history-delete-btn {
      background: none;
      border: none;
      color: #9aa0a6;
      cursor: pointer;
      font-size: 16px;
      margin-left: 10px;
    }

    .history-delete-btn:hover {
      color: #ff4d4f;
    }

    /* ========== 妯℃澘寮圭獥鏍峰紡 ========== */
    /* 濡剝婢樺鍦崶闁喚鍍电仦?*/
    .mask-layer {
      position: fixed;
      top: 0;
      left: 0;
      /* 瑕嗙洊鏁翠釜椤甸潰 */
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.6);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 99999;
      margin: 0;
      transition: width 0.3s ease;
    }

    .template-popup {
      position: relative;
      width: 95%;
      height: 90%;
      background: rgba(255, 255, 255, 0.98);
      border-radius: 24px;
      padding: 0;
      box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
      border: 1px solid rgba(217, 226, 236, 0.85);
      backdrop-filter: blur(18px);
      z-index: 9999;
      display: flex;
      overflow: hidden;
      max-width: 1400px;
      max-height: 800px;
    }

    /* 样式注释 */
    @media (max-width: 1200px) {
      .template-popup {
        width: 98%;
        height: 95%;
      }
    }

    @media (max-width: 768px) {
      .mask-layer {
        left: 0;
        width: 100vw;
      }

      .template-popup {
        flex-direction: column;
      }

      .template-list-section {
        flex: 1;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
      }

      .template-preview-section {
        flex: 1;
      }
    }

    /* 宸︿晶妯℃澘鍒楄〃鍖哄煙 */
    .template-list-section {
      flex: 2;
      padding: 22px;
      border-right: 1px solid rgba(217, 226, 236, 0.85);
      overflow-y: auto;
      background: linear-gradient(180deg, rgba(248, 251, 255, 0.72) 0%, rgba(255, 255, 255, 0.96) 100%);
    }

    /* 样式注释 */
    .template-preview-section {
      position: relative;
      flex: 1;
      padding: 22px;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 253, 0.92) 100%);
    }

    .popup-head {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .popup-head h3 {
      font-size: 18px;
      color: #111;
      margin: 0;
    }

    .popup-close {
      cursor: pointer;
      font-size: 22px;
      color: #999;
    }

    .popup-close:hover {
      color: #333;
    }

    .search-input {
      width: 100%;
      padding: 11px 14px;
      border: 1px solid rgba(217, 226, 236, 0.96);
      border-radius: 12px;
      font-size: 14px;
      outline: none;
      margin-bottom: 16px;
      background: rgba(255, 255, 255, 0.92);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .search-input:focus {
      border-color: rgba(31, 111, 235, 0.34);
      box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
    }

    .template-preview-content {
      background: #ffffff;
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 20px;
      min-height: 400px;
      flex: 1;
      overflow-y: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* 样式注释 */
    .export-report-btn,
    .clear-history-btn {
      padding: 10px 16px;
      border: 1px solid transparent;
      border-radius: 12px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.01em;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 96px;
    }

    .export-report-btn {
      background: linear-gradient(135deg, #1f6feb 0%, #3b82f6 100%);
      color: white;
      box-shadow: 0 12px 24px rgba(31, 111, 235, 0.2);
      transition: all 0.2s ease;
    }

    .export-report-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 16px 28px rgba(31, 111, 235, 0.26);
      filter: saturate(1.04);
    }

    .clear-history-btn {
      background: rgba(255, 255, 255, 0.92);
      color: #c2410c;
      border-color: rgba(251, 146, 60, 0.22);
      transition: all 0.2s ease;
    }

    .clear-history-btn:hover {
      background: #fff7ed;
      border-color: rgba(249, 115, 22, 0.35);
      transform: translateY(-1px);
      box-shadow: 0 12px 24px rgba(249, 115, 22, 0.12);
    }

    .apply-filter-btn,
    .reset-filter-btn {
      padding: 8px 14px;
      border: 1px solid rgba(217, 226, 236, 0.95);
      border-radius: 10px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .apply-filter-btn:hover {
      background: #1f6feb;
      color: white;
      border-color: #1f6feb;
      transform: translateY(-1px);
      box-shadow: 0 10px 20px rgba(31, 111, 235, 0.18);
    }

    .reset-filter-btn:hover {
      background: #eef4fb;
      color: #19324d;
      border-color: rgba(31, 111, 235, 0.18);
      transform: translateY(-1px);
    }

    .apply-filter-btn {
      background: linear-gradient(135deg, #1f6feb 0%, #2563eb 100%);
      color: white;
      border-color: transparent;
    }

    .reset-filter-btn {
      background: rgba(255, 255, 255, 0.92);
      color: #4a5d73;
    }

    /* ========== 缁涙盯鈧顢嬮弽宄扮础 ========== */
    #historyTypeFilter,
    #historyStatusFilter,
    #historyTimeFilter {
      padding: 8px 12px;
      border: 1px solid rgba(217, 226, 236, 0.95);
      border-radius: 10px;
      font-size: 13px;
      background: rgba(255, 255, 255, 0.94);
      cursor: pointer;
      outline: none;
      transition: all 0.2s ease;
    }

    #historyTypeFilter:hover,
    #historyStatusFilter:hover,
    #historyTimeFilter:hover {
      border-color: rgba(31, 111, 235, 0.18);
    }

    #historyTypeFilter:focus,
    #historyStatusFilter:focus,
    #historyTimeFilter:focus {
      border-color: #1f6feb;
      box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
    }

    /* 样式注释 */
    #historyTypeFilter,
    #historyStatusFilter,
    #historyTimeFilter {
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23666' d='M8 12l-4-4h8l-4 4z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 12px center;
      background-size: 16px;
      padding-right: 32px;
    }

    /* 样式注释 */
    .history-table-wrapper {
      margin-top: 16px;
      border: 1px solid rgba(217, 226, 236, 0.95);
      border-radius: 16px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.9);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }

    .history-table-header {
      width: 100%;
      background: linear-gradient(180deg, #f7faff 0%, #f2f6fb 100%);
    }

    .history-table-header th {
      border-bottom: 1px solid rgba(217, 226, 236, 0.95);
    }

    .history-list-container {
      max-height: 500px;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .history-table-body {
      width: 100%;
    }

    /* 样式注释 */
    .history-section {
      overflow: hidden !important;
      display: flex;
      flex-direction: column;
    }

    .history-section .popup-head,
    .history-section .template-list-header {
      flex-shrink: 0;
    }

    .history-section .history-table-wrapper {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      margin-top: 16px;
    }

    .history-section .history-list-container {
      flex: 1;
      overflow-y: auto;
      max-height: none;
    }

    .history-toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .history-filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: center;
      padding: 16px 0 2px;
    }

    .history-filter-group {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 0;
    }

    .history-filter-label {
      font: var(--caption);
      color: #5b6b7c;
      white-space: nowrap;
      font-weight: 700;
    }

    .history-filter-actions {
      display: flex;
      gap: 8px;
      margin-left: auto;
    }

    .history-section .popup-head {
      margin-bottom: 10px;
    }

    .history-section .popup-head h3 {
      font: var(--title-2);
      font-size: 26px;
      letter-spacing: -0.02em;
      color: #132238;
    }

    .history-section .template-list-header {
      padding: 14px 16px;
      border: 1px solid rgba(217, 226, 236, 0.9);
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    }

    .history-section .search-input {
      margin-bottom: 0;
    }

    .history-section .history-table-wrapper {
      margin-top: 18px;
    }

    @media (max-width: 900px) {
      .history-toolbar {
        width: 100%;
        justify-content: flex-start;
      }

      .history-filter-actions {
        margin-left: 0;
      }
    }

    @media (max-width: 640px) {

      .history-filter-bar,
      .history-filter-group,
      .history-filter-actions {
        width: 100%;
      }

      .history-filter-actions {
        justify-content: stretch;
      }

      .apply-filter-btn,
      .reset-filter-btn,
      .export-report-btn,
      .clear-history-btn {
        flex: 1;
      }
    }

    .history-table {
      width: 100%;
      border-collapse: collapse;
      font: var(--body-2);
    }

    .history-table th,
    .history-table td {
      padding: 14px 12px;
      text-align: left;
      border-bottom: 1px solid rgba(233, 238, 245, 0.95);
    }

    /* 閻樿埖鈧焦鐖ｇ粵鐐壉瀵?*/
    .status-success {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 12px;
      background: #e6f7ee;
      color: #2d8a67;
      font-size: 12px;
      font-weight: 500;
    }

    .status-failed {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 12px;
      background: #fef3f3;
      color: #c53030;
      font-size: 12px;
      font-weight: 500;
    }

    .status-processing {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 12px;
      background: #fffbeb;
      color: #d97706;
      font-size: 12px;
      font-weight: 500;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.6;
      }
    }

    /* 样式注释 */
    .history-action-btn {
      padding: 7px 12px;
      border: 1px solid rgba(217, 226, 236, 0.95);
      border-radius: 10px;
      font: var(--caption);
      font-weight: 700;
      cursor: pointer;
      margin-right: 6px;
      background: rgba(255, 255, 255, 0.96);
      color: #32465a;
      transition: all 0.2s ease;
    }

    .history-action-btn:hover {
      background: #f8fbff;
      border-color: rgba(31, 111, 235, 0.18);
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
    }

    .history-table th {
      background-color: #f6f9fd;
      font: var(--caption);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.01em;
      color: #203246;
    }

    .history-table tr:hover {
      background-color: #f8fbff;
    }

    /* ========== 鐧诲綍寮圭獥鏍峰紡 ========== */
    .login-mask {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.34);
      backdrop-filter: blur(10px);
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 28px;
    }

    .login-box {
      background: rgba(255, 255, 255, 0.98);
      width: 420px;
      max-width: 100%;
      padding: 34px 30px 28px;
      border-radius: 24px;
      border: 1px solid rgba(148, 163, 184, 0.16);
      box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
      backdrop-filter: blur(16px);
      animation: softRiseIn 0.28s ease;
    }

    .modal-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 7px 12px;
      margin-bottom: 14px;
      border-radius: 999px;
      background: rgba(37, 99, 235, 0.08);
      border: 1px solid rgba(59, 130, 246, 0.1);
      color: #1d4ed8;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.01em;
    }

    .modal-badge::before {
      content: '';
      width: 18px;
      height: 18px;
      border-radius: 6px;
      background: url('../img/logo2.png') center/contain no-repeat;
      flex-shrink: 0;
    }

    .login-title-container {
      display: flex;
      margin-bottom: 24px;
      padding: 4px;
      border-radius: 14px;
      background: #f8fafc;
      border: 1px solid rgba(148, 163, 184, 0.16);
    }

    .login-title {
      flex: 1;
      font: var(--body-2);
      font-weight: 700;
      color: #64748b;
      text-align: center;
      padding: 10px 0;
      border-radius: 11px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .login-title.active {
      color: #0f172a;
      background: #ffffff;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
      font-weight: 700;
    }

    .login-form {
      width: 100%;
    }

    .login-input {
      width: 100%;
      padding: 15px 16px;
      border: 1px solid rgba(148, 163, 184, 0.24);
      background: #f8fafc;
      border-radius: 14px;
      font: var(--body-1);
      font-size: 15px;
      margin-bottom: 16px;
      outline: none;
      color: #0f172a;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .login-input:focus {
      border-color: rgba(37, 99, 235, 0.46);
      box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
      background: #fff;
    }

    .login-input::placeholder {
      color: #94a3b8;
    }

    .form-error {
      display: none;
      margin: -4px 0 14px;
      padding: 10px 12px;
      border-radius: 12px;
      background: rgba(248, 113, 113, 0.08);
      border: 1px solid rgba(248, 113, 113, 0.16);
      color: #b91c1c;
      font-size: 13px;
      line-height: 1.45;
    }

    .login-input.input-error {
      border-color: rgba(239, 68, 68, 0.4);
      box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.1);
      background: #fff;
    }

    .login-btn {
      width: 100%;
      padding: 14px;
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #fff;
      border: none;
      border-radius: 14px;
      font: var(--body-1);
      font-weight: 700;
      letter-spacing: 0.01em;
      cursor: pointer;
      box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
      transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    }

    .login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 18px 30px rgba(37, 99, 235, 0.28);
      filter: saturate(1.03);
    }

    .login-btn:active {
      transform: translateY(0);
    }

    .login-btn:disabled {
      cursor: not-allowed;
      box-shadow: none;
      opacity: 0.7;
      filter: grayscale(0.08);
    }

    .login-btn.is-loading {
      position: relative;
      color: rgba(255, 255, 255, 0.92);
    }

    .login-btn.is-loading::after {
      content: '';
      width: 14px;
      height: 14px;
      border-radius: 999px;
      border: 2px solid rgba(255, 255, 255, 0.32);
      border-top-color: #fff;
      position: absolute;
      right: 16px;
      top: 50%;
      margin-top: -7px;
      animation: spin 0.7s linear infinite;
    }

    .login-close {
      text-align: center;
      margin-top: 18px;
      color: #64748b;
      cursor: pointer;
      font: var(--body-2);
      font-weight: 700;
      transition: color 0.2s ease;
    }

    .login-close:hover {
      color: #0f172a;
      transform: translateY(-1px);
    }

    .modal-subtitle {
      margin: -6px 0 18px;
      font: var(--body-2);
      line-height: 1.55;
      color: #64748b;
    }

    .toast-container {
      position: fixed;
      top: 22px;
      right: 22px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      z-index: 12000;
      pointer-events: none;
    }

    .toast {
      min-width: 260px;
      max-width: 360px;
      padding: 14px 16px;
      border-radius: 16px;
      background: rgba(15, 23, 42, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.08);
      color: #fff;
      box-shadow: 0 18px 38px rgba(15, 23, 42, 0.24);
      backdrop-filter: blur(16px);
      display: flex;
      align-items: flex-start;
      gap: 12px;
      transform: translateY(-10px);
      opacity: 0;
      transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
      pointer-events: auto;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast::before {
      content: '';
      width: 10px;
      height: 10px;
      border-radius: 999px;
      margin-top: 6px;
      flex-shrink: 0;
      background: #60a5fa;
    }

    .toast.success::before {
      background: #34d399;
    }

    .toast.error::before {
      background: #f87171;
    }

    .toast.warning::before {
      background: #fbbf24;
    }

    .toast-content {
      flex: 1;
      line-height: 1.5;
      font-size: 14px;
    }

    .toast-close {
      border: none;
      background: transparent;
      color: rgba(255, 255, 255, 0.72);
      cursor: pointer;
      font-size: 15px;
      line-height: 1;
      padding: 0;
      margin-top: 1px;
    }

    .toast-close:hover {
      color: #fff;
    }

    .confirm-mask {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.34);
      backdrop-filter: blur(8px);
      z-index: 100010;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .confirm-box {
      width: min(420px, 100%);
      background: rgba(255, 255, 255, 0.98);
      border: 1px solid rgba(148, 163, 184, 0.16);
      border-radius: 22px;
      box-shadow: 0 24px 54px rgba(15, 23, 42, 0.2);
      padding: 24px 22px 20px;
      animation: softRiseIn 0.22s ease;
    }

    .confirm-box::before {
      content: '';
      display: block;
      width: 42px;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%);
      margin-bottom: 16px;
    }

    .confirm-title {
      font: var(--title-3);
      font-size: 18px;
      color: #111827;
      margin-bottom: 10px;
    }

    .confirm-message {
      font: var(--body-2);
      line-height: 1.6;
      color: #4b5563;
      margin-bottom: 20px;
    }

    .confirm-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }

    .confirm-btn {
      border: none;
      border-radius: 10px;
      padding: 10px 16px;
      font: var(--body-2);
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .confirm-btn.cancel {
      background: #f8fafc;
      color: #374151;
      border: 1px solid rgba(148, 163, 184, 0.2);
    }

    .confirm-btn.cancel:hover {
      background: #eef2f7;
    }

    .confirm-btn.confirm {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      color: #fff;
      box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    }

    .confirm-btn.confirm:hover {
      filter: saturate(1.03);
    }

    /* Processing椤甸潰鏍峰紡 */
    #processingSection {
      background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 22%),
        linear-gradient(180deg, #f4f7fb 0%, #edf3f9 100%);
      display: flex;
      flex-direction: column;
      height: 100vh;
    }

    .chat-wrapper {
      flex: 1;
      overflow-y: auto;
      padding: 6px 0 110px 0;
    }

    .chat-container {
      max-width: 900px;
      margin: 0 auto;
    }

    /* 样式注释 */
    .fixed-input-area {
      background: linear-gradient(180deg, rgba(237, 243, 249, 0.36) 0%, rgba(237, 243, 249, 0.98) 55%);
      padding: 22px 20px 10px 20px;
      border-top: 1px solid rgba(217, 226, 236, 0.86);
      flex-shrink: 0;
    }

    .fixed-input-area .input-container {
      max-width: 900px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(255, 255, 255, 0.96);
      border-radius: 24px;
      padding: 12px 18px;
      box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
      border: 1px solid rgba(217, 226, 236, 0.92);
    }

    .fixed-input-area textarea {
      flex: 1;
      border: none;
      outline: none;
      resize: none;
      font-size: 15px;
      font-family: inherit;
      line-height: 1.5;
      max-height: 120px;
      min-height: 24px;
      overflow-y: auto;
    }

    .fixed-input-area textarea::placeholder {
      color: #9aa0a6;
    }

    .fixed-input-area .action-button-group {
      gap: 10px;
    }

    .fixed-input-area .send-btn:hover {
      background-color: #5d6168;
    }

    .fixed-input-area .send-btn:disabled {
      background-color: #d1d5db;
      cursor: not-allowed;
    }


    .message {
      display: flex;
      margin-bottom: 24px;
      padding: 10px 4px;
    }

    .message-content {
      max-width: 85%;
      line-height: 1.6;
      color: var(--text-primary);
      box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    }

    .user-message {
      justify-content: flex-end;
    }

    .user-message .message-content {
      background: linear-gradient(135deg, rgba(31, 111, 235, 0.12) 0%, rgba(31, 111, 235, 0.05) 100%);
      padding: 12px 18px;
      border-radius: 20px 20px 6px 20px;
      border: 1px solid rgba(31, 111, 235, 0.12);
    }

    .bot-message {
      justify-content: flex-start;
    }

    .bot-message .message-content {
      background: rgba(255, 255, 255, 0.95);
      padding: 12px 18px;
      border-radius: 20px 20px 20px 6px;
      border: 1px solid rgba(217, 226, 236, 0.92);
    }

    @media (max-width: 900px) {
      .main-content {
        padding: 14px;
      }

      .top-bar {
        padding: 14px 16px 12px;
      }

      .top-bar h1 {
        font-size: 26px;
      }

      .welcome {
        font-size: 32px;
        margin-top: 44px;
      }

      .toolbar {
        padding: 8px 16px 18px;
      }

      .input-area {
        padding: 16px;
      }

      .icon-group {
        width: 100%;
        flex-wrap: wrap;
      }

      .link-btn,
      .file-btn {
        width: 100%;
        justify-content: center;
      }
    }

    @media (max-width: 640px) {
      .sidebar {
        width: 74px;
        padding: 20px 12px;
        align-items: center;
      }

      .sidebar-item {
        justify-content: center;
        padding: 10px;
      }

      .sidebar-item span {
        display: none;
      }

      .top-left,
      .top-right {
        width: 100%;
      }

      .top-right {
        justify-content: space-between;
      }

      .welcome {
        font-size: 28px;
      }
    }

    /* 澶勭悊杩囩▼鏍峰紡 */
    /* 閳光偓閳光偓 濞翠礁绱℃潻鎰攽杩囩▼ 閳光偓閳光偓 */
    .process-stream-wrap {
      display: flex;
      flex-direction: column;
      overflow: hidden;
      min-height: 100px;
      max-height: 300px;
      margin-bottom: 6px;
      position: relative;
      transition: max-height 0.35s cubic-bezier(.4, 0, .2, 1),
        opacity 0.25s ease;
    }

    .process-stream-wrap.collapsed {
      max-height: 0;
      min-height: 0;
      opacity: 0;
      margin-bottom: 0;
    }

    .process-stream-inner {
      display: flex;
      flex-direction: column;
      flex: 1;
      min-height: 0;
      max-height: 220px;
      overflow-x: hidden;
      overflow-y: auto;
      transition: transform 0.18s ease;
    }

    .process-time-display {
      font-size: 12px;
      color: #666;
      text-align: right;
      padding: 4px 8px;
      background: rgba(240, 242, 245, 0.8);
      border-radius: 4px;
      margin-bottom: 8px;
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
      .process-time-display {
        font-size: 11px;
        padding: 3px 6px;
        margin-bottom: 6px;
      }
    }

    @media (max-width: 480px) {
      .process-time-display {
        font-size: 10px;
        padding: 2px 4px;
        margin-bottom: 4px;
      }
    }

    .stream-line {
      height: 28px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 2px;
      font-size: 13px;
      color: #aaa;
      flex-shrink: 0;
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .stream-line.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .stream-line.done {
      color: #555;
    }

    .stream-dot {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: #d0d0d0;
      flex-shrink: 0;
      transition: background 0.2s;
    }

    .stream-line.done .stream-dot {
      background: #444;
    }

    .stream-line.current .stream-dot {
      background: #888;
      animation: dotBlink 0.9s ease-in-out infinite;
    }

    @keyframes dotBlink {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: 0.2;
      }
    }

    /* 瀹屾垚閺€鎯版崳閺?*/
    .finish-bar {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      color: #555;
      padding: 0 2px;
      margin-bottom: 10px;
      cursor: default;
      user-select: none;
    }

    .finish-bar-check {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #444;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .finish-bar-check::after {
      content: '';
      display: block;
      width: 7px;
      height: 4px;
      border-left: 1.5px solid #fff;
      border-bottom: 1.5px solid #fff;
      transform: rotate(-45deg) translateY(-1px);
    }

    .finish-bar-text {
      flex: 1;
      color: #444;
      font-weight: 500;
    }

    .finish-bar-toggle {
      color: #999;
      font-size: 12px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      transition: color 0.15s;
    }

    .finish-bar-toggle:hover {
      color: #555;
    }

    .finish-bar-toggle svg {
      transition: transform 0.2s;
    }

    .finish-bar-toggle.open svg {
      transform: rotate(0deg);
    }

    .finish-bar-text.error {
      color: #dc3545;
    }

    .finish-bar-check.error {
      background-color: #dc3545;
    }

    /* 失败/超时后「重跑任务」：与主界面蓝灰系一致，弱化警示黄 */
    .rerun-button {
      margin-top: 12px;
      padding: 8px 16px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      letter-spacing: 0.02em;
      color: #2563eb;
      background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
      border: 1px solid #bfdbfe;
      border-radius: 10px;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
      cursor: pointer;
      transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

    .rerun-button:hover {
      color: #1d4ed8;
      background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
      border-color: #93c5fd;
      box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    }

    .rerun-button:active {
      transform: translateY(1px);
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    }

    .rerun-button:focus-visible {
      outline: 2px solid #93c5fd;
      outline-offset: 2px;
    }

    .rerun-button img {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      opacity: 0.92;
      filter: none;
    }

    /* 填表完成：结果文件展示区 */
    .result-output-block {
      margin-top: 14px;
      padding: 14px 16px;
      border-radius: 12px;
      background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
      border: 1px solid #e2e8f0;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .result-section-title {
      font-size: 13px;
      font-weight: 600;
      color: #475569;
      letter-spacing: 0.06em;
      margin-bottom: 12px;
    }

    .result-file-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .result-file-primary {
      display: flex;
      align-items: center;
      gap: 14px;
      min-width: 0;
      flex: 1 1 220px;
      padding: 12px 14px;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
      box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    }

    .result-file-primary .file-icon-wrapper {
      flex-shrink: 0;
    }

    .result-file-meta {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
    }

    .result-file-title {
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary, #162130);
      word-break: break-all;
      line-height: 1.35;
    }

    .result-file-sub {
      font-size: 12px;
      color: #64748b;
    }

    .result-file-hint {
      font-size: 11px;
      color: #94a3b8;
      line-height: 1.45;
      max-width: 420px;
    }

    /* 处理结果卡片：隐藏“另存为/下载提示”冗余文案（避免占位太显眼） */
    .result-output-block .result-file-hint {
      display: none;
    }

    /* 清空缓存弹窗：更美观的排版与字体层级（不影响功能） */
    #cacheMaskLayer .template-popup {
      max-width: 920px;
    }

    #cacheMaskLayer .template-list-section {
      padding: 26px !important;
    }

    /* 清空缓存弹窗：明确使用系统标准 UI 字体（更“默认/干净”） */
    #cacheMaskLayer,
    #cacheMaskLayer * {
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Microsoft YaHei", sans-serif;
    }

    #cacheMaskLayer .popup-head {
      margin-bottom: 14px;
    }

    #cacheMaskLayer p {
      color: #475569;
      line-height: 1.8;
      font-size: 14px;
      margin: 8px 0 18px;
      font-weight: 400;
    }

    #cacheMaskLayer h3 {
      color: #0f172a;
      font-weight: 700;
    }

    #cacheMaskLayer .template-popup {
      border-radius: 22px;
      box-shadow: 0 34px 90px rgba(15, 23, 42, 0.18);
    }

    #cacheMaskLayer #cacheResult {
      color: #0f172a;
    }

    #cacheMaskLayer .popup-head h3 {
      font: var(--title-3);
      font-size: 18px;
      letter-spacing: 0.01em;
    }

    #cacheMaskLayer .popup-close {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      background: rgba(15, 23, 42, 0.04);
      color: #64748b;
      transition: background 0.15s ease, color 0.15s ease;
      user-select: none;
    }

    #cacheMaskLayer .popup-close:hover {
      background: rgba(15, 23, 42, 0.08);
      color: #0f172a;
    }

    #cacheMaskLayer #confirmClearCache {
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
      border-radius: 12px !important;
      padding: 10px 18px !important;
      font-weight: 700 !important;
      box-shadow: 0 10px 26px rgba(37, 99, 235, 0.22) !important;
    }

    #cacheMaskLayer #confirmClearCache:hover {
      filter: brightness(1.02);
      box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28) !important;
    }

    #cacheMaskLayer #cacheResult {
      border-radius: 14px !important;
      border: 1px solid rgba(148, 163, 184, 0.35) !important;
      background: rgba(248, 250, 252, 0.85) !important;
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
      line-height: 1.6 !important;
      padding: 14px 14px !important;
      font-size: 13px !important;
      color: #0f172a;
    }

    #cacheMaskLayer #cacheResult .ok,
    #cacheMaskLayer #cacheResult .success {
      color: #16a34a;
    }

    #cacheMaskLayer #cacheResult .warn,
    #cacheMaskLayer #cacheResult .warning {
      color: #d97706;
    }

    #cacheMaskLayer #cacheResult .error,
    #cacheMaskLayer #cacheResult .fail {
      color: #dc2626;
    }

    .result-file-actions {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 8px;
      flex: 0 0 auto;
      align-self: center;
    }

    .btn-result-icon {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(148, 163, 184, 0.2);
      background: rgba(255, 255, 255, 0.8);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .btn-result-icon:hover {
      background: rgba(255, 255, 255, 1);
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
      border-color: rgba(148, 163, 184, 0.4);
    }

    .btn-result-saveas {
      padding: 8px 16px;
      font-size: 13px;
      font-weight: 600;
      font-family: inherit;
      color: #fff;
      background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
      border: none;
      border-radius: 10px;
      cursor: pointer;
      box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
      transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .btn-result-saveas:hover {
      box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    }

    .btn-result-saveas:active {
      transform: translateY(1px);
    }

    .btn-result-download {
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      color: #334155;
      background: #fff;
      border: 1px solid #cbd5e1;
      border-radius: 10px;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease;
    }

    .btn-result-download:hover {
      border-color: #94a3b8;
      background: #f8fafc;
    }

    .btn-result-preview {
      padding: 8px 12px;
      font-size: 13px;
      font-weight: 500;
      font-family: inherit;
      color: #64748b;
      background: transparent;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .btn-result-preview:hover {
      color: #2563eb;
    }

    /* 样式注释 */
    .process-log {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease;
    }

    .process-log.open {
      max-height: 200px;
      overflow-y: auto;
    }

    .process-log-line {
      display: flex;
      align-items: center;
      gap: 10px;
      height: 26px;
      font-size: 12px;
      color: #666;
      padding: 0 2px;
    }

    .process-log-line .stream-dot {
      background: #bbb;
    }

    .finish-bar .expand-icon {
      font-size: 18px;
      transition: transform 0.2s;
      color: var(--text-secondary);
    }

    .expand-icon.rot {
      transform: rotate(180deg);
    }

    /* 閸愬懎顔愬尯鍩熷垏鎹㈠姩鐢?*/
    .content-section {
      position: relative;
      width: 100%;
      min-height: 100%;
      padding: 20px 24px;
      /* 样式注释 */
      transition: opacity 0.3s ease;
    }

    .content-section.hidden {
      opacity: 0;
      pointer-events: none;
      position: absolute;
      top: 0;
      left: 0;
      /* 样式注释 */
      transform: none;
    }

    .content-section.visible {
      opacity: 1;
      pointer-events: auto;
      transform: none;
    }

    /* 杩囨浮鐢婚潰鏍峰紡 */
    .transition-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(255, 255, 255, 0.95);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 99999;
      transition: opacity 0.3s ease;
    }

    .transition-content {
      text-align: center;
      padding: 40px;
      border-radius: 16px;
      background-color: #ffffff;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      max-width: 400px;
      width: 90%;
      animation: fadeIn 1s ease forwards;
    }

    .transition-logo {
      margin-bottom: 24px;
      display: flex;
      justify-content: center;
    }

    .transition-logo img {
      width: 60px;
      height: 60px;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      animation: logoExpand 1.5s ease forwards;
    }

    .transition-text {
      font-size: 18px;
      font-weight: 600;
      color: #333333;
      margin-bottom: 24px;
      animation: fadeIn 1s ease forwards;
    }

    .transition-loader {
      width: 40px;
      height: 40px;
      border: 3px solid #f3f3f3;
      border-top: 3px solid #333333;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }

      100% {
        transform: rotate(360deg);
      }
    }
