/* ===== 第五届陕西省互联网辟谣宣传优秀作品征集活动 H5 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background: #3d3d3d;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}
img { border: 0; }

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(160deg, #0a1e5e 0%, #123b9e 60%, #0d2c7e 100%);
  padding: 0 10px calc(76px + env(safe-area-inset-bottom));
  box-shadow: 0 0 24px rgba(0,0,0,.35);
}
.page[hidden] { display: none; }

.banner { display: block; width: calc(100% + 20px); margin-left: -10px; }

/* ===== 卡片（顶/底边图 + 侧边描边中段）===== */
.card { margin: 10px 0 0; font-size: 0; }
.card-edge { display: block; width: 100%; }
.card-body {
  background: #fff url("../img/card_mid.png") repeat-y left top;
  background-size: 100% auto;
  padding: 18px 20px 22px;
  font-size: 15px;
}
.info-body { padding: 16px 20px; }

.info-row { display: flex; align-items: flex-start; margin: 6px 0; }
.info-row + .info-row { margin-top: 12px; }
.info-ic { flex: 0 0 auto; width: 20px; padding-top: 3px; }
.info-ic svg { display: block; }
.info-label { flex: 0 0 auto; font-weight: 700; color: #222; }
.info-text { flex: 1; color: #222; word-break: break-all; }

/* ===== 栏目标题（蓝底斜角标签 + 红白领带 + 蓝色小下划线）===== */
.sec-tag {
  position: relative;
  width: fit-content;
  margin: 8px auto 0;
  padding: 0 6px;
}
.sec-tag-text {
  display: inline-block;
  background: linear-gradient(180deg, #4d94ff 0%, #2b6cff 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 7px 26px;
  transform: skewX(-12deg);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(43,108,255,.35);
}
.sec-tag-text::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 34px;
  height: 4px;
  transform: translateX(-50%);
  background: #2b6cff;
  border-radius: 2px;
}
.sec-tag-ribbon {
  position: absolute;
  left: -4px;
  top: -7px;
  width: 14px;
  height: 14px;
  z-index: 2;
  background: linear-gradient(135deg, #ff5a5a 0 50%, #ffb0b0 50% 100%);
  border-radius: 2px;
  transform: skewX(-12deg);
  box-shadow: 1px 1px 2px rgba(0,0,0,.15);
}

/* 红蓝虚线分隔条 */
.divider {
  height: 10px;
  margin: 18px 0 14px;
  background: repeating-linear-gradient(
    -60deg,
    #e04848 0, #e04848 10px,
    transparent 10px, transparent 18px,
    #2b6cff 18px, #2b6cff 28px,
    transparent 28px, transparent 36px
  );
  border-radius: 2px;
  opacity: .9;
}

/* ===== 富文本 ===== */
.rich { color: #333; font-size: 15px; line-height: 1.9; word-break: break-word; }
.rich p { margin: 0 0 10px; text-indent: 2em; }
.rich strong { color: #1a1a1a; }

/* ===== 表单 ===== */
.field { margin-bottom: 16px; }
.f-label { display: block; font-weight: 700; color: #333; margin-bottom: 8px; }
.f-tip { font-weight: 400; color: #9aa7c7; font-size: 13px; }

input[type="text"], input[type="tel"], input[type="email"], input[type="url"], textarea, select {
  width: 100%;
  height: 44px;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
  background: #f7f9fe;
  padding: 0 12px;
  font-size: 15px;
  color: #333;
  outline: none;
  font-family: inherit;
}
textarea { height: auto; padding: 10px 12px; resize: none; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: #2b6cff; background: #fff; }
input::placeholder, textarea::placeholder { color: #aab4cf; }

.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #8fa0c8;
  border-bottom: 2px solid #8fa0c8;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.radio-row { display: flex; gap: 22px; padding: 4px 2px; }
.radio-item { display: flex; align-items: center; gap: 6px; font-size: 15px; color: #333; }
.radio-item input { width: 18px; height: 18px; accent-color: #2b6cff; }
.radio-item input:disabled + span { color: #aab4cf; }

.count { text-align: right; font-size: 12px; color: #9aa7c7; margin-top: 4px; }

.err { color: #e04848; font-size: 12px; line-height: 1.5; margin-top: 4px; min-height: 0; }
.err:empty { display: none; }
.form-err { text-align: center; margin-bottom: 8px; }

/* ===== 上传组件 ===== */
.upload-box {
  border: 2px dashed #b9c8ef;
  border-radius: 10px;
  background: #f7f9fe;
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
}
.upload-box.disabled { opacity: .55; cursor: not-allowed; }
.upload-ic { display: flex; justify-content: center; margin-bottom: 6px; }
.upload-tip { font-size: 13px; color: #7a8bb5; line-height: 1.6; }

.file-list { list-style: none; margin-top: 10px; }
.file-item {
  background: #f7f9fe;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
}
.file-top { display: flex; align-items: center; gap: 8px; }
.file-name { flex: 1; font-size: 13px; color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-status { flex: 0 0 auto; font-size: 12px; color: #7a8bb5; }
.file-status.done { color: #1faa59; }
.file-status.error { color: #e04848; }
.file-del {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 0; border-radius: 50%;
  background: #e8edf9; color: #7a8bb5;
  font-size: 13px; line-height: 22px;
  text-align: center; cursor: pointer;
}
.file-bar { height: 6px; border-radius: 3px; background: #e8edf9; margin-top: 8px; overflow: hidden; }
.file-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4d94ff, #2b6cff); border-radius: 3px; transition: width .2s; }

/* ===== 验证码 ===== */
.captcha-row { display: flex; gap: 10px; align-items: center; }
.captcha-row input { flex: 1; }
.captcha-row img {
  flex: 0 0 auto;
  width: 110px; height: 44px;
  border: 1px solid #e0e6f5;
  border-radius: 8px;
  background: #f7f9fe;
  cursor: pointer;
  object-fit: cover;
}

/* ===== 提交按钮 ===== */
.btn-submit {
  display: block;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #4d94ff 0%, #2b6cff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(43,108,255,.35);
  font-family: inherit;
}
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== 征集已结束 ===== */
.ended-tip { text-align: center; padding: 46px 16px; }
.ended-title { font-size: 20px; font-weight: 700; color: #2b6cff; letter-spacing: 4px; margin-bottom: 12px; }
.ended-sub { font-size: 14px; color: #7a8bb5; }

/* ===== 底部宣传图 ===== */
.promo { display: block; width: 100%; margin-top: 12px; border-radius: 8px; }

/* ===== TabBar ===== */
#tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  /* 内容区固定 52px，safe-area 额外撑开 padding（不能写死 height，
     否则 border-box 下 iPhone Home 指示条会挤压内容区导致图标被挤出） */
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  display: flex;
  box-shadow: 0 -2px 10px rgba(0,0,0,.12);
  border-radius: 12px 12px 0 0;
  z-index: 50;
}
.tab {
  flex: 1;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #9aa0ae;
  font-size: 12px;
  cursor: pointer;
}
.tab.active { color: #2b6cff; font-weight: 700; }

/* ===== 弹层 / toast ===== */
.mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
}
.mask[hidden] { display: none; }
.modal {
  width: 78%;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  padding: 30px 22px 24px;
  text-align: center;
}
.modal-ic { display: flex; justify-content: center; margin-bottom: 10px; }
.modal-title { font-size: 19px; font-weight: 700; color: #222; letter-spacing: 3px; margin-bottom: 8px; }
.modal-sub { font-size: 13px; color: #7a8bb5; margin-bottom: 20px; }

.toast {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  max-width: 76%;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 200;
  text-align: center;
  line-height: 1.5;
}
.toast[hidden] { display: none; }

@media (max-width: 480px) {
  #app { box-shadow: none; }
}
