:root {
    --bg-dark: #0e223d;
    --bg-accent: #173a63;
    --panel: rgba(9, 23, 41, 0.78);
    --panel-soft: rgba(255, 255, 255, 0.08);
    --white: #ffffff;
    --text: #102033;
    --muted: #6b7a8c;
    --line: #d7dfeb;
    --line-soft: rgba(255, 255, 255, 0.14);
    --primary: #c58b2a;
    --primary-deep: #9d6613;
    --primary-soft: #fff5e2;
    --success-bg: #ebfaf2;
    --success-text: #13754c;
    --error-bg: #fff1f1;
    --error-text: #b42318;
    --warning-bg: #fff7e8;
    --warning-text: #a15a00;
    --shadow: 0 28px 80px rgba(7, 16, 29, 0.28);
}

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

body {
    min-height: 100vh;
    font: 14px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(214, 167, 72, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(63, 117, 197, 0.22), transparent 28%),
        linear-gradient(135deg, #071426 0%, #15345a 48%, #234d76 100%);
}

.install-shell {
    position: relative;
    overflow: hidden;
}

.install-noise {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.35;
}

.install-layout {
    position: relative;
    z-index: 1;
    width: min(1220px, calc(100% - 40px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.install-aside {
    padding: 34px 28px;
    border-radius: 28px;
    background: var(--panel);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    color: var(--white);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe3ad;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.install-aside h1 {
    margin-top: 18px;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
}

.brand-card {
    margin-top: 28px;
    padding: 20px 22px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
}

.brand-card-label {
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-card-title {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 700;
}

.brand-card-text {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.feature-list {
    margin-top: 28px;
    display: grid;
    gap: 18px;
}

.feature-item {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.feature-dot {
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6c86b 0%, #c58b2a 100%);
    box-shadow: 0 0 0 6px rgba(197, 139, 42, 0.12);
}

.feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.feature-item p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.install-main {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.install-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.main-kicker {
    color: var(--primary-deep);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.install-main-header h2 {
    margin-top: 6px;
    font-size: 30px;
    color: #122640;
}

.reinstall-link {
    color: var(--primary-deep);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.install-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 24px;
}

.step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f5f7fb;
    border: 1px solid #edf1f6;
}

.step.done {
    background: #eef8f1;
    border-color: #d4ebda;
}

.step.active {
    background: linear-gradient(135deg, #fff2d7 0%, #ffe4ad 100%);
    border-color: #f0c573;
    box-shadow: inset 0 0 0 1px rgba(197, 139, 42, 0.25);
}

.step-num {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dce6f4;
    color: #244262;
    font-weight: 700;
}

.step.active .step-num {
    background: linear-gradient(135deg, #c58b2a 0%, #9d6613 100%);
    color: var(--white);
}

.step.done .step-num {
    background: #2f9a62;
    color: var(--white);
}

.step-name {
    font-size: 14px;
    font-weight: 600;
    color: #314762;
}

.install-body {
    border-radius: 24px;
    background: #fff;
}

.step-content {
    padding: 8px 2px 6px;
}

.content-head h3 {
    font-size: 24px;
    color: #122640;
}

.content-head p {
    margin-top: 8px;
    color: var(--muted);
}

.panel {
    margin-top: 22px;
    padding: 22px;
    border: 1px solid #edf1f6;
    border-radius: 20px;
    background: #fbfcfe;
}

.panel-title {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #18304f;
}

.check-table {
    width: 100%;
    border-collapse: collapse;
}

.check-table th,
.check-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #ebeff5;
    text-align: left;
}

.check-table th {
    color: #4f6278;
    font-size: 13px;
    font-weight: 700;
    background: #f3f6fa;
}

.check-table tr:last-child td {
    border-bottom: none;
}

.ok {
    color: #14804d;
    font-weight: 700;
}

.error {
    color: #c43232;
    font-weight: 700;
}

.warn {
    color: #ae6500;
    font-weight: 700;
}

.form {
    margin-top: 22px;
    max-width: 760px;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #21354f;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    background: #fff;
    color: #102033;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c58b2a;
    box-shadow: 0 0 0 4px rgba(197, 139, 42, 0.12);
}

.hint {
    display: inline-block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.tip-box,
.alert {
    margin-top: 20px;
    padding: 16px 18px;
    border-radius: 16px;
}

.tip-box {
    background: #f4f8ff;
    border: 1px solid #dfe9fb;
}

.tip-box strong,
.alert strong {
    display: block;
    margin-bottom: 6px;
}

.tip-box p {
    color: #4b6077;
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #cdebd9;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #f1c6c6;
}

.alert-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid #f0d29a;
}

.btn-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 13px 24px;
    border: none;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, #c58b2a 0%, #9d6613 100%);
    box-shadow: 0 14px 26px rgba(157, 102, 19, 0.2);
}

.btn-default {
    color: #2c425d;
    background: #edf2f8;
}

.error-msg {
    margin-top: 16px;
    color: #b42318;
    font-size: 13px;
}

.success-wrap {
    text-align: center;
    padding: 12px 0 10px;
}

.success-mark {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2d9960 0%, #0f7d7b 100%);
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
    box-shadow: 0 18px 40px rgba(15, 125, 123, 0.22);
}

.success-wrap h3 {
    font-size: 28px;
    color: #122640;
}

.success-wrap p {
    max-width: 640px;
    margin: 10px auto 0;
    color: var(--muted);
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.summary-card {
    padding: 18px 20px;
    border-radius: 18px;
    background: #fbfcfe;
    border: 1px solid #edf1f6;
}

.summary-label {
    color: var(--muted);
    font-size: 12px;
}

.summary-value {
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #132946;
    word-break: break-word;
}

.summary-list {
    padding-left: 18px;
    color: #40546c;
}

.summary-list li + li {
    margin-top: 8px;
}

@media (max-width: 980px) {
    .install-layout {
        grid-template-columns: 1fr;
    }

    .install-aside,
    .install-main {
        padding: 24px 20px;
        border-radius: 22px;
    }
}

@media (max-width: 720px) {
    .install-layout {
        width: min(100% - 24px, 1220px);
        margin: 16px auto;
    }

    .install-main-header,
    .grid-two,
    .summary-grid,
    .install-progress {
        grid-template-columns: 1fr;
    }

    .install-main-header {
        display: block;
    }

    .reinstall-link {
        display: inline-block;
        margin-top: 10px;
    }

    .step {
        padding: 12px 14px;
    }

    .content-head h3,
    .success-wrap h3 {
        font-size: 22px;
    }

    .btn-box {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
