* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.header .container {
    padding-left: 30px;
    padding-right: 20px;
}

.header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 30px;
    margin-left: 0;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: 0;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.header-right {
    display: flex;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff6b35;
}

.main {
    padding: 20px 0;
}

.main .container {
    display: flex;
    gap: 20px;
    position: relative;
    padding: 0 20px;
}

.sidebar {
    width: 100px;
    flex-shrink: 0;
    position: fixed;
    left: 30px;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 90;
}

.sidebar-menu {
    list-style: none;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sidebar-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.sidebar-menu a:hover {
    background-color: #f5f5f5;
    color: #ff6b35;
}

.collapse-btn {
    background-color: #f0f0f0;
    text-align: center;
    font-weight: bold;
}

.content {
    flex: 1;
    min-width: 0;
    margin-left: 140px;
}

.content-header {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-grid {
    margin-bottom: 30px;
}

.content-title {
    font-size: 18px;
    color: #333;
}

.content-actions {
    display: flex;
    gap: 10px;
}

.action-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
}

.action-link:hover {
    color: #ff6b35;
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
}

.site-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    gap: 10px;
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.site-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border-radius: 8px;
    flex-shrink: 0;
}

.site-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.site-info {
    flex: 1;
}

.site-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.site-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.site-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.no-sites {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.footer {
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
    padding: 20px 0;
    margin-top: 30px;
}

.footer .container {
    text-align: center;
    font-size: 14px;
    color: #666;
}

@media (max-width: 1024px) {
    .main .container {
        flex-direction: column;
    }

    .sidebar {
        display: none;
    }

    .content {
        margin-left: 0;
    }

    .header-right {
        display: none;
    }

    .site-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .content-actions {
        flex-wrap: wrap;
    }
    
    /* 显示顶部LOGO，隐藏导航链接 */
    .header {
        display: block;
        padding: 10px 0;
    }
    
    .header .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .site-grid {
        grid-template-columns: 1fr;
    }
}