/* ============================================================
   DL Modern Theme - Common Components
   大幅改造通用样式：首页、内页、卡片、按钮、侧边栏
   ============================================================ */

/* ---------- Hero ---------- */
.dl-hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--dl-hero-from) 0%, var(--dl-hero-to) 100%);
  color: #fff;
  overflow: hidden;
}
.dl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18) 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(0,0,0,0.08) 0%, transparent 40%);
}
.dl-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.dl-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dl-hero-desc {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 520px;
  margin-bottom: 30px;
}
.dl-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.dl-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--dl-radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.18);
}
.dl-stat {
  text-align: center;
}
.dl-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}
.dl-stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--dl-radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border: 2px solid transparent;
  cursor: pointer;
}
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn-primary {
  background: var(--dl-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.dl-btn-primary:hover { background: var(--dl-accent-hover); }
.dl-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.dl-btn-secondary:hover { background: rgba(255,255,255,0.12); }
.dl-btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---------- Section ---------- */
.dl-section { padding: 60px 0; }
.dl-section:nth-child(even) { background: var(--dl-surface); }
.dl-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--dl-text);
}
.dl-section-title::before {
  content: '';
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: var(--dl-primary);
}
.dl-section-title span { flex: 1; }

/* ---------- Category Cards ---------- */
.dl-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.dl-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius);
  text-decoration: none;
  box-shadow: var(--dl-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  border-left: 4px solid var(--dl-primary);
}
.dl-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-hover);
}
.dl-cat-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dl-text);
}
.dl-cat-count {
  font-size: 0.85rem;
  color: var(--dl-muted);
  margin-top: 4px;
}

/* ---------- App Cards ---------- */
.dl-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.dl-app-card {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.dl-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-hover);
}
.dl-app-card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.dl-app-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-app-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-icon-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.dl-app-card-info { flex: 1; min-width: 0; }
.dl-app-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dl-text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-app-card-meta {
  font-size: 0.8rem;
  color: var(--dl-muted);
  display: flex;
  gap: 10px;
}
.dl-app-card-cat {
  font-size: 0.75rem;
  margin-top: 6px;
}
.dl-app-card-cat a {
  color: var(--dl-primary);
  text-decoration: none;
  background: var(--dl-primary-10);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---------- News List ---------- */
.dl-news-list {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
}
.dl-news-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--dl-border);
}
.dl-news-item:last-child { border-bottom: none; }
.dl-news-date {
  font-size: 0.85rem;
  color: var(--dl-muted);
  font-family: monospace;
}
.dl-news-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.dl-news-title a {
  color: var(--dl-text);
  text-decoration: none;
  transition: color 0.18s;
}
.dl-news-title a:hover { color: var(--dl-primary); }
.dl-news-cat { font-size: 0.75rem; }
.dl-news-cat a {
  color: var(--dl-secondary);
  text-decoration: none;
  background: var(--dl-secondary-10);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- CTA ---------- */
.dl-cta-section { padding: 50px 0 70px; }
.dl-cta-box {
  background: linear-gradient(135deg, var(--dl-hero-from), var(--dl-hero-to));
  color: #fff;
  border-radius: var(--dl-radius-lg);
  padding: 50px;
  text-align: center;
  box-shadow: var(--dl-shadow-hover);
}
.dl-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.dl-cta-box p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

/* ---------- Single Page Layout ---------- */
.dl-single-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.dl-main { min-width: 0; }
.dl-app-detail {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
  margin-bottom: 34px;
}
.dl-app-header-modern {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--dl-primary-10), var(--dl-secondary-10));
  border-bottom: 1px solid var(--dl-border);
}
.dl-app-icon-modern {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dl-app-icon-modern img { width: 100%; height: 100%; object-fit: cover; }
.dl-app-title-modern {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dl-text);
}
.dl-app-meta-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--dl-muted);
}
.dl-app-meta-modern i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dl-primary);
  margin-right: 6px;
  vertical-align: middle;
}
.dl-app-tags-modern {
  margin-top: 10px;
  font-size: 0.8rem;
}
.dl-app-tags-modern a {
  color: var(--dl-secondary);
  text-decoration: none;
  background: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 6px;
}
.dl-app-actions-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-app-body {
  padding: 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dl-text);
}
.dl-app-body h2, .dl-app-body h3 {
  color: var(--dl-text);
  margin-top: 1.6em;
}
.dl-app-body a { color: var(--dl-primary); }
.dl-app-extra {
  padding: 0 28px 28px;
}
.dl-extra-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dl-text);
}
.dl-extra-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 0;
}
.dl-extra-list li {
  position: relative;
  padding-left: 22px;
  color: var(--dl-muted);
}
.dl-extra-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dl-primary);
  font-weight: 800;
}

/* ---------- Sidebar ---------- */
.dl-sidebar {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  padding: 22px;
  height: fit-content;
}
.dl-sidebar-section {
  margin-bottom: 28px;
}
.dl-sidebar-section:last-child { margin-bottom: 0; }
.dl-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dl-primary);
  color: var(--dl-text);
}
.dl-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dl-sidebar-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--dl-border);
}
.dl-sidebar-list li a {
  color: var(--dl-text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s;
}
.dl-sidebar-list li a:hover { color: var(--dl-primary); }

/* ---------- Related ---------- */
.dl-related-section { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dl-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .dl-single-wrap { grid-template-columns: 1fr; }
  .dl-sidebar { margin-top: 20px; }
}
@media (max-width: 768px) {
  .dl-hero { padding: 40px 0 50px; }
  .dl-hero-title { font-size: 1.6rem; }
  .dl-hero-desc { font-size: 0.95rem; margin-bottom: 20px; }
  .dl-hero-stats { grid-template-columns: 1fr; }
  .dl-app-header-modern { grid-template-columns: 1fr; text-align: center; }
  .dl-app-actions-modern { flex-direction: row; justify-content: center; }
  .dl-news-item { grid-template-columns: 1fr; gap: 6px; }
  .dl-cta-box { padding: 30px 20px; }
}

/* ============================================================
   新增组件：注册/APP下载按钮、最新软件列表、侧边栏增强、底部链接
   ============================================================ */

/* ---------- Button variants ---------- */
.dl-btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.dl-btn-xs { padding: 5px 12px; font-size: 0.78rem; }
.dl-btn-outline {
  background: transparent;
  color: var(--dl-primary);
  border: 1.5px solid var(--dl-primary);
}
.dl-btn-outline:hover { background: var(--dl-primary); color: #fff; }
.dl-icon-arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  margin-right: 8px;
  transition: transform 0.18s;
}
.dl-btn:hover .dl-icon-arrow { transform: translateX(3px); }
.dl-icon-app {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- Category header with actions ---------- */
.dl-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.dl-cat-header .dl-section-title { margin-bottom: 0; }
.dl-cat-actions {
  display: flex;
  gap: 10px;
}

/* ---------- Latest software list ---------- */
.dl-latest-list {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
}
.dl-latest-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--dl-border);
  text-decoration: none;
  color: inherit;
  transition: background 0.18s;
}
.dl-latest-item:last-child { border-bottom: none; }
.dl-latest-item:hover { background: var(--dl-surface); }
.dl-latest-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-latest-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-latest-info { min-width: 0; }
.dl-latest-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.dl-latest-title a {
  color: var(--dl-text);
  text-decoration: none;
  transition: color 0.18s;
}
.dl-latest-title a:hover { color: var(--dl-primary); }
.dl-latest-meta {
  font-size: 0.82rem;
  color: var(--dl-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}
.dl-latest-cat {
  color: var(--dl-primary);
  background: var(--dl-primary-10);
  padding: 1px 8px;
  border-radius: 12px;
}
.dl-latest-excerpt {
  font-size: 0.9rem;
  color: var(--dl-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Sidebar similar software ---------- */
.dl-similar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dl-similar-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: var(--dl-radius);
  transition: background 0.18s;
}
.dl-similar-item:hover { background: var(--dl-surface); }
.dl-similar-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-similar-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-similar-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dl-text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-similar-meta {
  font-size: 0.75rem;
  color: var(--dl-muted);
  display: flex;
  gap: 8px;
}

/* ---------- Sidebar hot grid ---------- */
.dl-hot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dl-hot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--dl-radius);
  background: var(--dl-surface);
  transition: transform 0.18s, box-shadow 0.18s;
}
.dl-hot-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--dl-shadow);
}
.dl-hot-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.dl-hot-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-hot-title {
  font-size: 0.75rem;
  color: var(--dl-text);
  margin-bottom: 6px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Ad card ---------- */
.dl-ad-section { }
.dl-ad-card {
  position: relative;
  background: linear-gradient(135deg, var(--dl-hero-from), var(--dl-hero-to));
  color: #fff;
  border-radius: var(--dl-radius);
  padding: 22px;
  text-align: center;
  overflow: hidden;
}
.dl-ad-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
}
.dl-ad-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.25);
  padding: 2px 8px;
  border-radius: 4px;
}
.dl-ad-card h4 {
  position: relative;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 10px 0 8px;
}
.dl-ad-card p {
  position: relative;
  font-size: 0.85rem;
  opacity: 0.95;
  margin-bottom: 14px;
}

/* ---------- Header actions in nav ---------- */
.dl-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dl-header-actions .dl-btn {
  white-space: nowrap;
}

/* ---------- Footer links bar ---------- */
.dl-footer-links {
  background: var(--dl-surface);
  border-top: 1px solid var(--dl-border);
  padding: 18px 0;
}
.dl-footer-links .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.dl-footer-links a {
  color: var(--dl-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.18s;
}
.dl-footer-links a:hover { color: var(--dl-primary); }

/* ---------- CTA buttons row ---------- */
.dl-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Mobile sticky bottom bar ---------- */
.dl-mobile-actions {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1a1a2e;
  border-top: none;
  padding: 10px 16px;
  box-shadow: none;
}
.dl-mobile-actions .container {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.dl-mobile-actions .dl-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: none;
  box-shadow: none;
}
.dl-mobile-actions .dl-btn-primary {
  background: linear-gradient(180deg, #e53935 0%, #b71c1c 100%);
  color: #fff;
}
.dl-mobile-actions .dl-btn-secondary {
  background: linear-gradient(180deg, #1e3a5f 0%, #0d1b2a 100%);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dl-latest-item { grid-template-columns: auto 1fr; }
  .dl-latest-item .dl-btn { display: none; }
  .dl-header-actions { display: none; }
  .dl-mobile-actions { display: block; }
  body { padding-bottom: 56px; }
}
@media (max-width: 768px) {
  .dl-cat-header { flex-direction: column; align-items: flex-start; }
  .dl-cat-actions { width: 100%; }
  .dl-cat-actions .dl-btn { flex: 1; text-align: center; }
  .dl-hot-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-footer-links .container { flex-direction: column; align-items: center; gap: 10px; }
  .dl-latest-item { padding: 14px; gap: 12px; }
  .dl-latest-icon { width: 50px; height: 50px; border-radius: 12px; }
}
/* ============================================================
   DL Modern Theme - Common Components
   大幅改造通用样式：首页、内页、卡片、按钮、侧边栏
   ============================================================ */

/* ---------- Hero ---------- */
.dl-hero {
  position: relative;
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--dl-hero-from) 0%, var(--dl-hero-to) 100%);
  color: #fff;
  overflow: hidden;
}
.dl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(255,255,255,0.18) 0%, transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(0,0,0,0.08) 0%, transparent 40%);
}
.dl-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.dl-hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.dl-hero-desc {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 520px;
  margin-bottom: 30px;
}
.dl-hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.dl-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: var(--dl-radius-lg);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.18);
}
.dl-stat {
  text-align: center;
}
.dl-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}
.dl-stat-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- Buttons ---------- */
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: var(--dl-radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  border: 2px solid transparent;
  cursor: pointer;
}
.dl-btn:hover { transform: translateY(-2px); }
.dl-btn-primary {
  background: var(--dl-accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.dl-btn-primary:hover { background: var(--dl-accent-hover); }
.dl-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.dl-btn-secondary:hover { background: rgba(255,255,255,0.12); }
.dl-btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---------- Section ---------- */
.dl-section { padding: 60px 0; }
.dl-section:nth-child(even) { background: var(--dl-surface); }
.dl-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--dl-text);
}
.dl-section-title::before {
  content: '';
  width: 5px;
  height: 26px;
  border-radius: 3px;
  background: var(--dl-primary);
}
.dl-section-title span { flex: 1; }

/* ---------- Category Cards ---------- */
.dl-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
}
.dl-cat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 20px;
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius);
  text-decoration: none;
  box-shadow: var(--dl-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  border-left: 4px solid var(--dl-primary);
}
.dl-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-hover);
}
.dl-cat-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dl-text);
}
.dl-cat-count {
  font-size: 0.85rem;
  color: var(--dl-muted);
  margin-top: 4px;
}

/* ---------- App Cards ---------- */
.dl-app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.dl-app-card {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius);
  box-shadow: var(--dl-shadow);
  transition: transform 0.18s, box-shadow 0.18s;
  overflow: hidden;
}
.dl-app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dl-shadow-hover);
}
.dl-app-card-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
}
.dl-app-card-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}
.dl-app-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.dl-icon-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.dl-app-card-info { flex: 1; min-width: 0; }
.dl-app-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dl-text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dl-app-card-meta {
  font-size: 0.8rem;
  color: var(--dl-muted);
  display: flex;
  gap: 10px;
}
.dl-app-card-cat {
  font-size: 0.75rem;
  margin-top: 6px;
}
.dl-app-card-cat a {
  color: var(--dl-primary);
  text-decoration: none;
  background: var(--dl-primary-10);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ---------- News List ---------- */
.dl-news-list {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
}
.dl-news-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--dl-border);
}
.dl-news-item:last-child { border-bottom: none; }
.dl-news-date {
  font-size: 0.85rem;
  color: var(--dl-muted);
  font-family: monospace;
}
.dl-news-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.dl-news-title a {
  color: var(--dl-text);
  text-decoration: none;
  transition: color 0.18s;
}
.dl-news-title a:hover { color: var(--dl-primary); }
.dl-news-cat { font-size: 0.75rem; }
.dl-news-cat a {
  color: var(--dl-secondary);
  text-decoration: none;
  background: var(--dl-secondary-10);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ---------- CTA ---------- */
.dl-cta-section { padding: 50px 0 70px; }
.dl-cta-box {
  background: linear-gradient(135deg, var(--dl-hero-from), var(--dl-hero-to));
  color: #fff;
  border-radius: var(--dl-radius-lg);
  padding: 50px;
  text-align: center;
  box-shadow: var(--dl-shadow-hover);
}
.dl-cta-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.dl-cta-box p {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
}

/* ---------- Single Page Layout ---------- */
.dl-single-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 34px;
  padding-top: 40px;
  padding-bottom: 60px;
}
.dl-main { min-width: 0; }
.dl-app-detail {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  overflow: hidden;
  margin-bottom: 34px;
}
.dl-app-header-modern {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  background: linear-gradient(135deg, var(--dl-primary-10), var(--dl-secondary-10));
  border-bottom: 1px solid var(--dl-border);
}
.dl-app-icon-modern {
  width: 90px;
  height: 90px;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dl-primary), var(--dl-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.dl-app-icon-modern img { width: 100%; height: 100%; object-fit: cover; }
.dl-app-title-modern {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dl-text);
}
.dl-app-meta-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: var(--dl-muted);
}
.dl-app-meta-modern i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dl-primary);
  margin-right: 6px;
  vertical-align: middle;
}
.dl-app-tags-modern {
  margin-top: 10px;
  font-size: 0.8rem;
}
.dl-app-tags-modern a {
  color: var(--dl-secondary);
  text-decoration: none;
  background: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 6px;
}
.dl-app-actions-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-app-body {
  padding: 28px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dl-text);
}
.dl-app-body h2, .dl-app-body h3 {
  color: var(--dl-text);
  margin-top: 1.6em;
}
.dl-app-body a { color: var(--dl-primary); }
.dl-app-extra {
  padding: 0 28px 28px;
}
.dl-extra-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--dl-text);
}
.dl-extra-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 0;
}
.dl-extra-list li {
  position: relative;
  padding-left: 22px;
  color: var(--dl-muted);
}
.dl-extra-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dl-primary);
  font-weight: 800;
}

/* ---------- Sidebar ---------- */
.dl-sidebar {
  background: var(--dl-card-bg);
  border-radius: var(--dl-radius-lg);
  box-shadow: var(--dl-shadow);
  padding: 22px;
  height: fit-content;
}
.dl-sidebar-section {
  margin-bottom: 28px;
}
.dl-sidebar-section:last-child { margin-bottom: 0; }
.dl-sidebar-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--dl-primary);
  color: var(--dl-text);
}
.dl-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.dl-sidebar-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--dl-border);
}
.dl-sidebar-list li a {
  color: var(--dl-text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s;
}
.dl-sidebar-list li a:hover { color: var(--dl-primary); }

/* ---------- Related ---------- */
.dl-related-section { margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .dl-hero .container { grid-template-columns: 1fr; gap: 36px; }
  .dl-single-wrap { grid-template-columns: 1fr; }
  .dl-sidebar { margin-top: 20px; }
}
@media (max-width: 768px) {
  .dl-hero { padding: 40px 0 50px; }
  .dl-hero-title { font-size: 1.6rem; }
  .dl-hero-desc { font-size: 0.95rem; margin-bottom: 20px; }
  .dl-hero-stats { grid-template-columns: 1fr; }
  .dl-app-header-modern { grid-template-columns: 1fr; text-align: center; }
  .dl-app-actions-modern { flex-direction: row; justify-content: center; }
  .dl-news-item { grid-template-columns: 1fr; gap: 6px; }
  .dl-cta-box { padding: 30px 20px; }
}
