/* ===== 一叶知秋纷飞舞 · 资源站样式 ===== */
:root {
  --primary: #ff6a3d;
  --primary-2: #f9a03f;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #2b2f36;
  --text-2: #7a8087;
  --border: #eceef1;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30, 40, 60, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 顶部通栏 */
.topbar { background: #23262b; color: #aab0b8; font-size: 12px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #d7dbe0; margin: 0 4px; }
.topbar a:hover { color: #fff; }
.topbar .vip-btn {
  background: linear-gradient(135deg, #f7b733, #fc4a1a); color: #fff;
  padding: 2px 10px; border-radius: 12px; margin-left: 8px;
}

/* 头部 */
.header { background: #fff; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo img { height: 40px; }
.nav ul { display: flex; gap: 6px; }
.nav a { display: block; padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: #fff2ec; color: var(--primary); }
.nav li.active a { color: var(--primary); background: #fff2ec; }
.search-form { margin-left: auto; display: flex; }
.search-form input {
  width: 220px; height: 38px; border: 1px solid var(--border); border-right: none;
  border-radius: 8px 0 0 8px; padding: 0 14px; outline: none; font-size: 13px;
}
.search-form input:focus { border-color: var(--primary); }
.search-form button {
  width: 44px; height: 38px; border: none; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border-radius: 0 8px 8px 0;
}

/* 横幅 */
.hero {
  background: linear-gradient(120deg, #23262b 0%, #3a2f2a 60%, #6b3a24 100%);
  color: #fff; padding: 56px 0 48px; text-align: center;
}
.hero h1 { font-size: 38px; letter-spacing: 2px; }
.hero h1 em { font-style: normal; color: var(--primary-2); }
.hero p { margin: 12px 0 26px; color: #c8ccd2; letter-spacing: 1px; }
.hero-stats { display: flex; justify-content: center; gap: 64px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 26px; color: #fff; }
.hero-stats span { font-size: 12px; color: #9aa0a8; }

/* 公告 */
.notice { background: #fff8f3; border-bottom: 1px solid #ffe3d4; }
.notice .container { display: flex; align-items: center; height: 40px; gap: 12px; overflow: hidden; }
.notice-tag {
  flex: none; background: var(--primary); color: #fff; font-size: 12px;
  padding: 1px 10px; border-radius: 10px;
}
.notice marquee { color: #b0673f; font-size: 13px; }

/* 主体 */
.main { padding: 28px 16px 48px; }
.section { margin-bottom: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.section-head small { color: var(--primary); font-size: 13px; font-weight: 400; letter-spacing: 2px; }
.dot { width: 6px; height: 20px; border-radius: 3px; display: inline-block; }
.dot-red { background: var(--primary); }
.dot-orange { background: var(--primary-2); }
.more { color: var(--text-2); font-size: 13px; }
.more:hover { color: var(--primary); }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.layout .card-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(30, 40, 60, .12); }
.card-cover { position: relative; display: block; height: 150px; }
.badge {
  position: absolute; left: 10px; top: 10px; background: #3fae5a; color: #fff;
  font-size: 11px; padding: 2px 10px; border-radius: 10px;
}
.badge-vip { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.card-body { padding: 14px 16px 12px; }
.card-body h3 {
  font-size: 15px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body h3 a:hover { color: var(--primary); }
.card-body p {
  color: var(--text-2); font-size: 13px; height: 42px; overflow: hidden; margin-bottom: 12px;
}
.card-meta { display: flex; align-items: center; gap: 12px; color: #a3a9b0; font-size: 12px; }
.tag-vip, .tag-free {
  margin-left: auto; font-size: 11px; padding: 1px 9px; border-radius: 10px; color: #fff;
}
.tag-vip { background: linear-gradient(135deg, #f7b733, #fc4a1a); }
.tag-free { background: #3fae5a; }

/* 封面占位渐变 */
.cover-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.cover-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.cover-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.cover-4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.cover-5 { background: linear-gradient(135deg, #fa709a, #fee140); }
.cover-6 { background: linear-gradient(135deg, #30cfd0, #330867); }
.cover-7 { background: linear-gradient(135deg, #a8edea, #fed6e3); }
.cover-8 { background: linear-gradient(135deg, #ff9a9e, #fecfef); }

/* 侧栏 */
.widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.widget h4 { font-size: 15px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.site-info li { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-2); font-size: 13px; }
.site-info li span { color: var(--text); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: #f5f6f8; padding: 4px 12px; border-radius: 14px; font-size: 12px; color: var(--text-2);
}
.tag-cloud a:hover { background: #fff2ec; color: var(--primary); }
.links li { padding: 4px 0; font-size: 13px; }
.links a:hover { color: var(--primary); }

/* 页脚 */
.footer { background: #23262b; color: #9aa0a8; padding: 32px 0; margin-top: 20px; }
.footer-inner { text-align: center; }
.footer-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.footer-logo img { height: 40px; }
.footer p { font-size: 13px; margin-bottom: 6px; }
.footer a:hover { color: #fff; }

/* 返回顶部 */
#backTop {
  position: fixed; right: 24px; bottom: 32px; width: 44px; height: 44px; border: none;
  border-radius: 50%; background: #fff; color: var(--primary); font-size: 18px; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .3s;
}
#backTop.show { opacity: 1; pointer-events: auto; }

/* 响应式 */
@media (max-width: 992px) {
  .card-grid, .layout .card-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 32px; }
}
@media (max-width: 560px) {
  .card-grid, .layout .card-grid { grid-template-columns: 1fr; }
  .search-form input { width: 130px; }
  .topbar .welcome { display: none; }
}
