/* ==========================================================================
   资源下载门户 —— 前台样式
   风格：清爽、克制、无广告位；主色青玉绿
   ========================================================================== */

:root {
  --primary: #0e7c66;
  --primary-dark: #0a5f4e;
  --primary-soft: #e8f4f1;
  --primary-line: #cfe6e0;

  --text: #1b2733;
  --text-2: #5b6b7c;
  --text-3: #93a1ae;

  --bg: #f5f7f7;
  --card: #ffffff;
  --border: #e6eaec;
  --border-2: #eef1f2;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 40, 34, .04);
  --shadow-hover: 0 6px 20px rgba(16, 40, 34, .08);

  --maxw: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

button, input, select, textarea { font-family: inherit; font-size: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------ 顶部导航 ------------------------------ */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--text);
  flex-shrink: 0;
}

.logo:hover { color: var(--primary); }

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  white-space: nowrap;
  font-size: 14.5px;
  transition: background .15s, color .15s;
}

.main-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 600; background: var(--primary-soft); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  transition: all .16s;
}

.btn:hover { background: var(--primary-dark); color: #fff; }

.btn-ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }

.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
}
.user-chip:hover { border-color: var(--primary-line); background: var(--primary-soft); }

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.user-chip .u-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.user-chip .u-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.user-chip .u-points { font-size: 12px; color: var(--text-3); white-space: nowrap; }

/* ------------------------------ 页面容器 ------------------------------ */

.page { padding: 24px 0 56px; }

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--primary-line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--text-2);
}
.notice-bar .tag {
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

/* ------------------------------ Hero ------------------------------ */

.hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 20px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero p {
  margin: 0 0 24px;
  color: var(--text-2);
  font-size: 14.5px;
}

.hero-search {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.hero-search input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fafbfb;
}
.hero-search input:focus { border-color: var(--primary); background: #fff; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-2);
}

.hero-stats .st { text-align: center; }
.hero-stats .st b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.hero-stats .st span { font-size: 12.5px; color: var(--text-3); }

/* ------------------------------ 版块 ------------------------------ */

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-2);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: var(--primary);
  flex-shrink: 0;
}

.section-more {
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 3px;
}
.section-more:hover { color: var(--primary); }

/* ---- Tab 轮换框（推荐下载 / 下载最多 / 最新下载） ---- */

/* 占满整行 */
.tab-section { grid-column: 1 / -1; }

.tab-section .section-head {
  padding: 8px 16px 0;
  align-items: flex-end;
}

.tab-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  min-width: 0;
}

.tab-btn {
  position: relative;
  padding: 9px 14px 12px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color .16s, background .16s;
}

.tab-btn:hover { color: var(--primary); background: var(--primary-soft); }
.tab-btn.active { color: var(--primary); }

.tab-btn.active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}

.tab-section .section-more { padding-bottom: 12px; }

.tab-panels {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tab-panel { display: none; }

.tab-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: tabFade .26s ease;
}

@keyframes tabFade {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

.tab-panel .res-list { flex: 1; }

/* 全宽框内的条目：标题靠左、元信息靠右，撑满整行 */
.tab-section .res-item {
  align-items: center;
  padding: 13px 24px;
}

.tab-section .res-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.tab-section .res-title {
  flex: 1;
  min-width: 0;
  font-size: 14.5px;
}

.tab-section .res-meta {
  margin-top: 0;
  flex-shrink: 0;
  gap: 18px;
}

.tab-section .res-badge,
.tab-section .res-rank { margin-top: 0; }

/* 资源列表项 */

.res-list { list-style: none; margin: 0; padding: 6px 0; flex: 1; }

.res-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 20px;
  transition: background .14s;
}

.res-item:hover { background: #fafcfb; }

.res-item + .res-item { border-top: 1px solid var(--border-2); }

.res-badge {
  flex-shrink: 0;
  min-width: 44px;
  height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  letter-spacing: .3px;
}

.res-body { flex: 1; min-width: 0; }

.res-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.res-item:hover .res-title { color: var(--primary); }

.res-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-3);
}

.res-meta .pts {
  color: #b45309;
  font-weight: 500;
}
.res-meta .pts.free { color: var(--primary); }

.res-rank {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border-2);
  color: var(--text-3);
  margin-top: 3px;
}
.res-rank.top1 { background: #b91c1c; color: #fff; }
.res-rank.top2 { background: #c2410c; color: #fff; }
.res-rank.top3 { background: #a16207; color: #fff; }

.empty-tip {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
}

/* ------------------------------ 列表页 ------------------------------ */

.page-head {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
}

.page-head h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.page-head .desc {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-2);
  flex-wrap: wrap;
}

.filter-bar .lbl { font-size: 13px; color: var(--text-3); margin-right: 2px; }

.chip {
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  font-size: 13px;
  color: var(--text-2);
  background: #fff;
}
.chip:hover { border-color: var(--primary-line); color: var(--primary); background: var(--primary-soft); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.content-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* 列表行（大） */

.row-item {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  transition: background .14s;
}
.row-item + .row-item { border-top: 1px solid var(--border-2); }
.row-item:hover { background: #fafcfb; }

.row-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
}

.row-main { flex: 1; min-width: 0; }

.row-title {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 5px;
}
.row-item:hover .row-title { color: var(--primary); }

.row-summary {
  margin: 0 0 9px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.row-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}

.row-meta .cat {
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tag-mini {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  line-height: 1.6;
}

.row-action { flex-shrink: 0; display: flex; align-items: center; }

/* ------------------------------ 分页 ------------------------------ */

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 4px;
  flex-wrap: wrap;
}

.pager a, .pager span {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
}
.pager a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.pager .cur { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager .dots { border: 0; background: transparent; color: var(--text-3); }
.pager .disabled { color: #cbd5e1; background: #fafbfb; }

/* ------------------------------ 详情页 ------------------------------ */

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-2);
  font-size: 13px;
  color: var(--text-3);
}

.detail-meta .sep { color: var(--border); }

.detail-summary {
  margin: 20px 0;
  padding: 16px 18px;
  background: #fafcfb;
  border-left: 3px solid var(--primary-line);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.file-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fcfdfd;
}

.file-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--border);
}

.file-panel-head .fi {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12.5px;
  flex-shrink: 0;
}

.file-panel-head .fname {
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 3px;
}

.file-panel-head .fsize { font-size: 12.5px; color: var(--text-3); }

.dl-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dl-cost {
  font-size: 13.5px;
  color: var(--text-2);
}
.dl-cost b { color: #b45309; font-size: 17px; }
.dl-cost b.free { color: var(--primary); }

.alert {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
}
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info { background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary-dark); }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }

/* 侧栏 */

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.side-card h3 {
  margin: 0;
  padding: 14px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.side-card h3::before {
  content: '';
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--primary);
}

.side-list { list-style: none; margin: 0; padding: 8px 0; }
.side-list li a {
  display: flex;
  gap: 9px;
  padding: 7px 18px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.side-list li a:hover { color: var(--primary); background: #fafcfb; }
.side-list .idx {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  border-radius: 3px;
  background: var(--border-2);
  color: var(--text-3);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}
.side-list .idx.hot { background: var(--primary); color: #fff; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px;
}
.tag-cloud a {
  padding: 4px 11px;
  border-radius: 13px;
  font-size: 12.5px;
  background: #f4f7f6;
  color: var(--text-2);
}
.tag-cloud a:hover { background: var(--primary-soft); color: var(--primary); }

/* ------------------------------ 表单 / 登录注册 ------------------------------ */

.auth-wrap {
  max-width: 420px;
  margin: 48px auto;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 34px 30px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  text-align: center;
}

.auth-card .sub {
  margin: 0 0 26px;
  text-align: center;
  color: var(--text-3);
  font-size: 13.5px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
}

.field input, .field select, .field textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: #fbfcfc;
  color: var(--text);
  transition: all .16s;
}

.field textarea { height: auto; min-height: 96px; padding: 11px 14px; resize: vertical; line-height: 1.65; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 124, 102, .08);
}

.field .hint { margin-top: 5px; font-size: 12px; color: var(--text-3); }

.auth-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-2);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
}
.auth-foot a { color: var(--primary); font-weight: 500; }

/* ------------------------------ 用户中心 ------------------------------ */

.user-hero {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.user-hero .big-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 25px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-hero .uinfo { flex: 1; min-width: 180px; }
.user-hero .uinfo h1 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.user-hero .uinfo .sub { font-size: 13px; color: var(--text-3); }

.level-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  vertical-align: middle;
  margin-left: 8px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-box .k { font-size: 12.5px; color: var(--text-3); margin-bottom: 6px; }
.stat-box .v { font-size: 23px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.stat-box .v small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; }

.progress-line {
  height: 7px;
  border-radius: 4px;
  background: var(--border-2);
  overflow: hidden;
  margin-top: 8px;
}
.progress-line i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width .4s;
}

/* ------------------------------ 表格 ------------------------------ */

.table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th {
  text-align: left;
  padding: 12px 16px;
  background: #fafbfb;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-2);
  font-size: 13px;
  white-space: nowrap;
}
table.tbl td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-2);
  vertical-align: middle;
}
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fafcfb; }

/* ------------------------------ 页脚 ------------------------------ */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding: 40px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-2);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
}

.footer-col p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col li a { font-size: 13px; color: var(--text-2); }
.footer-col li a:hover { color: var(--primary); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-3);
}
.footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ------------------------------ 杂项 ------------------------------ */

.center-box {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px;
}
.center-box h1 { font-size: 46px; margin: 0 0 10px; color: var(--primary); font-weight: 700; }
.center-box p { color: var(--text-2); margin: 0 0 24px; }

/* ------------------------------ 响应式 ------------------------------ */

@media (max-width: 1024px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .section-grid { grid-template-columns: minmax(0, 1fr); }
  .header-top { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .main-nav { order: 3; width: 100%; flex: none; }
  .header-actions { margin-left: auto; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: 28px 20px; }
  .hero h1 { font-size: 22px; }
  .hero-stats { gap: 28px; }
  .detail-card { padding: 22px 20px; }
  .row-item { padding: 15px 16px; gap: 12px; }
  .row-icon { width: 40px; height: 40px; font-size: 11px; }

  /* 轮换框条目：窄屏改为上下两行。
     桌面端 .res-title 是 flex:1 + min-width:0、.res-meta 是 flex-shrink:0，
     窄屏时元信息会把标题挤成 0 宽（标题直接消失），这里必须拆成块级两行。 */
  .tab-section .res-item {
    align-items: flex-start;
    padding: 11px 14px;
  }
  .tab-section .res-body { display: block; }
  .tab-section .res-title { display: block; flex: none; }
  .tab-section .res-meta {
    margin-top: 5px;
    flex-wrap: wrap;
    gap: 4px 14px;
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-stats .st b { font-size: 18px; }
  .user-hero { padding: 20px; gap: 16px; }
  .auth-card { padding: 26px 22px; }
  .res-item { padding: 9px 14px; }
  .section-head { padding: 13px 14px; }
  .tab-section .section-head { padding: 6px 10px 0; }
  .tab-btn { padding: 8px 10px 11px; font-size: 14px; }
  .tab-btn.active::after { left: 8px; right: 8px; }
  .detail-card h1 { font-size: 18px; }
}
