:root {
  /* ==================== 复古机能工控色彩系统 (Industrial Military-Spec / Cyber-Terminal) ==================== */
  /* 主体军绿石墨顶底 */
  --bg-primary: #3b5360;
  --bg-secondary: #2f4450;
  --bg-canvas: #dcd7ca;
  --bg-panel: #d5cfbf;
  --bg-panel-light: #e6e2d6;
  --bg-panel-dark: #c5bead;

  /* 战术警示红与工业高对比按键色彩 */
  --accent-red: #d14936;
  --accent-red-hover: #b83d2c;
  --accent-red-light: #e88678;
  --accent-amber: #e59d24;
  --accent-amber-hover: #cf8b19;
  --accent-green: #388e5e;
  --accent-green-bg: #cde4d3;
  --accent-green-ink: #1b5333;

  /* 墨黑与工程文字色彩 */
  --ink-primary: #1e242b;
  --ink-secondary: #4a545e;
  --ink-muted: #727c87;
  --ink-inverted: #f4f2eb;

  /* 像素级精严的机械描边 (实线双层 1.5px / 2px) */
  --border-thick: #212b32;
  --border-frame: #2c3942;
  --border-rule: #a8a08d;
  --border-subtle: #bbb3a2;

  /* 实体切边阴影 (Hard Offset Box Shadow，模拟实体面板与按键凸起) */
  --shadow-btn: 2px 2px 0px #1a2228;
  --shadow-card: 3px 3px 0px #1e272e;
  --shadow-card-sm: 2px 2px 0px #222d35;
  --shadow-modal: 5px 5px 0px #11171b;

  /* 机械面板倒角（极其克制：0px 或 2px，工业精密制造感） */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius-md: 4px;

  --font-family: 'Chakra Petch', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--ink-primary);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ==================== 顶部工业控制条 ==================== */
.app-header {
  background: var(--bg-secondary);
  border-bottom: 3px solid var(--border-thick);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-red);
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f6f4ee;
  text-transform: uppercase;
  text-shadow: 1px 1px 0px #000;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--border-thick);
  background: var(--accent-amber);
  border: 1.5px solid var(--border-thick);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  box-shadow: 1px 1px 0px #000;
}

/* 顶部网盘运行状态舱 */
.drive-profile-card {
  background: var(--bg-panel);
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-card-sm);
  padding: 6px 14px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent-red);
  color: #fff;
  border: 1.5px solid var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.vip-tag {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--accent-green-bg);
  color: var(--accent-green-ink);
  border: 1px solid var(--border-thick);
  padding: 0px 5px;
  border-radius: var(--radius-xs);
}

.btn-switch-account {
  background: var(--bg-panel-light);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1px 1px 0 #000;
  color: var(--ink-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-switch-account:hover {
  background: var(--accent-amber);
  color: #000;
}

.target-folder {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.storage-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 140px;
}

.storage-text {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
}

.storage-text strong {
  color: var(--ink-primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #a9a291;
  border: 1px solid var(--border-thick);
  border-radius: 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

/* ==================== 页面主容器 ==================== */
.app-container {
  max-width: 1260px;
  margin: 24px auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ==================== 工业级战术卡片 / 容器基座 ==================== */
.hero-section, .results-section, .hot-section, .library-section {
  background: var(--bg-canvas);
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-card);
  padding: 20px;
  position: relative;
}

/* 警示与状态条 */
.auth-banner-bar {
  background: #ecd5d2;
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.auth-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-banner-icon {
  width: 32px;
  height: 32px;
  background: var(--accent-red);
  color: #fff;
  border: 1.5px solid var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-banner-info {
  display: flex;
  flex-direction: column;
}

.auth-banner-title {
  color: var(--accent-red-hover);
  font-size: 0.96rem;
  font-weight: 700;
}

.auth-banner-desc {
  color: var(--ink-secondary);
  font-size: 0.82rem;
}

.auth-banner-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-auth-action {
  background: var(--bg-panel-light);
  border: 2px solid var(--border-thick);
  box-shadow: 2px 2px 0 var(--border-thick);
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-auth-action:hover {
  background: var(--bg-panel-dark);
}

.btn-auth-action:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

.btn-auth-primary {
  background: var(--accent-amber) !important;
  color: #000 !important;
}

.btn-auth-danger {
  background: var(--accent-red) !important;
  color: #fff !important;
}

/* ==================== 搜索核心区 (图1 风格控制面板) ==================== */
.hero-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-header {
  border-bottom: 2px dashed var(--border-rule);
  padding-bottom: 12px;
}

.hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle {
  font-size: 0.86rem;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.search-box-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-input-group {
  display: flex;
  align-items: center;
  background: #fbf9f4;
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-btn);
  padding: 6px 8px 6px 14px;
}

.search-icon {
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--ink-primary);
  outline: none;
}

.search-input::placeholder {
  color: #929a9f;
  font-size: 0.92rem;
  font-family: var(--font-family);
}

/* 主操作按钮：鲜亮警示黄，工业实体按压按键 */
.btn-primary {
  background: var(--accent-amber);
  color: #000;
  border: 2px solid var(--border-thick);
  box-shadow: 2px 2px 0px var(--border-thick);
  font-family: var(--font-family);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 8px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--accent-amber-hover);
}

.btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 transparent;
}

.search-tools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 6px;
}

.quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tags-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.quick-tag {
  background: var(--bg-panel-light);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1px 1px 0 var(--border-thick);
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 9px;
  cursor: pointer;
}

.quick-tag:hover {
  background: #fff;
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.flow-badge-pill {
  background: var(--bg-panel-dark);
  border: 1.5px solid var(--border-thick);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== 状态进度面板与成功横幅 (适配复古工控/票据设计) ==================== */
.status-panel {
  margin-bottom: 20px;
}

.status-card {
  background: var(--bg-panel-light);
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-card-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid var(--border-thick);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-stage {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.status-desc {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* 最新转存成功结果横幅 (告警卡片风格) */
.success-banner {
  margin-bottom: 22px;
}

.banner-inner {
  background: #fdf5f4;
  border: 2.5px solid var(--accent-red);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.banner-inner::before {
  content: "SUCCESS DISPATCH";
  position: absolute;
  right: 18px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red-hover);
  letter-spacing: 0.08em;
}

.success-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border: 1px solid #000;
  box-shadow: 1px 1px 0 #000;
  align-self: flex-start;
}

.success-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.success-desc {
  font-size: 0.85rem;
  color: var(--ink-secondary);
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--bg-primary);
  border: 2px solid var(--border-thick);
  padding: 8px 10px;
  box-shadow: 2px 2px 0 var(--border-thick);
}

.share-url-input {
  flex: 1;
  min-width: 260px;
  background: #1c272e;
  border: 1.5px solid var(--border-thick);
  color: #55efc4;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 10px;
  outline: none;
}

.btn-copy {
  background: var(--accent-amber);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1.5px 1.5px 0 #000;
  color: #000;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-copy:hover {
  background: #f7af32;
}

.btn-open-link {
  background: var(--bg-panel-light);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1.5px 1.5px 0 #000;
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-open-link:hover {
  background: #fff;
}

/* ==================== 区域标头 (Section Header) ==================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-thick);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-pill {
  background: var(--bg-panel-light);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1px 1px 0 var(--border-thick);
  color: var(--ink-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 7px;
}

/* ==================== 候选卡片列表 (极具复古工控/票据风格，图1精髓) ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

.candidate-card {
  /* 经典的深红警示/工单卡片基底 (图1红卡片) */
  background: #d14936;
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-btn);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  position: relative;
}

.candidate-card:hover {
  border-color: #000;
  box-shadow: 3px 3px 0 #000;
}

.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.candidate-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
}

/* 状态标签：图1中的绿底运行状态印章 */
.pixel-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  border: 1px solid var(--border-thick);
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 1px 1px 0 #000;
}

.pixel-pill.online {
  background: #39b54a;
  color: #05260b;
}

.pixel-pill.folder {
  background: #f7d636;
  color: #2b2003;
}

.candidate-source-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 1px 6px;
}

.candidate-url {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  color: #f7d0cb;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 6px;
}

.candidate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.candidate-passcode {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: #ffe6e2;
}

.candidate-passcode strong {
  color: #ffef9f;
}

/* 验货与转存按键 (复古机械按键) */
.btn-inspect {
  background: #fdfaf2;
  border: 1.5px solid var(--border-thick);
  box-shadow: 1.5px 1.5px 0 #000;
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-inspect:hover {
  background: #fff;
}

.btn-inspect:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0;
}

.btn-jump-card {
  background: var(--accent-amber);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1.5px 1.5px 0 #000;
  color: #000;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-jump-card:hover {
  background: #f7af32;
}

.btn-jump-card:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0;
}

/* ==================== 热门剧集网格 (图1 风格清单) ==================== */
.hot-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.hot-card {
  background: var(--bg-panel-light);
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-btn);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hot-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.hot-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.hot-card-category {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

.hot-card-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed var(--border-rule);
  padding-top: 8px;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 6px;
  border: 1px solid var(--border-thick);
}

.status-tag.saved {
  background: var(--accent-green-bg);
  color: var(--accent-green-ink);
}

.status-tag.unsaved {
  background: #fde8cd;
  color: #7b4b08;
}

.btn-hot-action {
  background: var(--bg-panel);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1px 1px 0 #000;
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-hot-action:hover {
  background: #fff;
}

.btn-primary-gradient {
  background: var(--accent-amber);
  color: #000;
  border: 2px solid var(--border-thick);
  box-shadow: 2px 2px 0 var(--border-thick);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-gradient:hover {
  background: var(--accent-amber-hover);
}

/* ==================== 资源库表格 (工业账簿质感) ==================== */
.library-table-container {
  background: #f9f7f2;
  border: 2px solid var(--border-thick);
  box-shadow: var(--shadow-btn);
  overflow-x: auto;
}

.library-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.library-table th {
  background: var(--bg-panel-dark);
  border-bottom: 2px solid var(--border-thick);
  border-right: 1px solid var(--border-rule);
  padding: 8px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-primary);
  text-transform: uppercase;
}

.library-table td {
  padding: 10px 14px;
  font-size: 0.86rem;
  border-bottom: 1px solid var(--border-rule);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.library-table tr:hover td {
  background: #f0ecdf;
}

.res-keyword {
  font-weight: 700;
  color: var(--ink-primary);
}

.res-link-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #175ec2;
  text-decoration: underline;
}

.hits-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #000;
  background: #ffd972;
  border: 1px solid var(--border-thick);
  padding: 1px 6px;
  box-shadow: 1px 1px 0 #000;
}

.btn-icon {
  background: var(--bg-panel-light);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1px 1px 0 #000;
  color: var(--ink-primary);
  cursor: pointer;
  padding: 3px 6px;
}

.btn-icon:hover {
  background: #fff;
}

.btn-icon.danger {
  color: #fff;
  background: var(--accent-red);
}

/* ==================== 弹窗模态框 (图2 核心精髓：复古印章、警告框、硬质双线框) ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 20, 24, 0.78);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-canvas);
  border: 3px solid var(--border-thick);
  box-shadow: var(--shadow-modal);
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 85vh;
}

/* 图2 顶栏：复古红底白字 + 生产印章 (Production Switch) */
.modal-header {
  background: var(--accent-red);
  border-bottom: 2px solid var(--border-thick);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.modal-title-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ffccd0;
  text-transform: uppercase;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

/* 经典的复古方框印章 (图2 右上角"生产"印章) */
#fileModalBackdrop .modal-header::after {
  content: "验货";
  position: absolute;
  right: 56px;
  top: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  transform: rotate(-5deg);
  letter-spacing: 0.1em;
}

.modal-close {
  background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid #fff;
  color: #fff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-close:hover {
  background: #000;
}

/* 图2 警告框与参数清单 */
.modal-meta-row {
  background: #f7eedf;
  border-bottom: 2px solid var(--border-thick);
  padding: 10px 18px;
  display: flex;
  gap: 20px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--ink-primary);
}

.meta-value.success {
  color: var(--accent-green);
}

/* 文件夹面包屑 */
.folder-breadcrumb {
  background: #eae4d5;
  border-bottom: 1.5px solid var(--border-thick);
  font-family: var(--font-mono);
}

/* 列表展示区 */
.file-list-header {
  background: #cec7b5;
  border-bottom: 1.5px solid var(--border-thick);
  padding: 6px 18px;
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-secondary);
  text-transform: uppercase;
}

.file-items-container {
  overflow-y: auto;
  max-height: 320px;
  background: #fff;
}

.file-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border-bottom: 1px solid #ebe5d8;
  font-size: 0.85rem;
}

.file-item-row:hover {
  background: #f7f3eb;
}

.file-info-col {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.file-type-icon {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  border: 1px solid var(--border-thick);
  padding: 1px 4px;
}

.file-type-icon.folder { background: #ffd972; color: #000; }
.file-type-icon.video { background: #388e5e; color: #fff; }
.file-type-icon.doc { background: #3b5360; color: #fff; }

.modal-footer {
  background: var(--bg-panel);
  border-top: 2px solid var(--border-thick);
  padding: 12px 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  background: var(--bg-panel-light);
  border: 2px solid var(--border-thick);
  box-shadow: 2px 2px 0 var(--border-thick);
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #fff;
}

.btn-jump-action {
  background: var(--accent-red);
  color: #fff;
  border: 2px solid var(--border-thick);
  box-shadow: 2px 2px 0 var(--border-thick);
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-jump-action:hover {
  background: var(--accent-red-hover);
}

.btn-jump-action:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
}

/* ==================== 专属链接生成成功模态弹窗 (高度呼应图2工业控制台风格) ==================== */
.success-modal-card {
  max-width: 540px;
}

.success-modal-header {
  background: var(--accent-red);
}

.success-modal-header::after {
  content: "专属";
  position: absolute;
  right: 56px;
  top: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 7px;
  transform: rotate(-5deg);
  letter-spacing: 0.1em;
}

.success-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-canvas);
}

/* 警示与通告框 (图2红框告警风格) */
.success-notice-box {
  background: #fdf5f4;
  border: 2px solid var(--accent-red);
  box-shadow: 2px 2px 0 var(--border-thick);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.notice-icon-box {
  width: 32px;
  height: 32px;
  background: var(--accent-red);
  color: #fff;
  border: 1.5px solid var(--border-thick);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notice-text-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.notice-headline {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-red-hover);
}

.notice-subline {
  font-size: 0.82rem;
  color: var(--ink-secondary);
  line-height: 1.4;
}

.success-resource-meta {
  background: var(--bg-panel-light);
  border: 1.5px solid var(--border-thick);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.success-res-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.35;
}

/* 终端命令行式专属链接输入框 */
.share-copy-terminal {
  background: var(--bg-primary);
  border: 2px solid var(--border-thick);
  box-shadow: 2px 2px 0 var(--border-thick);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-copy-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #b5c7d3;
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-modal-input {
  flex: 1;
  background: #1c272e;
  border: 1.5px solid var(--border-thick);
  color: #55efc4;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 12px;
  outline: none;
}

.btn-copy-modal {
  background: var(--accent-amber);
  border: 1.5px solid var(--border-thick);
  box-shadow: 1.5px 1.5px 0 #000;
  color: #000;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-copy-modal:hover {
  background: #f7af32;
}

.btn-copy-modal:active {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0;
}

/* 浮动轻提示 Toast (水平垂直居中展示，强提示) */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 480px;
  background: var(--bg-panel-light);
  border: 2px solid var(--border-thick);
  box-shadow: 4px 4px 0 #000;
  padding: 12px 20px;
  color: var(--ink-primary);
  font-family: var(--font-family);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  animation: toastPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastPop {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.toast.success {
  border-left: 5px solid var(--accent-green);
  background: #eef7f0;
}

.toast.error {
  border-left: 5px solid var(--accent-red);
  background: #faecea;
}

.toast.info {
  border-left: 5px solid var(--accent-amber);
  background: #fbf6ec;
}

/* ==================== 移动端专属体验优化 (Mobile-First Polish) ==================== */
@media (max-width: 768px) {
  /* 基础容器边距收紧与安全区适配 */
  .app-container {
    padding: 10px 12px 30px;
  }

  .header-inner {
    padding: 10px 12px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .brand-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
  }

  /* 搜索框移动端大触控区适配 */
  .search-hero {
    margin-bottom: 14px;
    padding: 14px 12px;
  }

  .search-title {
    font-size: 1.05rem;
  }

  .search-desc {
    font-size: 0.78rem;
  }

  .search-input-group {
    flex-direction: column;
    padding: 6px;
    gap: 8px;
  }

  .search-input {
    width: 100%;
    font-size: 1rem;
    padding: 6px 4px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 10px;
    font-size: 1rem;
    min-height: 44px; /* 符合移动端推荐点击区域标准 */
  }

  .search-tools-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .quick-tags {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .quick-tag {
    padding: 4px 10px;
    font-size: 0.8rem;
  }

  .flow-badge-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.72rem;
  }

  /* 候选卡片列表改为单列，按钮加大点击区域 */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .candidate-card {
    padding: 12px;
  }

  .candidate-title {
    font-size: 0.95rem;
  }

  .candidate-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .candidate-actions > div:first-child {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .btn-inspect, .btn-jump-card {
    flex: 1;
    min-height: 40px;
    justify-content: center;
    font-size: 0.85rem;
  }

  /* 弹窗模态框移动端适配 (底部抽屉或大卡片，不超出屏幕) */
  .modal-backdrop {
    padding: 10px;
    align-items: flex-end; /* 移动端靠底便于单手触控 */
  }

  .modal-card {
    max-height: 90vh;
    border-radius: var(--radius-sm);
  }

  .modal-header {
    padding: 10px 14px;
  }

  .modal-title {
    font-size: 1.05rem;
  }

  .modal-body {
    padding: 14px 12px;
  }

  .modal-footer {
    padding: 10px 12px;
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal-footer button, .modal-footer a {
    width: 100%;
    min-height: 42px;
    justify-content: center;
  }

  .share-copy-row {
    flex-direction: column;
    gap: 8px;
  }

  .share-modal-input {
    width: 100%;
    font-size: 0.88rem;
  }

  .btn-copy-modal {
    width: 100%;
    min-height: 40px;
    justify-content: center;
  }

  /* 违规全屏锁定弹窗移动端适配 */
  #banModal .modal-card {
    max-width: 95vw !important;
    margin: auto;
  }

  #banCountdownDisplay {
    font-size: 2.4rem !important;
  }

  /* Toast 移动端居中且不遮挡输入 */
  .toast {
    min-width: 240px;
    max-width: 90vw;
    font-size: 0.88rem;
    padding: 10px 16px;
  }
}
