.extractor-page { --extractor-ink: #1d3430; --extractor-muted: #76857f; --extractor-line: #dfe8e3; --extractor-soft: #f6f9f7; }
.extractor-main { width: min(1320px, calc(100% - 64px)); margin: 0 auto; }
.extractor-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 38px 2px 28px; border-bottom: 1px solid #d9e3de; }
.extractor-hero .eyebrow { margin: 0 0 11px; }
.extractor-hero h1 { color: var(--extractor-ink); font-size: 33px; line-height: 1.2; font-weight: 660; }
.extractor-hero .intro-description { max-width: 610px; margin-top: 9px; }
.extractor-hero .back-link { gap: 7px; }
.back-link span { color: var(--orange); font-size: 14px; }
.extractor-layout { display: grid; grid-template-columns: minmax(280px, 330px) minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px 0 64px; }
.search-panel, .results-panel { min-width: 0; border: 1px solid #d9e3de; border-radius: 6px; background: #fff; }
.search-panel { padding: 0 17px 17px; }
.panel-heading { min-height: 67px; display: flex; align-items: center; justify-content: space-between; margin: 0 -17px; padding: 12px 17px; border-bottom: 1px solid #e8efeb; }
.panel-heading h2, .results-heading h2 { margin: 0; color: #1e3732; font-size: 17px; line-height: 1.35; font-weight: 650; }
.section-kicker { margin-bottom: 5px; color: #82908a; font-size: 9px; font-weight: 700; letter-spacing: 1px; }
#search-form { display: grid; gap: 14px; padding-top: 16px; }
.field-block { display: grid; gap: 6px; }
.accounts-input { width: 100%; min-height: 112px; display: block; resize: vertical; padding: 9px 10px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: var(--extractor-ink); font: 10px/1.65 "Cascadia Mono", Consolas, monospace; }
.accounts-input:focus { border-color: #8aafa0; box-shadow: 0 0 0 2px #e4efe9; }
.accounts-input::placeholder { color: #a0aca6; }
.input-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: -8px; color: #98a39e; font-size: 9px; }
.field-label, .filter-fieldset legend { color: #566a61; font-size: 11px; font-weight: 650; }
.input-prefix, .input-suffix { min-height: 37px; display: flex; align-items: center; border: 1px solid #d8e2dd; border-radius: 4px; background: #fbfdfb; }
.input-prefix:focus-within, .input-suffix:focus-within, .range-fields input:focus, #links-input:focus { border-color: #8aafa0; box-shadow: 0 0 0 2px #e4efe9; outline: 0; }
.input-prefix > span { padding-left: 10px; color: #6a9581; font-size: 17px; }
.input-prefix input, .input-suffix input { width: 100%; min-width: 0; height: 35px; border: 0; outline: 0; background: transparent; color: var(--extractor-ink); font: inherit; font-size: 12px; }
.input-prefix input { padding: 0 9px 0 6px; }
.input-suffix input { padding: 0 9px; }
.input-suffix > span { padding: 0 10px; color: #87948e; font-size: 10px; white-space: nowrap; }
.field-hint, .range-fields label > span { color: #909d97; font-size: 9px; }
.filter-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-fieldset legend { margin-bottom: 7px; }
.range-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.range-fields label { min-width: 0; display: grid; gap: 5px; }
.range-fields input { width: 100%; min-width: 0; height: 35px; padding: 0 8px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: var(--extractor-ink); font: inherit; font-size: 10px; }
.range-fields input::placeholder { color: #a0aaa5; }
.sort-select { width: 100%; height: 35px; padding: 0 8px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: var(--extractor-ink); font: inherit; font-size: 10px; }
.sort-select:focus { border-color: #8aafa0; box-shadow: 0 0 0 2px #e4efe9; }
.source-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px; border: 1px solid #e5ece7; border-radius: 4px; background: #f8faf8; color: #77867f; font-size: 9px; line-height: 1.6; }
.source-note > span { width: 14px; height: 14px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #a9bcb0; border-radius: 50%; color: #537964; font-size: 9px; font-weight: 700; }
.button { min-height: 35px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid #d3e0d8; border-radius: 4px; background: #fbfdfb; color: #476158; font-size: 10px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.button:hover:not(:disabled) { border-color: #9eb9ab; background: #f4f9f5; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button[hidden] { display: none; }
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { min-height: 39px; border-color: var(--forest); background: var(--forest); color: #fff; }
.button.primary:hover:not(:disabled) { border-color: #2a6457; background: #2a6457; }
.search-button, .import-button { width: 100%; }
.search-button.is-loading { cursor: progress; }
.search-button.is-loading svg { animation: rotate 1.1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.manual-import { margin-top: 19px; padding-top: 16px; border-top: 1px solid #e8efeb; }
.manual-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.manual-heading h3 { margin: 0; color: #314b41; font-size: 13px; font-weight: 650; }
.manual-mark { color: #c57856; font-size: 17px; }
#links-input { width: 100%; min-height: 111px; display: block; resize: vertical; padding: 9px 10px; border: 1px solid #d8e2dd; border-radius: 4px; outline: 0; background: #fbfdfb; color: var(--extractor-ink); font: 10px/1.6 "Cascadia Mono", Consolas, monospace; }
#links-input::placeholder { color: #a0aca6; }
.manual-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; color: #98a39e; font-size: 9px; }
.text-button { padding: 3px 0; border: 0; background: transparent; color: #6d8d80; font-size: 9px; cursor: pointer; }
.text-button:hover { color: var(--forest); }
.button.secondary { width: 100%; min-height: 34px; }
.official-import { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e8efeb; }
.official-description { margin: -3px 0 10px; color: #8b9891; font-size: 9px; line-height: 1.6; }
.file-picker { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px; border: 1px dashed #c8d8ce; border-radius: 4px; background: #fbfdfb; color: #6f8278; font-size: 10px; cursor: pointer; }
.file-picker:hover { border-color: #8aafa0; background: #f7faf8; }
.file-picker span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-picker::after { content: "选择"; flex: 0 0 auto; color: #537964; font-size: 9px; font-weight: 650; }
.file-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.official-import .import-button { margin-top: 8px; }
.results-panel { overflow: hidden; }
.results-heading { min-height: 81px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; }
.results-heading h2 { font-size: 18px; }
.results-heading p { margin: 4px 0 0; color: #84918b; font-size: 10px; line-height: 1.5; }
.result-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.export-xlsx { border-color: #d1dfd7; color: #436b56; }
.result-summary { min-height: 40px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-top: 1px solid #e8efeb; border-bottom: 1px solid #e8efeb; background: #fbfdfb; color: #788780; font-size: 10px; }
.summary-indicator { display: inline-flex; align-items: center; gap: 6px; color: #405f4d; font-weight: 650; }
.summary-indicator i { width: 6px; height: 6px; border-radius: 50%; background: #65a17f; }
.summary-topic { max-width: 200px; overflow: hidden; color: #829089; text-overflow: ellipsis; white-space: nowrap; }
.request-state { margin-left: auto; color: #67826f; font-size: 9px; }
.request-state.error { color: #a74f3b; }
.error-panel { display: grid; gap: 4px; margin: 12px 14px; padding: 10px 12px; border: 1px solid #e8c9bd; border-radius: 4px; background: #fff8f5; color: #95503e; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.error-panel strong { font-size: 10px; }
.error-panel small { color: #a76d5c; font-size: 9px; }
.api-notice { margin: 10px 14px; padding: 8px 10px; border: 1px solid #e1e9df; border-radius: 4px; background: #f7faf5; color: #657d68; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.table-frame { position: relative; min-height: 410px; }
.table-scroll { width: 100%; overflow: auto; }
.video-table { width: 100%; min-width: 740px; border-collapse: collapse; table-layout: fixed; }
.video-table th, .video-table td { padding: 11px 10px; border-bottom: 1px solid #edf1ee; text-align: left; vertical-align: middle; font-size: 10px; line-height: 1.45; }
.video-table th { position: sticky; top: 0; z-index: 1; background: #f7faf8; color: #718078; font-size: 9px; font-weight: 650; }
.video-table th:first-child, .video-table td:first-child { padding-left: 16px; }
.video-table th:last-child, .video-table td:last-child { padding-right: 16px; }
.video-col { width: 35%; }
.video-table th:nth-child(2) { width: 16%; }
.video-table th:nth-child(3) { width: 17%; }
.views-col { width: 12%; }
.url-col { width: 20%; }
.video-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.video-thumb, .video-thumb-placeholder { width: 51px; height: 36px; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 3px; background: #edf3ef; color: #63816e; }
.video-thumb { object-fit: cover; }
.video-thumb-placeholder svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.video-title { min-width: 0; overflow: hidden; color: #40584e; text-overflow: ellipsis; white-space: nowrap; }
.author-cell { overflow: hidden; color: #63746b; text-overflow: ellipsis; white-space: nowrap; }
.date-cell, .views-cell { color: #728077; font-variant-numeric: tabular-nums; white-space: nowrap; }
.views-cell { color: #344e42; font-weight: 600; }
.video-link { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; color: #426f58; }
.video-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-link b { color: #c57856; font-size: 12px; font-weight: 500; }
.video-table tbody tr:hover td { background: #fcfdfc; }
.video-table tbody tr:last-child td { border-bottom: 0; }
.empty-state { min-height: 285px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 28px 16px; color: #8b9891; text-align: center; font-size: 10px; }
.empty-state strong { color: #4b6056; font-size: 12px; font-weight: 650; }
.empty-state > span:last-child { max-width: 36ch; line-height: 1.6; }
.empty-symbol { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 3px; border: 1px solid #dbe6df; border-radius: 50%; background: #f7faf8; color: #7b9b87; }
.empty-symbol svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.table-footer { min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-top: 1px solid #e8efeb; color: #8a9790; font-size: 9px; }
.table-footer span:last-child { color: #718078; white-space: nowrap; }
.sr-only { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 900px) {
  .extractor-main { width: calc(100% - 44px); }
  .extractor-layout { grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); gap: 12px; }
  .search-panel { padding-inline: 13px; }
  .panel-heading { margin-inline: -13px; padding-inline: 13px; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .result-actions { width: 100%; }
  .result-actions .button { flex: 1; }
}
@media (max-width: 680px) {
  .extractor-main { width: calc(100% - 30px); }
  .extractor-hero { align-items: flex-start; flex-direction: column; gap: 14px; padding: 27px 0 22px; }
  .extractor-hero h1 { font-size: 29px; }
  .extractor-hero .intro-description { margin-top: 8px; font-size: 11px; }
  .extractor-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 15px 0 42px; }
  .search-panel { padding: 0 14px 14px; }
  .panel-heading { min-height: 59px; margin-inline: -14px; padding-inline: 14px; }
  #search-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  #search-form > .field-block:first-child, #search-form > .filter-fieldset, #search-form > .source-note, #search-form > .search-button { grid-column: 1 / -1; }
  .manual-import { margin-top: 15px; }
  .results-heading { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; padding: 13px; }
  .results-heading > div:first-child { min-width: 0; }
  .results-heading h2 { font-size: 16px; }
  .results-heading p { max-width: 31ch; }
  .result-actions { width: auto; }
  .result-actions .button { min-height: 32px; padding-inline: 8px; font-size: 9px; }
  .result-actions .button svg { width: 13px; height: 13px; }
  .result-summary { gap: 8px; padding-inline: 13px; font-size: 9px; }
  .summary-topic { max-width: 110px; }
  .table-frame { min-height: 300px; }
  .empty-state { min-height: 260px; }
  .table-footer { padding-inline: 13px; }
}
@media (max-width: 420px) {
  .results-heading { align-items: flex-start; flex-direction: column; }
  .result-actions { width: 100%; }
  .summary-topic { max-width: 85px; }
  .request-state { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
