.submission-page {
  background: #f8f9fb;
  min-height: 100%;
}

.nav-header {
  display: flex;
  align-items: center;
  padding: 4px 16px;
  background: var(--primary-light);
  position: relative;
  z-index: 10;
  border-radius: 12px 12px 0 0;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.back-btn {
  padding: 4px;
  color: var(--primary-color);
}

.nav-title {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.service-btn {
  padding: 4px;
  color: var(--primary-color);
}    

/* 卡种选择网格 - 扁平化 */
.card-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 16px 12px;
  margin-bottom: 1px;
}

.card-type-item {
  background:#3b82f6;
  padding: 6px 0;  
  border: 1px solid #eee;
  border-radius: 4px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
  font-size: 13px;
  color: #fff;
}

.card-type-item.active {
  background: var(--success-color);
  border-color: var(--success-color);
  color: #fff;
}

.card-type-name {
  font-weight: 500;
}

.form-container {
  background: #fff;
  padding: 0 16px 12px;
  margin-bottom: 1px;
}

.form-label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
  color: var(--text-main);
}

.value-grid {
  margin-bottom: 2px;
  display: flex;
  justify-content: center;
  max-height: 600px;
  overflow-y: auto;
}

.value-select-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 95%;
  padding: 12px 16px;
  border: 1px solid #bfdbfe;
  background: var(--primary-light);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-color);
  cursor: pointer;
  transition: all 0.2s;
}

.value-select-btn::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  margin-right: 4px;
  opacity: 0.7;
}

.selected-text::before {
  content: ""; 
}   

#modal-toggle, .val-radio {
  display: none;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000; 
  display: none;
  align-items: flex-end;
  justify-content: center;
}

#modal-toggle:checked ~ .main-content .modal-overlay {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  border-radius: 20px 20px 0 0;
  padding: 24px 16px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 600;
}

.close-modal-label {
  color: var(--text-sub);
  cursor: pointer;
  padding: 4px;
}

.modal-value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-bottom: 20px;
  max-height: 600px;
  overflow-y: auto;
}

.modal-value-grid {
      /* 超出时显示垂直滚动条 */
}

.modal-value-label {
  padding: 14px 0;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  display: block;
}    

/* Fixed Bottom Nav */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.main-content {
  padding-bottom: 80px; /* Space for fixed tab-bar */
}

.custom-value-input {
  display: none;
  margin-bottom: 24px;
}

.custom-value-input.show {
  display: block;
}

.input-group {
  margin-bottom: 18px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border-radius: 10px;
  padding: 12px 16px;
  border: 1px solid #f3f4f6;
}

.input-wrapper input, .input-wrapper textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-main);
}

.input-wrapper textarea {
  height: 120px;
  resize: none;
  padding: 4px 0;
  line-height: 1.6;
}

.scan-icon {
  color: var(--primary-color);
  margin-left: 10px;
}

/* 批量模式说明 */
.batch-tip {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 8px;
  line-height: 1.5;
}

.submit-area {
  padding: 12px 16px;
}

.main-submit-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.agreement-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 16px;
}

.agreement-text a {
  color: var(--primary-color);
  text-decoration: none;
}

.instructions-section {
  padding: 20px 16px;
  background: #fff;
  margin-bottom: 20px;
}

.instructions-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructions-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: var(--primary-color);
  border-radius: 2px;
}

.instructions-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.instructions-list li {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.instructions-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}