:root {
  /* 统一成类似资讯站的清爽蓝色系 */
  --page-bg: #f5f6f7;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;

  --text-main: #111827;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;
  --text-tip: #6b7280;

  --primary: #1e80ff;
  --primary-soft: #e5f1ff;

  --footer-border: #e5e7eb;
}

html {
  font-size: 16px; /* rem 基准：PC 端正文 16px */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 1rem;
}

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

.kw-mark {
  background: transparent;
  color: #ef4444; /* 红色高亮 */
  padding: 0 2px;
  border-radius: 3px;
}

.site-header {
  height: 64px;
  margin-top: 8px;
  background: rgba(8, 108, 255, 0.96);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
  border-radius: 0; /* 顶部整条导航去掉大圆角，改为直角 */
}

.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  line-height: 64px;
}

.site-header-search {
  flex: 1;
  max-width: 440px;
  margin: 0 18px;
}

.site-nav {
  display: flex;
  gap: 18px;
}

/* 顶部导航内嵌搜索框：默认更紧凑（仅影响 list.html 的 header 搜索） */
.site-header .list-search-form {
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
  padding: 3px 6px; /* 导航里更薄 */
  gap: 4px;
}

.site-header .list-search-input {
  height: 28px;
  line-height: 28px;
  font-size: 0.875rem;
  padding: 0 10px;
}

.site-header .list-search-button {
  height: 28px;
  line-height: 28px;
  padding: 0 10px;
  font-size: 0.875rem;
}

/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 960px) {
  .site-header-inner {
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .site-logo {
    line-height: 1.2;
    font-size: 1.35rem;
  }

  .site-header-search {
    max-width: 520px;
    margin: 0 12px;
  }

  .site-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .main-layout {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .site-header {
    margin-top: 6px;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }

  .site-header-search {
    flex: none;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  /* header search reuse: make touch-friendly */
  .list-search-form {
    width: 100%;
  }

  .list-search-input {
    height: 36px;
    font-size: 0.93rem;
  }

  .list-search-button {
    height: 36px;
    padding: 0 14px;
    font-size: 0.93rem;
  }

  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-inner {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-title {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .hero-tabs {
    gap: 8px;
    flex-wrap: wrap;
  }

  .search-box {
    width: 100%;
  }

  .search-input {
    height: 42px;
    font-size: 0.95rem;
  }

  .search-button {
    height: 42px;
    font-size: 0.95rem;
    padding: 0 16px;
  }

  .search-extra {
    gap: 10px;
  }

  .main-layout {
    flex-direction: column;
  }

  .main-left,
  .main-right {
    width: 100%;
    min-width: 0;
  }

  .sidebar-card {
    position: static;
  }

  .list-filters {
    gap: 10px;
  }

  .filter-group {
    flex: 1;
    min-width: 48%;
  }

  .filter-group.filter-sort {
    min-width: 100%;
  }

  .list-pagination {
    flex-wrap: wrap;
    gap: 10px;
  }

  .page-numbers {
    flex-wrap: wrap;
    gap: 8px;
  }

  .song-item {
    gap: 10px;
  }

  .song-title-row {
    gap: 6px;
    flex-wrap: wrap;
  }

  .song-actions {
    align-items: flex-start;
    padding-top: 2px;
  }
}

.site-nav-item {
  font-size: 0.875rem;
  color: #e0edff;
  text-decoration: none;
  padding: 6px 14px;
  line-height: 1.4;
  border-radius: 999px; /* 顶部导航按钮：胶囊圆角 */
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav-item:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.site-nav-item.active {
  background: #ffffff;
  color: #1e80ff;
}

.site-nav-dropdown {
  position: relative;
  cursor: default;
}

.site-nav-dropdown-label {
  color: #e0edff;
}

.friend-links-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 6px;
  padding: 8px 12px;
  min-width: 180px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
  display: none;
  z-index: 20;
}

.friend-links-dropdown a {
  display: block;
  font-size: 0.8125rem;
  color: #374151;
  padding: 4px 0;
  white-space: nowrap;
}

.friend-links-dropdown a:hover {
  color: #1e80ff;
}

.site-nav-dropdown:hover .friend-links-dropdown {
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 16px 32px;
}

.hero {
  margin: 0 0 12px;
  padding: 50px 0 60px;
  background: linear-gradient(90deg, #0f8bff, #3ca8ff);
  color: #ffffff;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 16px 0;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem; /* 36px 主视觉大标题 */
  font-weight: 700;
  margin: 0 0 20px;
  letter-spacing: 0.04em;
}

.hero-subtitle {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin: 0 0 22px;
}

.hero-search {
  max-width: 720px;
  margin: 40px auto 0;
}

.hero-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.hero-tab {
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  color: #e5efff;
  white-space: nowrap;
}

.hero-tab.active {
  background: #ffffff;
  color: #1e80ff;
}

/* 顶部搜索框区域样式（白色胶囊条 + 右侧橙色按钮） */
.search-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 0;
  margin-bottom: 0;
  border: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.search-title {
  display: none;
}

.search-box {
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
}

.search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border-radius: 24px 0 0 24px;
  border: none;
  background: #ffffff;
  color: var(--text-main);
  font-size: 0.9375rem; /* 功能类文字 */
  outline: none;
}

.search-input::placeholder {
  color: #9ca3af;
}

.search-input:focus {
  outline: none;
}

.search-button {
  height: 40px;
  padding: 0 34px;
  border-radius: 0 24px 24px 0;
  border: none;
  background: #ff7b00;
  color: #ffffff;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
}

.search-button:hover {
  opacity: 0.9;
}

.search-tips {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.hero-hot {
  margin-top: 14px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-hot-label {
  margin-right: 6px;
}

.hero-hot-item {
  display: inline-block;
  margin: 0 4px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #f9fbff;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease,
    box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-hot-item:hover {
  background: #ffffff;
  color: #0f5fe6;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.search-tips strong {
  color: #e6e9f0;
}

.search-extra {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.search-extra span {
  white-space: nowrap;
}

section {
  margin-top: 16px;
}

section h2 {
  font-size: 1.125rem; /* 18px 区块主标题 */
  margin-bottom: 12px;
}

.list-page {
  margin-top: 16px;
}

.list-page-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 4px 0 16px;
}

.list-search {
  margin-bottom: 12px;
}

.list-search-row {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.list-search-row .list-search {
  flex: 0 0 60%;
}

.list-search-row .list-search-placeholder {
  flex: 1;
}

.list-search-form {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 6px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
}

.list-search-input {
  flex: 1;
  min-width: 0;
  padding: 6px 12px;
  font-size: 0.875rem;
  border-radius: 999px;
  border: none;
  outline: none;
}

.list-search-input::placeholder {
  color: #9ca3af;
}

.list-search-input:focus {
  outline: none;
}

.list-search-button {
  padding: 6px 18px;
  font-size: 0.875rem;
  border-radius: 999px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
}

.list-search-button:hover {
  background: #1d4ed8;
}

.list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f9fafb;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: #4b5563;
}

.filter-label {
  white-space: nowrap;
}

.filter-group select {
  padding: 4px 8px;
  font-size: 0.875rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
}

.filter-sort-btn {
  padding: 4px 10px;
  font-size: 0.8125rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-sort-btn:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
  color: #1d4ed8;
}

.filter-sort-btn.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.list-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  font-size: 0.875rem;
  color: #4b5563;
}

.page-btn {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #374151;
}

.page-btn[disabled] {
  opacity: 0.5;
  cursor: default;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-number {
  min-width: 26px;
  padding: 3px 6px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  cursor: pointer;
  font-size: 0.8125rem;
  color: #374151;
}

.page-number.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* 搜索结果两栏布局（左列表 + 右侧榜单） */
.main-layout {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  align-items: flex-start;
}

.main-left {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--card-bg);
  border-radius: 4px;
  border: 1px solid var(--card-border);
  padding: 12px 12px 8px;
}

.main-right {
  width: 260px;
  flex: 0 0 auto;
}

.block-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 4px 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}

.block-header-title {
  font-size: 1rem; /* 列表块标题，介于栏目标题和内容之间 */
  font-weight: 600;
  color: #111827;
}

.block-header-tabs {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: #6b7280;
}

.block-header-tabs span {
  padding: 2px 6px;
  border-radius: 999px;
  cursor: pointer;
}

.block-header-tabs .active {
  background: var(--primary-soft);
  color: var(--primary);
}

.song-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  display: none;
}

.song-list.active {
  display: block;
}

.song-item {
  display: flex;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid #f3f4f6;
}

.song-thumb {
  width: 110px;
  height: 70px;
  border-radius: 2px;
  background: #eef1f5;
  flex-shrink: 0;
}

/* 列表页不需要缩略图，隐藏左侧图片，仅保留文字列表 */
.list-page-list .song-thumb {
  display: none;
}

.song-info {
  flex: 1;
  min-width: 0;
}

.song-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 10px;
}

.song-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e80ff;
  background: #eff6ff;
  border: 1px solid rgba(30, 128, 255, 0.25);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.song-download:hover {
  background: #1e80ff;
  color: #ffffff;
  border-color: #1e80ff;
}

/* 内容页（详情页） */
.detail-page .detail-header {
  margin-bottom: 10px;
}

.detail-title {
  margin: 6px 0 6px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.detail-kv {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-k {
  color: #9ca3af;
}

.detail-artist {
  color: #1e80ff;
  text-decoration: none;
}

.detail-artist:hover {
  color: #1d4ed8;
}

.detail-dot {
  color: #cbd5e1;
}

.detail-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 14px 14px;
  margin-bottom: 12px;
}

.detail-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.detail-lyric {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #111827;
}

.detail-tip {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* 两栏歌词面板（仿截图：左文本 / 右 LRC） */
.detail-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 12px 0 12px;
}

.detail-panel {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.detail-panel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ef4444;
  margin: 4px 0 10px;
}

.detail-panel-body {
  border: 1px dashed #d1d5db;
  background: #ffffff;
  border-radius: 4px;
  padding: 14px 14px;
  min-height: 420px;
  overflow: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.detail-panel:hover .detail-panel-body {
  background-color: #fff7ed;
  border-color: #fdba74;
}

.detail-panel:hover {
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.detail-plain-lyric {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #111827;
}

.detail-lrc-lyric {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  font-size: 0.875rem;
  color: #111827;
}

.detail-info-row {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.detail-info-k {
  color: #6b7280;
  white-space: nowrap;
}

.detail-info-v {
  color: #111827;
  min-width: 0;
}

.detail-desc {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #4b5563;
}

.detail-button-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.10);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.detail-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.detail-btn-red {
  background: #1e80ff;          /* 和全站主色统一：蓝色 */
}

.detail-btn-amber {
  background: #f97316;          /* 与列表高亮橙色接近 */
}

.detail-btn-orange {
  background: #0ea5e9;          /* 辅助蓝绿色，和顶部清爽风格更贴近 */
}

@media (max-width: 640px) {
  .detail-panels {
    grid-template-columns: 1fr;
  }

  .detail-panel-body {
    min-height: 260px;
  }

  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .detail-button-row {
    grid-template-columns: 1fr;
  }
}

/* 列表页排序编号样式 */
.list-page-list .song-item {
  align-items: flex-start;
}

.song-rank {
  width: 28px;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-top: 4px;
}

.song-rank:nth-child(1),
.list-page-list .song-item:nth-child(-n + 3) .song-rank {
  color: #ef4444;
  font-weight: 600;
}

.song-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.song-title {
  font-size: 1.125rem; /* 18px，略大于正文 */
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}

.song-title:hover {
  color: #1e80ff;
  text-shadow: 0 0 1px rgba(30, 128, 255, 0.6);
}

.song-meta {
  font-size: 0.8125rem; /* 13px 辅助信息 */
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-lyric-snippet {
  font-size: 0.9375rem;  /* 15px 列表摘要 */
  color: #6b7280;        /* 略浅的灰色，减轻阅读压迫感 */
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.song-extra {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.sidebar-card {
  background: var(--card-bg);
  border-radius: 4px;
  border: 1px solid var(--card-border);
  padding: 10px 10px 8px;
}

.sidebar-card + .sidebar-card {
  margin-top: 12px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar-tabs {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  margin: 4px 0 6px;
  color: #6b7280;
}

.sidebar-tabs span {
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 999px;
}

.sidebar-tabs .active {
  background: #eff6ff;
  color: #1d4ed8;
}

.sidebar-ad {
  padding: 0;
  overflow: hidden;
}

.sidebar-ad-link,
.sidebar-ad img {
  display: block;
  width: 100%;
}

.sidebar-ad img {
  height: auto;
}

.sidebar-ad-small {
  padding: 0;
  overflow: hidden;
}

.sidebar-ad-small img {
  display: block;
  width: 100%;
}

.sidebar-random .rank-item {
  border-bottom: none;
}

.sidebar-random .rank-title {
  text-decoration: none;
  color: #111827;
  transition: color 0.15s ease;
}

.sidebar-random .rank-title:hover {
  color: #1e80ff;
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rank-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.75rem; /* 序号和热度：12px */
  padding: 4px 0;
  border-bottom: 1px dashed rgba(209, 213, 219, 0.7);
}

.rank-item:last-child {
  border-bottom: none;
}

.rank-num {
  width: 18px;
  text-align: center;
  color: #9ca3af;
  font-size: 0.75rem;
}

.rank-num.top {
  color: #ef4444;
  font-weight: 600;
}

.rank-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
  font-size: 0.8125rem; /* 歌名：13px，略大一点 */
  text-decoration: none;
  transition: color 0.15s ease;
}

.rank-title:hover {
  color: #1e80ff;
}

.rank-hot {
  color: #ef4444;
  white-space: nowrap;
  font-size: 15px;
}

.sidebar-note {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed #e5e7eb;
  font-size: 0.75rem;
  color: #9ca3af;
}

footer {
  margin-top: 40px;
  padding: 22px 0 8px;
  font-size: 0.75rem;
  color: #6b7280;
  border-top: 1px solid var(--footer-border);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 8px;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: #1e80ff;
}

.footer-friend-trigger {
  margin-left: 8px;
  color: #6b7280; /* 默认与其他底部文字一致 */
  cursor: pointer;
}

.footer-friend-trigger:hover {
  color: #1e80ff; /* 仅悬停时高亮，点击后不保持颜色 */
}

.footer-friend-dropdown {
  display: none;
  margin: 4px 0 0;
}

.footer-friend-dropdown a {
  margin: 0 8px;
  color: #6b7280;
  font-size: 0.8rem;
}

.footer-friend-dropdown a:visited {
  color: #6b7280;
}

.footer-friend-dropdown a:hover {
  color: #1e80ff;
}

.footer-friend-dropdown.open {
  display: block;
}

.footer-text {
  margin: 4px 0;
}

.footer-copy {
  margin: 2px 0;
}

/* 简单自适应 */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }
  .main-right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  header {
    padding-top: 8px;
  }
  header h1 {
    font-size: 18px;
  }
  header p {
    font-size: 0.9rem;
  }
  .search-section {
    padding: 18px 14px 16px;
  }
  .search-extra {
    flex-direction: column;
  }
}

