/* ========================================================
   清风码上通 - 1:1 页面高保真复现样式表
   ======================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  touch-action: manipulation;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

/* 移动端外层容器：在 PC 上居中展示，在手机上自适应铺满 */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: #f5f6f8;
  overflow-x: hidden;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
}

/* 留言主页面 */
.msg-page {
  min-height: 100vh;
  background: #f5f6f8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

/* ========================================================
   1. 注意事项全屏弹窗 (Notice Overlay)
   ======================================================== */
.notice-overlay {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  z-index: 999;
  cursor: pointer;
  -webkit-animation: fadeIn 0.25s ease;
  animation: fadeIn 0.25s ease;
  overflow-y: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

@-webkit-keyframes fadeIn {
  0% { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  to { opacity: 1; }
}

.notice-inner {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 30px 20px 20px;
}

.notice-card {
  background: transparent;
  padding: 0;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.card-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f1f5;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
}

.notice-list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.notice-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.item-num {
  -ms-flex-negative: 0;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3478f6, #2196f3);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.item-content {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding-top: 2px;
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.item-desc {
  font-size: 15px;
  color: #666;
  line-height: 1.65;
}

.item-example {
  margin-top: 6px;
  padding: 8px 10px;
  background: #f8f9fb;
  border-left: 3px solid #3478f6;
  border-radius: 6px;
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

.tap-hint {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-bottom: 16px;
  font-size: 16px;
  color: #3478f6;
  font-weight: 500;
  -webkit-animation: pulse 1.5s ease-in-out infinite;
  animation: pulse 1.5s ease-in-out infinite;
}

.tap-hint svg {
  width: 14px;
  height: 14px;
  fill: #3478f6;
  stroke: #3478f6;
  stroke-width: 1;
}

@-webkit-keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ========================================================
   2. 页面头部 Banner (Header Banner)
   ======================================================== */
.header-banner {
  width: 100%;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background-color: #3478f6;
}

.banner-img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;
}


/* ========================================================
   3. 表单主体 (Form Body)
   ======================================================== */
.form-body {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  padding: 0 20px;
}

.tab-wrapper {
  padding: 18px 0 8px;
}

.tab-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: #eeeff3;
  border-radius: 28px;
  padding: 4px;
}

.tab-item {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  height: 46px;
  border-radius: 24px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 16px;
  color: #666;
  background: transparent;
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  font-weight: 500;
  user-select: none;
}

.tab-item.active {
  background: #fff;
  color: #3478f6;
  font-weight: 600;
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.field-section {
  margin-top: 24px;
}

.field-label {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-left: 4px;
}

.field-label-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.req {
  color: #e53935;
  font-weight: 700;
  margin-left: 2px;
}

.word-count {
  font-size: 14px;
  font-weight: 400;
  color: #b0b3bf;
}

.field-box {
  background: #eef0f5;
  border-radius: 14px;
  padding: 0 16px;
  height: 52px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.field-box--select {
  cursor: pointer;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.field-box--textarea {
  height: auto;
  padding: 14px 16px;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
}

.field-input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  outline: none;
}

.field-input::placeholder {
  color: #b0b3bf;
}

.select-text {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.select-text.placeholder {
  color: #b0b3bf;
  font-weight: 400;
}

.select-arrow {
  color: #999;
  display: flex;
  align-items: center;
}

.select-arrow svg {
  width: 16px;
  height: 16px;
  fill: #999;
}

.field-textarea {
  width: 100%;
  min-height: 160px;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #333;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.7;
}

.field-textarea::placeholder {
  color: #b0b3bf;
}

/* ========================================================
   4. 底部提交按钮 (Submit Button)
   ======================================================== */
.submit-wrap {
  padding: 24px 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.submit-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #3478f6, #2196f3);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 6px;
  cursor: pointer;
  -webkit-box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.35);
  -webkit-transition: opacity 0.2s ease, transform 0.1s ease;
  transition: opacity 0.2s ease, transform 0.1s ease;
  outline: none;
}

.submit-btn:active {
  opacity: 0.85;
  transform: scale(0.99);
}

/* ========================================================
   5. 底部选择器弹窗 (Vant Picker Popup)
   ======================================================== */
.van-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.van-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.van-popup {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  transform: translate(-50%, 100%);
  background-color: #fff;
  z-index: 1001;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.25, 1);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.van-popup.show {
  transform: translate(-50%, 0);
}

.van-picker {
  position: relative;
  background-color: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none !important;
}

.van-picker__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  border-bottom: 1px solid #ebedf0;
  touch-action: none;
}

.van-picker__cancel,
.van-picker__confirm {
  height: 100%;
  padding: 0 16px;
  font-size: 14px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  touch-action: manipulation;
}

.van-picker__cancel {
  color: #969799;
}

.van-picker__confirm {
  color: #576b95;
  font-weight: 500;
}

.van-picker__title {
  max-width: 50%;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  color: #323233;
}

.van-picker__columns {
  position: relative;
  display: flex;
  height: 220px;
  overflow: hidden;
  touch-action: none !important;
  cursor: grab;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.van-picker__columns:active {
  cursor: grabbing;
}

.van-picker-column {
  flex: 1;
  overflow: hidden;
  font-size: 16px;
  text-align: center;
  position: relative;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.van-picker-column__wrapper {
  transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
  transition-duration: 0ms;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.van-picker-column__item {
  height: 44px;
  line-height: 44px;
  padding: 0 16px;
  color: #646566;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
  transition: color 0.2s;
  touch-action: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

.van-picker-column__item.selected {
  font-weight: 600;
  color: #323233;
}

.van-picker__mask {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4)),
                    linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.4));
  background-repeat: no-repeat;
  background-position: top, bottom;
  background-size: 100% 88px;
  pointer-events: none;
}

.van-picker__frame {
  position: absolute;
  top: 50%;
  left: 16px;
  right: 16px;
  z-index: 1;
  transform: translateY(-50%);
  pointer-events: none;
  height: 44px;
  border-top: 1px solid #ebedf0;
  border-bottom: 1px solid #ebedf0;
}

/* ========================================================
   6. 轻提示 (Toast)
   ======================================================== */
.van-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: content-box;
  max-width: 70%;
  min-width: 96px;
  padding: 10px 18px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  white-space: pre-wrap;
  text-align: center;
  word-break: break-all;
  background-color: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.van-toast.show {
  opacity: 1;
  pointer-events: auto;
}

/* ========================================================
   7. 提交成功页面 (1:1 复现)
   ======================================================== */
.blue-success-page {
  display: none;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: #f0f8ff;
  width: 100%;
}

.blue-success-page.show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.success-content {
  text-align: center;
  max-width: 320px;
  width: 100%;
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  -webkit-box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  animation: fadeIn 0.3s ease;
}

.success-icon-container {
  margin-bottom: 25px;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, #4ffe9e, #00fe94);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-animation: pulse-success 2s infinite;
  animation: pulse-success 2s infinite;
  box-shadow: 0 4px 16px rgba(0, 254, 148, 0.3);
}

.success-icon svg {
  width: 48px;
  height: 48px;
}

@-webkit-keyframes pulse-success {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(1.05); transform: scale(1.05); }
  to { -webkit-transform: scale(1); transform: scale(1); }
}

@keyframes pulse-success {
  0% { -webkit-transform: scale(1); transform: scale(1); }
  50% { -webkit-transform: scale(1.05); transform: scale(1.05); }
  to { -webkit-transform: scale(1); transform: scale(1); }
}

.success-title {
  font-size: 20px;
  color: #2c3e50;
  margin: 0 0 12px;
  font-weight: 600;
}

.success-desc {
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.6;
  margin: 0 0 30px;
}

.action-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

.btn {
  padding: 13px 20px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #3478f6, #2196f3);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(33, 150, 243, 0.3);
}

.btn-primary:active {
  opacity: 0.85;
}

/* ========================================================
   6. 队伍专属标识条与徽章
   ======================================================== */
.team-banner-tag {
  background: linear-gradient(90deg, #edf4ff 0%, #f4f8ff 100%);
  border-bottom: 1px solid #d4e5ff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1a56db;
  letter-spacing: 0.5px;
}
.team-banner-tag .team-badge-icon {
  display: flex;
  align-items: center;
  color: #205ae0;
}
.team-pill-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  background: #1a56db;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-left: 4px;
}
