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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #eef2f7 0%, #f5f7fc 50%, #eef2f7 100%);
    min-height: 100vh;
    position: relative;
}

/* ===== Header ===== */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 18px 40px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header .logo span {
    font-size: 24px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa, #f472b6, #fbbf24);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== Main Container ===== */
.mounted {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 85px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.mounted-box {
    width: 980px;
    max-width: 96%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 44px 36px;
    box-shadow: 
        0 10px 60px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: mountIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    transition: box-shadow 0.4s ease;
}

.mounted-box:hover {
    box-shadow: 
        0 20px 80px rgba(0,0,0,0.12),
        0 1px 3px rgba(0,0,0,0.04),
        inset 0 1px 0 rgba(255,255,255,0.8);
}

@keyframes mountIn {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.96); 
        filter: blur(4px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
        filter: blur(0);
    }
}

/* ===== Step Title ===== */
.mounted-title {
    font-size: 24px;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 4px;
    position: relative;
}

.mounted-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 4px;
    margin: 8px auto 0;
    animation: titleLine 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes titleLine {
    from { width: 0; opacity: 0; }
    to { width: 40px; opacity: 1; }
}

/* ===== Step Navigation ===== */
.mounted-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 28px 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: step;
    gap: 0;
    background: #f1f5f9;
    border-radius: 60px;
    padding: 4px;
    width: 100%;
    max-width: 600px;
}

.mounted-nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 20px;
    font-size: 14px;
    color: #94a3b8;
    background: transparent;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    counter-increment: step;
    cursor: default;
    border-radius: 60px;
    flex: 1;
    gap: 8px;
}

.mounted-nav li::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mounted-nav li.active {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    box-shadow: 0 8px 30px rgba(59,130,246,0.35);
    transform: scale(1.02);
}

.mounted-nav li.active::before {
    background: rgba(255,255,255,0.3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== Content Area ===== */
.mounted-container {
    width: 100%;
    margin-top: 16px;
}

.mounted-content-item {
    display: none;
}

.mounted-content-item.show {
    display: block;
    animation: contentFadeIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes contentFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(24px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

/* ===== Content Header ===== */
.content-header {
    background: linear-gradient(90deg, #f8faff, #f0f4ff);
    padding: 16px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    border-left: 4px solid #3b82f6;
    border-radius: 16px 16px 0 0;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.content-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
}

/* ===== License Agreement ===== */
.content {
    padding: 32px;
    height: 420px;
    border: 1px solid #eef2f6;
    border-top: none;
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    line-height: 1.9;
    color: #475569;
    background: #fff;
    transition: border-color 0.3s ease;
}

.content h2 {
    font-size: 18px;
    color: #0f172a;
    margin-bottom: 16px;
    font-weight: 700;
}

.content h3 {
    font-size: 15px;
    color: #1e293b;
    margin-top: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.content p {
    font-size: 14px;
    color: #475569;
    line-height: 2;
    transition: color 0.3s ease;
}

.mt6 { margin-top: 6px; }
.mt16 { margin-top: 16px; }

/* ===== Utility Classes ===== */
.agreement-hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 12px 0;
}

.agreement-copy {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

.form-sub-hint {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 4px;
}

.form-hint-highlight {
    color: #3b82f6;
    font-weight: 600;
}

.checkbox-label {
    color: #64748b;
    font-size: 14px;
    margin-left: 8px;
    cursor: pointer;
    transition: color 0.25s ease;
    user-select: none;
}

input[type="checkbox"]:hover + .checkbox-label,
input[type="checkbox"]:checked + .checkbox-label {
    color: #1e293b;
}

.db-success-msg {
    margin-bottom: 12px;
    color: #22c55e;
    font-weight: 600;
    font-size: 14px;
    animation: itemSlideIn 0.4s ease;
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
}

.tips-code {
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.flex-center {
    display: flex;
    align-items: center;
}

/* ===== Environment Check ===== */
.mounted-env-container {
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.mounted-tips {
    padding: 16px 24px;
    color: #3b82f6;
    background: #eff6ff;
    border-radius: 16px;
    font-size: 13px;
    border: 1px solid #dbeafe;
    line-height: 1.8;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: top;
}

.mounted-tips:hover {
    box-shadow: 0 8px 30px rgba(59,130,246,0.12);
    transform: translateY(-2px) scale(1.01);
}

.mounted-item {
    margin-bottom: 24px;
}

.mounted-item:last-child {
    margin-bottom: 0;
}

/* ===== Tables ===== */
.content-table {
    border: 1px solid #eef2f6;
    border-top: none;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

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

table th {
    background: #f8fafc;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-align: left;
    border-bottom: 2px solid #eef2f6;
    letter-spacing: 0.3px;
}

table td {
    padding: 14px 20px;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}

table tr {
    transition: background 0.25s ease;
}

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

table tbody tr {
    cursor: default;
}

table tbody tr:hover td {
    background: #f8faff;
}

table tbody tr:hover {
    transform: scale(1.002);
}

/* ===== Forms ===== */
.content-form {
    padding: 36px 60px 32px;
    border: 1px solid #eef2f6;
    border-top: none;
    border-radius: 0 0 16px 16px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-box-item {
    display: flex;
    align-items: center;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.form-box-item:first-child {
    margin-top: 0;
}

.form-desc {
    width: 100px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
    text-align: right;
    margin-right: 16px;
    flex-shrink: 0;
}

.form-box-item div input[type="text"],
.form-box-item div input[type="password"] {
    width: 360px;
    height: 46px;
    padding: 0 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
}

.form-box-item div input:hover {
    border-color: #93c5fd;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.06);
}

.form-box-item div input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.12), 0 4px 20px rgba(59,130,246,0.08);
    transform: translateY(-1px);
}

.form-box-item div input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.form-box-check {
    display: flex;
    align-items: center;
    margin-top: 22px;
}

.form-box-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.form-box-check input[type="checkbox"]:hover {
    transform: scale(1.1);
}

/* ===== Buttons ===== */
.item-btn-group {
    display: none;
    margin-top: 36px;
    gap: 16px;
}

.item-btn-group.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: btnGroupIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

@keyframes btnGroupIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cancel-btn {
    padding: 14px 48px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.cancel-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #f8faff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.12);
}

.cancel-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59,130,246,0.08);
}

.accept-btn {
    padding: 14px 52px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
    position: relative;
    overflow: hidden;
}

.accept-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.accept-btn:hover::before {
    left: 100%;
}

.accept-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.4);
}

.accept-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59,130,246,0.25);
}

.disabled-btn {
    padding: 14px 48px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 14px;
    color: #94a3b8;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

/* ===== Installing ===== */
.mounting-container {
    padding: 24px;
    height: 450px;
    max-height: 450px;
    border: 1px solid #eef2f6;
    border-top: none;
    overflow-y: auto;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(180deg, #fafbff 0%, #f8fafc 100%);
    transition: border-color 0.3s ease;
}

.item-cell {
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
    animation: itemSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transition: background 0.2s ease;
}

.item-cell:hover {
    background: #f8faff;
}

@keyframes itemSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.item-cell:last-child {
    border-bottom: none;
}

.green { 
    color: #22c55e; 
    font-weight: 600;
}

.wrong { 
    color: #ef4444; 
    font-weight: 600;
}

.layui-icon { font-size: 16px !important; }

/* ===== Success Page ===== */
.success-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px 50px;
    border: 1px solid #eef2f6;
    border-top: none;
    border-radius: 0 0 16px 16px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.success-content img {
    width: 80px;
    height: 80px;
    animation: successBounce 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    filter: drop-shadow(0 4px 12px rgba(34,197,94,0.2));
}

@keyframes successBounce {
    0% { 
        transform: scale(0) rotate(-15deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.2) rotate(3deg); 
    }
    70% { 
        transform: scale(0.95) rotate(-1deg); 
    }
    100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 1; 
    }
}

.success-content .result {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 24px;
    animation: fadeUp 0.6s ease 0.25s both;
}

.success-content .sub-text {
    font-size: 14px;
    color: #94a3b8;
    margin-top: 8px;
    animation: fadeUp 0.6s ease 0.35s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-content .tips {
    width: 480px;
    max-width: 90%;
    padding: 18px 24px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    font-size: 13px;
    color: #166534;
    margin-top: 24px;
    line-height: 1.8;
    animation: fadeUp 0.6s ease 0.45s both;
    transition: all 0.3s ease;
}

.success-content .tips:hover {
    box-shadow: 0 4px 20px rgba(34,197,94,0.12);
    transform: translateY(-1px);
}

.success-content .tips code {
    background: #d1fae5;
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

.success-content .update-tips {
    width: 480px;
    max-width: 90%;
    padding: 18px 24px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    font-size: 13px;
    color: #1e40af;
    margin-top: 14px;
    line-height: 1.8;
    text-align: left;
    animation: fadeUp 0.6s ease 0.55s both;
    transition: all 0.3s ease;
}

.success-content .update-tips:hover {
    box-shadow: 0 4px 20px rgba(59,130,246,0.1);
    transform: translateY(-1px);
}

.success-content .update-tips code {
    background: #dbeafe;
    padding: 2px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
}

.success-content .btn-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    animation: fadeUp 0.6s ease 0.65s both;
}

.success-content .btn-group .btn {
    padding: 16px 44px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 25px rgba(59,130,246,0.25);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.success-content .btn-group .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.success-content .btn-group .btn:hover::before {
    left: 100%;
}

.success-content .btn-group .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(59,130,246,0.35);
}

.success-content .btn-group .btn:active {
    transform: translateY(-1px);
}

.success-content .btn-group .btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 8px 25px rgba(99,102,241,0.25);
}

.success-content .btn-group .btn-purple:hover {
    box-shadow: 0 12px 40px rgba(99,102,241,0.35);
}

/* ===== Footer ===== */
footer {
    font-size: 13px;
    padding: 24px 0;
    color: #94a3b8;
    text-align: center;
    background: transparent;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

footer:hover {
    color: #64748b;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    width: 8px;
}

/* ===== Loading Spin ===== */
.layui-icon-loading {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header { padding: 14px 20px; }
    .header .logo span { font-size: 20px; }
    .mounted-box { padding: 28px 20px 30px; border-radius: 20px; }
    .mounted-title { font-size: 20px; }
    .mounted-nav { 
        flex-wrap: wrap; 
        gap: 8px; 
        background: transparent;
        padding: 0;
        border-radius: 0;
        max-width: 100%;
    }
    .mounted-nav li { 
        padding: 12px 16px; 
        font-size: 13px; 
        border-radius: 60px !important; 
        background: #f1f5f9;
        flex: none;
        width: calc(50% - 4px);
    }
    .content-form { padding: 24px 20px; }
    .form-box-item { flex-direction: column; align-items: flex-start; gap: 6px; }
    .form-box-item:hover { transform: translateX(4px); }
    .form-desc { width: auto; text-align: left; }
    .form-box-item div input[type="text"],
    .form-box-item div input[type="password"] { width: 100%; }
    .content { height: 300px; padding: 20px; }
    .mounted-env-container { max-height: 360px; }
    .success-content { padding: 40px 20px 36px; }
    .success-content .btn-group { flex-direction: column; width: 100%; }
    .success-content .btn-group .btn { width: 100%; text-align: center; }
    table th, table td { padding: 10px 12px; font-size: 12px; }
}
