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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: white;
    min-height: 100vh;
}

/* 顶部导航栏 */
.header {
    background-color: white;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    flex: 1;
}

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

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

.logo-image {
    height: 35px;
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #1e88e5;
    white-space: nowrap;
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-avatar {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover .avatar-circle {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.3);
}

.dropdown-menu {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

.dropdown-item {
    padding: 10px 16px;
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #1e88e5;
}

.dropdown-item.text-danger:hover {
    background-color: #ffebee;
    color: #d32f2f;
}

/* 主体内容 */
.main-content {
    padding: 40px 20px;
    flex: 1;
}

/* 欢迎语 */
.welcome-section {
    margin-bottom: 50px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* 通用section样式 */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* 快速入口 */
.quick-access-section {
    margin-bottom: 50px;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px;
    max-width: 600px;
}

.quick-access-card {
    text-align: center;
}

/* 工具平台 */
.tools-section {
    margin-bottom: 50px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px;
    max-width: 900px;
}

.tool-card {
    text-align: center;
}

/* 系统设置 */
.settings-section {
    margin-bottom: 50px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px;
    max-width: 600px;
}

.setting-card {
    text-align: center;
}

/* 卡片链接 */
.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.card-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #1e88e5;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.card-link:hover .card-icon {
    border-color: #1e88e5;
    background-color: #f0f7ff;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.2);
}

.card-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 0;
    transition: all 0.3s ease;
}

.card-link:hover .card-label {
    color: #1e88e5;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 18px;
    }

    .quick-access-grid,
    .tools-grid,
    .settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 20px;
    }

    .card-icon {
        width: 90px;
        height: 90px;
        font-size: 36px;
    }

    .card-label {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .logo-text {
        display: none;
    }

    .main-content {
        padding: 20px 10px;
    }

    .welcome-section {
        margin-bottom: 30px;
    }

    .welcome-title {
        font-size: 20px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .quick-access-grid,
    .tools-grid,
    .settings-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
        max-width: 100%;
    }

    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 8px;
    }

    .card-label {
        font-size: 12px;
    }

    .section-title {
        margin-bottom: 15px;
        padding-bottom: 10px;
        font-size: 16px;
    }
}
