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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f7;
    color: #222;
    line-height: 1.6;
    padding-top: 90px;
    min-height: 100vh;
}

/* ── 全局：apply 页面内 svg 对齐修正 ── */
.apply-wrap svg {
    display: block;
    flex-shrink: 0;
}

/* ── 主区域 ── */
.apply-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

/* ── 页面标题行 ── */
.page-title-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
}

.page-title-row h1 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.page-title-row p {
    font-size: 13px;
    color: #999;
    margin-left: 4px;
}

/* ── 左侧表单 ── */
.apply-main {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    overflow: hidden;
}

.section-head {
    padding: 15px 20px;
    border-bottom: 1px solid #f2f2f2;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.section-head svg { fill: #1890ff; flex-shrink: 0; }

.section-head .badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 500;
    color: #1890ff;
    background: #e6f4ff;
    padding: 2px 8px;
    border-radius: 20px;
}

form {
    padding: 18px 20px 20px;
}

/* ── 动态浮动提示（JS showAlert 用） ── */
.alert {
    padding: 10px 38px 10px 13px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
}

.alert-info    { background: #e6f4ff; color: #0958d9; }
.alert-success { background: #f6ffed; color: #389e0d; }
.alert-warning { background: #fffbe6; color: #d46b08; }
.alert-danger  { background: #fff2f0; color: #cf1322; }

/* ── 提示条 ── */
.tip-bar {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 16px;
}

.tip-bar { align-items: center; }
.tip-bar svg { flex-shrink: 0; }

.tip-info { background: #e6f4ff; color: #0958d9; }
.tip-info svg { fill: #1890ff; }

.tip-warn { background: #fffbe6; color: #d46b08; }
.tip-warn svg { fill: #faad14; }

.tip-success { background: #f6ffed; color: #389e0d; }
.tip-success svg { fill: #52c41a; }

.tip-danger { background: #fff2f0; color: #cf1322; }
.tip-danger svg { fill: #ff4d4f; }

/* ── 表单字段 ── */
.field { margin-bottom: 14px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
}

.req { color: #ff4d4f; }

.inp {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    color: #222;
    background: #fafafa;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
}

.inp:focus {
    border-color: #1890ff;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(24,144,255,.1);
}

.inp-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%23bbb' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.inp-area {
    height: auto;
    min-height: 80px;
    padding: 8px 10px;
    resize: vertical;
    line-height: 1.6;
}

/* ── URL 行 ── */
.url-row { display: flex; gap: 6px; }

.proto-sel {
    width: 82px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    background: #f0f0f0;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.url-inp { flex: 1; min-width: 0; }

.fetch-btn {
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fafafa;
    color: #555;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: border-color .15s, color .15s, background .15s;
}

.fetch-btn svg { fill: currentColor; }

.fetch-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
    background: #e6f4ff;
}

/* ── 验证码 ── */
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-row .inp { flex: 1; }

.captcha-img {
    height: 36px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #d9d9d9;
    flex-shrink: 0;
    display: block;
}

/* ── 步骤（箭头式） ── */
.step-list {
    list-style: none;
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 7px;
}

.step-list li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 6px 10px 14px;
    background: #f0f7ff;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%, 10px 50%);
}

.step-list li:first-child {
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
    padding-left: 10px;
}

.step-list li:last-child {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 10px 50%);
}

.step-list li:nth-child(2) {
    background: #e0efff;
}

.step-list li:nth-child(3) {
    background: #cce4ff;
}

.step-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1890ff;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.step-info strong {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #1890ff;
    line-height: 1.3;
}

.step-info span {
    font-size: 11px;
    color: #6aabdf;
    line-height: 1.3;
}

/* ── 提交按钮区 ── */
.submit-row {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #f2f2f2;
    margin-top: 6px;
}

.btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}

.btn svg { fill: currentColor; flex-shrink: 0; }
.btn:hover { opacity: .87; }
.btn:active { transform: scale(.98); }

.btn-primary { background: #1890ff; color: #fff; }
.btn-pay     { background: #52c41a; color: #fff; }

/* ── 右侧面板 ── */
.apply-side { display: flex; flex-direction: column; gap: 16px; }

.side-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
    overflow: hidden;
}

.side-card-head {
    padding: 13px 16px;
    border-bottom: 1px solid #f2f2f2;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 7px;
}

.side-card-head svg { fill: #1890ff; flex-shrink: 0; }

.side-card-body {
    padding: 14px 16px;
}

.notice-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.notice-list li {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

.notice-list li::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1890ff;
    margin-top: 8px;
    flex-shrink: 0;
}


/* ── 手机端 ── */
@media (max-width: 768px) {
    body { padding-top: 78px; padding-bottom: 68px; }

    .apply-wrap {
        grid-template-columns: 1fr;
        padding: 14px 12px 36px;
        gap: 12px;
    }

    .page-title-row { display: none; }

    .apply-side { order: -1; }

    .field-row { grid-template-columns: 1fr; gap: 0; }

    .url-row { flex-wrap: wrap; }
    .fetch-btn { width: 100%; justify-content: center; }

    .submit-row { gap: 8px; }
    .btn { font-size: 13px; height: 42px; }

    /* iOS 不缩放修复 */
    .inp, .proto-sel, input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 480px) {
}
