/* 设计稿 750px；1rem = 100px（在 750 宽时） */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Noto Sans SC", "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #d8d2c4;
  color: #000;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  color: inherit;
}

/* ---------- 页面容器 ---------- */
.page {
  position: relative;
  width: 100%;
  max-width: 7.5rem;
  margin: 0 auto;
  min-height: 100vh;
  background: #f5f1e8;
  padding-top: 1rem;
  padding-bottom: 0;
  overflow-x: hidden;
}

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: 100%;
  max-width: 7.5rem;
  height: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 0.26rem 0.18rem 0.25rem;
}

.header__bg {
  position: absolute;
  inset: 0;
  background: #1d4e89;
  pointer-events: none;
}

.header__title {
  position: relative;
  z-index: 1;
  font-family: "Noto Sans SC", "Source Han Sans CN", sans-serif;
  font-weight: 500;
  font-size: 0.36rem;
  line-height: 0.52rem;
  color: #fff;
}

.header__mine {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.08rem;
  height: 0.6rem;
  padding: 0 0.18rem 0 0.12rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 0.3rem;
}

.header__mine-icon {
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
}

.header__mine span {
  font-size: 0.24rem;
  line-height: 0.26rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  margin-top: 0;
}

.hero__banner {
  position: relative;
  width: 100%;
  height: 4.05rem;
  background: #b33a2f;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 3.19rem;
  object-fit: cover;
  object-position: center top;
}

.hero__slogan {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.28rem;
  text-align: center;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
  font-size: 0.32rem;
  line-height: 1.2;
  color: #fff;
  letter-spacing: 0.02rem;
}

/* ---------- 活动信息 ---------- */
.info {
  padding: 0.29rem 0.23rem 0;
}

.info__tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.48rem;
  height: 0.66rem;
  background: #948765;
  color: #fff;
  font-size: 0.24rem;
  line-height: 1;
  padding-left: 0.28rem;
}

.info__tag-diamond {
  position: absolute;
  left: 0.26rem;
  top: 50%;
  width: 0.1rem;
  height: 0.1rem;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.info__title {
  margin-top: 0.33rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  font-weight: 900;
  font-size: 0.45rem;
  line-height: 1.53;
  color: #202b38;
}

.info__meta {
  display: flex;
  align-items: center;
  margin-top: 0.51rem;
  width: 5.29rem;
  height: 0.59rem;
  padding: 0 0.24rem 0 0.24rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(148, 135, 101, 0.51);
  border-radius: 0.445rem;
  color: #948765;
  font-size: 0.24rem;
  line-height: 1.53;
}

.info__meta-dot {
  width: 0.1rem;
  height: 0.1rem;
  margin-right: 0.1rem;
  border-radius: 0.11rem;
  background: #b33a2f;
  flex-shrink: 0;
}

.info__meta-theme {
  white-space: nowrap;
}

.info__meta-divider {
  width: 1px;
  height: 0.37rem;
  margin: 0 0.16rem;
  background: #d9d9d9;
  flex-shrink: 0;
}

.info__meta-clock {
  width: 0.21rem;
  height: 0.21rem;
  margin-right: 0.08rem;
  flex-shrink: 0;
}

.info__meta-long {
  white-space: nowrap;
}

/* ---------- 通用区块标题 ---------- */
.section {
  margin-top: 0.61rem;
  padding: 0 0.22rem;
}

.section__head {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  margin-bottom: 0.24rem;
  padding-left: 0.01rem;
}

.section__icon {
  width: 0.25rem;
  height: 0.29rem;
  flex-shrink: 0;
}

.section__icon--grid {
  width: 0.3rem;
  height: 0.3rem;
}

.section__icon-works {
  position: relative;
  width: 0.31rem;
  height: 0.32rem;
  flex-shrink: 0;
}

.section__icon-works img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.section__title {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 700;
  font-size: 0.32rem;
  line-height: 1.53;
  color: #000;
}

.section__en {
  font-size: 0.24rem;
  line-height: 1.53;
  color: rgba(0, 0, 0, 0.26);
  text-transform: none;
}

.categories .section__en {
  text-transform: none;
}

/* ---------- 活动介绍 ---------- */
.intro {
  margin-top: 0.61rem;
}

.intro__card {
  position: relative;
  width: 7.05rem;
  min-height: 5.52rem;
  margin: 0 auto;
  padding: 0.45rem 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.63);
  border-radius: 0.19rem;
  box-shadow: 0 0 0.1rem rgba(0, 0, 0, 0.29);
}

.intro__text {
  font-size: 0.26rem;
  line-height: 1.68;
  color: #565656;
  text-align: justify;
  max-height: 3.19rem;
  overflow: hidden;
}

.intro__card.is-expanded .intro__text {
  max-height: none;
  overflow: visible;
}

.intro__expand {
  position: absolute;
  left: 50%;
  bottom: 0.3rem;
  transform: translateX(-50%);
  width: 0.63rem;
  height: 0.63rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro__expand-bg {
  position: absolute;
  inset: -15.87%;
  width: 131.74%;
  height: 131.74%;
  max-width: none;
}

.intro__expand-arrow {
  position: relative;
  z-index: 1;
  width: 0.26rem;
  height: 0.26rem;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
}

.intro__card.is-expanded .intro__expand-arrow {
  transform: rotate(-90deg);
}

.intro__more {
  display: inline;
  margin: 0;
  color: #1d4e89;
  font-size: inherit;
  line-height: inherit;
  text-align: inherit;
}

/* ---------- 作品种类 ---------- */
.categories {
  margin-top: 0.63rem;
  scroll-margin-top: 1.2rem;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.category-item {
  display: flex;
  align-items: center;
  width: 7.05rem;
  height: 1.47rem;
  margin: 0 auto;
  padding: 0 0.24rem 0 0.23rem;
  background: #fff;
  border-radius: 0.19rem;
}

.category-item__icon {
  width: 0.61rem;
  height: 0.59rem;
  flex-shrink: 0;
}

.category-item__text {
  flex: 1;
  min-width: 0;
  margin-left: 0.26rem;
  padding-right: 0.12rem;
  overflow: hidden;
}

.category-item__name {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 700;
  font-size: 0.32rem;
  line-height: 1.68;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-item__en {
  font-weight: 300;
  font-size: 0.2rem;
  line-height: 1.68;
  color: #828282;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-item__status {
  display: inline;
  margin-left: 0.12rem;
  font-family: "Noto Sans SC", "Source Han Sans CN", sans-serif;
  font-weight: 400;
  font-size: 0.2rem;
  line-height: 1;
  color: #1a7f37;
  vertical-align: middle;
}

.category-item.is-ended .category-item__status {
  color: #9a9a9a;
}

.category-item__btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.57rem;
  height: 0.64rem;
  background: #b33a2f;
  border-radius: 0.37rem;
  color: #fff;
  font-size: 0.24rem;
  line-height: 1.68;
}

.category-item__btn.is-disabled {
  background: #b0b0b0;
  box-shadow: none;
}

.work-card__link {
  display: block;
  color: inherit;
}

.page-toast {
  position: fixed;
  left: 50%;
  bottom: 2.2rem;
  z-index: 400;
  transform: translateX(-50%);
  padding: 0.16rem 0.32rem;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 0.12rem;
  color: #fff;
  font-size: 0.26rem;
  white-space: nowrap;
}

.page-toast[hidden] {
  display: none;
}

/* ---------- 展播作品 ---------- */
.works {
  margin-top: 0.63rem;
}

.works__tabs {
  display: flex;
  align-items: center;
  width: 5.85rem;
  height: 0.93rem;
  margin: 0.24rem auto 0.65rem;
  padding: 0.09rem 0.14rem;
  background: #e9e3d3;
  border-radius: 0.745rem;
}

.works__tab {
  flex: 1;
  height: 0.75rem;
  border-radius: 0.745rem;
  font-weight: 500;
  font-size: 0.24rem;
  line-height: 1.53;
  color: #6e6e6e;
  text-align: center;
  white-space: nowrap;
}

.works__tab.is-active {
  flex: none;
  width: 2.93rem;
  background: #fff;
  color: #b33a2f;
}

.works__panels {
  position: relative;
}

.works__panel.is-hidden {
  display: none;
}

.works__empty {
  width: 7.05rem;
  margin: 0 auto;
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-size: 0.26rem;
  line-height: 1.6;
  color: #919191;
  background: #fff;
  border-radius: 0.3rem;
}

.works-swiper {
  width: 7.05rem;
  margin: 0 auto;
  padding-bottom: 0.56rem;
}

.works-swiper .swiper-slide {
  height: auto;
}

.works-swiper__pagination {
  bottom: 0 !important;
}

.works-swiper__pagination .swiper-pagination-bullet {
  width: 0.12rem;
  height: 0.12rem;
  margin: 0 0.06rem !important;
  background: #d8d2c4;
  opacity: 1;
}

.works-swiper__pagination .swiper-pagination-bullet-active {
  width: 0.28rem;
  border-radius: 0.06rem;
  background: #b33a2f;
}

.work-card {
  width: 100%;
  margin: 0;
  background: #fff;
  border-radius: 0.3rem;
  overflow: hidden;
}

.work-card__cover {
  width: 100%;
  height: 4.47rem;
  overflow: hidden;
  border-radius: 0.3rem 0.3rem 0 0;
}

.work-card__cover img {
  width: 100%;
  height: 4.54rem;
  margin-top: -0.07rem;
  object-fit: cover;
}

.work-card__body {
  position: relative;
  padding: 0.16rem 0.24rem 0.48rem 0.24rem;
  min-height: 1.56rem;
}

.work-card__title {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 900;
  font-size: 0.4rem;
  line-height: 1.53;
  color: #000;
  padding-left: 0.22rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-card__desc {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  margin-top: 0.1rem;
  padding-left: 0.22rem;
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 400;
  font-size: 0.24rem;
  line-height: 1.53;
  color: #919191;
}

.work-card__desc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-card__desc img {
  width: 0.28rem;
  height: 0.28rem;
  flex-shrink: 0;
}

/* ---------- 页脚 ---------- */
.page-footer {
  margin-top: 0.4rem;
  padding: 0.64rem 0.5rem 0.4rem;
  text-align: center;
}

.page-footer__line {
  width: 1.74rem;
  height: 0.04rem;
  margin: 0 auto 0.6rem;
  background: #948765;
}

.page-footer__text {
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-size: 0.24rem;
  line-height: 1.8;
  color: #6e6e6e;
}

.page-footer__link-wrap {
  margin-top: 0.2rem;
}

.page-footer__link {
  color: #1d4e89;
  text-decoration: underline;
  text-underline-offset: 0.06rem;
}

.bottom-bar-spacer {
  height: calc(1.82rem + env(safe-area-inset-bottom, 0px));
}

/* ---------- 底部固定栏 ---------- */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 100;
  transform: translateX(-50%);
  width: 100%;
  max-width: 7.5rem;
  height: calc(1.82rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.38rem 0.31rem env(safe-area-inset-bottom, 0px) 0.31rem;
  background: #fff;
  border-top: 0.02rem solid #948765;
  box-sizing: border-box;
}

.bottom-bar__mine {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 1.2rem;
  padding-top: 0.04rem;
}

.bottom-bar__mine img {
  width: 0.44rem;
  height: 0.455rem;
}

.bottom-bar__mine span {
  margin-top: 0.08rem;
  font-size: 0.24rem;
  line-height: 1.8;
  color: #919191;
  white-space: nowrap;
}

.bottom-bar__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  width: 5.44rem;
  height: 1rem;
  background: #b33a2f;
  border-radius: 0.67rem;
  box-shadow: 0 0 0.2rem #b33a2f;
  color: #fff;
}

.bottom-bar__cta img {
  width: 0.32rem;
  height: 0.32rem;
}

.bottom-bar__cta span {
  font-weight: 500;
  font-size: 0.32rem;
  line-height: 1.8;
}

/* ---------- 参赛声明弹窗 ---------- */
.modal {
  position: fixed;
  left: 50%;
  top: 1rem;
  bottom: 0;
  z-index: 200;
  transform: translateX(-50%);
  width: 100%;
  max-width: 7.5rem;
}

.modal[hidden] {
  display: none;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 11.89rem;
  max-height: calc(100vh - 2.2rem);
  background: #fff;
  border-radius: 0.36rem 0.36rem 0 0;
  overflow: hidden;
}

.modal__head {
  position: relative;
  flex-shrink: 0;
  height: 1.48rem;
  border-bottom: 1px solid #b33a2f;
}

.modal__title {
  position: absolute;
  left: 50%;
  top: 0.67rem;
  transform: translateX(-50%);
  font-family: "Noto Serif SC", "Source Han Serif SC", serif;
  font-weight: 700;
  font-size: 0.48rem;
  line-height: 0.68rem;
  color: #000;
  white-space: nowrap;
}

.modal__close {
  position: absolute;
  top: 0.4rem;
  right: 0.23rem;
  width: 0.54rem;
  height: 0.54rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__close img {
  width: 0.54rem;
  height: 0.54rem;
}

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0.44rem 0.24rem 0.24rem;
}

.modal__body p {
  font-size: 0.26rem;
  line-height: 0.42rem;
  color: #4a4a4a;
  text-align: justify;
}

.modal__body p + p {
  margin-top: 0.42rem;
}

.modal__org {
  margin-top: 0.37rem !important;
  text-align: center !important;
  font-size: 0.24rem !important;
  line-height: 0.42rem !important;
  color: #878787 !important;
}

.modal__foot {
  flex-shrink: 0;
  padding: 0.33rem 0.27rem calc(0.63rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #b33a2f;
}

.modal__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.17rem;
  cursor: pointer;
}

.modal__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.modal__check-box {
  width: 0.25rem;
  height: 0.25rem;
  margin-top: 0.08rem;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #dadada;
  border-radius: 0.04rem;
  box-sizing: border-box;
}

.modal__check:checked + .modal__check-box {
  background: #b33a2f;
  border-color: #b33a2f;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='none' stroke='white' stroke-width='2' d='M2 6l3 3 5-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.16rem 0.16rem;
}

.modal__agree-text {
  font-size: 0.24rem;
  line-height: 0.42rem;
  color: #6e6e6e;
}

.modal__agree-link {
  font-weight: 500;
  color: #1d4e89;
}

.modal__agree-rest {
  font-weight: 400;
  color: #878787;
}

.modal__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  width: 6.83rem;
  height: 1.11rem;
  margin-top: 0.32rem;
  background: #b33a2f;
  border-radius: 0.15rem;
  color: #fff;
  font-weight: 500;
  font-size: 0.32rem;
  line-height: 0.42rem;
}

.modal__submit.is-disabled {
  opacity: 0.55;
}

.modal__submit-arrow {
  width: 0.15rem;
  height: 0.28rem;
  transform: rotate(90deg);
}

body.is-modal-open {
  overflow: hidden;
}

/* ---------- PC 适配：居中手机框，最大 750 ---------- */
@media (min-width: 751px) {
  body {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(29, 78, 137, 0.12), transparent 55%),
      linear-gradient(180deg, #e8e2d4 0%, #d4cdc0 100%);
  }

  .page {
    box-shadow: 0 0.12rem 0.48rem rgba(32, 43, 56, 0.18);
  }

  .header,
  .bottom-bar {
    box-shadow: 0 0.04rem 0.16rem rgba(0, 0, 0, 0.08);
  }
}

/* 超小屏保护 */
@media (max-width: 320px) {
  .category-item__en {
    display: none;
  }

  .info__meta {
    width: 100%;
    flex-wrap: wrap;
    height: auto;
    min-height: 0.59rem;
    padding: 0.08rem 0.2rem;
  }
}
