* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #f2f3f5; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; -webkit-font-smoothing: antialiased; }

.h5-page { display: flex; flex-direction: column; min-height: 100vh; background: #f2f3f5; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; }
.h5-page input,
.h5-page textarea,
.h5-page select,
.h5-page button { font-family: inherit; }

/* top title */
.h5-top { padding: 20px 16px 8px; }
.h5-title { font-size: 22px; font-weight: 700; color: #1a1a1a; }
.h5-title-line { width: 120px; height: 4px; background: linear-gradient(90deg, #1a73e8 0%, #1a73e8 40%, transparent 100%); border-radius: 2px; margin-top: 8px; }

/* card */
.h5-card { background: #fff; border-radius: 16px; margin: 30px 12px 16px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.h5-card-head { display: flex; align-items: center; margin-bottom: 16px; }
.h5-card-bar { width: 4px; height: 18px; background: #1a73e8; border-radius: 2px; margin-right: 8px; }
.h5-card-title { font-size: 16px; font-weight: 600; color: #333; }

/* form */
.h5-form-group { margin-bottom: 16px; }
.h5-form-group:last-child { margin-bottom: 0; }
.h5-form-label { display: block; font-size: 14px; color: #555; margin-bottom: 8px; }
.h5-form-label .req { color: #e74c3c; }
.h5-form-label .opt { color: #aaa; font-size: 12px; margin-left: 4px; }

/* textarea */
.h5-textarea-box { position: relative; }
.h5-textarea { display: block; width: 100%; height: 120px; padding: 12px 40px 12px 12px; border: 1px solid #e5e5e5; border-radius: 10px; font-size: 15px; color: #333; background: #fafafa; outline: none; resize: none; line-height: 1.5; transition: border-color .2s; -webkit-appearance: none; }
.h5-textarea:focus { border-color: #1a73e8; background: #fff; }
.h5-textarea::placeholder { color: #bbb; }
.h5-upload-btn { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #409eff, #66b1ff); border-radius: 8px; cursor: pointer; color: #fff; font-size: 16px; box-shadow: 0 2px 8px rgba(64, 158, 255, 0.4); }
.h5-upload-btn:active { opacity: 0.85; }
.h5-textarea-box .bj-clear-btn { position: absolute; right: 50px; bottom: 10px; width: 32px; height: 32px; border: none; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; background: #ebebeb; color: #6a6a6a; font-size: 14px; transition: all .2s; z-index: 1; }
.h5-textarea-box .bj-clear-btn:hover { background: #e0e0e0; color: #666; }
.h5-upload-btn { border: none; cursor: pointer; }

/* input box */
.h5-input-box { position: relative; display: flex; align-items: center; background: #fafafa; border: 1px solid #e5e5e5; border-radius: 10px; padding: 0 12px; transition: border-color .2s; }
.h5-input-box:focus-within { border-color: #1a73e8; background: #fff; }
.h5-input { flex: 1; height: 46px; border: none; background: transparent; font-size: 15px; color: #333; outline: none; -webkit-appearance: none; }
.h5-input::placeholder { color: #bbb; }
.h5-input-with-icon { padding-left: 8px; }
.h5-input-icon { flex-shrink: 0; color: #bbb; }
.h5-input-unit { flex-shrink: 0; color: #999; font-size: 15px; padding-left: 4px; }
.h5-date-picker { flex-shrink: 0; padding: 4px; cursor: pointer; border-radius: 6px; color: #999; }
.h5-date-picker:active { background: #e8e8e8; }

/* hide native date picker indicator on the right */
input[type="date"]::-webkit-calendar-picker-indicator { display: none !important; -webkit-appearance: none; }
input[type="date"]::-moz-calendar-picker-indicator { display: none !important; }
input[type="date"] { -moz-appearance: textfield; appearance: none; }
.h5-select { padding-right: 24px; background: transparent; }
.h5-select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; color: #999; }
.h5-btn-submit i { margin-right: 6px; font-size: 16px; }
.h5-success-icon i { font-size: 32px; }

/* tip */
.h5-input-tip { font-size: 12px; color: #999; margin-top: 6px; padding-left: 2px; }

/* file list */
.h5-file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.h5-file-item { display: flex; align-items: center; gap: 6px; background: #f0f2f5; border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #555; }
.h5-file-item .h5-file-del { color: #e74c3c; cursor: pointer; font-size: 16px; line-height: 1; }

/* bottom bar */
.h5-bottom-bar { padding: 12px 0 0; }
.h5-btn-submit { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: none; border-radius: 24px; background: linear-gradient(135deg, #409eff, #66b1ff); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity .2s; -webkit-tap-highlight-color: transparent; box-shadow: 0 4px 12px rgba(64, 158, 255, 0.4); }
.h5-btn-submit:active { opacity: .85; }
.h5-btn-submit:disabled { opacity: .5; cursor: not-allowed; }

/* success */
.h5-success { display: none; position: fixed; inset: 0; z-index: 20; flex-direction: column; align-items: center; justify-content: center; background: #f2f3f5; padding: 40px 24px; text-align: center; }
.h5-success-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: #2ed573; margin-bottom: 16px; }
.h5-success h2 { font-size: 20px; color: #222; margin-bottom: 8px; }
.h5-success p { font-size: 14px; color: #888; line-height: 1.5; }
.h5-success-no { margin-top: 12px; font-size: 14px; color: #1a73e8; font-weight: 600; }
.h5-success-btn { max-width: 200px; margin: 24px auto 0; border-radius: 24px; }

/* responsive */
@media (min-width: 768px) {
  .h5-page { max-width: 480px; margin: 0 auto; }
  .h5-success { max-width: 480px; left: 50%; transform: translateX(-50%); }
}