/* ============================================================
   dlminimal01 · mipcms.css
   基于 baojingroup.com dl_minimal 风格
   主色 #0969da / 文字 #1f2328 / 背景 #ffffff / 辅色 #f6f8fa
   主题: 资源下载 / 品牌: 云端资源中心
   ============================================================ */

:root {
  --dl-primary: #0969da;
  --dl-primary-hover: #0969da;
  --dl-success: #1f883d;
  --dl-danger: #cf222e;
  --dl-warning: #9a6700;
  --dl-bg: #ffffff;
  --dl-bg-soft: #f6f8fa;
  --dl-bg-alt: #f0f3f6;
  --dl-border: #d0d7de;
  --dl-border-soft: #e6ebf1;
  --dl-text: #1f2328;
  --dl-text-2: #424a53;
  --dl-muted: #656d76;
  --dl-shadow-sm: 0 1px 2px rgba(31, 35, 40, 0.04);
  --dl-shadow: 0 4px 14px rgba(31, 35, 40, 0.08);
  --dl-shadow-lg: 0 8px 30px rgba(31, 35, 40, 0.10);
  --dl-radius: 10px;
  --dl-radius-sm: 6px;
  --dl-radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dl-text);
  background: var(--dl-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--dl-primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--dl-primary-hover); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--dl-text); margin: 0 0 12px; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }

img { max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace; }

/* === Layout === */
.dl-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.dl-section { padding: 64px 0; }
.dl-section-alt { background: var(--dl-bg-soft); }
.dl-section-title {
  font-size: 28px; font-weight: 600; text-align: center; margin-bottom: 12px;
  color: var(--dl-text);
}
.dl-section-sub { text-align: center; color: var(--dl-muted); margin-bottom: 40px; font-size: 15px; }

/* === Navbar === */
.dl-navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--dl-border-soft);
  padding: 12px 0;
}
.dl-navbar .dl-container { display: flex; align-items: center; justify-content: space-between; }
.dl-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dl-brand-logo {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--dl-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.dl-brand-name { font-size: 17px; font-weight: 600; color: var(--dl-text); }
.dl-nav-links { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.dl-nav-link {
  color: var(--dl-text); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; transition: background .15s;
}
.dl-nav-link:hover { background: var(--dl-bg-soft); text-decoration: none; }

/* === Hero === */
.dl-hero {
  padding: 80px 0 56px;
  text-align: center;
  background: linear-gradient(180deg, var(--dl-bg-soft) 0%, var(--dl-bg) 100%);
}
.dl-hero-title { font-size: 42px; font-weight: 700; margin-bottom: 12px; color: var(--dl-text); }
.dl-hero-title span { color: var(--dl-primary); }
.dl-hero-sub { font-size: 17px; color: var(--dl-muted); margin-bottom: 28px; }
.dl-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
  text-decoration: none;
}
.dl-btn-primary { background: var(--dl-primary); color: #fff; }
.dl-btn-primary:hover { background: var(--dl-primary-hover); color: #fff; text-decoration: none; }
.dl-btn-outline { background: transparent; color: var(--dl-text); border-color: var(--dl-border); }
.dl-btn-outline:hover { background: var(--dl-bg-soft); text-decoration: none; }

/* === Stats === */
.dl-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 900px; margin: 0 auto;
}
.dl-stat-card {
  background: #fff; border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius); padding: 20px; text-align: center;
  transition: all .2s;
}
.dl-stat-card:hover { box-shadow: var(--dl-shadow); transform: translateY(-2px); }
.dl-stat-num { font-size: 28px; font-weight: 700; color: var(--dl-primary); }
.dl-stat-label { color: var(--dl-muted); font-size: 13px; margin-top: 4px; }

/* === Features === */
.dl-feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.dl-feat-item {
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); padding: 24px 20px;
  transition: all .2s;
}
.dl-feat-item:hover { box-shadow: var(--dl-shadow); transform: translateY(-2px); border-color: var(--dl-primary); }
.dl-feat-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(9, 105, 218, 0.1); color: var(--dl-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
}
.dl-feat-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; color: var(--dl-text); }
.dl-feat-desc { font-size: 13px; color: var(--dl-muted); line-height: 1.5; }

/* === Category Grid === */
.dl-cat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.dl-cat-grid-item {
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); padding: 20px 12px; text-align: center;
  transition: all .2s; cursor: pointer; text-decoration: none;
}
.dl-cat-grid-item:hover { box-shadow: var(--dl-shadow); border-color: var(--dl-primary); text-decoration: none; }
.dl-cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--dl-bg-soft); color: var(--dl-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin: 0 auto 10px;
}
.dl-cat-name { font-size: 13px; font-weight: 500; color: var(--dl-text); }

/* === Cards (article) === */
.dl-card {
  background: #fff; border: 1px solid var(--dl-border);
  border-radius: var(--dl-radius); padding: 20px;
  transition: all .2s;
}
.dl-card:hover { box-shadow: var(--dl-shadow); border-color: var(--dl-primary); }
.dl-platform-card { display: flex; gap: 16px; padding: 18px; }
.dl-platform-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px;
  background: var(--dl-bg-soft); color: var(--dl-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700;
}
.dl-platform-meta { color: var(--dl-muted); font-size: 12px; margin-bottom: 4px; }
.dl-platform-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--dl-text); }
.dl-platform-desc { font-size: 13px; color: var(--dl-muted); line-height: 1.5; }

/* === Hot list === */
.dl-hot-list { display: flex; flex-direction: column; gap: 12px; }
.dl-hot-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); padding: 14px 18px;
  transition: all .2s;
}
.dl-hot-item:hover { box-shadow: var(--dl-shadow); }
.dl-hot-rank {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--dl-bg-soft); color: var(--dl-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.dl-hot-item:nth-child(1) .dl-hot-rank { background: #cf222e; color: #fff; }
.dl-hot-item:nth-child(2) .dl-hot-rank { background: #bf8700; color: #fff; }
.dl-hot-item:nth-child(3) .dl-hot-rank { background: #1a7f37; color: #fff; }
.dl-hot-title { flex: 1; font-size: 14px; color: var(--dl-text); }
.dl-hot-views { color: var(--dl-muted); font-size: 12px; }

/* === Tips table === */
.dl-tips-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--dl-radius); overflow: hidden; box-shadow: var(--dl-shadow-sm); }
.dl-tips-table th, .dl-tips-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--dl-border-soft); font-size: 14px; }
.dl-tips-table th { background: var(--dl-bg-soft); font-weight: 600; color: var(--dl-text); }
.dl-tips-table tr:last-child td { border-bottom: 0; }

/* === News === */
.dl-news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.dl-news-card {
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); padding: 20px;
  transition: all .2s;
}
.dl-news-card:hover { box-shadow: var(--dl-shadow); transform: translateY(-2px); }
.dl-news-meta { color: var(--dl-muted); font-size: 12px; margin-bottom: 6px; }
.dl-news-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--dl-text); line-height: 1.4; }
.dl-news-desc { font-size: 13px; color: var(--dl-muted); line-height: 1.5; }

/* === Testimonials === */
.dl-testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-testi-card {
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); padding: 24px;
}
.dl-testi-quote { font-size: 14px; color: var(--dl-text-2); line-height: 1.6; margin-bottom: 14px; }
.dl-testi-author { display: flex; align-items: center; gap: 10px; }
.dl-testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--dl-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.dl-testi-name { font-size: 13px; font-weight: 600; color: var(--dl-text); }
.dl-testi-role { font-size: 12px; color: var(--dl-muted); }

/* === CTA === */
.dl-cta-section {
  background: linear-gradient(135deg, var(--dl-primary) 0%, #0969dadd 100%);
  color: #fff; border-radius: var(--dl-radius-lg);
  padding: 48px 36px; text-align: center;
}
.dl-cta-title { font-size: 26px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.dl-cta-desc { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 24px; }
.dl-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.dl-cta-btns .dl-btn { background: #fff; color: var(--dl-primary); }
.dl-cta-btns .dl-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }

/* === FAQ === */
.dl-faq { max-width: 800px; margin: 0 auto; }
.dl-faq-item {
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); margin-bottom: 12px; overflow: hidden;
}
.dl-faq-q {
  padding: 16px 20px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--dl-text);
}
.dl-faq-a { padding: 0 20px 16px; color: var(--dl-muted); font-size: 14px; line-height: 1.6; }

/* === Footer === */
.dl-footer {
  background: var(--dl-bg-soft); border-top: 1px solid var(--dl-border-soft);
  padding: 48px 0 24px; margin-top: 40px;
}
.dl-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.dl-footer-title { font-size: 14px; font-weight: 600; color: var(--dl-text); margin-bottom: 14px; }
.dl-footer-desc { font-size: 13px; color: var(--dl-muted); line-height: 1.6; }
.dl-footer-links { list-style: none; padding: 0; margin: 0; }
.dl-footer-links li { margin-bottom: 8px; }
.dl-footer-links a { color: var(--dl-muted); font-size: 13px; }
.dl-footer-links a:hover { color: var(--dl-primary); }
.dl-footer-copy {
  text-align: center; color: var(--dl-muted); font-size: 12px;
  padding-top: 20px; border-top: 1px solid var(--dl-border-soft);
}

/* === Article list / detail === */
.dl-article-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.dl-article-card {
  background: #fff; border: 1px solid var(--dl-border-soft);
  border-radius: var(--dl-radius); padding: 20px; transition: all .2s;
}
.dl-article-card:hover { box-shadow: var(--dl-shadow); transform: translateY(-2px); }
.dl-article-detail { max-width: 800px; margin: 0 auto; }
.dl-article-title { font-size: 30px; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.dl-article-meta { color: var(--dl-muted); font-size: 13px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--dl-border-soft); }
.dl-article-content { font-size: 16px; line-height: 1.8; color: var(--dl-text-2); }
.dl-article-content p { margin-bottom: 16px; }
.dl-article-content h2, .dl-article-content h3 { color: var(--dl-text); margin-top: 28px; margin-bottom: 14px; }

/* === Tags === */
.dl-tag { display: inline-block; padding: 4px 10px; background: var(--dl-bg-soft); color: var(--dl-text-2); border-radius: 14px; font-size: 12px; margin: 2px; text-decoration: none; }
.dl-tag:hover { background: var(--dl-primary); color: #fff; text-decoration: none; }

/* === Pagination === */
.dl-pagination { display: flex; gap: 6px; justify-content: center; padding: 24px 0; }
.dl-pagination a, .dl-pagination span {
  padding: 6px 12px; border: 1px solid var(--dl-border-soft);
  border-radius: 6px; color: var(--dl-text); font-size: 13px;
}
.dl-pagination .active { background: var(--dl-primary); color: #fff; border-color: var(--dl-primary); }

/* === Search === */
.dl-search { max-width: 600px; margin: 0 auto 32px; position: relative; }
.dl-search input {
  width: 100%; padding: 12px 16px 12px 42px;
  border: 1px solid var(--dl-border); border-radius: 8px;
  font-size: 14px; background: #fff;
}
.dl-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dl-muted); }

/* === 404 === */
.dl-404 { text-align: center; padding: 80px 20px; }
.dl-404-code { font-size: 96px; font-weight: 700; color: var(--dl-primary); margin-bottom: 20px; }

/* === Mobile === */
@media (max-width: 991.98px) {
  .dl-hero { padding: 56px 0 36px; }
  .dl-hero-title { font-size: 32px; }
  .dl-section { padding: 48px 0; }
  .dl-section-title { font-size: 22px; }
  .dl-cat-grid { grid-template-columns: repeat(3, 1fr); }
  .dl-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-testi-grid { grid-template-columns: 1fr; }
  .dl-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575.98px) {
  .dl-hero { padding: 40px 0 28px; }
  .dl-hero-title { font-size: 24px; }
  .dl-section { padding: 36px 0; }
  .dl-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-footer-grid { grid-template-columns: 1fr; }
}
