@charset "utf-8";

/* 现代化安装页面样式 */
:root {
    --primary-color: #409eff;
    --success-color: #67c23a;
    --warning-color: #e6a23c;
    --danger-color: #f56c6c;
    --info-color: #909399;
    --bg-color: #f5f7fa;
    --text-color: #303133;
    --border-color: #dcdfe6;
    --shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
    --radius: 4px;
}

* {
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    font-family: "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.5;
}

/* 重置样式 */
em, p, ul, dl, dt, dd, ins, h1, h2, h3, h4, form, h1, h2, h3, h4, ins {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ins { text-decoration: none; }
em { font-style: normal; }
ul, ol { list-style: none; }
input, select { vertical-align: middle; }
input, button, select, textarea { outline: none; }
textarea { resize: none; }
img { border: 0; max-width: 100%; }
a { text-decoration: none; color: var(--primary-color); }
table, tr, th, td { margin: 0; padding: 0; border-collapse: collapse; }

/* 通用样式类 */
.w-full { width: 100%; }
.w { width: 1000px; margin: 0 auto; }
.clearfix:after { content: '\20'; display: block; overflow: hidden; height: 0; clear: both; }
.clear { clear: both; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.inline-block { display: inline-block; }
.block { display: block; }
.pointer { cursor: pointer; }
.center { text-align: center; }

/* 间距工具类 */
.mt5 { margin-top: 5px; }
.mr5 { margin-right: 5px; }
.mb5 { margin-bottom: 5px; }
.ml5 { margin-left: 5px; }
.mt10 { margin-top: 10px; }
.mr10 { margin-right: 10px; }
.mb10 { margin-bottom: 10px; }
.ml10 { margin-left: 10px; }
.mt20 { margin-top: 20px; }
.mr20 { margin-right: 20px; }
.mb20 { margin-bottom: 20px; }
.ml20 { margin-left: 20px; }
.pt5 { padding-top: 5px; }
.pr5 { padding-right: 5px; }
.pb5 { padding-bottom: 5px; }
.pl5 { padding-left: 5px; }
.pt10 { padding-top: 10px; }
.pr10 { padding-right: 10px; }
.pb10 { padding-bottom: 10px; }
.pl10 { padding-left: 10px; }
.pt20 { padding-top: 20px; }
.pr20 { padding-right: 20px; }
.pb20 { padding-bottom: 20px; }
.pl20 { padding-left: 20px; }
.padding10 { padding: 10px; }
.padding20 { padding: 20px; }

/* 颜色工具类 */
.bgf { background-color: #fff; }
.f-primary { color: var(--primary-color); }
.f-success { color: var(--success-color); }
.f-warning { color: var(--warning-color); }
.f-danger { color: var(--danger-color); }
.f-info { color: var(--info-color); }
.f-gray { color: #909399; }

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #66b1ff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: #f4f4f5;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    margin-right: 10px;
}

.btn-secondary:hover {
    background: #e9e9eb;
    transform: translateY(-1px);
}

.btn:disabled {
    background: #c0c4cc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 头部样式 */
#header {
    background: #fff;
    height: 100px;
}

#header .top-logo {
    float: left;
}

#header .top-link {
    float: right;
    margin-top: 45px;
}

#header .top-link ul li {
    float: left;
    padding-left: 15px;
    padding-right: 15px;
    border-left: 1px solid #E8F5E3;
    margin-left: -1px;
    line-height: 14px;
}

#header .top-link ul li a {
    text-decoration: none;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

/* 主要内容区域 */
#main {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
}

#main .title {
    text-align: center;
    font-size: 32px;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 40px;
    position: relative;
}

#main .title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* 面板样式 */
.panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.panel-header {
    background: linear-gradient(135deg, var(--primary-color), #66b1ff);
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
}

.panel-body {
    padding: 30px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.table th {
    background: #f5f7fa;
    padding: 16px;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.table tr:hover {
    background: #f5f7fa;
}

/* 状态图标 */
.status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 12px;
    font-weight: bold;
}

.status-success {
    background: var(--success-color);
    color: #fff;
}

.status-warning {
    background: var(--warning-color);
    color: #fff;
}

.status-danger {
    background: var(--danger-color);
    color: #fff;
}

/* 表单样式 */
.form-group {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
}

.form-label {
    width: 120px;
    font-weight: 400;
    color: var(--text-color);
    text-align: right;
    padding-right: 20px;
    flex-shrink: 0;
}

.form-control {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color 0.3s;
    max-width: 300px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
}

.form-hint {
    font-size: 12px;
    color: var(--info-color);
    margin-left: 10px;
    flex: 1;
}

/* 按钮组 */
.btn-group {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #f1f1f1;
}

.btn-group .btn {
    margin: 0 10px;
}

/* 消息提示 */
.messages {
    background: #f0f9ff;
    border: 1px solid #b3d8ff;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    color: red;
}

.messages.error {
    background: #fef0f0;
    border-color: #fbc4c4;
    color: #f56c6c;
}

.messages.success {
    background: #f0f9eb;
    border-color: #e1f3d8;
    color: #67c23a;
}

/* 进度条 */
.progress {
    height: 20px;
    background: #ebeef5;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    transition: width 0.5s ease, background 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    min-width: 20px;
}

/* 进度条不同状态的颜色 */
.progress-bar.progress-danger {
    background: #f56c6c !important;
}

.progress-bar.progress-warning {
    background: #e6a23c !important;
}

.progress-bar.progress-success {
    background: #67c23a !important;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 进度条完成动画 */
.progress-complete {
    animation: pulse 1s infinite;
}

.progress-pulse {
    animation: progressPulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(103, 194, 58, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(103, 194, 58, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(103, 194, 58, 0);
    }
}

@keyframes progressPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(64, 158, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(64, 158, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(64, 158, 255, 0);
    }
}

/* 进度消息动画 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-message {
    animation: fadeInUp 0.5s ease;
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.progress-message.success {
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
}

.progress-message.warning {
    background: #fef0f0;
    border: 1px solid #fbc4c4;
    color: #f56c6c;
}

/* 安装日志样式 */
.install-log {
    height: 300px;
    overflow-y: auto;
    border: 1px solid #f1f1f1;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    background: #fafafa;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条样式 */
.install-log::-webkit-scrollbar {
    width: 8px;
}

.install-log::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.install-log::-webkit-scrollbar-thumb {
    background: #c0c4cc;
    border-radius: 4px;
}

.install-log::-webkit-scrollbar-thumb:hover {
    background: #909399;
}

/* 安装日志消息样式 */
.install-log .log-success {
    color: #67c23a;
    font-weight: bold;
}

.install-log .log-warning {
    color: #e6a23c;
    font-weight: bold;
}

.install-log .log-error {
    color: #f56c6c;
    font-weight: bold;
}

.install-log .log-info {
    color: #409eff;
}

.install-log .log-time {
    color: #909399;
    font-size: 11px;
}

.install-log::-webkit-scrollbar {
    width: 6px;
}

.install-log::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.install-log::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.install-log::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 安装结果样式 */
.install-result {
    margin-top: 15px;
    padding: 15px;
    border-radius: 4px;
    display: none;
}

.install-result .success {
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
    color: #67c23a;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

.install-result .warning {
    background: #fef0f0;
    border: 1px solid #fbc4c4;
    color: #f56c6c;
    padding: 15px;
    border-radius: 4px;
    font-weight: 500;
}

/* 页脚 */
#footer {
    background: #2c3e50;
    color: #bdc3c7;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

#footer .copyright {
    font-size: 14px;
}

#footer .copyright a {
    color: #ecf0f1;
    transition: color 0.3s;
}

#footer .copyright a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .w { width: 95%; }
    
    #main .title {
        font-size: 26px;
    }
    
    .panel-body {
        padding: 20px;
    }
    
    .table th,
    .table td {
        padding: 12px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    #header {
        height: 60px;
    }
    
    #header .top-link {
        margin-top: 15px;
    }
    
    #header .top-link ul li {
        padding: 0 10px;
        font-size: 14px;
    }
    
    #main {
        padding: 20px 0;
    }
    
    #main .title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* 特殊样式覆盖 */
.check-box, .check-box2 {
    composes: panel;
}

.pr-title {
    composes: panel-header;
}

.btn-normal {
    composes: btn btn-primary;
}

.btn-box {
    composes: btn-group;
    text-align: center;
}