/* apps.css — 7 大怀旧应用专属界面样式 */

/* 通用线索高亮卡片条 */
.clue-callout {
  margin: 8px 0;
  padding: 8px 10px;
  background: var(--clue-bg);
  border: 1px dashed var(--clue-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #5c3a04;
}

/* ==================== 1. 千禧通 2009 ==================== */
.chat-layout {
  display: grid;
  grid-template-columns: 208px 1fr;
  flex: 1;
  min-height: 0;
  background: #ffffff;
}
.chat-sidebar {
  background: linear-gradient(180deg, #e7f2ff, #f6faff);
  border-right: 1px solid #b5cef0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.chat-profile {
  padding: 10px;
  background: linear-gradient(180deg, #5ba5fa, #2b7be8);
  color: #fff;
  border-bottom: 1px solid #1e62c7;
}
.chat-profile-name {
  font-weight: 700;
  font-size: 13px;
}
.chat-profile-sig {
  font-size: 11px;
  color: #e4f0ff;
  margin-top: 2px;
}
.chat-group-hdr {
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: #214a8a;
  background: #dcebff;
  border-top: 1px solid #c1daf7;
  border-bottom: 1px solid #c1daf7;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-contact {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eef4fc;
}
.chat-contact:hover {
  background: #e9f3ff;
}
.chat-contact.active {
  background: #cfe5ff;
}
.chat-avatar {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #8eb5e8;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.chat-contact-meta {
  min-width: 0;
  flex: 1;
}
.chat-contact-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #16294a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-contact-sub {
  font-size: 11px;
  color: #62748e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fafcff;
}
.chat-main-hdr {
  padding: 8px 12px;
  background: linear-gradient(180deg, #eff6ff, #dcebff);
  border-bottom: 1px solid #b5cef0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-msg {
  max-width: 90%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.chat-msg.me {
  align-self: flex-end;
  align-items: flex-end;
}
.chat-msg-meta {
  font-size: 11px;
  color: #5c708a;
  font-family: var(--font-mono);
}
.chat-msg.me .chat-msg-meta { color: #2b8a3e; }
.chat-msg.sys {
  align-self: center;
  background: #fff3bf;
  border: 1px solid #f0b429;
  color: #664400;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
}
.chat-bubble {
  padding: 8px 11px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #c9ddf7;
  color: #1d2533;
  font-size: 13px;
  line-height: 1.6;
  box-shadow: 0 1px 2px rgba(0, 32, 88, 0.06);
}
.chat-msg.me .chat-bubble {
  background: #e7f5ff;
  border-color: #91c6fa;
}
.chat-attach {
  margin-top: 6px;
  padding: 6px 9px;
  background: #f8f9fa;
  border: 1px solid #adb5bd;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.chat-lock-box {
  margin: auto;
  max-width: 340px;
  padding: 18px;
  background: #ffffff;
  border: 2px solid #8eb5e8;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(15, 55, 130, 0.1);
}

/* ==================== 2. 千千听歌 5.5 ==================== */
.player-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #1c2430;
  color: #d7e5f7;
}
.player-deck {
  padding: 12px 14px;
  background: linear-gradient(180deg, #2d3748, #1b222e);
  border-bottom: 1px solid #3f4e64;
}
.player-lcd {
  background: #0a141c;
  border: 2px inset #4a5a70;
  border-radius: 4px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 142px;
  gap: 12px;
  align-items: center;
}
.player-track-title {
  color: #69db7c;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.player-track-sub {
  color: #8fb8d6;
  font-size: 11.5px;
  font-family: var(--font-mono);
}
.player-spec-canvas {
  width: 142px;
  height: 44px;
  background: #050b10;
  border: 1px solid #1e3748;
  border-radius: 2px;
}
.player-scrub-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.player-scrub-row input[type="range"] {
  flex: 1;
  accent-color: #38d9a9;
}
.player-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.player-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 225px 1fr;
}
.player-playlist {
  background: #151c26;
  border-right: 1px solid #334155;
  overflow-y: auto;
  padding: 8px;
}
.pl-item {
  padding: 7px 9px;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 4px;
  border: 1px solid transparent;
  font-size: 12px;
}
.pl-item:hover { background: #232f40; }
.pl-item.active {
  background: #1c3a5e;
  border-color: #4dabf7;
  color: #ffffff;
}
.pl-item.locked {
  opacity: 0.48;
  cursor: not-allowed;
}
.player-lyrics {
  background: #0f1620;
  padding: 12px 14px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.75;
}
.lyric-line {
  padding: 4px 8px;
  border-radius: 4px;
  color: #93adc9;
  transition: background 0.15s ease, color 0.15s ease;
}
.lyric-line.current {
  background: rgba(56, 217, 169, 0.14);
  color: #63e6be;
  font-weight: 700;
}
.lyric-line.decoded {
  background: rgba(255, 212, 59, 0.16);
  border: 1px solid #fab005;
  color: #ffe066;
}

/* ==================== 3. 我的电脑 & 数据恢复器 ==================== */
.explorer-layout {
  display: grid;
  grid-template-columns: 184px 1fr;
  flex: 1;
  min-height: 0;
  background: #ffffff;
}
.explorer-sidebar {
  background: linear-gradient(180deg, #7496e8, #6182d9);
  padding: 10px 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exp-panel {
  background: #d6dff7;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #ffffff;
}
.exp-panel-hdr {
  background: linear-gradient(90deg, #ffffff, #c8d8f7);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 700;
  color: #1f4898;
}
.exp-panel-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.exp-link {
  border: none;
  background: transparent;
  text-align: left;
  padding: 4px 5px;
  border-radius: 3px;
  color: #183d82;
  font-size: 12px;
  cursor: pointer;
}
.exp-link:hover, .exp-link.active {
  background: #bdd1fa;
  font-weight: 700;
}
.explorer-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
}
.exp-address {
  padding: 5px 8px;
  background: #f4f2e8;
  border-bottom: 1px solid #d5d0be;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.exp-address-val {
  flex: 1;
  background: #ffffff;
  border: 1px solid #7f9db9;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.exp-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  align-content: start;
  gap: 10px;
}
.file-tile {
  padding: 10px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  cursor: pointer;
  background: transparent;
}
.file-tile:hover {
  background: #edf4ff;
  border-color: #9ec5fe;
}
.file-tile.hidden-item {
  opacity: 0.78;
}
.file-tile .ft-icon { font-size: 30px; line-height: 1; }
.file-tile .ft-name {
  font-size: 12px;
  color: #1b2434;
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.file-tile .ft-tag {
  font-size: 10.5px;
  color: #6b7280;
}

/* 星火数据恢复器扇区网格 */
.recovery-view {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  background: #f8f9fa;
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 10px 0 14px;
}
.sector-cell {
  border: 1px solid #adb5bd;
  background: #e9ecef;
  padding: 8px 4px;
  text-align: center;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
}
.sector-cell.target {
  background: #ffe3e3;
  border-color: #e03131;
  color: #a61e1e;
  font-weight: 700;
}
.sector-cell.recovered {
  background: #d3f9d8;
  border-color: #2b8a3e;
  color: #1b6b2b;
  font-weight: 700;
}
.sector-cell.selected {
  outline: 2px solid #1d64de;
}
.scan-progress {
  width: 100%;
  height: 14px;
  background: #dee2e6;
  border: 1px solid #868e96;
  border-radius: 2px;
  overflow: hidden;
  margin: 8px 0;
}
.scan-progress-fill {
  height: 100%;
  width: 0%;
  background: repeating-linear-gradient(
    90deg,
    #2b8a3e 0px,
    #2b8a3e 10px,
    #40c057 10px,
    #40c057 13px
  );
  transition: width 0.12s linear;
}

/* ==================== 4. IE 6.0 离线缓存浏览器 ==================== */
.ie-tabs {
  display: flex;
  gap: 4px;
  padding: 5px 8px 0;
  background: #e5e1cf;
  border-bottom: 1px solid #b5afa0;
}
.ie-tab {
  padding: 5px 12px;
  border: 1px solid #b5afa0;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  background: #dcd7c4;
  font-size: 12px;
  cursor: pointer;
  color: #333;
}
.ie-tab.active {
  background: #ffffff;
  font-weight: 700;
  color: #0b4db8;
  position: relative;
  top: 1px;
}
.ie-viewport {
  flex: 1;
  overflow-y: auto;
  background: #ffffff;
  padding: 14px 18px;
}
/* 2009 贴吧风 */
.tieba-banner {
  background: linear-gradient(90deg, #2d64b3, #4a89dc);
  color: #fff;
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.tieba-post-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tieba-row {
  padding: 9px 12px;
  border: 1px solid #e1e8f5;
  border-radius: 3px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  background: #fbfdff;
}
.tieba-row:hover { background: #edf4ff; }
.tieba-row.deleted-cache {
  border-color: #f3b2b2;
  background: #fff5f5;
}
.tieba-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 2px;
  margin-right: 6px;
  font-weight: 700;
}
.tieba-tag.top { background: #e03131; color: #fff; }
.tieba-tag.del { background: #495057; color: #ffd43b; }
.tieba-tag.norm { background: #e7f5ff; color: #1971c2; }
.tieba-floor {
  border: 1px solid #dce5f2;
  margin-bottom: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.tieba-floor-hd {
  background: #f1f5fb;
  padding: 5px 10px;
  font-size: 11.5px;
  color: #495870;
  display: flex;
  justify-content: space-between;
}
.tieba-floor-bd {
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.7;
  background: #fff;
}

/* 2009 非主流空间风 */
.qzone-theme {
  background: linear-gradient(180deg, #1b1830 0%, #272242 220px, #f7f4fb 220px);
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #cfc4e8;
}
.qzone-hero {
  color: #f3e8ff;
  padding: 12px 14px 18px;
}
.qzone-hero h3 { margin: 0 0 4px; color: #ffd8a8; font-size: 18px; }
.qzone-card {
  background: #ffffff;
  border: 1px solid #dfd7f2;
  border-radius: 5px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

/* 2009 校园内网公告栏 */
.notice-banner {
  border-bottom: 3px solid #b02a37;
  padding-bottom: 8px;
  margin-bottom: 12px;
  color: #841b25;
}
.notice-paper {
  background: #fffdf7;
  border: 1px solid #dfd6c0;
  padding: 14px 16px;
  margin-bottom: 12px;
  line-height: 1.75;
}

/* ==================== 5. 画图显影工具 2009 ==================== */
.paint-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  flex: 1;
  min-height: 0;
  background: #d8d4c5;
}
.paint-sidebar {
  background: #ece9d8;
  border-right: 1px solid #b5afa0;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.paint-box {
  background: #f8f7f0;
  border: 1px solid #c7c1ae;
  border-radius: 3px;
  padding: 8px;
}
.paint-box h4 {
  margin: 0 0 6px;
  font-size: 12px;
  color: #203c73;
}
.paint-slider-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  font-size: 11.5px;
}
.paint-canvas-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: auto;
  background: #7f848c;
  position: relative;
}
#paint-canvas {
  background: #000;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
  cursor: crosshair;
  max-width: 100%;
  height: auto;
}

/* ==================== 6. 经典扫雷 & 记事本 ==================== */
.mine-shell {
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #c0c0c0;
  flex: 1;
}
.mine-top {
  width: 268px;
  padding: 6px 10px;
  border: 3px inset #ffffff;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mine-lcd {
  background: #140000;
  color: #ff2b2b;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  padding: 2px 7px;
  border: 2px inset #808080;
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.mine-face {
  width: 34px;
  height: 34px;
  border: 2px outset #ffffff;
  background: #d4d0c8;
  font-size: 19px;
  cursor: pointer;
}
.mine-grid {
  display: grid;
  grid-template-columns: repeat(8, 30px);
  grid-template-rows: repeat(8, 30px);
  border: 3px inset #ffffff;
  background: #808080;
}
.mine-cell {
  width: 30px;
  height: 30px;
  border: 2px outset #ffffff;
  background: #c0c0c0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.mine-cell.revealed {
  border: 1px solid #999;
  background: #d8d8d8;
}
.mine-cell.mine-hit {
  background: #ff4d4f;
}

.notepad-area {
  flex: 1;
  background: #ffffff;
  padding: 14px 16px;
  overflow-y: auto;
  font-family: var(--font-song);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-wrap;
  color: #16181d;
}

/* ==================== 7. 桌面线索便签板 & 结案推理台 ==================== */
.board-tabs {
  display: flex;
  background: #dfd9c3;
  border-bottom: 1px solid #b5afa0;
  padding: 6px 8px 0;
  gap: 5px;
}
.board-tab {
  padding: 6px 12px;
  border: 1px solid #b5afa0;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  background: #eae5d3;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: #4a3f28;
}
.board-tab.active {
  background: #fffdf5;
  color: #9c4221;
  position: relative;
  top: 1px;
}
.board-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  background: #fffdf5;
}
.clue-card {
  background: #ffffff;
  border: 1px solid #e6d59c;
  border-left: 4px solid #d97706;
  border-radius: 4px;
  padding: 9px 11px;
  margin-bottom: 8px;
}
.clue-card.core {
  border-left-color: #c92a2a;
  background: #fff9f5;
}
.clue-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 12px;
}
.clue-card-hd strong { color: #2b2110; }
.clue-card-src { font-size: 11px; color: #7c6f52; }
.clue-card-text { font-size: 12.5px; color: #3a3325; line-height: 1.55; }

.deduce-q {
  background: #ffffff;
  border: 1px solid #d9c898;
  border-radius: 5px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.deduce-q h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #1f2b44;
}
.deduce-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.deduce-opt:hover { background: #f8f4e3; }
.deduce-opt.selected {
  background: #edf4ff;
  border-color: #74a9f7;
  font-weight: 700;
}

/* 结案报告弹窗内纪念卡预览 */
.ending-banner {
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #b5cef0;
  background: linear-gradient(135deg, #eef6ff, #fff9e6);
}
.ending-banner h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #0b3c96;
}
.ending-story {
  font-size: 12.5px;
  line-height: 1.62;
  color: #1f2937;
  white-space: pre-line;
}
.report-preview-wrap {
  margin-top: 8px;
  text-align: center;
  background: #1a2232;
  padding: 8px;
  border-radius: 6px;
}
.report-preview-wrap canvas {
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
