/* ===== 官网资料下载中心（动态，CRM 为唯一数据源）===== */
.dc { --dc-radius: 14px; }

/* 搜索面板 */
.dc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--dc-radius);
  padding: 22px;
  margin-bottom: 26px;
}
.dc-search-row { display: flex; gap: 12px; align-items: center; }
.dc-search {
  flex: 1; position: relative;
}
.dc-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-tertiary); pointer-events: none;
}
.dc-input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-primary);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.dc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.dc-input::placeholder { color: var(--text-tertiary); }

.dc-clear {
  border: 1px solid var(--border); background: transparent;
  color: var(--text-secondary); border-radius: 10px; height: 46px;
  padding: 0 18px; cursor: pointer; font-family: inherit; font-size: 14px;
  white-space: nowrap;
}
.dc-clear:hover { color: var(--text-primary); border-color: var(--text-tertiary); }

/* 筛选组 */
.dc-filter-group { margin-top: 16px; }
.dc-filter-label {
  font-size: 12px; letter-spacing: 1px; color: var(--text-tertiary);
  text-transform: uppercase; margin-bottom: 9px; font-weight: 600;
}
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip {
  border: 1px solid var(--border); background: var(--bg-secondary);
  color: var(--text-secondary); border-radius: 999px;
  padding: 7px 15px; font-size: 13.5px; cursor: pointer;
  font-family: inherit; transition: all var(--transition-fast);
}
.dc-chip:hover { border-color: var(--accent); color: var(--accent); }
.dc-chip.active {
  background: var(--accent); border-color: var(--accent);
  color: #04121c; font-weight: 600;
}
.dc-chip.active.dc-chip--warm { color: #fff; }

/* 结果元信息 */
.dc-meta-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.dc-count { font-size: 13.5px; color: var(--text-tertiary); }
.dc-count b { color: var(--text-primary); font-weight: 600; }

/* 结果网格 */
.dc-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.dc-card {
  display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--dc-radius); padding: 18px;
  transition: transform var(--transition-fast), border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}
.dc-card:hover {
  transform: translateY(-3px); border-color: var(--border-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.dc-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.dc-file-ico {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--accent);
  text-transform: uppercase;
}
.dc-card-titles { min-width: 0; flex: 1; }
.dc-card h3 {
  font-size: 15.5px; line-height: 1.45; margin: 0 0 4px;
  color: var(--text-primary); font-weight: 600;
}
.dc-brand { font-size: 12.5px; color: var(--text-tertiary); }
.dc-summary {
  font-size: 13px; line-height: 1.6; color: var(--text-secondary);
  margin: 4px 0 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dc-tag {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-secondary);
}
.dc-tag--lead { color: var(--accent-warm); border-color: var(--accent-warm); }
.dc-btn {
  width: 100%; height: 40px; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--accent); background: transparent;
  color: var(--accent); transition: all var(--transition-fast);
}
.dc-btn:hover { background: var(--accent); color: #04121c; }
.dc-btn--lead { border-color: var(--accent-warm); color: var(--accent-warm); }
.dc-btn--lead:hover { background: var(--accent-warm); color: #fff; }
.dc-btn svg { width: 16px; height: 16px; }

/* 高亮 */
.dc-hl { color: var(--accent); font-weight: 700; }

/* 空态 / 加载 */
.dc-empty, .dc-loading {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--text-tertiary);
}
.dc-empty-ico { font-size: 40px; margin-bottom: 12px; opacity: 0.7; }
.dc-spinner {
  width: 34px; height: 34px; border: 3px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  margin: 0 auto 14px; animation: dc-spin 0.8s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* 加载更多 */
.dc-more-row { text-align: center; margin-top: 26px; }
.dc-more {
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); border-radius: 10px;
  padding: 11px 32px; cursor: pointer; font-family: inherit; font-size: 14px;
}
.dc-more:hover { border-color: var(--accent); color: var(--accent); }

/* 留资模态框 */
.dc-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 8, 16, 0.68); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}
.dc-modal-overlay.open { opacity: 1; visibility: visible; }
.dc-modal {
  width: 100%; max-width: 430px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 26px; position: relative;
  transform: translateY(12px);
  transition: transform var(--transition-fast);
}
.dc-modal-overlay.open .dc-modal { transform: translateY(0); }
.dc-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-tertiary);
  cursor: pointer; padding: 4px; line-height: 0;
}
.dc-modal-close:hover { color: var(--text-primary); }
.dc-modal h3 { margin: 0 0 6px; font-size: 19px; color: var(--text-primary); }
.dc-modal-sub { font-size: 13px; color: var(--text-tertiary); margin-bottom: 18px; line-height: 1.6; }
.dc-modal-input {
  width: 100%; height: 46px; margin-bottom: 12px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 10px; padding: 0 14px; color: var(--text-primary);
  font-size: 14.5px; font-family: inherit; outline: none;
}
.dc-modal-input:focus { border-color: var(--accent); }
.dc-modal-input::placeholder { color: var(--text-tertiary); }
.dc-modal-error {
  color: #ff5b5b; font-size: 13px; margin-bottom: 10px; display: none;
}
.dc-modal-error.show { display: block; }
.dc-modal-submit {
  width: 100%; height: 48px; border: none; border-radius: 10px;
  background: var(--accent); color: #04121c; font-weight: 700;
  font-size: 15px; font-family: inherit; cursor: pointer;
}
.dc-modal-submit:disabled { opacity: 0.6; cursor: wait; }
.dc-modal-promise {
  font-size: 12px; color: var(--text-tertiary); text-align: center;
  margin-top: 12px; line-height: 1.6;
}
.dc-modal-success { text-align: center; padding: 18px 0; }
.dc-modal-success .ico { font-size: 44px; }
.dc-modal-success h4 { margin: 14px 0 8px; color: var(--text-primary); font-size: 18px; }
.dc-modal-success p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* 响应式 */
@media (max-width: 992px) {
  .dc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dc-panel { padding: 16px; }
  .dc-grid { grid-template-columns: 1fr; gap: 12px; }
  .dc-search-row { flex-wrap: wrap; }
  .dc-clear { width: 100%; }
  .dc-card { padding: 15px; }
}
