* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; background: #F5F5F0; color: #333; }

.page { max-width: 600px; margin: 0 auto; padding: 16px 16px 40px; }
.card { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }

.notice { background: linear-gradient(135deg, #FFF8E1, #FFF3E0); border-left: 4px solid #E6A23C; }
.notice-title { font-size: 15px; font-weight: 600; color: #8B1A1A; margin-bottom: 8px; display: block; }
.notice-text { font-size: 13px; color: #666; line-height: 1.8; white-space: pre-line; display: block; }

.section-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; padding-left: 10px; border-left: 3px solid #8B1A1A; }

.form-item { margin-bottom: 16px; }
.form-label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; }

.form-input, .form-textarea, .form-select {
  width: 100%; padding: 10px 12px; font-size: 15px;
  border: 1px solid #E0E0E0; border-radius: 8px;
  background: #FAFAFA; outline: none; transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: #8B1A1A; }
.form-textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 12px; color: #999; margin-top: 4px; }
.form-counter { font-size: 12px; color: #999; text-align: right; margin-top: 4px; }

.upload-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.upload-item {
  aspect-ratio: 1; border: 1px dashed #CCC; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: #FAFAFA;
}
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-add { font-size: 32px; color: #CCC; }
.upload-delete {
  position: absolute; top: 4px; right: 4px;
  width: 24px; height: 24px; background: rgba(0,0,0,0.5);
  color: #fff; border-radius: 50%; display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer; line-height: 1;
}

.submit-section { padding: 20px 0 40px; }
.submit-btn {
  width: 100%; padding: 14px; font-size: 16px; font-weight: 600;
  background: #8B1A1A; color: #fff; border: none; border-radius: 10px;
  cursor: pointer; transition: opacity 0.2s;
}
.submit-btn:active { opacity: 0.8; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.agreement-text { font-size: 12px; color: #999; text-align: center; margin-bottom: 12px; }
.agreement-link { color: #8B1A1A; text-decoration: underline; }

/* 协议弹窗 */
.agreement-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55); display: flex;
  align-items: center; justify-content: center; z-index: 1000;
}
.agreement-modal {
  width: 90%; max-width: 500px; max-height: 80vh;
  background: #fff; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
}
.agreement-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f0f0f0;
}
.agreement-modal-title { font-size: 17px; font-weight: 600; color: #333; }
.agreement-close {
  font-size: 24px; color: #999; cursor: pointer;
  width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center; border-radius: 50%;
}
.agreement-close:hover { background: #f5f5f5; }
.agreement-modal-body {
  padding: 20px; overflow-y: auto; font-size: 14px;
  color: #333; line-height: 1.8; word-break: break-all;
}

/* 成功页 */
.success-page { text-align: center; padding-top: 80px; }
.success-icon { font-size: 80px; display: block; margin-bottom: 24px; }
.success-title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.success-desc { font-size: 15px; color: #666; line-height: 1.8; margin-bottom: 40px; }

/* Loading */
.loading-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.85); display: flex;
  align-items: center; justify-content: center; z-index: 999;
}
.loading-spinner { font-size: 16px; color: #8B1A1A; }
