:root {
    --primary: #e91e8c;
    --primary-dark: #c2185b;
    --primary-light: #fce4f3;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f3f4f8;
    --card: #ffffff;
    --success: #10b981;
    --radius: 14px;
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    min-height: 100vh;
    margin: 0;
    color: var(--text);
}

.main-content-wrapper {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.header-banner {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 40px 32px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, #ff6b9d 50%, var(--primary-dark) 100%);
}

.header-banner h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--text);
    text-align: center;
}

.header-banner h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-banner .subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 18px;
    text-align: center;
}

.header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.header-banner .highlight {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.header-banner .highlight.secondary {
    background: #ecfdf5;
    color: #047857;
}

.advantages-section {
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.advantage-item:hover {
    border-color: #f9a8d4;
    box-shadow: 0 4px 16px rgba(233, 30, 140, 0.08);
}

.advantage-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.advantage-text strong {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
    font-weight: 700;
}

.advantage-text span {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    align-items: start;
}

.form-section { min-width: 0; }

.info-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 20px;
}

.layui-col-md12 { margin: 0; padding: 0; width: 100%; }

.form-section .layui-card {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 自定义步骤条 */
.custom-steps {
    display: flex;
    align-items: center;
    padding: 20px 28px 16px;
    background: #fafbfc;
    border-bottom: 1px solid var(--border);
    gap: 0;
}

.custom-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.custom-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    border: 2px solid var(--border);
    color: var(--text-muted);
    background: #fff;
    transition: all 0.25s;
    flex-shrink: 0;
}

.custom-step-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
}

.custom-step.active .custom-step-num {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(233, 30, 140, 0.3);
}

.custom-step.active .custom-step-text {
    color: var(--primary-dark);
    font-weight: 600;
}

.custom-step.done .custom-step-num {
    background: var(--primary-light);
    border-color: var(--primary);
    color: transparent;
    font-size: 0;
}

.custom-step.done .custom-step-num::after {
    content: '✓';
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
}

.custom-step.done .custom-step-text {
    color: var(--text);
}

.custom-step-line {
    flex: 0 0 40px;
    height: 2px;
    background: var(--border);
    margin: 0 4px;
    margin-bottom: 22px;
    transition: background 0.25s;
}

.custom-step-line.done {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
}

/* 隐藏 pear 自带绿色步骤条 */
#stepForm > .lay-step {
    display: none !important;
}

.layui-card-body.form-scroll {
    max-height: calc(88vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.form-section-inner {
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 32px 16px;
}

.form-section-inner .layui-form-item {
    margin-bottom: 18px;
}

.form-section-inner .layui-form-label {
    width: 100%;
    text-align: left;
    padding: 0 0 6px 0;
    float: none;
    display: block;
    font-size: 13px;
}

.form-section-inner .layui-input-block {
    margin-left: 0;
}

.form-section-inner .layui-form-mid.layui-word-aux {
    padding: 0 !important;
    margin: 0 !important;
    line-height: normal;
}

.form-section-inner .field-hint {
    display: block;
    margin-top: 6px;
}

.form-section-inner .layui-input,
.form-section-inner .layui-select,
.form-section-inner .layui-textarea {
    height: 40px;
    line-height: 40px;
}

.form-section-inner .layui-textarea {
    height: auto;
    min-height: 80px;
    line-height: 1.6;
    padding: 10px 12px;
}

.form-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 16px 32px;
    gap: 12px;
}

.form-footer .pear-btn.pre {
    margin-right: 0;
}

.submit-error {
    margin: 0 32px 12px;
    padding: 12px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.7;
}

.submit-error-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}

.submit-error-link:hover {
    color: var(--primary);
}

.pear-btn-success {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    color: #fff !important;
}

.pear-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 30, 140, 0.35);
}

.pear-btn {
    border-radius: 8px;
    font-weight: 600;
    min-width: 110px;
    height: 40px;
    line-height: 40px;
}

.pear-btn.pre {
    background: #fff;
    border: 1px solid var(--border);
    color: #374151;
}

.layui-input, .layui-select, .layui-textarea {
    border-radius: 8px;
    border: 1px solid var(--border);
}

.layui-input:focus, .layui-select:focus, .layui-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.12);
}

.field-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.settled-info-card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    background: var(--card);
}

.settled-info-card .layui-card-body { padding: 16px 18px; }

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

.settled-info-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.settled-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settled-checklist li {
    font-size: 13px;
    color: #374151;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.settled-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.settled-timeline { display: flex; flex-direction: column; gap: 14px; }

.settled-timeline-row { display: flex; gap: 12px; align-items: flex-start; }

.settled-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px var(--primary-light);
}

.settled-timeline-label { font-size: 13px; font-weight: 600; }

.settled-timeline-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.55;
}

.process-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.settled-success-wrap { text-align: center; padding: 60px 20px 40px; }

.settled-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(233, 30, 140, 0.25);
}

.settled-success-icon .layui-icon { color: #fff; font-size: 32px; font-weight: bold; }
.settled-success-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.settled-success-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

.lay-step {
    display: none !important;
}

#stepForm.layui-carousel {
    height: 680px !important;
}

#stepForm .layui-carousel-arrow { display: none !important; }

#stepForm [carousel-item] > div {
    height: 100% !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.layui-card-body.form-scroll::-webkit-scrollbar { width: 6px; }
.layui-card-body.form-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.settled-success-actions { margin-top: 8px; }

.settled-success-btn {
    min-width: 220px;
    height: 44px;
    line-height: 44px;
    border-radius: 8px;
}

@media (max-width: 960px) {
    .content-layout { grid-template-columns: 1fr; }
    .info-section { position: static; }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .header-banner { padding: 24px 20px; }
    .header-banner h1 { font-size: 24px; }
    .advantages-grid { grid-template-columns: 1fr; }
    .custom-steps { padding: 16px 12px 12px; }
    .custom-step-text { font-size: 11px; white-space: normal; }
    .custom-step-line { flex: 0 0 16px; margin-bottom: 28px; }
    .form-section-inner { padding: 20px 16px 12px; }
    .form-footer { padding: 14px 16px; justify-content: center; }
    .submit-error { margin: 0 16px 10px; }
}
