* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部标题栏 */
.header {
    background: linear-gradient(to bottom, #0054a6, #003d7a);
    color: white;
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* 主容器 */
.container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 左侧菜单栏 */
.sidebar {
    width: 220px;
    background-color: #f5f5f5;
    border-right: 1px solid #d0d0d0;
    overflow-y: auto;
    flex-shrink: 0;
}

.menu {
    padding: 10px 0;
}

.menu-list {
    list-style: none;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background-color: #e8e8e8;
}

.menu-item.active {
    background-color: #d0e8ff;
    border-left-color: #0054a6;
    font-weight: 600;
}

.menu-icon {
    margin-right: 10px;
    font-size: 16px;
}

.menu-text {
    flex: 1;
    font-size: 13px;
    color: #333;
}

.menu-item.active .menu-text {
    color: #0054a6;
}

/* 右侧内容区域 */
.content {
    flex: 1;
    background-color: white;
    padding: 30px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page h2 {
    font-size: 20px;
    color: #0054a6;
    margin-bottom: 20px;
    font-weight: 600;
}

.page p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

/* 下载页面 */
.download-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    transition: all 0.3s;
    gap: 20px;
}

.download-item:hover {
    border-color: #0054a6;
    box-shadow: 0 2px 8px rgba(0, 84, 166, 0.1);
    background-color: #fff;
}

.download-icon {
    font-size: 48px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border-radius: 8px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h3 {
    font-size: 18px;
    color: #0054a6;
    margin-bottom: 8px;
    font-weight: 600;
}

.download-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.download-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #888;
}

.download-meta span {
    display: inline-flex;
    align-items: center;
}


.download-action {
    flex-shrink: 0;
}

.download-btn {
    padding: 10px 24px;
    background-color: #0054a6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 84, 166, 0.3);
}

.download-btn:active {
    transform: translateY(0);
}

/* 插件页面 */
.plugin-list {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plugin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    transition: all 0.3s;
}

.plugin-item:hover {
    border-color: #0054a6;
    box-shadow: 0 2px 8px rgba(0, 84, 166, 0.1);
    background-color: #fff;
}

.plugin-info {
    flex: 1;
    min-width: 0;
}

.plugin-info h3 {
    font-size: 16px;
    color: #0054a6;
    margin-bottom: 8px;
    font-weight: 600;
}

.plugin-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #888;
}

.plugin-meta span {
    display: inline-flex;
    align-items: center;
}


.plugin-action {
    flex-shrink: 0;
    margin-left: 20px;
}

/* 许可协议 */
.license-box {
    margin-top: 20px;
}

.license-text {
    width: 100%;
    height: 300px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.5;
    resize: none;
    background-color: #fafafa;
    margin-bottom: 15px;
}

.license-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.license-checkbox input {
    margin-right: 8px;
    cursor: pointer;
}

/* 信息页面 */
.info-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #0054a6;
    border-radius: 4px;
}

.info-section h3 {
    font-size: 16px;
    color: #0054a6;
    margin-bottom: 10px;
}

.info-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.info-section li {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

/* 路径选择器 */
.path-selector {
    display: flex;
    margin-top: 20px;
    gap: 10px;
}

.path-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fafafa;
}

.browse-btn {
    padding: 8px 20px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.browse-btn:hover {
    background-color: #e0e0e0;
}

/* 组件列表 */
.components-list {
    margin-top: 20px;
}

.component-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.component-item:hover {
    background-color: #f9f9f9;
}

.component-item input {
    margin-right: 12px;
    cursor: pointer;
}

.component-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.component-size {
    font-size: 12px;
    color: #666;
    margin-left: 10px;
}

/* 摘要 */
.summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.summary h3 {
    font-size: 16px;
    color: #0054a6;
    margin-bottom: 10px;
}

.summary ul {
    margin-left: 20px;
}

.summary li {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

/* 进度条 */
.progress-container {
    margin-top: 30px;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #0054a6, #0078d4);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* 完成选项 */
.finish-options {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.finish-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 14px;
}

.finish-option input {
    margin-right: 8px;
    cursor: pointer;
}

/* 底部按钮栏 */
.footer {
    background-color: #f5f5f5;
    border-top: 1px solid #d0d0d0;
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.footer-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    min-width: 80px;
}

.btn-primary {
    background-color: #0054a6;
    color: white;
    border-color: #0054a6;
}

.btn-primary:hover {
    background-color: #0066cc;
    border-color: #0066cc;
}

.btn-secondary {
    background-color: white;
    color: #333;
}

.btn-secondary:hover {
    background-color: #f0f0f0;
}

/* 滚动条样式 */
.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track,
.content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb,
.content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

