/* ============ 素材下载站 · 响应式样式 ============ */
:root {
  --primary: #6c4cff;
  --primary-2: #9b5cff;
  --accent: #ff5c8a;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2333;
  --text-2: #6b7186;
  --line: #e8eaf2;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(30, 34, 70, .08);
  --shadow-hover: 0 10px 30px rgba(108, 76, 255, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; flex-shrink: 0;
}
.logo .logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.logo em { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 8px 14px; border-radius: 10px;
  font-size: 15px; color: var(--text-2); font-weight: 500;
  transition: all .2s; white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--primary); background: rgba(108,76,255,.08); }

.search-box {
  display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 6px 8px 6px 16px;
  width: 260px; transition: border .2s;
}
.search-box:focus-within { border-color: var(--primary); background: #fff; }
.search-box input {
  border: none; outline: none; background: transparent;
  flex: 1; font-size: 14px; min-width: 0; color: var(--text);
}
.search-box button {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px;
}
.header-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.btn-vip {
  background: linear-gradient(135deg, #ffb199, var(--accent));
  color: #fff; font-weight: 700; font-size: 14px;
  padding: 9px 18px; border-radius: 999px;
}
.menu-btn { display: none; background: none; font-size: 22px; color: var(--text); padding: 6px; }

/* 移动端抽屉菜单 */
.drawer-mask {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.45);
}
.drawer-mask.open { display: block; }
.drawer {
  position: fixed; top: 0; right: -280px; width: 260px; height: 100vh;
  background: #fff; z-index: 201; padding: 24px 20px;
  transition: right .28s ease; box-shadow: -8px 0 30px rgba(0,0,0,.12);
}
.drawer.open { right: 0; }
.drawer .drawer-close { position: absolute; top: 14px; right: 14px; font-size: 20px; background: none; color: var(--text-2); }
.drawer nav { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; }
.drawer nav a { padding: 12px 14px; border-radius: 10px; font-size: 16px; color: var(--text); }
.drawer nav a.active { background: rgba(108,76,255,.08); color: var(--primary); font-weight: 600; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #6c4cff 0%, #8f4dff 45%, #ff5c8a 100%);
  color: #fff; padding: 64px 0 72px; position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.hero::before { width: 340px; height: 340px; top: -120px; right: -80px; }
.hero::after { width: 220px; height: 220px; bottom: -90px; left: 6%; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 2px; }
.hero p { margin-top: 12px; font-size: 17px; opacity: .92; }
.hero-stats {
  margin-top: 30px; display: flex; justify-content: center; gap: 44px; flex-wrap: wrap;
}
.hero-stats .stat b { font-size: 26px; display: block; }
.hero-stats .stat span { font-size: 13px; opacity: .85; }
.hero-search {
  margin: 32px auto 0; max-width: 560px;
  display: flex; background: #fff; border-radius: 999px; padding: 6px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18);
}
.hero-search input {
  flex: 1; border: none; outline: none; padding: 0 20px;
  font-size: 15px; min-width: 0; color: var(--text);
}
.hero-search button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 15px; font-weight: 600;
  padding: 12px 30px; border-radius: 999px;
}
.hero-tags { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags span {
  font-size: 13px; background: rgba(255,255,255,.18);
  padding: 5px 14px; border-radius: 999px; cursor: pointer;
}
.hero-tags span:hover { background: rgba(255,255,255,.32); }

/* ============ 区块通用 ============ */
.section { padding: 44px 0 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
.section-head h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.section-head h2::before {
  content: ""; width: 5px; height: 20px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
}
.section-head a.more { font-size: 14px; color: var(--text-2); }
.section-head a.more:hover { color: var(--primary); }

/* ============ 分类卡片 ============ */
.cat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, 1fr);
}
.cat-card {
  background: var(--card); border-radius: var(--radius);
  padding: 22px 12px; text-align: center;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  border: 1px solid transparent;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: rgba(108,76,255,.25); }
.cat-card .cat-icon {
  width: 56px; height: 56px; margin: 0 auto 10px;
  border-radius: 16px; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.cat-card b { display: block; font-size: 15px; }
.cat-card span { font-size: 12px; color: var(--text-2); display: block; margin-top: 4px; }

/* ============ 更新时间线 ============ */
.timeline-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.timeline li { position: relative; padding: 9px 0; }
.timeline li::before {
  content: ""; position: absolute; left: -22px; top: 17px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(108,76,255,.3);
}
.timeline .tl-date { font-size: 12px; color: var(--text-2); }
.timeline .tl-title { font-size: 15px; font-weight: 600; cursor: pointer; }
.timeline .tl-title:hover { color: var(--primary); }

/* ============ 素材卡片网格 ============ */
.grid-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 13px; padding: 7px 16px; border-radius: 999px;
  background: var(--card); color: var(--text-2);
  border: 1px solid var(--line); transition: all .2s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
}
.m-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  cursor: pointer; display: flex; flex-direction: column;
}
.m-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.m-thumb {
  aspect-ratio: 4/3; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; overflow: hidden;
}
.m-thumb .thumb-badge {
  position: absolute; top: 10px; left: 10px;
  background: linear-gradient(135deg, #ffb199, var(--accent));
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.m-thumb .thumb-count {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 11px;
  padding: 3px 10px; border-radius: 999px;
}
.m-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.m-body h3 {
  font-size: 15px; font-weight: 600; line-height: 1.45;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.m-meta { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.m-meta .dl-btn {
  background: rgba(108,76,255,.1); color: var(--primary);
  font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  transition: all .2s;
}
.m-card:hover .dl-btn { background: var(--primary); color: #fff; }

/* ============ 加载更多 / 空状态 ============ */
.load-more {
  display: block; margin: 28px auto 0;
  background: #fff; border: 1.5px solid var(--line); color: var(--text-2);
  font-size: 14px; padding: 11px 42px; border-radius: 999px; transition: all .2s;
}
.load-more:hover { border-color: var(--primary); color: var(--primary); }
.empty { text-align: center; padding: 70px 0; color: var(--text-2); font-size: 15px; }
.empty .empty-icon { font-size: 52px; margin-bottom: 12px; }

/* ============ 详情页 ============ */
.detail-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 32px 0; }
.detail-preview {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-size: 110px; position: relative; overflow: hidden;
}
.detail-preview .pv-badge { position: absolute; top: 16px; left: 16px; }
.detail-info h1 { font-size: 24px; font-weight: 700; line-height: 1.4; }
.detail-tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.detail-tags span {
  font-size: 12px; color: var(--primary);
  background: rgba(108,76,255,.08); padding: 4px 12px; border-radius: 999px;
}
.detail-stats {
  margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.detail-stats .dstat {
  background: var(--card); border-radius: 12px; padding: 14px; text-align: center;
  box-shadow: var(--shadow);
}
.detail-stats .dstat b { font-size: 17px; display: block; }
.detail-stats .dstat span { font-size: 12px; color: var(--text-2); }
.detail-dl {
  margin-top: 24px; display: flex; gap: 12px;
}
.btn-primary {
  flex: 1; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 16px; font-weight: 700; padding: 14px; border-radius: 12px;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .88; }
.btn-ghost {
  background: #fff; border: 1.5px solid var(--line); color: var(--text-2);
  font-size: 15px; padding: 14px 22px; border-radius: 12px;
}
.crumb { padding-top: 24px; font-size: 14px; color: var(--text-2); }
.crumb a:hover { color: var(--primary); }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px);
  background: rgba(20,22,40,.9); color: #fff; font-size: 14px;
  padding: 12px 26px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: all .3s; z-index: 500;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 页脚 ============ */
.footer {
  margin-top: 60px; background: #1f2333; color: #aab0c5;
  padding: 36px 0 28px; font-size: 14px;
}
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .f-logo { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; text-align: center; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .nav a { padding: 8px 10px; font-size: 14px; }
  .search-box { width: 190px; }
}
@media (max-width: 820px) {
  .nav, .search-box, .btn-vip { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .hero h1 { font-size: 28px; }
  .hero { padding: 44px 0 52px; }
  .hero-stats { gap: 26px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .detail-preview { font-size: 72px; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .m-body h3 { font-size: 14px; }
  .hero-search button { padding: 12px 20px; }
  .hero-tags { display: none; }
  .timeline-wrap { padding: 20px 18px; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 34px; }
}

/* ============ 多页面模板扩展样式 ============ */
.btn-login {
  background: transparent; border: 1.5px solid var(--line);
  color: var(--text); font-size: 14px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; transition: all .2s;
}
.btn-login:hover { border-color: var(--primary); color: var(--primary); }

/* 详情页提示 */
.detail-tip {
  margin-top: 14px; font-size: 13px; color: var(--text-2);
  background: var(--bg); border-radius: 10px; padding: 10px 14px;
}
.detail-tags a {
  font-size: 12px; color: var(--primary);
  background: rgba(108,76,255,.08); padding: 4px 12px; border-radius: 999px;
}
.detail-tags a:hover { background: rgba(108,76,255,.18); }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pg {
  min-width: 38px; text-align: center; padding: 8px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text-2); transition: all .2s;
}
.pg:hover:not(.disabled) { border-color: var(--primary); color: var(--primary); }
.pg.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pg.disabled { opacity: .45; cursor: not-allowed; }

/* VIP 会员 */
.vip-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.vip-card {
  position: relative; background: var(--card); border-radius: 18px;
  padding: 30px 26px; text-align: center; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s;
  border: 2px solid transparent;
}
.vip-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.vip-card.featured { border-color: var(--primary); }
.vip-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #ffb199, var(--accent));
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 16px; border-radius: 999px;
}
.vip-card h3 { font-size: 18px; }
.vip-price { margin: 16px 0 18px; }
.vip-price b { font-size: 40px; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.vip-price span { font-size: 13px; color: var(--text-2); margin-left: 6px; }
.vip-perqs { margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.vip-faq { margin-top: 50px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item {
  background: var(--card); border-radius: 12px; padding: 16px 20px;
  margin-bottom: 10px; box-shadow: var(--shadow);
}
.faq-item summary { font-size: 15px; font-weight: 600; cursor: pointer; }
.faq-item p { margin-top: 10px; font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* 登录/注册 */
.auth-wrap { display: flex; justify-content: center; padding: 50px 0 30px; }
.auth-card {
  width: 100%; max-width: 400px; background: var(--card);
  border-radius: 18px; box-shadow: var(--shadow); padding: 30px 30px 26px;
}
.auth-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: var(--bg); border-radius: 12px; padding: 4px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: 9px; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--text-2); transition: all .2s;
}
.auth-tab.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; color: var(--text-2); }
.field input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-size: 14px; outline: none; transition: border .2s; background: var(--bg);
}
.field input:focus { border-color: var(--primary); background: #fff; }
.auth-extra { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-2); }
.auth-extra .forgot:hover { color: var(--primary); }
.remember { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 14px; color: var(--text-2); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-oauth { display: flex; gap: 12px; }
.auth-oauth button {
  flex: 1; background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 10px; padding: 10px; font-size: 13.5px; color: var(--text);
  transition: all .2s;
}
.auth-oauth button:hover { border-color: var(--primary); color: var(--primary); }

/* 关于/帮助 */
.about-block { margin-bottom: 30px; }
.about-block h2 { font-size: 19px; margin-bottom: 12px; }
.about-block p { font-size: 15px; line-height: 1.9; color: var(--text-2); }
.about-list { display: flex; flex-direction: column; gap: 8px; }
.about-list li { font-size: 15px; line-height: 1.8; color: var(--text-2); list-style: none; padding-left: 18px; position: relative; }
.about-list li::before { content: "•"; position: absolute; left: 2px; color: var(--primary); font-weight: 700; }

@media (max-width: 820px) {
  .btn-login { display: none; }
  .vip-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* ============ EyouCMS 兼容补充样式 ============ */
/* 缩略图填充 */
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-preview img { width: 100%; height: 100%; object-fit: cover; }

/* 详情富文本内容 */
.detail-content { font-size: 15px; line-height: 1.9; color: var(--text-2); }
.detail-content img { max-width: 100%; border-radius: 10px; margin: 10px 0; }
.detail-content p { margin: 10px 0; }

/* 分类卡片图标底色 */
.cat-card .cat-icon { background: linear-gradient(135deg, #6c4cff1a, #ff5c8a1a); }

/* EyouCMS pagelist 输出的分页样式兼容 */
.pagination a, .pagination span {
  display: inline-block; min-width: 38px; text-align: center;
  padding: 8px 14px; margin: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; color: var(--text-2); transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active span, .pagination span.active {
  background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600;
}

/* 单页内容 */
.about-block .detail-content, .about-block p { font-size: 15px; line-height: 1.9; color: var(--text-2); }

/* ============ 下载模型：下载区样式 ============ */
.dl-panel {
  margin-top: 22px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px 14px;
}
.dl-panel-head { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.dl-list { margin-top: 4px; }
.dl-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line);
}
.dl-row:last-child { border-bottom: none; }
.dl-info b { display: block; font-size: 15px; font-weight: 600; word-break: break-all; }
.dl-info span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--text-2); }
.dl-info em { font-style: normal; color: var(--primary); font-weight: 700; }
.dl-btn-primary {
  flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; font-size: 14px; font-weight: 600;
  padding: 10px 22px; border-radius: 10px; transition: opacity .2s;
}
.dl-btn-primary:hover { opacity: .88; }
.dl-empty { padding: 22px 0; text-align: center; font-size: 14px; color: var(--text-2); }

@media (max-width: 640px) {
  .dl-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dl-btn-primary { width: 100%; text-align: center; }
}

/* 下载附件元信息标签 */
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.dl-meta i {
  font-style: normal; font-size: 12px; color: var(--text-2);
  background: #fff; border: 1px solid var(--line);
  border-radius: 6px; padding: 2px 8px;
}

/* ============ 图片 Logo（图形+文字一体图） ============ */
.logo-img { height: 44px; width: auto; display: block; }
.f-logo-img { height: 34px; width: auto; display: block; margin-bottom: 10px; }
@media (max-width: 640px) { .logo-img { height: 36px; } }
