* { 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: 1180px;
    margin: 0 auto;
    padding: 24px 24px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 360px;
    gap: 24px;
    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: 1px solid #e7ebf1;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(25, 42, 70, .06);
    overflow: hidden;
}

.section-head {
    padding: 16px 22px;
    border-bottom: 1px solid #e8eef5;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #243244;
    background: transparent;
}

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

.section-head .badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #1869b7;
    background: #e8f4ff;
    padding: 3px 9px;
    border-radius: 20px;
}

form {
    padding: 22px;
}

/* ── 动态浮动提示（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: 38px;
    padding: 0 12px;
    border: 1px solid #d7dfe8;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none;
    appearance: none;
}

.inp::placeholder {
    color: #b0b8c4;
}

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

.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;
}

.tagsinput {
    width: 100% !important;
    min-height: 42px;
    height: auto !important;
    padding: 6px 9px 0 9px !important;
    border: 1px solid #d7dfe8 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.tagsinput.focus,
.tagsinput:focus-within {
    border-color: #1890ff !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(24,144,255,.12) !important;
}

.tagsinput > div[id$="_addTag"] {
    display: inline-flex;
    align-items: center;
    flex: 1 1 180px;
    min-width: 180px;
    margin-bottom: 6px;
    background: transparent !important;
    overflow: hidden;
}

.tagsinput.has-tags > div[id$="_addTag"] {
    min-width: 140px;
    flex-basis: 140px;
}

.tagsinput span.tag {
    display: inline-flex !important;
    align-items: center;
    height: 28px;
    border-radius: 6px !important;
    padding: 0 8px !important;
    margin-right: 0 !important;
    margin-bottom: 6px !important;
    background: #1890ff !important;
    color: #fff !important;
    font-size: 12px !important;
    line-height: 28px;
    max-width: 100%;
}

.tagsinput span.tag span {
    display: inline-block;
    line-height: 28px;
}

.tagsinput span.tag a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    color: rgba(255,255,255,.78) !important;
    line-height: 1;
}

.tagsinput input {
    height: 28px !important;
    min-width: 220px;
    width: 220px !important;
    margin-bottom: 0 !important;
    font-size: 16px !important;
    color: #333 !important;
    line-height: 28px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: none;
    -webkit-appearance: none;
}

.tagsinput input::placeholder {
    color: #b0b8c4;
}

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

.proto-sel {
    width: 82px;
    height: 38px;
    padding: 0 8px;
    border: 1px solid #d7dfe8;
    border-radius: 8px;
    font-size: 13px;
    color: #546273;
    background: #f5f8fb;
    cursor: pointer;
    outline: none;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

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

.fetch-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    background: #f5f7fa;
    color: #52606d;
    font-size: 13px;
    font-weight: 600;
    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: #c8d0db;
    color: #364152;
    background: #eef2f6;
}

.fetch-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
}

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

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

.step-list li {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 11px 10px 10px;
    position: relative;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
    box-shadow: 0 1px 4px rgba(28, 44, 64, .03);
}

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

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

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

.step-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
    color: #6888ba;
    font-size: 12px;
    font-weight: 700;
}

.step-list li:nth-child(2) .step-dot {
    color: #c7a34a;
}

.step-list li:nth-child(3) .step-dot {
    color: #6d9a88;
}

.step-dot svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.step-info strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #2f3742;
    line-height: 1.25;
}

.step-info span {
    display: none;
}

/* ── 提交按钮区 ── */
.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; }
.apply-side-top { grid-column: 2; grid-row: 2; }
.apply-side-bottom { display: none; }
.side-card-process-desktop { display: block; }

.side-card {
    background: #fff;
    border: 1px solid #e7ebf1;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(25, 42, 70, .05);
    overflow: hidden;
}

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

.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-top,
    .apply-main,
    .apply-side-bottom {
        grid-column: 1;
    }

    .side-card-process-desktop { display: none; }
    .apply-side-bottom { display: flex; grid-row: 3; }
    .apply-side-top { grid-row: 1; }
    .apply-main { grid-row: 2; order: 0; }

    .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) {
}
