/* 资源中心「可下载资料」区（甲方 0731 第 15 条）。
 *
 * 只用页面已有的设计变量（--line-light / --ink-* / --brand），
 * 不引入第二套配色——这一块是长在资源中心里的，不是独立组件。
 * 版式沿用同页 .res-speclist 的横向条目：左侧文字、右侧动作，行间一条细线。
 */

.res-dl-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light, rgba(0, 0, 0, .08));
}

.res-dl-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light, rgba(0, 0, 0, .08));
}

.res-dl-main {
  flex: 1;
  min-width: 0;
}

.res-dl-title {
  margin: 0 0 4px;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
}

.res-dl-desc {
  margin: 0 0 6px;
  color: var(--ink-2, #4a5260);
  font-size: 14px;
  line-height: 1.6;
}

.res-dl-meta {
  color: var(--ink-3, #78808f);
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* 需填表单的资料要一眼看得出来，免得访客点了才发现还要留资 */
.res-dl-gated {
  color: var(--brand, #0066ff);
  font-weight: 600;
}

.res-dl-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* ---------- 留资表单 ---------- */

.res-dl-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 16, 24, .55);
}

/* hidden 属性要压过 display:flex，否则关不掉 */
.res-dl-modal[hidden] {
  display: none;
}

.res-dl-dialog {
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.res-dl-dialog h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.res-dl-note {
  margin: 0 0 16px;
  color: var(--ink-2, #4a5260);
  font-size: 13px;
  line-height: 1.6;
}

.res-dl-field {
  display: block;
  margin-bottom: 12px;
}

.res-dl-field span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--ink-2, #4a5260);
}

.res-dl-field input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-light, rgba(0, 0, 0, .14));
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
}

.res-dl-field input:focus {
  outline: none;
  border-color: var(--brand, #0066ff);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .14);
}

.res-dl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.res-dl-error {
  margin: 12px 0 0;
  color: #c0392b;
  font-size: 13px;
  line-height: 1.5;
}

.res-dl-error[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .res-dl-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
