* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #1a0a00;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.page-wrapper {
    position: relative;
    width: 393px;
    min-height: 715px;
    overflow: hidden;
}

.poster-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-content {
    position: relative;
    z-index: 1;
    padding: 20px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题 */
.page-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    background: linear-gradient(to bottom, #ffe9c5, #efbf71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    margin-bottom: 16px;
    margin-top: 120px;
}

/* 通用卡片 */
.card {
    width: 380px;
    border-radius: 10px;
    margin-bottom: 12px;
}

/* 补偿事项卡片 */
.card-compensation {
    background: #fff;
    border: 1px solid #f60000;
    padding: 14px 16px;
}

.card-compensation .card-title {
    font-size: 16px;
    font-weight: bold;
    color: #cf0e00;
    line-height: 14px;
    margin-bottom: 12px;
    text-align: center;
}

.card-compensation .card-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 24px;
}

/* 报告信息卡片 */
.card-form {
    background: #cf0e00;
    border: 1px solid #e9ad83;
    padding: 12px 10px;
}

.card-form-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    line-height: 16px;
    margin-bottom: 10px;
}

.card-form-body {
    background: #fff;
    border-radius: 10px;
    padding: 16px 14px;
}

/* 表单行 */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.form-label span {
    font-size: 12px;
    color: #cf0e00;
    line-height: 12px;
    white-space: nowrap;
}

.form-icon {
    width: 20px;
    height: 20px;
}

.form-icon-sm {
    width: 18px;
    height: 18px;
}

/* 输入框 */
.form-input-wrap {
    flex: 1;
    margin-left: 8px;
}

.form-input-wrap input {
    width: 100%;
    height: 24px;
    border: 1px solid #d4d4d4;
    border-radius: 100px;
    padding: 0 14px;
    font-size: 12px;
    color: #333;
    outline: none;
    background: #fff;
}

.form-input-wrap input::placeholder {
    color: #767676;
}

/* 下拉选择 */
.form-select-wrap {
    flex: 1;
    margin-left: 8px;
    position: relative;
}

.form-select-wrap select {
    width: 100%;
    height: 24px;
    border: 1px solid #d4d4d4;
    border-radius: 100px;
    padding: 0 28px 0 10px;
    font-size: 12px;
    color: #767676;
    outline: none;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 11px;
    height: 6px;
    pointer-events: none;
}

/* 提交按钮 */
.btn-submit {
    display: block;
    width: 156px;
    height: 33px;
    margin: 16px auto 0;
    background: #cf0e00;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    line-height: 33px;
    text-align: center;
}

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

/* Toast 提示 */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

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

.toast-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    border-radius: 12px;
    overflow: hidden;
    background: #e4242c;
    padding-bottom: 12px;
}

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

/* 弹窗头部 - 红色背景 */
.dialog-header {
    background: #e4242c;
    padding: 24px 20px 20px;
    position: relative;
    overflow: hidden;
}

.dialog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/start/dialog-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
}

.dialog-title {
    position: relative;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    line-height: 32px;
    margin-bottom: 8px;
}

.dialog-subtitle {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dialog-subtitle-icon {
    width: 20px;
    height: 20px;
}

.dialog-subtitle span {
    font-size: 14px;
    color: #fff;
    line-height: 20px;
}

/* 弹窗主体 - 白色卡片 */
.dialog-body {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 0 12px;
    position: relative;
}

.dialog-label {
    font-size: 16px;
    color: #000;
    text-align: center;
    line-height: 20px;
    margin-bottom: 8px;
}

.dialog-amount {
    font-size: 40px;
    font-weight: 600;
    color: #e4242c;
    text-align: center;
    line-height: 50px;
    margin-bottom: 20px;
}

/* 步骤条 */
.dialog-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
    padding: 0 4px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e4242c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-circle img {
    width: 20px;
    height: 20px;
}

.step-circle span {
    font-size: 16px;
    color: #fff;
    line-height: 20px;
}

.step-circle-gray {
    background: #cfcfcf;
}

.step-circle-gray span {
    color: #000;
}

.step-title {
    font-size: 13px;
    color: #000;
    text-align: center;
    line-height: 16px;
}

.step-desc {
    font-size: 11px;
    color: #838383;
    text-align: center;
    line-height: 14px;
}

.step-line {
    width: 36px;
    height: 1px;
    border-top: 1px dashed #7e7e7e;
    margin-top: 16px;
    flex-shrink: 0;
}

.step-line-active {
    border-top: 1px solid #e4242c;
}

/* 提示区域 */
.dialog-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #f7f7f8;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 16px;
}

.dialog-notice-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.dialog-notice p {
    font-size: 13px;
    color: #838383;
    line-height: 18px;
}

/* 弹窗按钮 */
.dialog-btn {
    display: block;
    width: 100%;
    height: 46px;
    background: #ea2831;
    border: none;
    border-radius: 100px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    text-align: center;
    line-height: 46px;
    text-decoration: none;
}

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

/* 简单 toast 提示（错误时用） */
.simple-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 80vw;
    text-align: center;
}

.simple-toast.show {
    opacity: 1;
}

/* 移动端适配 */
@media screen and (max-width: 393px) {
    .page-wrapper {
        width: 100vw;
    }

    .card {
        width: calc(100vw - 13px);
    }
}
