/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #475569;
    --sidebar-width: 200px;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 有边框的空白div样式 */
.bordered-empty-div {
    width: 100%;
    height: 560px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 应用容器 */
#app {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: var(--transition);
}

.logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.logo-img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

.nav-menu {
    list-style: none;
    padding: 15px 0;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid rgba(0, 238, 255, 0.432);
    border-radius: 10px;
    transform: scale(1);
    margin: 5px 10px;
}

.nav-item:hover {
    background: var(--bg-hover);
    border-color: #0ef;
    transform: scale(1.1);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 238, 255, 0.349), transparent);
    border-color: #0ef;
    transform: scale(1.1);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--text-secondary);
}

.nav-item.active i,
.nav-item:hover i {
    color: var(--primary-color);
}

.nav-item span {
    font-size: 14px;
    color: var(--text-secondary);
}

.nav-item.active span,
.nav-item:hover span {
    color: var(--text-primary);
}

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger-color);
}

.status-dot.online {
    background: var(--success-color);
    box-shadow: 0 0 8px var(--success-color);
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部栏 */
.header {
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    z-index: 1;
}

.header-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    z-index: 0;
}

.header-center-logo {
    height: 68px;
    width: auto;
    object-fit: contain;
}

.header-right {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* 内容区 */
#content-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* 通用按钮 */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* 卡片样式 */
.card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--primary-color);
}

.card-body {
    padding: 24px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-close:hover {
    color: var(--danger-color);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 50vh;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

/* 交流社区模块 */
.community-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    position: relative;
}

.qrcode-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 15px 0;
}

.qrcode-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    aspect-ratio: 1;
    width: 280px;
    position: relative;
    z-index: 10;
}

.qrcode-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.qrcode-img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qrcode-container p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* 粒子画布样式 */
.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.module-container {
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    flex: 1;
}

/* 关于页面内容占位 */
.about-content {
    flex: 1;
    min-height: 600px;
}

/* 页脚上方空白区域 */
.footer-spacer {
    height: 240px;
    width: 100%;
}

/* 关于页脚样式 */
.about-footer {
    margin-top: auto;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

/* 社交图标 */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.social-item {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.2);
}

.social-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 238, 255, 0.2);
    border-color: var(--primary-color);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.social-item i {
    transition: var(--transition);
}

.social-item:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

/* 二维码弹窗 */
.qrcode-popup {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    display: none;
    z-index: 1000;
}

.qrcode-popup img {
    width: 240px;
    height: 240px;
    border-radius: 36px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

/* 版权信息 */
.copyright-info {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.copyright-info p {
    margin: 5px 0;
}

.beian-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 10px;
    transition: var(--transition);
}

.beian-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 总控制台模块 */
.dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 3600px;
    height: 500px;
    margin-bottom: 0px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item {
    position: absolute;
    width: 760px;
    height: 427.5px;
    transition: all 1s ease-in-out;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.dashboard-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 25px;
    max-width: 100%;
    width: 100%;
    padding: 20px;
    flex-wrap: nowrap;
}

.dashboard-btn {
    position: relative;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.1), rgba(14, 165, 233, 0.05));
    border: 1px solid #0ef;
    border-radius: 20px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(56, 189, 248, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 20px rgba(56, 189, 248, 0.1);
}

.dashboard-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dashboard-btn:hover {
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.2), rgba(14, 165, 233, 0.1));
    border-color: #0ef;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(56, 189, 248, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 30px rgba(56, 189, 248, 0.3),
        0 0 60px rgba(56, 189, 248, 0.1);
}

.dashboard-btn:hover::before {
    opacity: 1;
}

.dashboard-btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 
        0 10px 20px rgba(56, 189, 248, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.8);
}

.dashboard-btn i {
    font-size: 32px;
    background: linear-gradient(135deg, #bae6fd, #38bdf8, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
    transition: all 0.3s ease;
}

.dashboard-btn:hover i {
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.8)) drop-shadow(0 0 30px rgba(56, 189, 248, 0.4));
    transform: scale(1.1);
}

.dashboard-btn:active i {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
    transform: scale(1);
}

/* 宇祁科创 - 火箭图标 */
.dashboard-btn[data-module="yuqi"] i {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f, #f8b500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 107, 107, 0.5));
}

/* 游戏盒子 - 游戏手柄 */
.dashboard-btn[data-module="game"] i {
    background: linear-gradient(135deg, #a855f7, #9333ea, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

/* 应用工坊 - 商店 */
.dashboard-btn[data-module="appstore"] i {
    background: linear-gradient(135deg, #22c55e, #16a34a, #15803d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

/* 工具宝箱 - 工具箱 */
.dashboard-btn[data-module="tools"] i {
    background: linear-gradient(135deg, #f59e0b, #d97706, #b45309);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

/* 开源共享 - 代码分支 */
.dashboard-btn[data-module="opensource"] i {
    background: linear-gradient(135deg, #ec4899, #db2777, #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.5));
}

/* 交流社区 - 评论 */
.dashboard-btn[data-module="community"] i {
    background: linear-gradient(135deg, #06b6d4, #0891b2, #0e7490);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.5));
}

/* 使用教程 - 书本 */
.dashboard-btn[data-module="tutorial"] i {
    background: linear-gradient(135deg, #f97316, #ea580c, #c2410c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.5));
}

/* 更新日志 - 历史 */
.dashboard-btn[data-module="changelog"] i {
    background: linear-gradient(135deg, #c3d6f0, #c3d6f0, #c3d6f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(100, 116, 139, 0.5));
}

/* 导航栏图标颜色 */
/* 总控制台 - 首页 */
.nav-item[data-module="dashboard"] i {
    color: #f59e0b;
}

.nav-item[data-module="dashboard"].active i,
.nav-item[data-module="dashboard"]:hover i {
    color: #f59e0b;
}

/* 宇祁科创 - 火箭 */
.nav-item[data-module="yuqi"] i {
    color: #ff6b6b;
}

.nav-item[data-module="yuqi"].active i,
.nav-item[data-module="yuqi"]:hover i {
    color: #ff6b6b;
}

/* 游戏盒子 - 游戏手柄 */
.nav-item[data-module="game"] i {
    color: #a855f7;
}

.nav-item[data-module="game"].active i,
.nav-item[data-module="game"]:hover i {
    color: #a855f7;
}

/* 应用工坊 - 商店 */
.nav-item[data-module="appstore"] i {
    color: #22c55e;
}

.nav-item[data-module="appstore"].active i,
.nav-item[data-module="appstore"]:hover i {
    color: #22c55e;
}

/* 工具宝箱 - 工具箱 */
.nav-item[data-module="tools"] i {
    color: #f59e0b;
}

.nav-item[data-module="tools"].active i,
.nav-item[data-module="tools"]:hover i {
    color: #f59e0b;
}

/* 开源共享 - 代码分支 */
.nav-item[data-module="opensource"] i {
    color: #ec4899;
}

.nav-item[data-module="opensource"].active i,
.nav-item[data-module="opensource"]:hover i {
    color: #ec4899;
}

/* 交流社区 - 评论 */
.nav-item[data-module="community"] i {
    color: #06b6d4;
}

.nav-item[data-module="community"].active i,
.nav-item[data-module="community"]:hover i {
    color: #06b6d4;
}

/* 使用教程 - 学位帽 */
.nav-item[data-module="tutorial"] i {
    color: #f97316;
}

.nav-item[data-module="tutorial"].active i,
.nav-item[data-module="tutorial"]:hover i {
    color: #f97316;
}

/* 更新日志 - 历史 */
.nav-item[data-module="changelog"] i {
    color: #eff1f3;
}

.nav-item[data-module="changelog"].active i,
.nav-item[data-module="changelog"]:hover i {
    color: #eff1f3;
}

/* 关于我的 - 信息 */
.nav-item[data-module="about"] i {
    color: #3b82f6;
}

.nav-item[data-module="about"].active i,
.nav-item[data-module="about"]:hover i {
    color: #3b82f6;
}

