* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0c1120;
    background-image: url('../images/background_pc.png');
    min-height: 100vh;
    color: #fff;
    padding: 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding: 15px 0;
}

header h1 {
    font-size: 2rem;
    color: #fff;
    letter-spacing: 1px;
}

.admin-link {
    position: absolute;
    right: 10px;
    top: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
}

.admin-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(45deg);
}

.admin-actions {
    position: absolute;
    right: 0;
    top: 0;
}

.reset-btn, .admin-btn {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: pointer;
}

.reset-btn {
    right: 60px;
    top: 0;
}

#exportData {
    right: 140px;
    top: 0;
}

#importData {
    right: 220px;
    top: 0;
}

.reset-btn:hover, .admin-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 导入模态框样式 */
.import-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.import-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 80%;
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.import-modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 15px;
}

.import-modal-content p {
    margin-bottom: 10px;
}

.import-modal-content button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background-color: #3498db;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.import-modal-content button:hover {
    background-color: #2980b9;
}

/* 取消按钮样式 */
.import-modal-content button:last-child {
    background-color: #7f8c8d;
}

.import-modal-content button:last-child:hover {
    background-color: #6c7a7d;
}

/* 覆盖按钮警告样式 */
.import-modal-content button:nth-child(2) {
    background-color: #e74c3c;
}

.import-modal-content button:nth-child(2):hover {
    background-color: #c0392b;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .reset-btn, .admin-btn, .admin-link {
        position: static;
        margin: 5px;
        display: inline-block;
    }
    
    .admin-actions {
        position: static;
        text-align: center;
        margin-top: 10px;
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .import-modal-content {
        width: 90%;
        padding: 15px;
    }
    
    .import-modal-content button {
        width: 100%;
        margin-bottom: 5px;
    }
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.search-container:before {
    content: "🔍";
    position: absolute;
    left: calc(50% - 320px);
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    z-index: 1;
    font-size: 15px;
}

.search-container input {
    width: 90%;
    max-width: 700px;
    padding: 12px 20px 12px 40px;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.search-container input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-container input:focus {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    width: 95%;
}

#categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 分类区域滚动条样式 */
#categories::-webkit-scrollbar {
    width: 6px;
    background-color: rgba(0, 0, 0, 0.1);
}

#categories::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

#categories::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.category {
    margin-bottom: 15px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.category h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
    display: inline-block;
    padding: 5px 10px 5px 12px;
    border-left: 4px solid rgba(52, 152, 219, 0.7);
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 4px 4px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 0;
}

.category h2:after {
    content: none;
}

.links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    overflow-y: auto;
    flex: 1;
    max-height: 160px;
    grid-auto-rows: 45px;
}

/* 链接区域滚动条样式 */
.links::-webkit-scrollbar {
    width: 5px;
    background-color: rgba(0, 0, 0, 0.1);
}

.links::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.links::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.links::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.links a {
    text-decoration: none;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px 8px;
    border-radius: 8px;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 45px;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0;
}

.links a:before {
    content: none;
}

.links a:hover {
    background-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* 移动端响应式样式 */
@media (max-width: 768px) {
    .links {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 38px;
    }
    
    .category {
        padding: 12px;
    }
    
    header {
        margin-bottom: 15px;
    }
    
    .search-container:before {
        left: calc(50% - 260px);
    }
}

@media (max-width: 600px) {
    body {
        padding: 8px;
    }
    
    header {
        padding: 10px 0;
        margin-bottom: 12px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .admin-link, .reset-btn {
        top: 5px;
        font-size: 12px;
    }
    
    .search-container {
        margin-bottom: 15px;
    }
    
    .search-container:before {
        left: 20px;
        font-size: 14px;
    }
    
    .search-container input {
        width: 95%;
        padding: 10px 15px 10px 35px;
        font-size: 14px;
    }
    
    .search-container input:focus {
        width: 98%;
    }
    
    #categories {
        gap: 12px;
    }
    
    .category {
        padding: 10px;
        border-radius: 10px;
    }
    
    .category h2 {
        font-size: 1rem;
        margin-bottom: 8px;
        padding: 4px 8px 4px 10px;
        border-left-width: 3px;
    }
    
    .links {
        gap: 6px;
    }
    
    .links a {
        height: 38px;
        padding: 6px 5px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .links a:before {
        font-size: 12px;
        margin-right: 5px;
        padding: 0 3px;
    }
}

@media (max-width: 480px) {
    .links {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 38px;
    }
    
    .links a:before {
        font-size: 11px;
        margin-right: 4px;
        padding: 0 2px;
    }
}

@media (max-width: 320px) {
    .links a {
        height: 36px;
        font-size: 11px;
    }
    
    .links {
        grid-auto-rows: 36px;
    }
}

/* 顶部导航分类 */
.top-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.top-categories a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    margin: 5px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.top-categories a:before {
    content: "➡";
    margin-right: 5px;
    font-size: 12px;
}

.top-categories a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .top-categories {
        padding: 8px 5px;
        flex-wrap: wrap;
        font-size: 13px;
    }
    
    .top-categories a {
        padding: 6px 10px;
        margin: 3px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .top-categories {
        flex-wrap: wrap;
        padding: 5px;
    }
    
    .top-categories a {
        padding: 5px 8px;
        margin: 2px;
        font-size: 12px;
    }
} 