/* 资源搜索聚合网站 样式表 */
@font-face {
  font-family: 'Montserrat';
  src: url('https://resource-static.bj.bcebos.com/fonts-skill/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Source Han Mono SC';
  src: url('https://resource-static.bj.bcebos.com/fonts-skill/SourceHanMonoSC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --primary: #3E4759;
  --on-primary: #FFFFFF;
  --accent: #D94E17;
  --on-accent: #FFFFFF;
  --background: #FFFFFF;
  --foreground: #111111;
  --muted: #F5F5F5;
  --border: #E5E5E5;
  --secondary: #39393B;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: linear-gradient(160deg, #dceeff 0%, #e8f3ff 40%, #f0eaff 100%) fixed;
  color: var(--foreground);
  font-family: 'Source Han Mono SC', 'PingFang SC', 'Microsoft YaHei', monospace, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-text, .hero-title {
  font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}


/* Header - 首页悬浮，其他页白色实底 */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: background .3s, border-color .3s;
}
.site-header.scrolled,
body.page-inner .site-header {
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--foreground);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--on-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border-radius: var(--radius);
}
.brand-text { font-size: 18px; }
.header-nav a {
  color: var(--foreground);
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover { border-bottom-color: var(--accent); }
/* 首页header悬浮时导航白色文字 */
.hero ~ * .site-header a,
.site-header:not(.scrolled):not(.page-inner *) .header-nav a { color: #fff; }
.site-header.scrolled .header-nav a,
body.page-inner .site-header .header-nav a { color: var(--foreground); }

/* Hero / Search - 明亮白色风格（参考截图） */
.hero {
  background: transparent;
  padding: 96px 16px 40px;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}
.hero-bg-decor { display: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; }
.hero-badge { display: none; }
.hero .container { width: 100%; }
.hero-title {
  font-size: 36px;
  margin: 0 0 10px;
  color: #1a1a2e;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.hero-sub {
  color: #333;
  margin: 0 0 24px;
  font-size: 17px;
  font-weight: 400;
}
.hero-accent {
  color: #2563eb;
  font-weight: 700;
}
/* 搜索框 */
.search-wrap {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #c5cfe8;
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(37,99,235,0.10);
  overflow: hidden;
  padding: 0;
  gap: 0;
}
.search-icon { display: none; }
.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: #1a1a2e;
  min-width: 0;
  padding: 15px 18px;
}
.search-wrap input::placeholder { color: #aab0c0; }
.btn-search {
  background: #2563eb !important;
  color: #fff !important;
  border: none;
  border-radius: 0 6px 6px 0;
  padding: 0 40px;
  height: 52px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
  font-family: inherit;
}
.btn-search:hover { background: #1d4ed8 !important; }
/* 波浪底部 */
.hero-wave { display: none; }
.search-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.search-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s;
}
.search-form input:focus { border-color: var(--primary); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #2f3746; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: #b8400f; }
.btn-secondary { background: var(--muted); color: var(--foreground); }
.btn-secondary:hover { background: #e8e8e8; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}
.btn-outline:hover { background: var(--muted); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Results */
.results-section { padding: 24px 0 64px; }
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.results-meta h2 { margin: 0; font-size: 20px; }
.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--foreground);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); }
.chip.active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}

.site-group {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.site-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.site-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.status-dot.empty { background: #bbb; }
.status-dot.error { background: #c0392b; }
.site-status { font-size: 12px; color: #777; }

.result-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--background);
  animation: fadeUp 0.18s ease-out;
}
.result-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--foreground);
}
.result-snippet {
  font-size: 13px;
  color: #555;
  margin: 0 0 12px;
  line-height: 1.5;
}
.result-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.link-type {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  background: var(--muted);
  color: var(--foreground);
  font-size: 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  flex-shrink: 0;
}
.link-url {
  font-size: 13px;
  color: var(--primary);
  word-break: break-all;
  min-width: 0;
}
.copy-btn {
  flex-shrink: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #777;
}
.empty-state h3 { margin: 0 0 8px; color: var(--foreground); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 13px;
  color: #777;
  text-align: center;
}

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 24px 0;
}
.admin-sidebar .brand {
  padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--on-primary);
}
.admin-sidebar .brand-mark { background: var(--accent); }
.admin-nav { padding: 16px 0; }
.admin-nav a {
  display: block;
  padding: 12px 20px;
  color: rgba(255,255,255,0.8);
  border-left: 3px solid transparent;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,0.08);
  color: var(--on-primary);
  border-left-color: var(--accent);
}
.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px;
  background: var(--muted);
}
.admin-main h1 { margin: 0 0 24px; font-size: 24px; }
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.card-header h2 { margin: 0; font-size: 18px; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th, .data-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table th {
  font-weight: 600;
  color: var(--primary);
  background: var(--muted);
  white-space: nowrap;
}
.data-table td { word-break: break-all; }
.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.badge-on { background: #e8f5e9; color: #1b5e20; }
.badge-off { background: #f5f5f5; color: #777; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.form-field input, .form-field select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.form-field input:focus { border-color: var(--primary); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; }

.login-page {
  display: flex;
  min-height: 100vh;
}
.login-side {
  flex: 1;
  background: var(--primary);
  color: var(--on-primary);
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-side h1 { font-size: 28px; margin: 0 0 12px; }
.login-side p { color: rgba(255,255,255,0.75); line-height: 1.6; }
.login-form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 { margin: 0 0 24px; font-size: 22px; }
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .hero { padding: 80px 16px 32px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 14px; }
  .search-wrap { max-width: 100%; border-radius: 8px; }
  .search-wrap input { padding: 13px 14px; font-size: 15px; }
  .btn-search { padding: 0 24px; font-size: 15px; height: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 20px; }
  .login-side { display: none; }
  .data-table-wrap { overflow-x: auto; }
  /* today-grid 响应式移到基础样式后面，此处移除避免被覆盖 */
}

/* ===== 资源共享 / 审核 新增样式 ===== */
.share-section {
  padding: 48px 0 60px;
  background: #f8f9fb;
  border-top: 1px solid #eee;
}
.share-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: #3E4759; }
.share-desc  { color: #666; margin-bottom: 20px; }
.notice-box {
  background: #fff8f0;
  border: 1px solid #f0c070;
  border-left: 4px solid #D94E17;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 14px;
}
.notice-box strong { display: block; margin-bottom: 8px; color: #c04010; }
.notice-box ul { margin: 0; padding-left: 20px; line-height: 2; color: #555; }
.share-form { max-width: 640px; }
.form-row   { margin-bottom: 16px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: #3E4759; margin-bottom: 6px; }
.form-row input[type="text"],
.form-row input[type="url"] {
  width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd;
  border-radius: 6px; font-size: 15px; box-sizing: border-box;
  transition: border-color .2s;
}
.form-row input:focus { outline: none; border-color: #D94E17; box-shadow: 0 0 0 3px rgba(217,78,23,.1); }
.form-hint  { font-size: 12px; color: #888; display: block; margin-top: 4px; }
.req        { color: #D94E17; }
.form-check label { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fff1f2; border: 1px solid #fca5a5; color: #991b1b; }
.badge { display:inline-block; padding:2px 8px; border-radius:20px; font-size:12px; font-weight:600; }
.badge-ok       { background:#dcfce7; color:#166534; }
.badge-pending  { background:#fef9c3; color:#854d0e; }
.badge-rejected { background:#fee2e2; color:#991b1b; }
.badge-disabled { background:#f1f5f9; color:#64748b; }
.btn-sm { padding: 4px 12px; font-size: 13px; }

/* ===== 新增样式 v3 ===== */

/* 导航共享按钮 */
.header-nav .btn-share-nav {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 6px 16px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 14px;
  margin-left: 8px;
  transition: background .2s;
}
.header-nav .btn-share-nav:hover { background: #b83d0f; color: #fff; }

/* 搜索框旁共享按钮 */
.btn-share {
  display: inline-flex;
  align-items: center;
  background: var(--primary);
  color: #fff !important;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  height: 46px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s;
}
.btn-share:hover { background: #2e3547; }

/* 结果卡片元数据行 */
.result-card-top { margin-bottom: 10px; }
.result-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.badge-source {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-source.user  { background: #fef9c3; color: #854d0e; }
.badge-source.admin { background: #dbeafe; color: #1e40af; }
.result-date { font-size: 12px; color: #888; }
.tag { display:inline-block; background:#f1f5f9; color:#555; border-radius:4px; padding:1px 6px; font-size:12px; margin:1px; }

/* 可点击链接 */
.link-clickable {
  color: var(--accent) !important;
  word-break: break-all;
  text-decoration: none;
}
.link-clickable:hover { text-decoration: underline; }

/* 独立投稿页 */
.share-page { padding: 48px 0 64px; }
.share-container { max-width: 720px; }
.share-page-header { margin-bottom: 28px; }
.share-page-header h1 { font-size: 26px; margin: 0 0 8px; color: var(--primary); }
.share-page-header p  { color: #666; margin: 0; font-size: 15px; }

/* 返回按钮 */
.btn-back {
  display: inline-flex; align-items: center;
  background: #6b7280; color: #fff !important;
  padding: 8px 18px; border-radius: 5px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.btn-back:hover { background: #4b5563; }

/* ===== v4 新增样式 ===== */

/* 导航胶囊按钮 */
.nav-pill {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  margin-left: 6px;
  text-decoration: none !important;
  transition: opacity .2s, transform .15s;
}
.nav-pill:hover { opacity: .85; transform: translateY(-1px); }
.nav-pill-orange { background: var(--accent); color: #fff !important; }
.nav-pill-blue   { background: #2563eb;       color: #fff !important; }

/* 热门标签行 - 白底+深绿色文字+橙色边框，双色风格醒目 */
.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.hot-tags-label { display: none; }
.hot-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.92);
  border: 2px solid #f97316;
  border-radius: 20px;
  color: #166534 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  letter-spacing: 0.02em;
}
.hot-tag:hover {
  background: #f97316;
  border-color: #f97316;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(249,115,22,0.35);
}

/* 今日资源区块 */
.today-section {
  padding: 36px 0 48px;
  background: transparent;
}
.today-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.today-title {
  font-size: 18px;
  margin: 0;
  color: #1a1a1a;
  font-weight: 700;
}
.today-date {
  color: #1a1a1a;
  font-weight: 700;
  margin-right: 4px;
}
.today-more {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}
.today-more:hover { text-decoration: underline; }
.today-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px 28px;
}
/* 媒体查询必须在基础样式之后，否则会被覆盖 */
@media (max-width: 900px) {
  .today-grid { grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
}
@media (max-width: 480px) {
  .today-grid { grid-template-columns: 1fr; }
}
.today-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.today-num {
  font-size: 13px;
  font-weight: 700;
  color: #999;
  min-width: 28px;
  flex-shrink: 0;
}
/* 01-03 橙色，04-06 绿色，其余灰色 */
.today-num.num-top-1 { color: #f97316; }
.today-num.num-top-2 { color: #eab308; }
.today-num.num-top-3 { color: #22c55e; }
.today-link {
  font-size: 13px;
  color: #333;
  text-decoration: none;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.today-link:hover { color: #2563eb; }

/* 投稿/想要页布局 */
.contrib-page { padding: 36px 0 56px; background: #f5f6fa; min-height: calc(100vh - 64px); }
.contrib-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 768px) { .contrib-layout { grid-template-columns: 1fr; } }

.contrib-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.contrib-card + .contrib-card { margin-top: 16px; }
.contrib-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contrib-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.contrib-icon.orange { background: #fff3ee; }
.contrib-icon.blue   { background: #eff6ff; }
.contrib-title { font-size: 22px; margin: 0 0 4px; color: #1a1a1a; }
.contrib-desc  { margin: 0; font-size: 13px; color: #888; }

/* 投稿表单 */
.contrib-form .cf-row { margin-bottom: 16px; }
.contrib-form .cf-row label {
  display: block; font-size: 13px; font-weight: 600;
  color: #3E4759; margin-bottom: 5px;
}
.contrib-form input[type="text"],
.contrib-form input[type="url"],
.contrib-form textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #e0e4ed; border-radius: 7px;
  font-size: 14px; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.contrib-form input:focus,
.contrib-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,78,23,.1);
}
.cf-hint  { font-size: 12px; color: #999; margin-top: 4px; display: block; }
.cf-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .cf-row-2col { grid-template-columns: 1fr; } }
.cf-check label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; cursor: pointer; color: #555;
}
.cf-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.cf-actions {
  display: flex; align-items: center; gap: 16px;
  margin-top: 20px;
}
.btn-contrib {
  padding: 11px 28px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 7px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-contrib:hover { background: #b83d0f; transform: translateY(-1px); }
.btn-link-back { font-size: 13px; color: #888; text-decoration: none; }
.btn-link-back:hover { color: var(--accent); }

/* 想要资源侧边卡片 */
.want-intro { font-size: 14px; color: #555; line-height: 1.7; margin: 0 0 14px; }
.want-tips {
  list-style: none; padding: 0; margin: 0 0 20px;
  font-size: 13px; color: #666;
}
.want-tips li { padding: 5px 0; border-bottom: 1px dashed #f0f0f0; }
.want-tips li:last-child { border-bottom: none; }
.btn-want-big {
  display: block; text-align: center;
  padding: 12px; background: #2563eb; color: #fff !important;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-want-big:hover { background: #1d4ed8; transform: translateY(-1px); }
.tips-card h3 { font-size: 14px; margin: 0 0 12px; color: #3E4759; }

/* 想要资源提交按钮 */
.btn-want-submit {
  padding: 11px 28px;
  background: #2563eb; color: #fff;
  border: none; border-radius: 7px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.btn-want-submit:hover { background: #1d4ed8; }
.want-notice-row {
  text-align: center; margin-top: 20px;
  font-size: 13px; color: #888;
}
.want-notice-row strong { color: var(--accent); }

/* ===== v5 新增样式 ===== */

/* ---- 友情链接 ---- */
.friendly-links-section {
  background: transparent;
  padding: 20px 0 36px;
  border-top: 1px solid rgba(100,130,200,0.15);
}
.fl-title {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.fl-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.fl-item {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(100,140,220,0.25);
  border-radius: 4px;
  font-size: 13px;
  color: #4b6cb7 !important;
  text-decoration: none;
  transition: all .15s;
}
.fl-item:hover {
  background: #fff;
  border-color: #4b6cb7;
  color: #1e40af !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.12);
}
.results-section,
.today-section {
  padding-top: 28px;
}
.brand-text  { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.brand       { text-decoration: none; }

/* Hero 背景图片叠加层 */
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.45);
}

/* Hero 有背景图时的样式覆盖 */
.hero.hero-has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero.hero-has-bg .hero-title,
.hero.hero-has-bg .hero-sub,
.hero.hero-has-bg .hot-tag {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.hero.hero-has-bg .hot-tag {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.35);
}
.hero.hero-has-bg .hot-tag:hover {
  background: rgba(255,255,255,.28);
}

/* 标签选择器 - 人性化版 */
.tag-picker { margin-top: 4px; }
.tag-picker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fdf4ff 0%, #eff6ff 100%);
  border: 1.5px dashed #c4b5fd;
  border-radius: 10px;
}
.tag-picker-pills::before {
  content: '点击选择标签：';
  display: block;
  width: 100%;
  font-size: 11px;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 13px;
  background: #fff;
  border: 1.5px solid #ddd6fe;
  border-radius: 20px;
  font-size: 13px;
  color: #5b21b6;
  cursor: pointer;
  user-select: none;
  transition: all .15s;
  font-weight: 500;
}
.tag-pill:hover  { background: #f5f3ff; border-color: #7c3aed; color: #5b21b6; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(124,58,237,0.15); }
.tag-pill.active { background: #7c3aed; border-color: #7c3aed; color: #fff; box-shadow: 0 2px 8px rgba(124,58,237,0.3); }
.tag-pill.active::before { content: '✓ '; }
.tag-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tag-input-wrap input {
  flex: 1;
  border: 1.5px solid #ddd6fe;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #4c1d95;
  background: #fdf4ff;
  outline: none;
  transition: border-color .15s;
}
.tag-input-wrap input:focus { border-color: #7c3aed; background: #fff; }
.tag-clear-btn {
  padding: 7px 14px;
  font-size: 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.tag-clear-btn:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

/* 想要资源顶部快捷入口 */
.want-shortcut {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8 !important;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.want-shortcut:hover { background: #dbeafe; }

/* 想要资源成功提示框 */
.want-success-box {
  text-align: center;
  padding: 32px 24px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  margin: 8px 0;
}
.want-success-icon { font-size: 48px; margin-bottom: 12px; }
.want-success-box h3 { font-size: 20px; margin: 0 0 8px; color: #166534; }
.want-success-box p  { font-size: 14px; color: #15803d; margin: 0; }

/* 想要资源类型列表 */
.want-type-list { margin: 0 0 4px; }
.want-type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 13px;
  color: #555;
  border-bottom: 1px dashed #f0f0f0;
}
.want-type-item:last-child { border-bottom: none; }
.want-type-item span { font-size: 16px; }
