    .llx-paper-detail-page,
    .llx-paper-detail-page * {
      box-sizing: border-box;
    }

    .llx-paper-detail-page button,
    .llx-paper-detail-page input,
    .llx-paper-detail-page select,
    .llx-paper-detail-page textarea {
      font-family: inherit;
    }

    .llx-paper-detail-page button {
      cursor: pointer;
    }

    .llx-paper-detail-page .llx-breadcrumb {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13px;
      color: #6b7280;
      margin-bottom: 12px;
    }

    .llx-paper-detail-page .llx-breadcrumb a {
      color: #6b7280;
      text-decoration: none;
    }

    .llx-paper-detail-page .llx-breadcrumb a:hover {
      color: #1677ff;
    }

    .llx-paper-detail-page .llx-hero {
      background: #fff;
      border: 1px solid #e7ebf2;
      border-radius: 14px;
      padding: 18px 22px 16px;
      box-shadow: none;
      margin-bottom: 14px;
    }

    .llx-paper-detail-page .llx-title-wrap {
      min-width: 0;
    }

    .llx-paper-detail-page .llx-status-line {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px;
    }

    .llx-paper-detail-page .llx-status-tag {
      height: 26px;
      padding: 0 10px;
      border-radius: 999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
    }

    .llx-paper-detail-page .llx-status-done {
      color: #0f8a45;
      background: #eaf8ef;
      border: 1px solid #c9efd5;
    }

    .llx-paper-detail-page .llx-status-private {
      color: #7c4a03;
      background: #fff7e6;
      border: 1px solid #ffe1a6;
    }

    .llx-paper-detail-page .llx-status-owner {
      color: #2f54eb;
      background: #eef3ff;
      border: 1px solid #d6e4ff;
    }

    .llx-paper-detail-page .llx-paper-title {
      margin: 0;
      font-size: 24px;
      line-height: 1.35;
      color: #111827;
      font-weight: 800;
      text-align: center;
      letter-spacing: 0.2px;
    }


    .llx-paper-detail-page .llx-title-meta {
      margin-top: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 10px 18px;
      color: #6b7280;
      font-size: 13px;
    }

    .llx-paper-detail-page .llx-title-meta-item {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      white-space: nowrap;
    }

    .llx-paper-detail-page .llx-title-meta-label {
      color: #8a94a6;
    }

    .llx-paper-detail-page .llx-title-meta-value {
      color: #4b5563;
      font-weight: 600;
    }

    .llx-paper-detail-page .llx-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 280px;
      gap: 14px;
      align-items: start;
    }

    .llx-paper-detail-page .llx-main-col {
      min-width: 0;
    }

    .llx-paper-detail-page .llx-side-col {
      position: sticky;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .llx-paper-detail-page .llx-card {
      background: #fff;
      border: 1px solid #e7ebf2;
      border-radius: 14px;
      box-shadow: none;
      overflow: hidden;
    }

    .llx-paper-detail-page .llx-card-head {
      padding: 14px 16px;
      border-bottom: 1px solid #edf1f7;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .llx-paper-detail-page .llx-card-title {
      margin: 0;
      font-size: 16px;
      color: #111827;
      font-weight: 800;
    }

    .llx-paper-detail-page .llx-card-subtitle {
      font-size: 12px;
      color: #8a94a6;
      white-space: nowrap;
    }

    .llx-paper-detail-page .llx-card-body {
      padding: 16px;
    }

    .llx-paper-detail-page .llx-empty-card {
      max-width: 760px;
      margin: 80px auto;
      text-align: center;
    }

    .llx-paper-detail-page .llx-empty-title {
      font-size: 20px;
      line-height: 1.5;
      color: #111827;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .llx-paper-detail-page .llx-empty-text {
      color: #8a94a6;
      font-size: 13px;
      line-height: 1.7;
    }

    .llx-paper-detail-page .llx-empty-card .base-btn {
      margin-top: 18px;
    }

    .llx-paper-detail-page .llx-empty-card-inline {
      min-height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #8a94a6;
      background: #fff;
      border: 1px solid #e7ebf2;
      border-radius: 14px;
      font-size: 14px;
    }

    .llx-paper-detail-page .llx-preview-panel {
      background: #fff;
      border: 1px solid #e7ebf2;
      border-radius: 14px;
      box-shadow: none;
      overflow: hidden;
    }

    .llx-paper-detail-page .llx-preview-toolbar {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      background: #fff;
      border-bottom: 1px solid #e7ebf2;
      padding: 0 18px;
    }

    .llx-paper-detail-page .llx-preview-tabs {
      display: inline-flex;
      align-items: center;
      gap: 28px;
      align-self: stretch;
    }

    .llx-paper-detail-page .llx-preview-tab {
      height: 58px;
      border: 0;
      border-bottom: 2px solid transparent;
      border-radius: 0;
      background: transparent;
      color: #374151;
      font-size: 14px;
      padding: 0;
      font-weight: 600;
    }

    .llx-paper-detail-page .llx-preview-tab-active {
      color: #1677ff;
      border-bottom-color: #1677ff;
    }

    .llx-paper-detail-page .llx-preview-tools {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .llx-paper-detail-page .llx-answer-toggle {
      cursor: pointer;
      user-select: none;
      gap: 6px;
    }

    .llx-paper-detail-page .llx-answer-checkbox {
      width: 14px;
      height: 14px;
      margin: 0;
      accent-color: #1677ff;
      flex: 0 0 auto;
    }

    .llx-paper-detail-page .llx-paper-answer-section-preview {
      scroll-margin-top: 90px;
    }

    .llx-paper-detail-page .llx-paper-canvas-wrap {
      background: #fff;
      padding: 0;
      overflow-x: hidden;
    }

    .llx-paper-detail-page .llx-paper-canvas {
      width: min(840px, 100%);
      max-width: 840px;
      min-height: 1188px;
      margin: 0 auto;
      background: #fff;
      color: #111827;
      box-shadow: none;
      padding: 56px 64px 72px;
      position: relative;
    }

    .llx-paper-detail-page .llx-binding-line {
      position: absolute;
      left: 24px;
      top: 56px;
      bottom: 72px;
      width: 26px;
      border-left: 1px dashed #9ca3af;
      color: #9ca3af;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .llx-paper-detail-page .llx-binding-text {
      display: flex;
      flex-direction: column;
      gap: 18px;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    .llx-paper-detail-page .llx-paper-head {
      text-align: center;
      border-bottom: 1px solid #e5e7eb;
      padding-bottom: 18px;
      margin-bottom: 22px;
    }

    .llx-paper-detail-page .llx-paper-head h2 {
      margin: 0 0 12px;
      font-size: 24px;
      line-height: 1.45;
      color: #111827;
    }

    .llx-paper-detail-page .llx-student-line {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 18px;
      color: #4b5563;
      font-size: 14px;
    }

    .llx-paper-detail-page .llx-paper-meta-line {
      margin-top: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      color: #6b7280;
      font-size: 13px;
    }

    .llx-paper-detail-page .llx-notice-box {
      background: #fafafa;
      border: 1px solid #eceff3;
      border-radius: 12px;
      padding: 12px 14px;
      color: #4b5563;
      font-size: 14px;
      line-height: 1.8;
      margin-bottom: 22px;
    }

    .llx-paper-detail-page .llx-question-section {
      margin-top: 22px;
    }

    .llx-paper-detail-page .llx-question-title {
      font-size: 18px;
      line-height: 1.5;
      font-weight: 800;
      margin: 0 0 12px;
      color: #111827;
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      border-bottom: 1px solid #eef2f7;
      padding-bottom: 8px;
    }

    .llx-paper-detail-page .llx-question-total {
      color: #6b7280;
      font-size: 13px;
      font-weight: 500;
      white-space: nowrap;
    }

    .llx-paper-detail-page .llx-question-item {
      margin: 14px 0 18px;
      font-size: 15px;
      line-height: 1.9;
      color: #111827;
    }

    .llx-paper-detail-page .llx-question-stem {
      display: flex;
      gap: 6px;
    }

    .llx-paper-detail-page .llx-question-no {
      font-weight: 700;
      flex: 0 0 auto;
    }

    .llx-paper-detail-page .llx-question-score {
      color: #6b7280;
      font-size: 13px;
      margin-left: 4px;
    }

    .llx-paper-detail-page .llx-options {
      margin-top: 4px;
      padding-left: 26px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px 18px;
      color: #374151;
    }

    .llx-paper-detail-page .llx-answer-line {
      min-height: 34px;
      border-bottom: 1px solid #d9dfe8;
      margin: 8px 0 0 26px;
    }

    .llx-paper-detail-page .llx-side-primary-actions {
      display: grid;
      grid-template-columns: 1fr;
      gap: 8px;
    }

    .llx-paper-detail-page .llx-side-primary-actions .base-btn {
      font-size: 13px;
    }

    .llx-paper-detail-page .llx-action-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
    }

    .llx-paper-detail-page .llx-action-grid .base-btn {
      flex: 1 1 calc((100% - 12px) / 3);
      min-width: 72px;
      font-size: 12px;
    }

    .llx-paper-detail-page .llx-operation-card .llx-card-body {
      padding: 20px 16px;
    }


    .llx-paper-detail-page .llx-operation-card .llx-action-grid {
      margin-top: 20px;
    }

    .llx-paper-detail-page .llx-action-note {
      margin: 12px 0 0;
      color: #8a94a6;
      font-size: 12px;
      line-height: 1.7;
    }

    .llx-paper-detail-page .llx-info-list {
      display: grid;
      gap: 12px;
    }

    .llx-paper-detail-page .llx-info-row {
      display: grid;
      grid-template-columns: 86px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
      font-size: 14px;
      line-height: 1.55;
    }

    .llx-paper-detail-page .llx-info-label {
      color: #8a94a6;
    }

    .llx-paper-detail-page .llx-info-value {
      color: #374151;
      min-width: 0;
    }

    .llx-paper-detail-page .llx-tag-list {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .llx-paper-detail-page .llx-tag {
      display: inline-flex;
      align-items: center;
      height: 24px;
      padding: 0 8px;
      border-radius: 8px;
      background: #f3f6fb;
      color: #475569;
      font-size: 12px;
      border: 1px solid #e5eaf2;
      white-space: nowrap;
    }

    .llx-paper-detail-page .llx-stat-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
    }

    .llx-paper-detail-page .llx-stat-item {
      background: #f8fafc;
      border: 1px solid #edf1f7;
      border-radius: 14px;
      padding: 12px 8px;
      text-align: center;
    }

    .llx-paper-detail-page .llx-stat-num {
      font-size: 20px;
      font-weight: 800;
      color: #111827;
      line-height: 1.2;
    }

    .llx-paper-detail-page .llx-stat-label {
      margin-top: 5px;
      font-size: 12px;
      color: #8a94a6;
    }

    .llx-paper-detail-page .llx-structure-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .llx-paper-detail-page .llx-structure-item {
      border: 1px solid #edf1f7;
      background: #fbfcfe;
      border-radius: 14px;
      padding: 12px;
    }

    .llx-paper-detail-page .llx-structure-top {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      font-size: 14px;
      color: #111827;
      font-weight: 700;
    }

    .llx-paper-detail-page .llx-structure-sub {
      margin-top: 7px;
      font-size: 12px;
      color: #8a94a6;
      line-height: 1.6;
    }

    .llx-paper-detail-page .llx-process-box {
      background: linear-gradient(135deg, #f2f7ff, #f8fbff);
      border: 1px solid #dbeafe;
      border-radius: 16px;
      padding: 14px;
    }

    .llx-paper-detail-page .llx-process-title {
      margin: 0 0 8px;
      color: #1d4ed8;
      font-size: 14px;
      font-weight: 800;
    }

    .llx-paper-detail-page .llx-process-text {
      margin: 0;
      color: #64748b;
      font-size: 13px;
      line-height: 1.7;
    }

    .llx-paper-detail-page .llx-related-list {
      display: grid;
      gap: 10px;
    }

    .llx-paper-detail-page .llx-related-item {
      padding: 12px 0;
    }

    .llx-paper-detail-page .llx-related-title {
      display: block;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.5;
      color: #111827;
      margin-bottom: 7px;
      transition: color 0.18s ease;
    }

    .llx-paper-detail-page .llx-related-title:hover {
      color: var(--blue);
    }

    .llx-paper-detail-page .llx-related-meta {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
      font-size: 12px;
      color: #8a94a6;
    }

    .llx-paper-detail-page .llx-bottom-safe {
      height: 24px;
    }

    @media (max-width: 1180px) {
      .llx-paper-detail-page .llx-layout {
        grid-template-columns: 1fr;
      }

      .llx-paper-detail-page .llx-side-col {
        position: static;
      }
    }

    @media (max-width: 860px) {
      .llx-paper-detail-page .llx-paper-title {
        font-size: 22px;
      }

      .llx-paper-detail-page .llx-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
      }

      .llx-paper-detail-page .llx-preview-tools {
        justify-content: flex-start;
      }

      .llx-paper-detail-page .llx-paper-canvas-wrap {
        padding: 0;
        overflow-x: auto;
      }

      .llx-paper-detail-page .llx-paper-canvas {
        width: 100%;
        max-width: 100%;
        padding: 24px 0 32px;
      }
    }


    /* 引用 edit.css 后的详情页覆盖：只在 .llx-paper-detail-page 作用域内生效 */
    .llx-paper-detail-page .canvas-wrap.llx-paper-canvas-wrap {
      height: auto;
      min-height: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: #fff;
      box-shadow: none;
      overflow-y: visible;
      overflow-x: auto;
      scrollbar-gutter: auto;
    }

    .llx-paper-detail-page .paper-sheet.llx-paper-canvas {
      width: 100%;
      max-width: 100%;
      min-height: 0;
      margin: 0;
      padding: 24px 0 32px;
      background: #fff;
      border: 0;
      border-radius: 0;
      box-shadow: none;
    }

    .llx-paper-detail-page .paper-body.llx-paper-head {
      padding: 0;
      border-bottom: 1px solid #e5e7eb;
    }

    .llx-paper-detail-page .paper-title {
      margin: 0 0 12px;
    }

    .llx-paper-detail-page .student-line.llx-student-line,
    .llx-paper-detail-page .paper-meta-line.llx-paper-meta-line {
      display: flex;
    }

    .llx-paper-detail-page .notice-box.llx-notice-box {
      margin-top: 18px;
      margin-bottom: 22px;
      background: transparent;
      border: 0;
      padding: 0 2px;
      color: #334155;
      font-size: 13px;
      line-height: 1.75;
    }

    .llx-paper-detail-page .paper-section.llx-question-section {
      margin-top: 34px;
    }

    .llx-paper-detail-page .paper-question.llx-question-item,
    .llx-paper-detail-page .paper-question.llx-question-item:hover,
    .llx-paper-detail-page .paper-question.llx-question-item.active {
      border-color: transparent;
      background: transparent;
      box-shadow: none;
    }

    .llx-paper-detail-page .paper-options.llx-options {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px 18px;
      margin-top: 8px;
      padding-left: 26px;
    }

    .llx-paper-detail-page .answer-area.llx-answer-line.show {
      display: block;
      min-height: 34px;
      margin: 8px 0 0 26px;
      border: 0;
      border-bottom: 1px solid #d9dfe8;
      border-radius: 0;
      background: transparent;
    }

    @media (max-width: 860px) {
      .llx-paper-detail-page .paper-sheet.llx-paper-canvas {
        width: 100%;
        padding: 24px 0 32px;
      }
    }
  

    /* 详情页试卷内容区：只复用编辑/预览页的试卷 DOM 与样式，去掉编辑态交互效果 */
    .llx-paper-detail-page .canvas-wrap.llx-paper-canvas-wrap {
      height: auto;
      min-height: 0;
      padding: 0;
      border: 0;
      border-radius: 0;
      background: #fff;
      box-shadow: none;
      overflow-y: visible;
      overflow-x: auto;
      scrollbar-gutter: auto;
    }

    .llx-paper-detail-page .paper-sheet {
      flex: 0 0 auto;
      width: 100%;
      min-height: 0;
      margin: 0;
      padding: 24px 0 32px;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      --paper-layout-min-height: 0;
    }

    .llx-paper-detail-page .editable,
    .llx-paper-detail-page .editable:hover,
    .llx-paper-detail-page .editable:focus,
    .llx-paper-detail-page .text-block,
    .llx-paper-detail-page .text-block:hover,
    .llx-paper-detail-page .text-block.active,
    .llx-paper-detail-page .paper-meta-line,
    .llx-paper-detail-page .notice-box,
    .llx-paper-detail-page .paper-question,
    .llx-paper-detail-page .paper-question:hover,
    .llx-paper-detail-page .paper-question.active,
    .llx-paper-detail-page .question-score,
    .llx-paper-detail-page .special-seal-line,
    .llx-paper-detail-page .special-seal-line:hover,
    .llx-paper-detail-page .special-seal-line.active,
    .llx-paper-detail-page .seal-student-info,
    .llx-paper-detail-page .seal-student-info:hover,
    .llx-paper-detail-page .seal-student-info:focus {
      background: transparent;
      box-shadow: none;
      outline: none;
    }

    .llx-paper-detail-page .paper-question,
    .llx-paper-detail-page .paper-question:hover,
    .llx-paper-detail-page .paper-question.active {
      border-color: transparent;
    }

    .llx-paper-detail-page .special-seal-line,
    .llx-paper-detail-page .seal-student-info {
      cursor: default;
      pointer-events: none;
    }

    .llx-paper-detail-page .answer-area.show {
      display: block;
    }

    @media (max-width: 860px) {
      .llx-paper-detail-page .canvas-wrap.llx-paper-canvas-wrap {
        padding: 0;
        overflow-x: auto;
      }

      .llx-paper-detail-page .paper-sheet {
        width: 100%;
      }
    }


    /* 详情页主区 Tab 内容：知识点 / 题型结构 */
    .llx-paper-detail-page .llx-tab-panels {
      background: #fff;
    }

    .llx-paper-detail-page .llx-tab-panel {
      display: none;
    }

    .llx-paper-detail-page .llx-tab-panel-active {
      display: block;
    }

    .llx-paper-detail-page .llx-preview-panel:not([data-active-tab="preview"]) .llx-preview-tools {
      display: none;
    }

    .llx-paper-detail-page .llx-tab-content-card {
      padding: 22px;
      background: #fff;
    }

    .llx-paper-detail-page .llx-tab-overview {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 14px;
    }

    .llx-paper-detail-page .llx-overview-item {
      min-height: 74px;
      padding: 14px 12px;
      border-radius: 14px;
      border: 1px solid #e7ebf2;
      background: #fff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .llx-paper-detail-page .llx-overview-num {
      font-size: 24px;
      line-height: 1;
      font-weight: 900;
      color: #1677ff;
    }

    .llx-paper-detail-page .llx-overview-label {
      color: #6b7280;
      font-size: 13px;
      font-weight: 700;
    }

    .llx-paper-detail-page .llx-data-table-wrap {
      overflow-x: auto;
      background: #fff;
      border: 1px solid #e7ebf2;
      border-radius: 14px;
    }

    .llx-paper-detail-page .llx-data-table {
      width: 100%;
      min-width: 620px;
      border-collapse: collapse;
      table-layout: fixed;
      background: #fff;
      color: #374151;
      font-size: 14px;
    }

    .llx-paper-detail-page .llx-data-table th,
    .llx-paper-detail-page .llx-data-table td {
      height: 54px;
      padding: 12px 16px;
      border-right: 1px solid #eef1f5;
      border-bottom: 1px solid #eef1f5;
      text-align: center;
      vertical-align: middle;
      line-height: 1.6;
      word-break: break-word;
    }

    .llx-paper-detail-page .llx-data-table th:first-child,
    .llx-paper-detail-page .llx-data-table td:first-child {
      width: 42%;
    }

    .llx-paper-detail-page .llx-structure-table th:first-child,
    .llx-paper-detail-page .llx-structure-table td:first-child {
      width: 50%;
    }

    .llx-paper-detail-page .llx-data-table th {
      height: 46px;
      background: #fafbfc;
      color: #111827;
      font-weight: 800;
    }

    .llx-paper-detail-page .llx-data-table tr:last-child td {
      border-bottom: 0;
    }

    .llx-paper-detail-page .llx-data-table th:last-child,
    .llx-paper-detail-page .llx-data-table td:last-child {
      border-right: 0;
    }

    @media (max-width: 640px) {
      .llx-paper-detail-page .llx-tab-content-card {
        padding: 12px;
      }

      .llx-paper-detail-page .llx-tab-overview {
        grid-template-columns: 1fr;
      }

      .llx-paper-detail-page .llx-data-table {
        min-width: 560px;
      }
    }
