.toolbox-page {
    min-height: 100vh;
    background: #f0f2f5;
    padding-bottom: 4rem;
}

.toolbox-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    margin-bottom: 3rem;
}

.toolbox-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 管理区域 */
.admin-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.password-box {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
}

.password-box h3 {
    margin-bottom: 1rem;
}

.password-box input {
    margin-bottom: 1rem;
}

.hint {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.5rem;
}

.add-tool-form {
    border-top: 2px solid #f0f0f0;
    padding-top: 2rem;
}

.form-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
}

/* 筛选器 */
.tool-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tool-filter {
    padding: 0.6rem 1.2rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.tool-filter:hover,
.tool-filter.active {
    border-color: #4facfe;
    background: #4facfe;
    color: white;
}

/* 工具网格 */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border-top: 4px solid #4facfe;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.tool-card.private-tool {
    border-top-color: #ff6b6b;
    background: linear-gradient(to bottom right, #fff, #fff5f5);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tool-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.tool-card.private-tool .tool-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
}

.tool-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: #333;
}

.tool-type {
    font-size: 0.8rem;
    color: #666;
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.tool-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.visit-btn {
    padding: 0.5rem 1.2rem;
    background: #4facfe;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.visit-btn:hover {
    background: #3d9bfe;
    transform: scale(1.05);
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.admin-btn.delete {
    background: #ffebee;
    color: #f44336;
}

.admin-btn.edit {
    background: #e3f2fd;
    color: #2196f3;
}

.admin-btn:hover {
    transform: scale(1.1);
}

.empty-tools {
    text-align: center;
    padding: 4rem;
    color: #999;
}

.big-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
}