/* ===== Resource Center: 搜索框 / 文件卡片 / 登录弹窗 ===== */

/* --- 标题行 + 搜索框 --- */
.rc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 28px;
}
.rc-head .column-title { margin: 0; }

.rc-search { display: flex; width: 100%; max-width: 420px; }
.rc-search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-right: 0;
  border-radius: 2px 0 0 2px;
  font-size: 14px;
  color: #333;
  outline: none;
}
.rc-search input:focus { border-color: #1F95D4; }
.rc-search button {
  flex: none;
  width: 100px;
  height: 42px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: #1F95D4;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.rc-search button:hover { background: #1a81ba; }

.rc-empty { padding: 46px 0; text-align: center; color: #999; font-size: 15px; }
.rc-tip { padding: 20px 0 0; color: #999; font-size: 14px; }

/* --- 文件卡片 --- */
.rc-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 12px 24px;
  padding: 22px;
  margin-bottom: 22px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.rc-item__thumb { grid-column: 1; grid-row: 1; display: block; line-height: 0; }
.rc-item__thumb img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  background: #f7f9fb;
}
.rc-item__body {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 132px;
}
.rc-item__name {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  word-break: break-word;
}
.rc-item__cate { margin-top: 10px; font-size: 13px; color: #999; }
.rc-item__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  padding: 9px 28px;
  border-radius: 3px;
  background: #1F95D4;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}
.rc-item__btn:hover { background: #1a81ba; color: #fff; text-decoration: none; }

/* --- 分页 --- */
.rc-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 10px;
}
.rc-pager__num {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
}
.rc-pager__num:hover { border-color: #1F95D4; color: #1F95D4; text-decoration: none; }
.rc-pager__num.is-active {
  border-color: #1F95D4;
  background: #1F95D4;
  color: #fff;
  pointer-events: none;
}

@media (max-width: 767px) {
  .rc-head { display: block; text-align: center; }
  .rc-head .column-title { justify-content: center; text-align: center; }
  .rc-search { margin: 0 auto 8px; max-width: 100%; }
  .rc-item { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rc-item__thumb { grid-column: 1; grid-row: 1; width: 180px; max-width: 100%; }
  .rc-item__body {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    margin-top: 14px;
    align-items: center;
  }
  .rc-item__btn { margin-top: 18px; align-self: center; }
  .rc-pager { gap: 6px; }
  .rc-pager__num { min-width: 36px; height: 36px; padding: 0 8px; font-size: 14px; }
}

/* --- 登录弹窗（资源中心专用） --- */
#login { display: none; }
.login_cont {
  background: url(/assets/images/loginleft.jpg) no-repeat 0 0;
  position: fixed;
  left: 50%;
  top: 200px;
  transform: translate(-50%, 0);
  border: 0 solid #aaaaaa;
  background-color: #ffffff;
  cursor: auto;
  max-width: 1240px;
  z-index: 9999;
}
.login_cont .close {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: url(/assets/images/close-ico.png) no-repeat center center;
  float: right;
  margin-top: -50px;
  color: #ccc;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
}
.login_cont .box {
  margin-left: 470px;
  width: 500px;
  height: 580px;
  padding-top: 80px;
  padding-left: 50px;
  padding-right: 50px;
  background: #FFFFFF;
  border-radius: 20px 3px 3px 20px;
}
@media (max-width: 768px) {
  .login_cont .box {
    margin-left: 0px;
    width: 350px;
    border-radius: 0px;
  }
}
.login_cont .box h2 {
  font-weight: 700;
  font-size: 30px;
  line-height: 34px;
  color: #333333;
}
.login_cont .box input {
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  border: 1px solid #CCCCCC;
  border-radius: 3px;
  padding-left: 10px;
}
.login_cont .box button {
  box-sizing: border-box;
  width: 100%;
  border-radius: 3px;
  margin-top: 40px;
  height: 54px;
  font-size: 16px;
  background: #1F95D4;
  border: #1F95D4;
  color: #fff;
}
.login_cont .box label {
  box-sizing: border-box;
  width: 100%;
  display: block;
  padding-top: 20px;
  padding-bottom: 12px;
}
