/* theme1 frontend theme */
:root {
  --t1-bg: #f4f4f4;
  --t1-card-bg: #fff;
  --t1-accent: #f5c518;
  --t1-accent-hover: #e0b015;
  --t1-header-bg: #1a1a1a;
  --t1-text: #1a1a1a;
  --t1-text-muted: #6b7280;
  --t1-border: #e5e7eb;
  --t1-radius: 10px;
  --t1-container: 1200px;
  --t1-shadow: 0 2px 8px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--t1-bg); color: var(--t1-text); font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif; }

/* ── Header ── */
.t1-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--t1-header-bg);
  height: 60px;
}
.t1-header-inner {
  max-width: var(--t1-container); margin: 0 auto; padding: 0 20px;
  height: 100%; display: flex; align-items: center; gap: 16px;
}
.t1-logo {
  font-size: 20px; font-weight: 800; color: var(--t1-accent);
  text-decoration: none; white-space: nowrap; flex-shrink: 0; letter-spacing: -0.5px;
}
.t1-logo img { height: 30px; vertical-align: middle; margin-right: 6px; }
.t1-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.t1-nav::-webkit-scrollbar { display: none; }
.t1-nav a {
  padding: 5px 12px; border-radius: 4px; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.75); text-decoration: none; white-space: nowrap; transition: all .15s;
}
.t1-nav a:hover, .t1-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
.t1-header-search {
  display: flex; flex: 1; max-width: 280px; margin-left: auto;
  background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.15); transition: border-color .2s;
}
.t1-header-search:focus-within { border-color: var(--t1-accent); background: rgba(255,255,255,.15); }
.t1-header-search input {
  flex: 1; border: none; outline: none; padding: 8px 12px; font-size: 13px;
  background: transparent; color: #fff;
}
.t1-header-search input::placeholder { color: rgba(255,255,255,.45); }
.t1-header-search .btn {
  padding: 0 14px; background: var(--t1-accent); color: #000; border: none;
  cursor: pointer; font-size: 15px; transition: background .2s; flex-shrink: 0;
}
.t1-header-search .btn:hover { background: var(--t1-accent-hover); }
.t1-header-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.t1-header-actions .item {
  padding: 5px 12px; border-radius: 4px; font-size: 13px; cursor: pointer;
  color: rgba(255,255,255,.7); transition: all .15s;
}
.t1-header-actions .item:hover { color: #fff; background: rgba(255,255,255,.1); }
.t1-menu-btn { display: none; font-size: 20px; cursor: pointer; color: rgba(255,255,255,.7); padding: 4px; }
@media (max-width: 767px) { .t1-menu-btn { display: block; } }

/* ── 轮播 ── */
.t1-carousel {
  position: relative; background: #111; overflow: hidden;
  margin: 0;
}
.t1-carousel-track {
  display: flex; transition: transform .5s ease;
}
.t1-carousel-slide {
  min-width: 100%; position: relative;
}
.t1-carousel-img {
  width: 100%; aspect-ratio: 1200 / 480; object-fit: cover; display: block;
}
.t1-carousel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.3) 50%, transparent 100%);
  display: flex; align-items: flex-end; padding: 40px 60px;
}
.t1-carousel-info { max-width: 520px; }
.t1-carousel-title {
  font-size: clamp(20px, 2.5vw, 32px); font-weight: 700; color: #fff;
  margin: 0 0 10px; text-shadow: 0 2px 8px rgba(0,0,0,.5); line-height: 1.3;
}
.t1-carousel-desc {
  font-size: clamp(13px, 1.2vw, 15px); color: rgba(255,255,255,.8);
  margin: 0 0 20px; line-height: 1.6; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t1-carousel-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; background: var(--t1-accent); color: #000;
  border-radius: 6px; font-size: 14px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: none; transition: background .2s;
}
.t1-carousel-btn:hover { background: var(--t1-accent-hover); }
.t1-carousel-nav {
  position: absolute; bottom: 20px; right: 60px;
  display: flex; align-items: center; gap: 12px;
}
.t1-carousel-counter { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; }
.t1-carousel-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: none; cursor: pointer;
  color: #fff; font-size: 16px; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.t1-carousel-arrow:hover { background: rgba(255,255,255,.4); }

/* ── 容器 ── */
.t1-container { max-width: var(--t1-container); margin: 0 auto; padding: 0 20px; }

/* ── 分类区块 ── */
.t1-section { padding: 32px 0 0; }
.t1-section-title {
  font-size: 20px; font-weight: 800; color: var(--t1-text);
  margin: 0 0 16px; display: flex; align-items: center; gap: 8px;
}
.t1-section-title img { width: 22px; height: 22px; object-fit: contain; }

/* ── 卡片网格 ── */
.t1-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.t1-card {
  background: var(--t1-card-bg); border-radius: var(--t1-radius);
  box-shadow: var(--t1-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit; display: block;
}
.t1-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.t1-card-img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block;
  background: #e5e7eb;
}
.t1-card-placeholder {
  width: 100%; aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,.6); padding: 12px; text-align: center;
  line-height: 1.4;
}
.t1-card-body { padding: 8px 10px 10px; }
.t1-card-title {
  font-size: 13px; font-weight: 600; line-height: 1.4; margin: 0;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.t1-card-meta { font-size: 11px; color: var(--t1-text-muted); margin-top: 3px; }

/* ── 搜索结果页 ── */
.t1-list-page { padding: 28px 0 48px; background: #fff; min-height: 60vh; }
.t1-result-list { display: grid; gap: 12px; }
.t1-result-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: var(--t1-card-bg); border-radius: 16px; box-shadow: 0 8px 26px rgba(0,0,0,.05);
  padding: 18px 20px; border: 1px solid var(--t1-border); transition: transform .16s, border-color .16s, box-shadow .16s;
}
.t1-result-item:hover { transform: translateY(-2px); border-color: rgba(245,197,24,.55); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.t1-result-title { font-size: 16px; font-weight: 800; color: var(--t1-text); text-decoration: none; display: block; line-height: 1.45; word-break: break-word; }
.t1-result-title:hover { color: #b8860b; }
.t1-result-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.t1-tag, .t1-time, .t1-source, .t1-code {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
  border-radius: 999px; background: #f8f8f8; color: var(--t1-text-muted); font-size: 12px; font-weight: 700;
}
.t1-tag { background: #fef9e7; color: #b8860b; border: 1px solid rgba(245,197,24,.55); }
.t1-result-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.t1-resource-link-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--t1-border);
  border-radius: 12px;
  background: #fafafa;
}
.t1-resource-link-label { color: var(--t1-text); font-size: 14px; font-weight: 800; line-height: 34px; white-space: nowrap; }
.t1-resource-link-items { display: grid; gap: 8px; min-width: 0; }
.t1-resource-link-row { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 34px; }
.t1-resource-link-disk { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--t1-text); font-size: 14px; font-weight: 800; }
.t1-resource-link-disk .icon { width: 22px; height: 22px; flex: 0 0 auto; }
.t1-resource-link-disk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t1-resource-link-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.t1-resource-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--t1-border); background: #fff; color: var(--t1-text-muted);
  font-size: 13px; font-weight: 800; line-height: 30px; text-decoration: none; cursor: pointer;
}
.t1-resource-action:hover { border-color: var(--t1-accent); color: var(--t1-text); }
.t1-resource-action-primary { background: var(--t1-accent); border-color: var(--t1-accent); color: #111; }
.t1-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 800;
  cursor: pointer; text-decoration: none; border: none; transition: all .2s; white-space: nowrap;
}
.t1-btn-primary { background: var(--t1-accent); color: #111; box-shadow: 0 8px 18px rgba(245,197,24,.22); }
.t1-btn-primary:hover { background: var(--t1-accent-hover); }
.t1-btn-outline { background: #fff; color: var(--t1-text-muted); border: 1px solid var(--t1-border); }
.t1-btn-outline:hover { border-color: var(--t1-accent); color: var(--t1-text); }

/* ── 分页 ── */
.t1-pagination { margin-top: 24px; display: flex; justify-content: center; }

/* ── 详情页 ── */
.t1-detail-page { padding: 32px 0 48px; background: #fff; }
.t1-detail-card {
  background: var(--t1-card-bg); border-radius: var(--t1-radius);
  box-shadow: var(--t1-shadow); padding: 28px; display: flex; gap: 28px;
  border: 1px solid var(--t1-border);
}
.t1-detail-poster { flex-shrink: 0; width: 180px; }
.t1-detail-poster img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover;
  border-radius: 8px; display: block;
}
.t1-detail-info { flex: 1; min-width: 0; }
.t1-detail-title { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.t1-detail-row { display: flex; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.t1-detail-row .label { color: var(--t1-text-muted); flex-shrink: 0; width: 80px; }
.t1-detail-row .value { color: var(--t1-text); word-break: break-all; }
.t1-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t1-detail-tag {
  padding: 3px 10px; border-radius: 4px; background: #fef9e7;
  color: #b8860b; border: 1px solid #f5c518; font-size: 13px;
}
.t1-detail-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.t1-same-section { margin-top: 28px; }
.t1-same-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.t1-same-list { display: flex; flex-direction: column; gap: 6px; }
.t1-same-item {
  background: var(--t1-card-bg); border-radius: 6px; padding: 10px 14px;
  text-decoration: none; color: var(--t1-text); font-size: 14px;
  border: 1px solid var(--t1-border); transition: border-color .2s;
  display: flex; align-items: center; gap: 10px;
}
.t1-same-item:hover { border-color: var(--t1-accent); }
.t1-same-item .num { color: var(--t1-accent); font-weight: 700; font-size: 13px; min-width: 20px; }

/* ── 全网搜 ── */
.t1-search-panel {
  display: flex; justify-content: space-between; gap: 24px; align-items: flex-start;
  margin-bottom: 18px; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, #181818 0%, #252525 100%);
  color: #fff; box-shadow: 0 14px 38px rgba(0,0,0,.14);
}
.t1-kicker { color: var(--t1-accent); font-size: 13px; font-weight: 800; letter-spacing: .08em; margin-bottom: 6px; }
.t1-search-panel h2 { margin: 0; font-size: 24px; line-height: 1.3; }
.t1-search-panel h2 span, .t1-search-panel p strong { color: var(--t1-accent); }
.t1-search-panel p { margin: 8px 0 0; color: rgba(255,255,255,.62); font-size: 14px; }
.t1-search-controls { min-width: 280px; display: grid; gap: 10px; justify-items: end; }
.t1-source-tabs, .t1-pan-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.t1-source-tabs a, .t1-pan-tabs a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 15px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72);
  text-decoration: none; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08);
}
.t1-source-tabs a.active, .t1-pan-tabs a.active { background: var(--t1-accent); border-color: var(--t1-accent); color: #111; }
.t1-wechat-bot-entry { display: flex; justify-content: flex-end; }
.t1-wechat-bot-entry label {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px;
  border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none;
  background: #07c160; color: #fff; cursor: pointer;
}
.t1-wechat-bot-modal-toggle { display: none; }
.t1-wechat-bot-modal {
  display: none; position: fixed; z-index: 9999; inset: 0; align-items: center; justify-content: center;
  padding: 24px; background: rgba(0,0,0,.55);
}
.t1-wechat-bot-modal-toggle:checked + .t1-wechat-bot-modal { display: flex; }
.t1-wechat-bot-card {
  width: min(320px, 100%); padding: 24px; border-radius: 18px; background: #151515; color: #f7f7f7;
  text-align: center; box-shadow: 0 28px 80px rgba(0,0,0,.28);
}
.t1-wechat-bot-qr { display: flex; align-items: center; justify-content: center; width: 220px; height: 220px; max-width: 100%; margin: 0 auto; border-radius: 12px; background: #fff; color: rgba(0,0,0,.5); font-size: 13px; }
.t1-wechat-bot-card img { width: 220px; height: 220px; max-width: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.t1-wechat-bot-card h3 { margin: 0 0 12px; font-size: 18px; }
.t1-wechat-bot-card p { margin: 12px 0 0; color: rgba(255,255,255,.68); line-height: 1.6; }
.t1-wechat-bot-close { display: inline-flex; margin-top: 18px; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.t1-loading-card { padding: 32px; border-radius: 16px; background: #fff; color: var(--t1-text-muted); text-align: center; border: 1px solid var(--t1-border); }
.t1-qlist { display: grid; gap: 12px; }
.t1-qlist-item {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--t1-card-bg); border-radius: 16px; border: 1px solid var(--t1-border);
  padding: 18px 20px; box-shadow: 0 8px 26px rgba(0,0,0,.05); transition: transform .16s, border-color .16s, box-shadow .16s;
}
.t1-qlist-item:hover { transform: translateY(-2px); border-color: rgba(245,197,24,.55); box-shadow: 0 14px 34px rgba(0,0,0,.08); }
.t1-qlist-main { min-width: 0; flex: 1; }
.t1-qlist-title { font-size: 16px; font-weight: 800; cursor: pointer; color: var(--t1-text); line-height: 1.45; word-break: break-word; }
.t1-qlist-title:hover { color: #b8860b; }
.t1-qlist-meta { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.t1-pan-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #f8f8f8; color: var(--t1-text-muted); font-size: 12px; font-weight: 700; }
.t1-qlist-get {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  min-width: 92px; height: 38px; padding: 0 18px; border-radius: 999px;
  background: var(--t1-accent); color: #111; font-size: 14px; font-weight: 800; cursor: pointer; border: none;
  box-shadow: 0 8px 18px rgba(245,197,24,.26);
}
.t1-qlist-get:hover { background: var(--t1-accent-hover); }
.t1-dialog-url-box { --el-dialog-border-radius: 18px; }
.t1-dialog-url-box .el-dialog { max-width: 520px; border-radius: 18px; overflow: hidden; background: #151515; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
.t1-dialog-url-box .el-dialog__header { display: none; }
.t1-dialog-url-box .el-dialog__body { padding: 0; }
.t1-dialog-url { padding: 24px; color: #f7f7f7; background: linear-gradient(145deg, #1d1d1d 0%, #101010 100%); }
.t1-dialog-url .title { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.t1-dialog-url .title span { color: var(--t1-accent); }
.t1-dialog-url .tips { font-size: 13px; color: rgba(255,255,255,.68); line-height: 1.7; }
.t1-dialog-url .qrcode { width: 144px; height: 144px; margin: 18px auto; padding: 12px; border-radius: 16px; background: #fff; }
.t1-dialog-url .nav { margin-top: 16px; display: grid; gap: 10px; }
.t1-dialog-url .item { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); word-break: break-all; }
.t1-dialog-url .item .t { font-weight: 700; color: var(--t1-accent); }
.t1-dialog-url a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.t1-dialog-statement { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.55); font-size: 12px; line-height: 1.7; }
.t1-dialog-statement p { margin: 0; }

/* ── 空状态 ── */
.t1-empty { text-align: center; padding: 60px 20px; color: var(--t1-text-muted); }
.t1-empty img { max-width: 160px; margin-bottom: 16px; opacity: .6; }

/* ── 底部 ── */
.t1-footer { padding: 32px 20px; text-align: center; font-size: 13px; color: var(--t1-text-muted); border-top: 1px solid var(--t1-border); margin-top: 40px; }

/* ── 响应式 ── */
@media (max-width: 1199px) {
  .t1-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .t1-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .t1-header-inner { gap: 10px; padding: 0 12px; }
  .t1-nav { display: none; }
  .t1-header-search { max-width: none; flex: 1; }
  .t1-carousel-overlay { padding: 20px 20px; }
  .t1-carousel-nav { right: 20px; bottom: 12px; }
  .t1-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .t1-detail-card { flex-direction: column; padding: 16px; }
  .t1-detail-poster { width: 120px; }
  .t1-container { padding: 0 12px; }
  .t1-search-panel { flex-direction: column; padding: 18px; }
  .t1-search-controls { min-width: 0; width: 100%; justify-items: start; }
  .t1-source-tabs, .t1-pan-tabs { justify-content: flex-start; }
  .t1-wechat-bot-entry { justify-content: flex-start; }
  .t1-result-item, .t1-qlist-item { grid-template-columns: 1fr; display: grid; align-items: start; }
  .t1-result-actions { justify-content: flex-start; }
  .t1-resource-link-list { display: block; padding: 12px; }
  .t1-resource-link-label { display: block; margin-bottom: 8px; line-height: 1.4; }
  .t1-resource-link-row { grid-template-columns: 1fr; gap: 8px; }
  .t1-result-item { padding: 14px; }
}
@media (max-width: 480px) {
  .t1-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .t1-carousel-img { aspect-ratio: 16 / 9; }
}
