/* ==========================================================================
   申报 / 注册 二级页面：/page/submission、/page/accreditation
   与电影节同源组件，只换令牌：品牌绿 #2d7a4f（白底/白字双向 5.24:1）
   ========================================================================== */

.apply-page {
  box-sizing: border-box;
  width: 1200px;
  max-width: calc(100% - 48px);
  margin: 0 auto;
  /* 固定导航占 120px（工具条 40 + 主导航 80），已由 .main-nav-bar 占位 40，
     这里再留出足够留白，让标题彻底避开导航 */
  padding: 176px 0 100px;

  --apply-brand: #2d7a4f;
  --apply-brand-deep: #22603d;
  --apply-paper: #f5fbf7;
  --apply-line: #d9e8dd;
  --apply-ease: cubic-bezier(.2, .8, .2, 1);
}

.apply-head {
  margin-bottom: 56px;
  text-align: center;
}

/* 标题沿用全站字体（body 的字体栈），不再单独指定宋体 */
.apply-title {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: .3em;
  text-indent: .3em;
  color: #2b2b2b;
}

.apply-subtitle {
  margin: 0;
  font-size: 13px;
  letter-spacing: .42em;
  text-indent: .42em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .38);
}

.apply-subtitle::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin: 20px auto 0;
  background-image: linear-gradient(90deg, #9ad6b7 0%, #2d7a4f 100%);
}

/* 列数按卡片数量收敛，卡片不会被拉成横条 */
.apply-list {
  display: grid;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apply-list.count-2 {
  grid-template-columns: repeat(2, minmax(220px, 260px));
}

.apply-list.count-3 {
  grid-template-columns: repeat(3, minmax(200px, 240px));
}

.apply-list.count-4 {
  grid-template-columns: repeat(4, minmax(190px, 225px));
}

.apply-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box;
  height: 100%;
  min-height: 150px;
  padding: 24px 12px 20px;
  border: 1px solid var(--apply-line);
  border-radius: 14px;
  background-color: #fff;
  color: #2f2a25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(31, 74, 50, .06), 0 1px 2px rgba(31, 74, 50, .05);
  transition: transform .28s var(--apply-ease), box-shadow .28s var(--apply-ease),
              background-color .28s var(--apply-ease), border-color .28s var(--apply-ease),
              color .28s var(--apply-ease);
}

.apply-card:link,
.apply-card:visited {
  color: #2f2a25;
}

.apply-card__ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--apply-brand);
  transition: color .28s var(--apply-ease), transform .28s var(--apply-ease);
}

.apply-card__ico svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.apply-name {
  font-size: 15px;
  font-weight: 600;
  transition: color .28s var(--apply-ease);
}

.apply-go {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 999px;
  background-color: var(--apply-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background-color .28s var(--apply-ease), color .28s var(--apply-ease);
}

.apply-go .arrow {
  transition: transform .28s var(--apply-ease);
}

.apply-card:hover,
.apply-card:focus-visible {
  border-color: var(--apply-brand);
  background-color: var(--apply-brand);
  color: #fff;
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 74, 50, .18), 0 4px 10px rgba(31, 74, 50, .10);
}

.apply-card:hover .apply-card__ico,
.apply-card:focus-visible .apply-card__ico {
  color: #fff;
  transform: scale(1.08);
}

.apply-card:hover .apply-name,
.apply-card:focus-visible .apply-name {
  color: #fff;
}

.apply-card:hover .apply-go,
.apply-card:focus-visible .apply-go {
  background-color: #fff;
  color: var(--apply-brand-deep);
}

.apply-card:hover .arrow,
.apply-card:focus-visible .arrow {
  transform: translateX(3px);
}

.apply-card:focus-visible {
  outline: 3px solid var(--apply-brand-deep);
  outline-offset: 3px;
}

@media only screen and (max-width: 1200px) {
  .apply-page {
    padding: 100px 0 70px;
  }

  .apply-head {
    margin-bottom: 36px;
  }

  .apply-title {
    font-size: 30px;
  }

  /* 平板及以上统一两列；卡片宽度封顶，避免拉成横条 */
  .apply-list,
  .apply-list.count-2,
  .apply-list.count-3,
  .apply-list.count-4 {
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 16px;
  }

  .apply-card {
    min-height: 136px;
    padding: 22px 12px 18px;
  }
}

@media only screen and (max-width: 720px) {
  .apply-list,
  .apply-list.count-2,
  .apply-list.count-3,
  .apply-list.count-4 {
    grid-template-columns: minmax(0, 320px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .apply-card,
  .apply-card * {
    transition: none;
  }

  .apply-card:hover {
    transform: none;
  }
}
